/* =========================================================================
   Best You Naturally — shared stylesheet
   Aesthetic: calm editorial wellness. Cream ground, deep forest green,
   gold jewel accent. Fraunces display + Hanken Grotesk body.
   Brand color system: Deep Forest Green + Gold on cream.
   ========================================================================= */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,400;0,9..144,500;0,9..144,600;1,9..144,400&family=Hanken+Grotesk:wght@400;500;600&display=swap');

:root {
  /* ---- brand palette (canonical) ---- */
  --cream:       #F5F0E8;   /* page background */
  --cream-deep:  #ECE3D4;   /* deeper cream surface (footer, tint) */
  --white:       #FFFFFF;   /* clean card surfaces, button text */
  --tint:        #E8EFE8;   /* light green tint — cards, alt surfaces */
  --green:       #3D5A3E;   /* deep forest green — headings, structure */
  --green-soft:  #4F6B50;   /* softened green — secondary prose */
  --green-pale:  #A9BCA9;   /* muted green — rule lines, faint accents */
  --gold:        #B8873A;   /* gold jewel accent */
  --gold-deep:   #946B26;   /* deeper gold — links */
  --bark:        #2C2416;   /* dark bark — primary body text */
  --grey:        #555555;   /* mid grey — muted captions */
  --grey-dark:   #333333;   /* dark grey — dense secondary prose */
  --line:        #DCE3D6;   /* soft green-grey hairlines */

  /* ---- aliases (shared contract — keep teammates' inline styles on brand) ---- */
  --bone:       var(--cream);
  --bone-deep:  var(--cream-deep);
  --cream-card: var(--white);
  --olive:      var(--green);
  --olive-soft: var(--green-soft);
  --sage:       var(--green-soft);
  --sage-pale:  var(--green-pale);
  --clay:       var(--gold);
  --clay-deep:  var(--gold-deep);
  --ochre:      var(--gold);
  --ink:        var(--bark);
  --muted:      var(--grey);

  --maxw: 1120px;
  --gutter: clamp(1.25rem, 5vw, 4rem);

  --serif: 'Fraunces', Georgia, 'Times New Roman', serif;
  --sans: 'Hanken Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;

  --shadow-soft: 0 1px 2px rgba(44,36,22,.04), 0 8px 30px rgba(44,36,22,.08);
  --shadow-lift: 0 2px 6px rgba(44,36,22,.08), 0 24px 60px rgba(61,90,62,.16);
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  font-weight: 400;
  color: var(--ink);
  background-color: var(--bone);
  line-height: 1.65;
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.075rem);
  letter-spacing: 0.005em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* organic grain + soft radial wash sitting behind everything */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(1200px 700px at 78% -10%, rgba(184,135,58,.09), transparent 60%),
    radial-gradient(1000px 800px at -10% 30%, rgba(61,90,62,.10), transparent 55%),
    var(--cream);
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: .4;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.4'/%3E%3C/svg%3E");
}

img { max-width: 100%; display: block; }
a { color: var(--gold-deep); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--gold); }

/* ---------- type ---------- */
h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 500;
  color: var(--olive);
  line-height: 1.08;
  letter-spacing: -0.015em;
  font-optical-sizing: auto;
}
.display {
  font-size: clamp(2.6rem, 1.6rem + 4.6vw, 5rem);
  font-weight: 500;
}
h2 { font-size: clamp(1.9rem, 1.4rem + 1.8vw, 2.9rem); }
h3 { font-size: clamp(1.25rem, 1.1rem + 0.7vw, 1.55rem); }

.eyebrow {
  font-family: var(--sans);
  font-weight: 600;
  font-size: .74rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--gold);
  display: inline-block;
}

.lede { font-size: clamp(1.12rem, 1rem + 0.5vw, 1.32rem); color: var(--green-soft); line-height: 1.6; }
.muted { color: var(--grey); }

/* divider motif echoing the book's ─── rule */
.rule {
  display: flex;
  align-items: center;
  gap: .9rem;
  color: var(--green-pale);
  font-size: .9rem;
}
.rule::before, .rule::after {
  content: "";
  height: 1px;
  flex: 1;
  background: linear-gradient(90deg, transparent, var(--line), transparent);
}
.rule .dot { width: 5px; height: 5px; border-radius: 50%; background: var(--gold); flex: none; }

/* ---------- layout ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
section { padding-block: clamp(3.5rem, 2rem + 7vw, 7rem); }
.center { text-align: center; }

/* ---------- buttons ---------- */
.btn {
  --bg: var(--green);
  --fg: var(--white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  font-family: var(--sans);
  font-weight: 600;
  font-size: .98rem;
  letter-spacing: .01em;
  padding: .9rem 1.6rem;
  border-radius: 999px;
  background: var(--bg);
  color: var(--fg);
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform .25s cubic-bezier(.2,.8,.2,1), box-shadow .25s, background .25s, color .25s;
  box-shadow: 0 1px 2px rgba(44,36,22,.1), 0 10px 24px rgba(61,90,62,.24);
}
.btn:hover {
  transform: translateY(-2px);
  background: #34502F;
  color: var(--white);
  box-shadow: 0 2px 4px rgba(44,36,22,.12), 0 16px 34px rgba(61,90,62,.32), 0 0 0 3px rgba(184,135,58,.16);
}
.btn:active { transform: translateY(0); }
.btn--ghost {
  --bg: transparent;
  --fg: var(--green);
  border-color: var(--line);
  box-shadow: none;
  background: rgba(255,255,255,.4);
}
.btn--ghost:hover { background: var(--white); color: var(--green); border-color: var(--gold); box-shadow: var(--shadow-soft); }
.btn svg { width: 1.05em; height: 1.05em; }

/* ---------- header / nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: saturate(1.2) blur(10px);
  background: rgba(245,240,232,.8);
  border-bottom: 1px solid rgba(61,90,62,.14);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: .85rem;
}
.brand {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.18rem;
  letter-spacing: -0.01em;
  color: var(--olive);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: .55rem;
}
.brand:hover { color: var(--green); }
.brand .mark { color: var(--gold); flex: none; }
.brand .mark svg { width: 26px; height: 26px; display: block; }
.nav-links { display: flex; align-items: center; gap: clamp(1rem, 3vw, 2rem); list-style: none; }
.nav-links a {
  font-size: .94rem;
  font-weight: 500;
  color: var(--green-soft);
  text-decoration: none;
  letter-spacing: .01em;
  position: relative;
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: -4px; height: 1.5px;
  background: var(--gold); transition: right .3s cubic-bezier(.2,.8,.2,1);
}
.nav-links a:hover { color: var(--green); }
.nav-links a:hover::after { right: 0; }
.nav-links .nav-cta { color: var(--gold-deep); font-weight: 600; }
@media (max-width: 560px) {
  .nav-links .hide-sm { display: none; }
}

/* ---------- footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  background: var(--cream-deep);
  padding-block: 3rem 2rem;
  margin-top: 2rem;
}
.footer-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem 3rem;
  align-items: flex-start;
  justify-content: space-between;
}
.footer-brand { max-width: 30ch; }
.footer-brand p { color: var(--grey); font-size: .92rem; margin-top: .6rem; }
.footer-nav { display: flex; flex-direction: column; gap: .55rem; }
.footer-nav a { color: var(--green-soft); text-decoration: none; font-size: .94rem; font-weight: 500; }
.footer-nav a:hover { color: var(--gold); }
.footer-bottom {
  margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; justify-content: space-between;
  font-size: .82rem; color: var(--muted);
}
.footer-bottom a { color: var(--muted); }

/* ---------- reveal-on-load animation ---------- */
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(18px); animation: rise .8s cubic-bezier(.2,.8,.2,1) forwards; }
  .reveal.d1 { animation-delay: .08s; }
  .reveal.d2 { animation-delay: .18s; }
  .reveal.d3 { animation-delay: .30s; }
  .reveal.d4 { animation-delay: .42s; }
  .reveal.d5 { animation-delay: .54s; }
  @keyframes rise { to { opacity: 1; transform: none; } }
}

/* ---------- generic prose (privacy page) ---------- */
.prose { max-width: 72ch; }
.prose h2 { margin-top: 2.6rem; margin-bottom: .8rem; font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); }
.prose h3 { margin-top: 1.8rem; margin-bottom: .5rem; }
.prose p, .prose li { color: var(--grey-dark); margin-bottom: 1rem; }
.prose ul { padding-left: 1.2rem; margin-bottom: 1rem; }
.prose li { margin-bottom: .4rem; }
.prose strong { color: var(--green); font-weight: 600; }
.prose a { color: var(--gold-deep); font-weight: 500; }
.prose a:hover { color: var(--gold); }
