/* ── cs-tokens: v1 — fluid design-token foundation. Paste verbatim; fill only the palette. ── */
:root {
  --bg:          #FDF6E8;
  --bg-alt:      #E8E0D0;
  --card:        #FFFFFF;
  --text:        #2E322E;
  --muted:       #666B65;
  --accent:      #E4A075;
  --accent2:     #F5D6BB;
  --accent-rgb:  228,160,117;
  --accent-light: rgba(var(--accent-rgb),.08);
  --border:      rgba(102,107,101,.15);
  /* Second chromatic hue — calm sage-green for focus rings and secondary accents.
     Hue ~148deg keeps a clear cluster separation from the blush/orange accent cluster (~23deg).
     Chroma 0.188 (chromatic above the 0.10 threshold). */
  --grove:       #5B8A6A;

  --fs-xs:   clamp(0.75rem,  0.70rem + 0.25vw, 0.875rem);
  --fs-sm:   clamp(0.875rem, 0.80rem + 0.38vw, 1.00rem);
  --fs-base: clamp(1.00rem,  0.90rem + 0.50vw, 1.25rem);
  --fs-lg:   clamp(1.25rem,  1.10rem + 0.75vw, 1.75rem);
  --fs-xl:   clamp(1.75rem,  1.50rem + 1.25vw, 2.50rem);
  --fs-2xl:  clamp(2.50rem,  2.00rem + 2.50vw, 4.00rem);
  --fs-3xl:  clamp(3.50rem,  2.50rem + 5.00vw, 6.00rem);

  --sp-2xs:  clamp(0.25rem,  0.20rem + 0.25vw, 0.375rem);
  --sp-xs:   clamp(0.50rem,  0.40rem + 0.50vw, 0.75rem);
  --sp-sm:   clamp(0.75rem,  0.60rem + 0.75vw, 1.125rem);
  --sp-md:   clamp(1.00rem,  0.80rem + 1.00vw, 1.50rem);
  --sp-lg:   clamp(1.50rem,  1.20rem + 1.50vw, 2.25rem);
  --sp-xl:   clamp(2.00rem,  1.60rem + 2.00vw, 3.00rem);
  --sp-2xl:  clamp(3.00rem,  2.40rem + 3.00vw, 4.50rem);

  --dur-fast: 150ms;
  --dur-base: 250ms;
  --dur-slow: 400ms;
  --ease-std: cubic-bezier(0.4, 0, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* NEVER overflow:hidden on html/body — it un-sticks the hero pin */
html { overflow-x: clip; }
body {
  font-family: 'Nunito Sans', system-ui, sans-serif;
  font-size: var(--fs-base);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

/* Focus-visible: accessible focus ring using the sage-green grove token */
:focus-visible {
  outline: 3px solid var(--grove);
  outline-offset: 3px;
  border-radius: 2px;
}

img { display: block; max-width: 100%; }

/* NAV */
.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(102,107,101,0.94);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.nav-inner {
  max-width: 1320px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: var(--sp-sm);
  padding: var(--sp-xs) var(--sp-xl);
}
.nav-logo-pill {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-xs);
  text-decoration: none;
  flex-shrink: 0;
  background: rgba(255,255,255,0.12);
  border-radius: 999px;
  padding: 4px 12px 4px 4px;
  border: 1px solid rgba(255,255,255,0.18);
  transition: background var(--dur-fast);
}
.nav-logo-pill:hover { background: rgba(255,255,255,0.2); }
.nav-logo {
  width: 40px; height: 40px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
.nav-wordmark {
  font-size: var(--fs-xs);
  font-weight: 800;
  color: #FDF6E8;
  letter-spacing: .06em;
  text-transform: uppercase;
  white-space: nowrap;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: var(--sp-sm);
  margin-left: auto;
}
.nav-links a {
  color: #FDF6E8;
  text-decoration: none;
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: .04em;
  white-space: nowrap;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 0 var(--sp-2xs);
  transition: color var(--dur-fast);
}
.nav-links a:hover,
.nav-links a[aria-current="page"] { color: var(--accent2); }
.nav-book {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 var(--sp-md);
  background: var(--accent);
  color: #fff;
  font-weight: 800;
  font-size: var(--fs-xs);
  letter-spacing: .04em;
  border-radius: 999px;
  text-decoration: none;
  white-space: nowrap;
  transition: background var(--dur-fast);
  flex-shrink: 0;
}
.nav-book:hover { background: #c87e55; }
.nav-burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  min-height: 44px;
  min-width: 44px;
  margin-left: auto;
}
.nav-burger span {
  display: block; width: 22px; height: 2px;
  background: #FDF6E8; border-radius: 2px;
  transition: all var(--dur-base);
}

/* MOBILE DRAWER — ND rules enforced */
.nav-drawer {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(253,246,232,0.97); /* alpha 0.97 >= 0.92 — ND-1 satisfied */
  z-index: 200;
  flex-direction: column;
  padding: 72px var(--sp-xl) var(--sp-xl);
  overflow-y: auto;
}
.nav-drawer.open { display: flex; }
.drawer-close {
  position: absolute;
  top: var(--sp-md); right: var(--sp-xl);
  background: none; border: none;
  font-size: 2rem; cursor: pointer;
  color: #2E322E;
  min-height: 44px; min-width: 44px;
  display: flex; align-items: center; justify-content: center;
}
/* ND-3: explicit color on the <a> element, not a child span */
/* ND-2: display:block + padding achieves >= 44px tap height at all viewports */
.nav-drawer a {
  display: block;
  color: #2E322E;
  font-size: var(--fs-lg);
  font-weight: 700;
  text-decoration: none;
  padding: 14px 0;
  min-height: 44px;
  border-bottom: 1px solid rgba(102,107,101,0.15);
}
.nav-drawer a:last-child { border-bottom: none; }
.nav-drawer a:hover { color: var(--muted); }
.drawer-book-link {
  margin-top: var(--sp-md);
  display: flex !important;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  color: #fff !important;
  border-radius: 999px;
  padding: 14px var(--sp-lg) !important;
  border-bottom: none !important;
  font-weight: 800;
  min-height: 44px;
}

@media (max-width: 960px) {
  .nav-links { display: none; }
  .nav-book { display: none; }
  .nav-burger { display: flex; }
}

/* BUTTONS */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 12px var(--sp-lg);
  background: var(--accent);
  color: #fff;
  font-weight: 800;
  font-size: var(--fs-base);
  font-family: inherit;
  border-radius: 999px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background var(--dur-fast);
  white-space: nowrap;
}
.btn-primary:hover { background: #c87e55; }
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 12px var(--sp-lg);
  background: transparent;
  color: var(--muted);
  font-weight: 700;
  font-size: var(--fs-base);
  font-family: inherit;
  border-radius: 999px;
  text-decoration: none;
  border: 2px solid var(--muted);
  cursor: pointer;
  transition: all var(--dur-fast);
  white-space: nowrap;
}
.btn-secondary:hover { background: var(--muted); color: var(--bg); }
.btn-light {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 12px var(--sp-lg);
  background: rgba(253,246,232,0.15);
  color: #FDF6E8;
  font-weight: 800;
  font-size: var(--fs-base);
  font-family: inherit;
  border-radius: 999px;
  text-decoration: none;
  border: 2px solid rgba(253,246,232,0.4);
  cursor: pointer;
  transition: all var(--dur-fast);
  white-space: nowrap;
}
.btn-light:hover { background: rgba(253,246,232,0.28); }

/* LAYOUT HELPERS */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--sp-xl);
}
.section { padding: var(--sp-2xl) var(--sp-xl); }
.section-center { text-align: center; margin-bottom: var(--sp-xl); }
.section-title {
  font-size: var(--fs-2xl);
  font-weight: 800;
  color: var(--muted);
  line-height: 1.1;
}
.section-title.light { color: #FDF6E8; }
.section-sub {
  font-size: var(--fs-lg);
  margin-top: var(--sp-xs);
  color: var(--text);
  opacity: .8;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}
.section-sub.light { color: rgba(253,246,232,.85); }
.eyebrow-label {
  display: inline-block;
  font-size: var(--fs-xs);
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--sp-sm);
  font-weight: 700;
}
.eyebrow-label.light { color: var(--accent2); }

/* SCROLL REVEAL */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity var(--dur-slow) var(--ease-std), transform var(--dur-slow) var(--ease-std);
}
.reveal.visible { opacity: 1; transform: none; }
.reveal-delay-1 { transition-delay: 80ms; }
.reveal-delay-2 { transition-delay: 160ms; }
.reveal-delay-3 { transition-delay: 240ms; }
.reveal-delay-4 { transition-delay: 320ms; }
.reveal-delay-5 { transition-delay: 400ms; }
.reveal-delay-6 { transition-delay: 480ms; }

/* PAGE HERO (inner pages — static sage-grey band) */
.page-hero {
  background: var(--muted);
  color: var(--bg);
  padding: calc(var(--sp-2xl) + 72px) var(--sp-xl) var(--sp-2xl);
  text-align: center;
}
.page-hero .eyebrow {
  display: inline-block;
  font-size: var(--fs-xs);
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--accent2);
  font-weight: 700;
  margin-bottom: var(--sp-sm);
}
.page-hero h1 {
  font-size: var(--fs-2xl);
  font-weight: 800;
  color: #FDF6E8;
  line-height: 1.1;
}
.page-hero p {
  font-size: var(--fs-lg);
  margin-top: var(--sp-sm);
  opacity: .85;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* MAT + INNER RULE FRAME (logo-geometry motif) */
.mat-frame {
  background: var(--bg);
  padding: 10px;
  border: 1px solid var(--border);
  position: relative;
}
.mat-frame::after {
  content: '';
  position: absolute;
  inset: 6px;
  border: 1px solid rgba(102,107,101,0.28);
  pointer-events: none;
}
.mat-frame img {
  width: 100%;
  object-fit: cover;
  display: block;
}

/* FOOTER */
.site-footer {
  background: var(--muted);
  color: rgba(253,246,232,0.9);
  padding: var(--sp-2xl) var(--sp-xl) var(--sp-xl);
}
.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: var(--sp-xl);
}
.footer-logo-wrap {
  background: #fff;
  border-radius: 50%;
  padding: 3px;
  display: inline-block;
  margin-bottom: var(--sp-sm);
}
.footer-logo {
  height: 60px;
  width: 60px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}
.footer-tagline {
  font-size: var(--fs-sm);
  font-style: italic;
  opacity: .8;
  margin-bottom: var(--sp-sm);
  line-height: 1.5;
}
.footer-social {
  display: flex;
  gap: var(--sp-sm);
  margin-top: var(--sp-xs);
}
.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  min-width: 44px;
  color: rgba(253,246,232,0.75);
  font-size: var(--fs-sm);
  font-weight: 700;
  text-decoration: none;
  border: 1px solid rgba(253,246,232,0.25);
  border-radius: 999px;
  padding: 0 var(--sp-sm);
  transition: all var(--dur-fast);
}
.footer-social a:hover { color: #fff; border-color: rgba(253,246,232,0.6); }
.footer-col h4 {
  font-size: var(--fs-xs);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: var(--accent2);
  margin-bottom: var(--sp-sm);
}
.footer-col a {
  color: rgba(253,246,232,0.82);
  text-decoration: none;
  font-size: var(--fs-sm);
  padding: 4px 0;
  min-height: 44px;
  display: flex;
  align-items: center;
  transition: color var(--dur-fast);
}
.footer-col a:hover { color: #fff; }
.footer-col p {
  font-size: var(--fs-sm);
  line-height: 1.7;
  opacity: .82;
  margin-bottom: var(--sp-xs);
}
.footer-col address {
  font-style: normal;
  font-size: var(--fs-sm);
  line-height: 1.7;
  opacity: .82;
}
.footer-bottom {
  border-top: 1px solid rgba(253,246,232,0.15);
  margin-top: var(--sp-xl);
  padding-top: var(--sp-md);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--sp-sm);
  font-size: var(--fs-xs);
  opacity: .55;
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
}
.footer-bottom a {
  color: inherit;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}
.footer-bottom a:hover { opacity: 1; }

@media (max-width: 768px) {
  .footer-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) {
  .footer-inner { grid-template-columns: 1fr; }
}
