:root {
  --aete-gold: #b68f58;
  --aete-olive: #5f6340;
  --aete-moss: #333a28;
  --aete-terracotta: #9b5f3b;
  --aete-cocoa: #4b3a2a;
  --aete-cream: #f6f2e8;
  --aete-paper: #fbfaf6;
  --aete-ink: #2b2f24;
  --aete-muted: #6b6f62;
  --aete-border: rgba(51, 58, 40, .14);
  --aete-shadow: 0 18px 50px rgba(51, 58, 40, .10);
  --aete-radius: 1.25rem;
}

html { scroll-behavior: smooth; }
body {
  color: var(--aete-ink);
  background: var(--aete-paper);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}
body.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { body.admin-bar .site-header { top: 46px; } }

h1, h2, h3, h4, h5, h6,
.display-1, .display-2, .display-3, .display-4, .display-5, .display-6 {
  color: var(--aete-moss);
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  letter-spacing: -.025em;
}

a { color: var(--aete-olive); text-underline-offset: .18em; }
a:hover { color: var(--aete-terracotta); }

::selection { background: var(--aete-gold); color: var(--aete-cocoa); }

.site-header {
  z-index: 1030;
  background: rgba(251, 250, 246, .94);
  border-bottom: 1px solid var(--aete-border);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
.site-header .navbar { min-height: 88px; }
.aete-header-inner { gap: 1.5rem; }
.site-branding { flex: 0 0 auto; }
.custom-logo-link, .aete-default-logo { display: inline-flex; align-items: center; }
.custom-logo, .aete-default-logo img {
  display: block;
  width: min(290px, 46vw);
  max-height: 72px;
  object-fit: contain;
  object-position: left center;
}
.navbar-nav .nav-link {
  color: var(--aete-moss);
  font-size: .92rem;
  font-weight: 600;
  letter-spacing: .02em;
  padding: .7rem .8rem !important;
}
.navbar-nav .nav-link:hover,
.navbar-nav .nav-link:focus,
.navbar-nav .current-menu-item > .nav-link { color: var(--aete-terracotta); }
.dropdown-menu {
  border: 1px solid var(--aete-border);
  border-radius: 1rem;
  box-shadow: var(--aete-shadow);
  padding: .55rem;
}
.dropdown-item { border-radius: .65rem; padding: .6rem .75rem; color: var(--aete-moss); }
.dropdown-item:hover, .dropdown-item:focus { color: var(--aete-cocoa); background: var(--aete-cream); }
.navbar-toggler { border-color: var(--aete-border); }
.navbar-toggler:focus { box-shadow: 0 0 0 .2rem rgba(182, 143, 88, .25); }

.btn {
  border-radius: 999px;
  font-weight: 700;
  letter-spacing: .015em;
  padding: .72rem 1.25rem;
  transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease, border-color .2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-aete-primary {
  --bs-btn-color: #fff;
  --bs-btn-bg: var(--aete-terracotta);
  --bs-btn-border-color: var(--aete-terracotta);
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: #845033;
  --bs-btn-hover-border-color: #845033;
  --bs-btn-focus-shadow-rgb: 155, 95, 59;
  box-shadow: 0 8px 24px rgba(155, 95, 59, .18);
}

.aete-section { padding: clamp(4rem, 7vw, 7rem) 0; }
.aete-content-width { max-width: 920px; }
.aete-elementor-page { overflow: clip; }
.aete-kicker {
  margin-bottom: .75rem;
  color: var(--aete-terracotta);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.archive-description { max-width: 60ch; color: var(--aete-muted); }

.aete-card {
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--aete-border);
  border-radius: var(--aete-radius);
  box-shadow: 0 10px 30px rgba(51, 58, 40, .06);
  transition: transform .25s ease, box-shadow .25s ease;
}
.aete-card:hover { transform: translateY(-4px); box-shadow: var(--aete-shadow); }
.aete-card-media { display: block; aspect-ratio: 4/3; overflow: hidden; background: var(--aete-cream); }
.aete-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.aete-card:hover .aete-card-media img { transform: scale(1.025); }
.aete-card-body { padding: 1.5rem; }
.aete-card-meta { color: var(--aete-muted); font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; }
.aete-card-title a { color: var(--aete-moss); text-decoration: none; }
.aete-card-title a:hover { color: var(--aete-terracotta); }
.aete-card-excerpt { color: var(--aete-muted); }
.aete-text-link { font-weight: 750; text-decoration: none; }

.aete-prose { font-size: 1.075rem; }
.aete-prose > * + * { margin-top: 1.35em; }
.aete-prose h2, .aete-prose h3, .aete-prose h4 { margin-top: 2em; }
.aete-prose img { max-width: 100%; height: auto; border-radius: 1rem; }
.aete-prose blockquote {
  margin: 2rem 0;
  padding: 1.4rem 1.6rem;
  color: var(--aete-cocoa);
  background: var(--aete-cream);
  border-left: 4px solid var(--aete-gold);
  border-radius: 0 1rem 1rem 0;
}
.aete-prose .alignwide { width: min(1200px, calc(100vw - 2rem)); max-width: none; margin-left: 50%; transform: translateX(-50%); }
.aete-prose .alignfull { width: 100vw; max-width: none; margin-left: 50%; transform: translateX(-50%); }

.aete-tags a {
  display: inline-block;
  margin: .2rem .25rem .2rem 0;
  padding: .35rem .65rem;
  color: var(--aete-moss);
  background: var(--aete-cream);
  border-radius: 999px;
  font-size: .84rem;
  text-decoration: none;
}

.page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.5rem;
  height: 2.5rem;
  margin: .15rem;
  padding: 0 .7rem;
  color: var(--aete-moss);
  background: #fff;
  border: 1px solid var(--aete-border);
  border-radius: 999px;
  text-decoration: none;
}
.page-numbers.current, .page-numbers:hover { color: #fff; background: var(--aete-moss); border-color: var(--aete-moss); }

.form-control {
  min-height: 48px;
  border-color: var(--aete-border);
  border-radius: .85rem;
}
.form-control:focus { border-color: var(--aete-gold); box-shadow: 0 0 0 .2rem rgba(182, 143, 88, .18); }
.aete-search-form { max-width: 560px; }

.site-footer {
  color: rgba(255, 255, 255, .78);
  background: var(--aete-moss);
}
.site-footer h2, .site-footer a { color: #fff; }
.site-footer a:hover { color: #dfbf8f; }
.footer-logo .custom-logo, .footer-logo .aete-default-logo img {
  width: min(270px, 70vw);
  filter: brightness(0) invert(1);
  opacity: .94;
}
.footer-manifesto { max-width: 44ch; color: rgba(255, 255, 255, .68); }
.footer-title { font-family: inherit; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.footer-menu li + li, .footer-contact li + li { margin-top: .55rem; }
.footer-menu a, .footer-contact a { text-decoration: none; }
.footer-bottom { color: rgba(255, 255, 255, .58); border-top: 1px solid rgba(255, 255, 255, .12); }

.comment-list .comment-body {
  margin-bottom: 1.25rem;
  padding: 1.2rem;
  background: #fff;
  border: 1px solid var(--aete-border);
  border-radius: 1rem;
}

.screen-reader-text {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.screen-reader-text:focus {
  top: 8px;
  left: 8px;
  z-index: 100000;
  width: auto;
  height: auto;
  padding: .8rem 1rem;
  clip: auto;
  color: #fff;
  background: var(--aete-moss);
  border-radius: .5rem;
}

:focus-visible { outline: 3px solid rgba(182, 143, 88, .65); outline-offset: 3px; }

@media (max-width: 991.98px) {
  .site-header .navbar { min-height: 76px; }
  .navbar-collapse { padding: 1rem 0 .5rem; border-top: 1px solid var(--aete-border); margin-top: .75rem; }
  .navbar-nav { align-items: stretch !important; }
  .navbar-nav .nav-link { padding: .72rem 0 !important; }
  .custom-logo, .aete-default-logo img { max-height: 58px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}

.developer-credit { color: rgba(255, 255, 255, .58); }
.developer-credit a { color: rgba(255, 255, 255, .72); text-decoration: none; }
.developer-credit a:hover, .developer-credit a:focus { color: #dfbf8f; text-decoration: underline; }
