/* ==========================================================================
   LOVE IS IN THE HAIR — design system
   Palette, type scale, and component rules come directly from the build
   brief. Tan #E5DACA is decorative only (rules/borders) — never text.
   ========================================================================== */

:root {
  --cream: #FAF6EE;
  --cream-deep: #F3ECDF;      /* alternate section band */
  --ink: #1F1B16;             /* body text · 15.9:1 on cream */
  --tan-read: #7A6A55;        /* meta text · 4.9:1 on cream */
  --tan-line: #E5DACA;        /* rules & borders ONLY */
  --rust: #8C4A2F;            /* links · 6.2:1 */
  --espresso: #3B2F24;        /* primary buttons · 12:1 */

  /* credibility chips — muted, warm-adjusted */
  --chip-green-bg: #DDE8D4;  --chip-green-tx: #2E4A22;
  --chip-blue-bg:  #D6E2EA;  --chip-blue-tx:  #2B4A61;
  --chip-purple-bg:#E2DBEE;  --chip-purple-tx:#4A3A6B;
  --chip-orange-bg:#F0E0C8;  --chip-orange-tx:#6B4A1E;

  --serif: "Fraunces", "Newsreader", Georgia, serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --shadow-card: 0 1px 2px rgba(60,45,30,0.04), 0 8px 24px rgba(60,45,30,0.06);
  --shadow-lift: 0 2px 4px rgba(60,45,30,0.05), 0 14px 32px rgba(60,45,30,0.09);

  --radius-card: 12px;
  --radius-btn: 8px;
  --measure: 680px;           /* body text measure cap ≈ 70ch */
  --nav-h: 72px;
}

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

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 18px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

/* ---------- type ---------- */

h1, h2, h3, .display { font-family: var(--serif); font-weight: 300; line-height: 1.15; }

.display-hero { font-size: clamp(40px, 6.5vw, 72px); letter-spacing: -0.02em; font-weight: 300; }
.display-title { font-size: clamp(34px, 4.5vw, 52px); letter-spacing: -0.015em; font-weight: 300; }
h2.section-h { font-size: clamp(26px, 3vw, 30px); font-weight: 400; }
h3.sub-h { font-family: var(--sans); font-weight: 500; font-size: clamp(19px, 2vw, 20px); }

.eyebrow {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--tan-read);
}

.meta { font-size: 14px; color: var(--tan-read); }

a { color: var(--rust); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }

:focus-visible {
  outline: 2px solid var(--rust);
  outline-offset: 3px;
  border-radius: 2px;
}

.wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.prose { max-width: var(--measure); }
.prose p + p { margin-top: 1em; }

hr.rule { border: none; border-top: 0.5px solid var(--tan-line); margin: 48px 0; }

/* ---------- header / nav ---------- */

.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  background: rgba(250, 246, 238, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 0.5px solid var(--tan-line);
  z-index: 100;
  transition: transform 0.35s ease;
}
.site-header.nav-hidden { transform: translateY(-100%); }

.nav-inner {
  max-width: 1180px; margin: 0 auto; padding: 0 24px;
  height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}

.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand img { width: 44px; height: 44px; border-radius: 50%; }
.brand-word {
  font-family: var(--serif); font-weight: 400; font-size: 19px;
  letter-spacing: 0.01em; white-space: nowrap;
}

.nav-links { display: flex; align-items: center; gap: 8px; list-style: none; }
.nav-links a {
  font-size: 13px; font-weight: 500; text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--ink); text-decoration: none;
  padding: 10px 14px; border-radius: var(--radius-btn);
  transition: background 0.2s ease;
}
.nav-links a:hover { background: var(--cream-deep); }
.nav-links a[aria-current="page"] { color: var(--rust); }

.nav-toggle {
  display: none;
  background: none; border: 0.5px solid var(--tan-line); border-radius: var(--radius-btn);
  padding: 10px 12px; cursor: pointer; color: var(--ink); font-size: 15px;
}

@media (max-width: 880px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: fixed; top: var(--nav-h); left: 0; right: 0;
    background: var(--cream);
    border-bottom: 0.5px solid var(--tan-line);
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 8px 16px 16px;
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 14px 12px; }
  .brand-word { font-size: 17px; }
}

main { padding-top: var(--nav-h); }

/* ---------- buttons ---------- */

.btn {
  display: inline-block;
  font-family: var(--sans); font-size: 15px; font-weight: 500;
  padding: 13px 26px;
  border-radius: var(--radius-btn);
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--espresso); color: var(--cream); }
.btn-primary:hover { box-shadow: var(--shadow-card); }
.btn-secondary { background: transparent; color: var(--ink); border-color: var(--espresso); }
.btn-secondary:hover { background: var(--cream-deep); }

/* ---------- badges & chips ---------- */

.chip {
  display: inline-block;
  font-size: 11px; font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.08em;
  padding: 5px 12px; border-radius: 999px;
  white-space: nowrap;
}
.chip-evidence { background: var(--chip-green-bg); color: var(--chip-green-tx); }
.chip-expert { background: var(--chip-blue-bg); color: var(--chip-blue-tx); }
.chip-personal { background: var(--chip-purple-bg); color: var(--chip-purple-tx); }
.chip-opinion { background: var(--chip-orange-bg); color: var(--chip-orange-tx); }
.chip-neutral { background: var(--cream-deep); color: var(--tan-read); }

/* ---------- hero ---------- */

.hero {
  position: relative;
  padding: clamp(64px, 10vw, 128px) 0 clamp(56px, 8vw, 104px);
  overflow: hidden;
}
.hero-inner { position: relative; z-index: 1; max-width: 820px; }
.hero .tagline {
  font-size: clamp(19px, 2.2vw, 24px);
  color: var(--ink);
  margin: 24px 0 8px;
  font-family: var(--serif); font-weight: 400; font-style: italic;
}
.hero .tagline-sub { color: var(--tan-read); font-size: 17px; max-width: 560px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 40px; }
.hero .founder-line { margin-top: 32px; font-size: 14px; color: var(--tan-read); }

.hero-strands {
  position: absolute; right: -60px; top: 50%; transform: translateY(-50%);
  width: min(46vw, 560px); height: auto;
  opacity: 0.9; pointer-events: none;
}
@media (max-width: 880px) {
  .hero-strands { width: 90vw; right: -30vw; opacity: 0.35; }
}

/* ---------- editorial scroll sections ---------- */

.story {
  padding: clamp(56px, 8vw, 96px) 0;
  border-top: 0.5px solid var(--tan-line);
}
.story-band { background: var(--cream-deep); }
.story-grid {
  display: grid; grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(32px, 6vw, 88px); align-items: center;
}
.story-grid.flip .story-copy { order: 2; }
.story-grid.flip .story-art { order: 1; }
.story-copy h2 {
  font-size: clamp(30px, 4vw, 44px); font-weight: 300; letter-spacing: -0.01em;
  margin: 12px 0 20px;
}
.story-copy p { max-width: 520px; color: var(--ink); }
.story-copy .btn { margin-top: 28px; }
.story-art svg, .story-art img { width: 100%; height: auto; border-radius: var(--radius-card); }
@media (max-width: 760px) {
  .story-grid, .story-grid.flip { grid-template-columns: 1fr; }
  .story-grid.flip .story-copy { order: 1; }
  .story-grid.flip .story-art { order: 2; }
}

/* ---------- cards ---------- */

.card-grid { display: grid; gap: 24px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 940px) { .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } }

.card {
  background: var(--cream);
  border: 0.5px solid var(--tan-line);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: 28px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
a.card { text-decoration: none; color: var(--ink); display: block; }
a.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
.card .eyebrow { margin-bottom: 10px; }
.card h3 {
  font-family: var(--serif); font-weight: 400;
  font-size: 24px; margin-bottom: 10px;
}
.card p { font-size: 15.5px; color: var(--tan-read); line-height: 1.6; }
.card .card-cta { margin-top: 18px; font-size: 14px; font-weight: 500; color: var(--rust); }

.card-motif { height: 56px; margin-bottom: 18px; }
.card-motif svg { height: 100%; width: auto; }

/* article cards */
.article-card .chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.article-card .meta { margin-top: 14px; }
.card-soon { opacity: 0.72; }
.card-soon:hover { transform: none; box-shadow: var(--shadow-card); cursor: default; }

/* ---------- impact / stats band ---------- */

.stats-band { text-align: center; }
.stats-row {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 24px; max-width: 820px; margin: 48px auto 0;
}
.stat-num {
  font-family: var(--serif); font-weight: 300;
  font-size: clamp(44px, 5vw, 64px); line-height: 1;
}
.stat-label { margin-top: 10px; }
@media (max-width: 640px) { .stats-row { grid-template-columns: 1fr; gap: 36px; } }

/* ---------- newsletter ---------- */

.newsletter-box {
  background: var(--cream-deep);
  border: 0.5px solid var(--tan-line);
  border-radius: var(--radius-card);
  padding: clamp(36px, 5vw, 64px);
  text-align: center;
}
.newsletter-form {
  display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 28px;
}
.newsletter-form input[type="email"] {
  font-family: var(--sans); font-size: 16px;
  padding: 13px 18px; min-width: min(320px, 100%);
  border: 0.5px solid var(--tan-line); border-radius: var(--radius-btn);
  background: var(--cream); color: var(--ink);
}
.newsletter-form input::placeholder { color: var(--tan-read); }

/* ---------- footer ---------- */

.site-footer {
  border-top: 0.5px solid var(--tan-line);
  background: var(--cream-deep);
  margin-top: clamp(64px, 9vw, 120px);
  padding: clamp(48px, 6vw, 80px) 0 40px;
  font-size: 15px;
}
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  gap: 32px;
}
@media (max-width: 940px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

.footer-brand p { color: var(--tan-read); max-width: 300px; margin-top: 12px; font-size: 14.5px; }
.footer-col h4 {
  font-family: var(--sans); font-size: 13px; font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.08em; color: var(--tan-read);
  margin-bottom: 16px;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 10px; }
.footer-col a { color: var(--ink); text-decoration: none; }
.footer-col a:hover { color: var(--rust); text-decoration: underline; }

.footer-impact {
  margin-top: 48px; padding-top: 28px;
  border-top: 0.5px solid var(--tan-line);
  display: flex; flex-wrap: wrap; gap: 12px 32px; align-items: baseline; justify-content: space-between;
  color: var(--tan-read); font-size: 14px;
}
.footer-impact .impact-line strong { color: var(--ink); font-weight: 500; }

.footer-credit {
  margin-top: 40px;
  text-align: center;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--tan-read);
}
.footer-credit strong { color: var(--ink); font-weight: 600; }

/* ---------- page headers ---------- */

.page-head { padding: clamp(48px, 7vw, 96px) 0 clamp(32px, 4vw, 56px); }
.page-head .display-title { margin: 12px 0 20px; }
.page-head .lede { font-size: clamp(18px, 2vw, 21px); color: var(--tan-read); max-width: 640px; }

.mantra {
  font-family: var(--serif); font-weight: 300; font-style: italic;
  font-size: clamp(21px, 2.6vw, 28px); line-height: 1.6; color: var(--ink);
}
.mantra em { color: var(--rust); font-style: inherit; }

/* ---------- breadcrumbs ---------- */

.breadcrumbs { font-size: 13.5px; color: var(--tan-read); margin-bottom: 28px; }
.breadcrumbs a { color: var(--tan-read); text-decoration: none; }
.breadcrumbs a:hover { color: var(--rust); text-decoration: underline; }
.breadcrumbs span[aria-current] { color: var(--ink); }

/* ---------- article layout ---------- */

.article-layout {
  display: grid; grid-template-columns: minmax(0, var(--measure)) 260px;
  gap: 72px; align-items: start;
  padding-bottom: 48px;
}
@media (max-width: 1020px) { .article-layout { grid-template-columns: minmax(0, 1fr); } }

.article-head { padding: clamp(40px, 6vw, 72px) 0 8px; max-width: 820px; }
.article-head .chips { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin: 20px 0; }
.article-head .byline { color: var(--tan-read); font-size: 15px; }

.toc {
  position: sticky; top: calc(var(--nav-h) + 32px);
  border-left: 0.5px solid var(--tan-line);
  padding-left: 24px;
  font-size: 14px;
}
.toc h4 {
  font-family: var(--sans); font-size: 12px; font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.08em; color: var(--tan-read);
  margin-bottom: 14px;
}
.toc ul { list-style: none; }
.toc li { margin-bottom: 10px; }
.toc a { color: var(--tan-read); text-decoration: none; }
.toc a:hover, .toc a.active { color: var(--rust); }
@media (max-width: 1020px) {
  .toc { position: static; border-left: none; padding: 20px; background: var(--cream-deep); border-radius: var(--radius-card); margin-bottom: 12px; }
}

.article-body h2 {
  font-size: 30px; font-weight: 400; margin: 56px 0 20px;
}
.article-body h3 {
  font-family: var(--sans); font-size: 20px; font-weight: 500; margin: 40px 0 14px;
}
.article-body p { margin-bottom: 1.05em; }
.article-body ul, .article-body ol { margin: 0 0 1.05em 1.4em; }
.article-body li { margin-bottom: 0.4em; }
.article-body .short-answer {
  background: var(--cream-deep);
  border: 0.5px solid var(--tan-line);
  border-radius: var(--radius-card);
  padding: 28px 32px;
  margin: 32px 0;
}
.article-body .short-answer .eyebrow { margin-bottom: 12px; }

.figure-block {
  margin: 40px 0;
  border: 0.5px solid var(--tan-line);
  border-radius: var(--radius-card);
  background: var(--cream-deep);
  padding: 32px;
}
.figure-block figcaption { font-size: 13.5px; color: var(--tan-read); margin-top: 16px; }
.figure-legend { margin-top: 18px; font-size: 14.5px; color: var(--ink); }
.figure-legend li { margin-bottom: 6px; }
.figure-legend strong { font-weight: 500; }

sup.cite { font-size: 0.68em; }
sup.cite a { text-decoration: none; color: var(--rust); }

.callout-medical {
  border-left: 3px solid var(--rust);
  background: var(--cream-deep);
  border-radius: 0 var(--radius-card) var(--radius-card) 0;
  padding: 18px 24px;
  font-size: 15px; color: var(--tan-read);
  margin: 40px 0;
}

.sources-block { font-size: 15px; }
.sources-block ol { margin-left: 1.4em; color: var(--tan-read); }
.sources-block .research-reviewed {
  margin-top: 20px; font-size: 14px; color: var(--chip-green-tx);
  background: var(--chip-green-bg); display: inline-block;
  padding: 8px 16px; border-radius: 999px;
}

.explore-next { border-top: 0.5px solid var(--tan-line); padding-top: 48px; margin-top: 64px; }

/* ---------- forms ---------- */

.form-card {
  background: var(--cream);
  border: 0.5px solid var(--tan-line);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: clamp(28px, 4vw, 44px);
}
.form-card h2 { font-size: 28px; font-weight: 400; margin-bottom: 8px; }
.form-card .form-sub { color: var(--tan-read); font-size: 15.5px; margin-bottom: 28px; }

.field { margin-bottom: 22px; }
.field label { display: block; font-size: 14px; font-weight: 500; margin-bottom: 8px; }
.field input[type="text"], .field input[type="email"], .field input[type="url"],
.field select, .field textarea {
  width: 100%;
  font-family: var(--sans); font-size: 16px;
  padding: 12px 16px;
  border: 0.5px solid var(--tan-line); border-radius: var(--radius-btn);
  background: var(--cream); color: var(--ink);
}
.field textarea { min-height: 120px; resize: vertical; }
.field .hint { font-size: 13px; color: var(--tan-read); margin-top: 6px; }

.choice-list { display: grid; gap: 10px; }
.choice-list label {
  display: flex; align-items: center; gap: 10px;
  font-size: 15.5px; font-weight: 400; cursor: pointer;
}
.choice-list input { accent-color: var(--rust); width: 16px; height: 16px; }

/* ---------- reveal animation (subtle, honors reduced-motion) ---------- */

.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- utility ---------- */

.section-pad { padding: clamp(56px, 8vw, 96px) 0; }
.center { text-align: center; }
.mt-8 { margin-top: 8px; } .mt-16 { margin-top: 16px; } .mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; } .mt-48 { margin-top: 48px; } .mt-64 { margin-top: 64px; }
.section-intro { max-width: 640px; margin: 0 auto; }

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--espresso); color: var(--cream);
  padding: 12px 20px; z-index: 200; border-radius: 0 0 var(--radius-btn) 0;
}
.skip-link:focus { left: 0; }
