/* ============================================================
   Base — reset, layout primitives, shared patterns, site header
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--f-sans);
  font-size: 16px;
  line-height: 1.8;
  color: var(--c-ink);
  background: var(--c-ecosystem);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; }
ul { list-style: none; padding: 0; }

.wrap {
  width: min(100% - 2 * var(--wrap-pad), var(--wrap-max));
  margin-inline: auto;
}
.section { padding-block: var(--section-pad-y); }

/* ---- shared section head (eyebrow with side dashes / H2 / Young Serif sub) ---- */
.k-head { text-align: center; max-width: 66ch; margin: 0 auto clamp(40px, 6vw, 64px); }
.k-eyebrow {
  font-family: var(--f-mont);
  font-weight: 500;
  font-size: 13px;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--c-maroon);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}
.k-eyebrow::before, .k-eyebrow::after {
  content: "";
  width: 34px;
  height: 1px;
  background: currentColor;
  opacity: .8;
}
.k-heading {
  font-family: var(--f-sans);
  font-weight: 700;
  font-size: clamp(30px, 4.4vw, 46px);
  line-height: 1.15;
  color: var(--c-ink);
  margin-top: 18px;
}
.k-heading em {
  font-family: var(--f-accent);
  font-style: normal;
  font-weight: 400;
  color: var(--c-maroon);
}
.k-sub {
  font-family: var(--f-accent);
  font-size: clamp(17px, 2vw, 21px);
  color: var(--c-muted);
  margin-top: 16px;
}
/* dark-section variants */
.on-dark .k-eyebrow { color: var(--c-peach); }
.on-dark .k-heading { color: var(--c-cream-lt); }
.on-dark .k-heading em { color: var(--c-peach); }
.on-dark .k-sub { color: color-mix(in srgb, var(--c-cream) 78%, transparent); }

/* ---- buttons ---- */
.btn-solid {
  display: inline-flex;
  align-items: center;
  gap: .6em;
  background: var(--c-maroon);
  color: var(--c-cream-lt);
  font-family: var(--f-sans);
  font-weight: 600;
  font-size: 15px;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  transition: background var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease);
}
.btn-solid:hover { background: var(--c-maroon-dk); transform: translateY(-2px); }
.btn-light {
  background: var(--c-cream-lt);
  color: var(--c-ink);
}
.btn-light:hover { background: #fff; }
.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: .6em;
  border: 1px solid var(--c-gold);
  color: var(--c-hero-btn);
  font-family: var(--f-mont);
  font-weight: 500;
  font-size: 15px;
  letter-spacing: .14em;
  text-transform: uppercase;
  padding: 16px 30px;
  text-decoration: none;
  transition: background var(--dur-fast) var(--ease);
}
.btn-outline:hover { background: rgba(197, 154, 108, .14); }

/* ---- reveal on scroll (reveal.js adds .in) ---- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity var(--dur-slow) var(--ease), transform var(--dur-slow) var(--ease); }
.reveal.in { opacity: 1; transform: none; }
/* no-JS / reduced-motion safety */
.no-js .reveal { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
}

/* ---- accessibility ---- */
.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 200;
  background: var(--c-maroon);
  color: var(--c-cream-lt);
  padding: 10px 18px;
  border-radius: 0 0 8px 8px;
  text-decoration: none;
  transition: top var(--dur-fast) var(--ease);
}
.skip-link:focus { top: 0; }
:where(a, button, [tabindex]):focus-visible { outline: 3px solid var(--c-gold-lt); outline-offset: 2px; }

/* ============================================================
   Site header — absolute over the hero; .is-stuck via nav.js
   ============================================================ */
.site-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
}
.site-header.is-stuck {
  position: fixed;
  background: rgba(32, 23, 19, .94);
  box-shadow: 0 10px 30px -18px rgba(0, 0, 0, .6);
  animation: header-drop .35s var(--ease);
}
@keyframes header-drop { from { transform: translateY(-100%); } to { transform: none; } }

.site-header__inner {
  width: min(100% - 2 * var(--wrap-pad), calc(var(--wrap-max) + 80px));
  margin-inline: auto;
  min-height: 116px;
  display: flex;
  align-items: center;
  gap: clamp(18px, 3vw, 40px);
}
.site-header.is-stuck .site-header__inner { min-height: 78px; }

.site-header__logo {
  font-family: var(--f-script);
  font-size: clamp(30px, 3.4vw, 42px);
  line-height: 1;
  color: var(--c-hero-logo);
  text-decoration: none;
  margin-right: auto;
  white-space: nowrap;
}
.site-header__menu {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2.4vw, 38px);
}
.site-header__menu a {
  font-family: var(--f-mont);
  font-weight: 500;
  font-size: 15px;
  letter-spacing: .06em;
  color: var(--c-hero-nav);
  text-decoration: none;
  transition: color var(--dur-fast) var(--ease);
}
.site-header__menu a:hover { color: #fff; }

.site-header__divider {
  width: 1px;
  height: 30px;
  background: rgba(231, 216, 200, .35);
}
.site-header__socials { display: flex; gap: 12px; }
.site-header__socials a {
  width: 40px;
  height: 40px;
  border: 1px solid var(--c-gold);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--c-hero-nav);
  transition: background var(--dur-fast) var(--ease);
}
.site-header__socials a:hover { background: rgba(197, 154, 108, .16); }
.site-header__socials svg { stroke-width: 2; }

.site-header__burger {
  display: none;
  width: 46px;
  height: 46px;
  border: 1px solid var(--c-gold);
  border-radius: 50%;
  place-items: center;
  color: var(--c-hero-nav);
}
.site-header__burger span,
.site-header__burger span::before,
.site-header__burger span::after {
  content: "";
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  position: relative;
  transition: transform var(--dur-fast) var(--ease), opacity var(--dur-fast);
}
.site-header__burger span::before { position: absolute; top: -6px; }
.site-header__burger span::after { position: absolute; top: 6px; }
.site-header__burger[aria-expanded="true"] span { background: transparent; }
.site-header__burger[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.site-header__burger[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 900px) {
  .site-header__nav { display: none; }
  .site-header__divider, .site-header__socials { display: none; }
  .site-header__burger { display: grid; }
  .site-header.nav-open .site-header__nav {
    display: block;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(32, 23, 19, .97);
    padding: 18px var(--wrap-pad) 26px;
  }
  .site-header.nav-open .site-header__menu { flex-direction: column; align-items: flex-start; gap: 4px; }
  .site-header.nav-open .site-header__menu a { display: block; padding: 12px 0; font-size: 17px; }
}

/* ---- blog fallback ---- */
.k-archive { padding: 160px 0 80px; }
.k-archive article { margin-bottom: 2.5rem; }
