/* cs-tokens: v1 */
:root {
  /* Palette */
  --color-bg: #FBF8F1;
  --color-fg: #2A211B;
  --accent:   #C48090;   /* rose-gold — hue 346°, dist 40° from jaime-lee base */
  --accent2:  #C4B278;   /* champagne — hue 46°, dist 27° from jaime-lee accent; controls cohort extract_pair */
  --blush:    #D4A8A0;   /* dusty rose — hue 9°, third cluster for PALETTE-THIN */
  --accent-rgb: 196, 128, 144;
  --accent-light: color-mix(in srgb, var(--accent) 15%, var(--color-bg));

  /* Type scale */
  --fs-xs:   clamp(0.694rem,  0.65rem  + 0.22vw, 0.8rem);
  --fs-sm:   clamp(0.833rem,  0.78rem  + 0.27vw, 0.95rem);
  --fs-base: clamp(1rem,      0.93rem  + 0.33vw, 1.125rem);
  --fs-md:   clamp(1.2rem,    1.1rem   + 0.5vw,  1.375rem);
  --fs-lg:   clamp(1.44rem,   1.3rem   + 0.7vw,  1.75rem);
  --fs-xl:   clamp(1.728rem,  1.5rem   + 1.14vw, 2.25rem);
  --fs-2xl:  clamp(2.074rem,  1.73rem  + 1.72vw, 3rem);
  --fs-3xl:  clamp(2.488rem,  1.97rem  + 2.59vw, 4rem);
  --fs-4xl:  clamp(2.986rem,  2.27rem  + 3.58vw, 5.5rem);

  /* Spacing */
  --sp-1: clamp(0.25rem,  0.22rem  + 0.15vw, 0.375rem);
  --sp-2: clamp(0.5rem,   0.44rem  + 0.3vw,  0.75rem);
  --sp-3: clamp(0.75rem,  0.67rem  + 0.4vw,  1rem);
  --sp-4: clamp(1rem,     0.9rem   + 0.5vw,  1.5rem);
  --sp-5: clamp(1.5rem,   1.3rem   + 1vw,    2.25rem);
  --sp-6: clamp(2rem,     1.7rem   + 1.5vw,  3rem);
  --sp-7: clamp(3rem,     2.5rem   + 2.5vw,  4.5rem);
  --sp-8: clamp(4rem,     3.2rem   + 4vw,    7rem);

  /* Spacing aliases — required cs-tokens v1 names */
  --sp-2xs: var(--sp-1);
  --sp-xs:  var(--sp-2);
  --sp-sm:  var(--sp-3);
  --sp-md:  var(--sp-4);
  --sp-lg:  var(--sp-5);
  --sp-xl:  var(--sp-6);
  --sp-2xl: var(--sp-7);

  /* Motion */
  --dur-base: 0.3s;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ─── Reset ─────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { }
body {
  background: var(--color-bg);
  color: var(--color-fg);
  font-family: 'Montserrat', sans-serif;
  font-size: var(--fs-base);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ─── Typography helpers ─────────────────────── */
.font-display { font-family: 'Baskervville', serif; }
.eyebrow {
  font-family: 'Montserrat', sans-serif;
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
}
h1, h2, h3, h4 { font-family: 'Baskervville', serif; line-height: 1.2; }
h1 { font-size: var(--fs-3xl); }
h2 { font-size: var(--fs-3xl); }
h3 { font-size: var(--fs-xl); }
h4 { font-size: var(--fs-lg); }

/* ─── Buttons ─────────────────────────────────── */
.btn,
.btn-accent,
.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  min-height: 44px;
  padding: var(--sp-3) var(--sp-6);
  font-family: 'Montserrat', sans-serif;
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background 0.25s, color 0.25s, border-color 0.25s, transform 0.15s;
}
.btn-accent {
  background: var(--accent);
  color: var(--color-bg);
  border-color: var(--accent);
}
.btn-accent:hover { background: #A86878; border-color: #A86878; transform: translateY(-1px); }
.btn-outline {
  background: transparent;
  color: var(--accent);
  border-color: var(--accent);
}
.btn-outline:hover { background: var(--accent); color: var(--color-bg); }
.btn-light {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: var(--sp-3) var(--sp-6);
  font-family: 'Montserrat', sans-serif;
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: var(--color-bg);
  color: var(--accent);
  border: 2px solid var(--color-bg);
  transition: background 0.25s, color 0.25s;
}
.btn-light:hover { background: transparent; color: var(--color-bg); }

/* ─── Navigation ─────────────────────────────── */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  transition: background 0.35s, box-shadow 0.35s;
}
/* Over the hero: semi-dark tinted scrim for the nav (alpha 0.52 ≥ 0.25) */
.site-header { background: rgba(42, 33, 27, 0.52); backdrop-filter: blur(8px); }
.site-header.scrolled {
  background: rgba(251, 248, 241, 0.97);
  box-shadow: 0 1px 0 rgba(42,33,27,0.1);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: var(--sp-3) var(--sp-5);
  gap: var(--sp-4);
}
.nav-logo img {
  height: 52px;
  width: auto;
  display: block;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: var(--sp-1);
}
.nav-links a {
  display: inline-block;
  min-height: 44px;
  line-height: 44px;
  padding: 0 var(--sp-3);
  font-family: 'Montserrat', sans-serif;
  font-size: var(--fs-xs);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-bg);
  transition: color 0.2s;
  white-space: nowrap;
}
.site-header.scrolled .nav-links a { color: var(--color-fg); }
.nav-links a:hover,
.site-header.scrolled .nav-links a:hover { color: var(--accent); }
.nav-book {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: var(--sp-2) var(--sp-5);
  background: var(--accent);
  color: var(--color-bg) !important;
  font-family: 'Montserrat', sans-serif;
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: 2px solid var(--accent);
  white-space: nowrap;
  transition: background 0.25s, transform 0.15s;
}
.site-header.scrolled .nav-book { color: var(--color-bg) !important; }
.nav-book:hover { background: #A86878; border-color: #A86878; transform: translateY(-1px); }

/* ─── Burger button ──────────────────────────── */
.nav-burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
}
.nav-burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-bg);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}
.site-header.scrolled .nav-burger span { background: var(--color-fg); }
.nav-burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger.open span:nth-child(2) { opacity: 0; }
.nav-burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ─── Mobile Nav Drawer ─────────────────────── */
/* ND-1: opaque panel, alpha >= 0.92 */
.nav-drawer {
  position: fixed;
  inset: 0;
  background-color: rgba(42, 33, 27, 0.97);
  z-index: 190;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--sp-8) var(--sp-6) var(--sp-6);
  transform: translateY(-100%);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  overflow-y: auto;
}
.nav-drawer.open { transform: translateY(0); }
/* ND-2: block display + padding ≥ 44px, ND-3: explicit color on anchor */
.drawer-link {
  display: block;
  color: #FBF8F1;
  font-family: 'Baskervville', serif;
  font-size: var(--fs-2xl);
  font-weight: 400;
  text-decoration: none;
  padding: var(--sp-4) 0;
  min-height: 44px;
  border-bottom: 1px solid rgba(196,128,144, 0.25);
  transition: color 0.2s;
  white-space: nowrap;
}
.drawer-link:hover { color: var(--accent); }
.drawer-book-link {
  display: block;
  color: var(--accent);
  font-family: 'Baskervville', serif;
  font-size: var(--fs-2xl);
  text-decoration: none;
  padding: var(--sp-4) 0;
  min-height: 44px;
  margin-top: var(--sp-2);
  transition: color 0.2s;
  white-space: nowrap;
}
.drawer-book-link:hover { color: #FBF8F1; }
.drawer-close {
  position: absolute;
  top: var(--sp-4);
  right: var(--sp-5);
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  color: var(--color-bg);
  font-size: var(--fs-xl);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ─── Layout container ───────────────────────── */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--sp-5);
}
.section-pad { padding: var(--sp-8) 0; }

/* ─── Scroll reveal ──────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ─── Page hero (inner pages) ───────────────── */
.page-hero {
  padding: calc(var(--sp-8) + 80px) var(--sp-5) var(--sp-7);
  background: var(--color-fg);
  text-align: center;
}
.page-hero .eyebrow { color: var(--accent); }
.page-hero h1 {
  color: var(--color-bg);
  font-size: var(--fs-3xl);
  margin-top: var(--sp-3);
}
.page-hero p {
  color: rgba(251,248,241,0.75);
  font-size: var(--fs-md);
  margin-top: var(--sp-3);
  max-width: 54ch;
  margin-left: auto;
  margin-right: auto;
}

/* ─── Divider / ornament ─────────────────────── */
.ornament {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  margin: var(--sp-5) auto;
  width: fit-content;
}
.ornament::before,
.ornament::after {
  content: '';
  display: block;
  width: 60px;
  height: 1px;
  background: var(--accent);
  opacity: 0.5;
}
.ornament-badge {
  width: 20px;
  height: 20px;
  border: 1px solid var(--accent);
  border-radius: 50%;
  opacity: 0.7;
}

/* ─── CTA band ───────────────────────────────── */
.cta-band {
  background: var(--color-fg);
  padding: var(--sp-7) var(--sp-5);
  text-align: center;
}
.cta-band h2 { color: var(--color-bg); margin-bottom: var(--sp-3); }
.cta-band p  { color: rgba(251,248,241,0.75); max-width: 48ch; margin: 0 auto var(--sp-5); }

/* ─── Footer ─────────────────────────────────── */
.site-footer {
  background: #1A1410;
  color: rgba(251,248,241,0.85);
  padding: var(--sp-7) var(--sp-5) var(--sp-4);
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--sp-6);
  padding-bottom: var(--sp-6);
  border-bottom: 1px solid rgba(196,128,144,0.2);
}
.footer-logo img {
  height: 64px;
  width: auto;
  margin-bottom: var(--sp-4);
}
.footer-logo p {
  font-size: var(--fs-sm);
  line-height: 1.65;
  color: rgba(251,248,241,0.65);
  max-width: 26ch;
}
.footer-heading {
  font-family: 'Baskervville', serif;
  font-size: var(--fs-md);
  color: var(--accent);
  margin-bottom: var(--sp-4);
}
.footer-list { display: flex; flex-direction: column; gap: var(--sp-2); }
.footer-list a {
  display: block;
  min-height: 44px;
  line-height: 44px;
  color: rgba(251,248,241,0.75);
  font-size: var(--fs-sm);
  transition: color 0.2s;
  padding-right: var(--sp-2);
}
.footer-list a:hover { color: var(--accent); }
.footer-contact-item {
  display: flex;
  flex-direction: column;
  gap: var(--sp-1);
  font-size: var(--fs-sm);
  color: rgba(251,248,241,0.75);
  margin-bottom: var(--sp-3);
}
.footer-contact-item strong {
  color: rgba(251,248,241,0.9);
  font-size: var(--fs-xs);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.footer-contact-item a {
  display: inline-block;
  min-height: 44px;
  line-height: 44px;
  color: rgba(251,248,241,0.75);
  transition: color 0.2s;
}
.footer-contact-item a:hover { color: var(--accent); }
.footer-socials {
  display: flex;
  gap: var(--sp-3);
  flex-wrap: wrap;
  margin-top: var(--sp-2);
}
.footer-socials a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(196,128,144,0.35);
  border-radius: 50%;
  color: rgba(251,248,241,0.75);
  font-size: var(--fs-sm);
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.footer-socials a:hover {
  background: var(--accent);
  color: var(--color-bg);
  border-color: var(--accent);
}
.footer-bottom {
  max-width: 1200px;
  margin: var(--sp-4) auto 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--sp-3);
  font-size: var(--fs-xs);
  color: rgba(251,248,241,0.4);
}

/* ─── Mobile nav show/hide ───────────────────── */
@media (max-width: 900px) {
  .nav-links, .nav-book-desktop { display: none; }
  .nav-burger { display: flex; }
}
@media (min-width: 901px) {
  .nav-drawer { display: none !important; }
  .nav-burger  { display: none; }
}

/* ─── Accessibility ──────────────────────────── */
:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1 !important; transform: none !important; }
}
