/* ==========================================================================
   ThinkGLP, Design System  ·  "Sage & Clay"
   Warm cream canvas, Hims-inspired sage-green for brand/links, Hers-inspired
   clay/terracotta as the action accent. One typeface (Inter). Class names
   kept stable so every page restyles from this file.
   ========================================================================== */

:root {
  /* --- Sage green (Hims-inspired): brand, links, structure --- */
  --forest-900: #29331f;
  --forest-800: #3b4a30;
  --forest-700: #55694e;   /* primary brand/link sage */
  --forest-600: #66795c;
  --forest-500: #7a8d70;
  --sage:       #9aa892;
  --forest-100: #dbe2d3;
  --forest-50:  #eef1e9;

  /* --- Clay / terracotta (Hers-inspired): the action accent --- */
  --clay:      #c06a45;
  --clay-deep: #a9572f;
  --clay-soft: #f4e4d8;
  --clay-100:  #eccdbb;

  /* --- Warm ink, cream & neutrals --- */
  --ink:     #241f17;
  --text:    #453f34;
  --muted:   #766f60;
  --faint:   #a89e8b;
  --line:    #e7ddca;     /* warm hairline */
  --line-2:  #d9cdb5;
  --paper:   #f8f4eb;     /* warm cream */
  --bg:      #f8f4eb;
  --surface: #efe8d9;     /* deeper warm cream */
  --surface-2:#e6ddca;

  /* --- Warm-accent aliases (map legacy 'honey' to clay) --- */
  --honey:      var(--clay);
  --honey-deep: var(--clay-deep);
  --honey-soft: var(--clay-soft);
  --honey-ink:  #ffffff;

  /* --- Back-compat aliases (older inline styles still resolve) --- */
  --emerald-900: var(--forest-900);
  --emerald-800: var(--forest-800);
  --emerald-700: var(--forest-700);
  --emerald-600: var(--forest-600);
  --emerald-500: var(--forest-500);
  --emerald-100: var(--forest-100);
  --emerald-50:  var(--forest-50);
  --accent:      var(--clay);
  --accent-soft: var(--clay-soft);

  /* --- Type: one family, used with a confident scale --- */
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-head: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-data: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --maxw: 1140px;
  --measure: 700px;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow:    0 1px 2px rgba(40,34,22,.05);
  --shadow-lg: 0 18px 44px rgba(40,34,22,.12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  font-size: 17.5px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: var(--forest-700); text-decoration: none; }
a:hover { text-decoration: underline; }
::selection { background: var(--forest-100); color: var(--ink); }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* Eyebrow / kicker, quiet, letterspaced label */
.kicker, .article-head .topic, .section-head .kicker {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--muted); font-weight: 600; font-size: 12px;
  letter-spacing: .12em; text-transform: uppercase;
}
.section-head .kicker::before, .article-head .topic::before {
  content: ""; width: 16px; height: 1.5px; background: var(--forest-700); display: inline-block;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(248,244,235,.85);
  backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header .bar { display: flex; align-items: center; justify-content: space-between; height: 66px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--ink); font-size: 19px; letter-spacing: -.02em; }
.brand:hover { text-decoration: none; }
.brand .logo {
  width: 30px; height: 30px; border-radius: 8px; background: var(--forest-700);
  display: grid; place-items: center; color: #fff; font-weight: 700; font-size: 14px;
}
.brand .logo span { transform: translateY(-.5px); }
.nav { display: flex; align-items: center; gap: 26px; }
.nav a { color: var(--text); font-weight: 500; font-size: 14.5px; letter-spacing: -.01em; }
.nav a:hover { color: var(--forest-700); text-decoration: none; }
.nav .cta { background: var(--ink); color: #fff; padding: 9px 16px; border-radius: 8px; font-size: 14px; font-weight: 500; }
.nav .cta:hover { background: #000; }
.menu-btn { display: none; }

/* ---------- Hero (light, type-led) ---------- */
.hero { background: var(--surface); border-bottom: 1px solid var(--line); color: var(--ink); position: relative; }
.hero::after { display: none; }
.hero .wrap { padding-top: 78px; padding-bottom: 82px; position: relative; z-index: 1; }
.hero h1 {
  font-family: var(--font-head); font-weight: 700;
  font-size: clamp(2.5rem, 5.2vw, 4rem); line-height: 1.04; letter-spacing: -.035em;
  margin: 0 0 20px; color: var(--ink); max-width: 16ch;
}
.hero p.lede { font-size: clamp(1.05rem, 1.9vw, 1.25rem); color: var(--muted); max-width: 56ch; margin: 0 0 32px; line-height: 1.6; }
.hero .eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: #fff; border: 1px solid var(--line); color: var(--muted);
  padding: 6px 14px; border-radius: 999px; font-size: 12px; font-weight: 600;
  letter-spacing: .08em; margin-bottom: 22px; text-transform: uppercase;
}
.hero .eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--forest-600); }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 15.5px;
  padding: 13px 24px; border-radius: 10px; border: 1px solid transparent; cursor: pointer;
  transition: background .15s ease, border-color .15s ease;
}
.btn-primary { background: var(--clay); color: #fff; }
.btn-primary:hover { background: var(--clay-deep); text-decoration: none; }
.btn-ghost { background: #fff; color: var(--ink); border-color: var(--line-2); }
.btn-ghost:hover { background: var(--surface); text-decoration: none; }

/* ---------- Section primitives ---------- */
section { padding: 72px 0; }
.section-head { max-width: 62ch; margin-bottom: 36px; }
.section-head h2 { font-family: var(--font-head); font-weight: 700; font-size: clamp(1.7rem, 3.2vw, 2.3rem); line-height: 1.12; letter-spacing: -.03em; margin: 12px 0 10px; color: var(--ink); }
.section-head p { color: var(--muted); margin: 0; font-size: 1.02rem; }

/* ---------- Cards / grid ---------- */
.grid { display: grid; gap: 18px; }
.grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; box-shadow: none;
  transition: border-color .16s ease, background .16s ease;
  display: flex; flex-direction: column; gap: 9px;
}
.card:hover { border-color: var(--line-2); background: var(--surface); text-decoration: none; }
.card .tag {
  align-self: flex-start; font-size: 11px; font-weight: 600; letter-spacing: .09em; text-transform: uppercase;
  color: var(--muted); background: transparent; padding: 0; border: none;
}
.card .tag.pillar { color: var(--forest-700); background: transparent; }
.card h3 { font-family: var(--font-head); font-weight: 700; font-size: 1.28rem; line-height: 1.2; margin: 2px 0; color: var(--ink); letter-spacing: -.02em; }
.card p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.6; }
.card .more { margin-top: auto; color: var(--forest-700); font-weight: 600; font-size: 14px; }

/* ---------- Trust strip ---------- */
.trust { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.trust .row { display: flex; flex-wrap: wrap; gap: 14px 40px; align-items: center; justify-content: center; padding: 20px 0; }
.trust .item { display: flex; align-items: center; gap: 9px; color: var(--muted); font-size: 14px; font-weight: 500; }
.trust .item svg { color: var(--forest-700); flex: none; }

/* ==========================================================================
   ARTICLE LAYOUT
   ========================================================================== */
.article-shell { padding: 36px 0 80px; }
.article-grid { display: grid; grid-template-columns: 1fr 250px; gap: 64px; align-items: start; }

.breadcrumb { font-size: 13px; color: var(--muted); margin-bottom: 22px; }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--forest-700); }
.breadcrumb span { color: var(--line-2); margin: 0 7px; }

.article-head { border-bottom: 1px solid var(--line); padding-bottom: 26px; margin-bottom: 32px; }
.article-head h1 {
  font-family: var(--font-head); font-weight: 700; font-size: clamp(2rem, 4.4vw, 3rem); line-height: 1.08;
  letter-spacing: -.035em; color: var(--ink); margin: 12px 0 16px;
}
.article-head .standfirst { font-size: 1.16rem; color: var(--muted); margin: 0 0 24px; max-width: 64ch; line-height: 1.55; }

.byline { display: flex; flex-wrap: wrap; align-items: center; gap: 13px; font-size: 14px; color: var(--muted); }
.byline .avatar { width: 38px; height: 38px; border-radius: 50%; background: var(--forest-700); color: #fff; display: grid; place-items: center; font-weight: 600; font-size: 14px; }
.byline .who b { color: var(--ink); font-weight: 600; }
.byline .rev { display: inline-flex; align-items: center; gap: 6px; background: var(--surface); color: var(--forest-800); padding: 4px 10px; border-radius: 999px; font-weight: 600; font-size: 12.5px; }
.byline .sep { width: 1px; height: 24px; background: var(--line); }

/* Article body typography */
.article-body { max-width: var(--measure); font-size: 18px; }
.article-body > * { max-width: var(--measure); }
.article-body h2 {
  font-family: var(--font-head); font-weight: 700; font-size: 1.6rem; line-height: 1.2; letter-spacing: -.025em;
  color: var(--ink); margin: 52px 0 14px; scroll-margin-top: 90px;
}
.article-body h3 { font-family: var(--font-head); font-weight: 600; font-size: 1.26rem; color: var(--ink); margin: 32px 0 10px; scroll-margin-top: 90px; letter-spacing: -.02em; }
.article-body p { margin: 0 0 19px; }
.article-body ul, .article-body ol { margin: 0 0 21px; padding-left: 22px; }
.article-body li { margin-bottom: 10px; }
.article-body li::marker { color: var(--faint); }
.article-body strong { color: var(--ink); font-weight: 600; }
.article-body a { color: var(--forest-700); text-decoration: underline; text-underline-offset: 2.5px; text-decoration-color: var(--forest-100); }
.article-body a:hover { text-decoration-color: var(--forest-700); }

/* Answer / Key takeaways box (AEO) */
.answer-box {
  background: var(--surface); border: 1px solid var(--line); border-left: 2px solid var(--forest-700);
  border-radius: var(--radius); padding: 22px 24px; margin: 0 0 32px;
}
.answer-box .label { display: inline-flex; align-items: center; gap: 7px; font-size: 11.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--forest-700); margin-bottom: 10px; }
.answer-box p { margin: 0; font-size: 17px; }
.answer-box p + p { margin-top: 12px; }

.key-takeaways { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; margin: 0 0 34px; }
.key-takeaways h2 { font-family: var(--font-head) !important; margin: 0 0 13px !important; font-size: 1.12rem !important; letter-spacing: -.01em !important; }
.key-takeaways ul { margin: 0; padding-left: 20px; }
.key-takeaways li { font-size: 16px; }

/* Callouts */
.callout { border-radius: var(--radius); padding: 18px 20px; margin: 28px 0; font-size: 16px; border: 1px solid var(--line); background: var(--surface); }
.callout .ctitle { font-weight: 600; color: var(--ink); margin-bottom: 5px; display: flex; align-items: center; gap: 8px; }
.callout.warn { background: var(--surface); border-color: var(--line-2); border-left: 2px solid var(--honey); }
.callout.warn .ctitle { color: var(--honey-deep); }
.callout.tip { background: var(--forest-50); border-color: var(--forest-100); border-left: 2px solid var(--forest-700); }
.callout.tip .ctitle { color: var(--forest-800); }

/* Stat blocks */
.statline { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; margin: 30px 0; }
.statline .stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 18px 20px; }
.statline .stat .n { font-family: var(--font-data); font-size: 1.7rem; color: var(--ink); font-weight: 700; line-height: 1; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.statline .stat .l { font-size: 13.5px; color: var(--muted); margin-top: 7px; }

/* Tables */
.table-wrap { overflow-x: auto; margin: 28px 0; border: 1px solid var(--line); border-radius: var(--radius); }
table.data { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 560px; }
table.data th, table.data td { text-align: left; padding: 14px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.data thead th { background: var(--surface); color: var(--ink); font-size: 12.5px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; border-bottom: 1px solid var(--line-2); }
table.data tbody tr:last-child td { border-bottom: none; }
table.data td strong { color: var(--ink); }

/* FAQ */
.faq { margin: 18px 0 0; }
.faq details { border: 1px solid var(--line); border-radius: var(--radius-sm); margin-bottom: 10px; background: #fff; overflow: hidden; }
.faq details[open] { border-color: var(--line-2); }
.faq summary {
  cursor: pointer; list-style: none; padding: 17px 20px; font-weight: 600; color: var(--ink); font-size: 16.5px; letter-spacing: -.01em;
  display: flex; justify-content: space-between; gap: 16px; align-items: center;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .chev { flex: none; transition: transform .2s; color: var(--faint); }
.faq details[open] summary .chev { transform: rotate(45deg); }
.faq .faq-a { padding: 0 20px 18px; color: var(--text); font-size: 16px; }
.faq .faq-a p { margin: 0 0 12px; }
.faq .faq-a :last-child { margin-bottom: 0; }

/* Sources */
.sources { margin-top: 46px; border-top: 1px solid var(--line); padding-top: 24px; }
.sources h2 { font-family: var(--font-head) !important; font-size: 1.18rem !important; margin: 0 0 12px !important; letter-spacing: -.02em !important; }
.sources ol { font-size: 14.5px; color: var(--muted); padding-left: 20px; }
.sources li { margin-bottom: 8px; }

/* Disclaimer */
.disclaimer { margin-top: 36px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; font-size: 13.5px; color: var(--muted); }
.disclaimer strong { color: var(--text); }

/* ---------- Sidebar / TOC ---------- */
.sidebar { position: sticky; top: 90px; }
.toc { border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; background: #fff; }
.toc .t { font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--faint); margin-bottom: 11px; }
.toc ul { list-style: none; margin: 0; padding: 0; }
.toc li { margin: 0; }
.toc a { display: block; padding: 6px 10px; border-radius: 7px; color: var(--muted); font-size: 14px; line-height: 1.4; border-left: 2px solid transparent; }
.toc a:hover { background: var(--surface); color: var(--forest-800); text-decoration: none; }
.toc a.active { color: var(--forest-800); background: var(--surface); border-left-color: var(--forest-700); font-weight: 600; }

.side-cta { margin-top: 20px; border-radius: var(--radius); padding: 22px; background: var(--surface); border: 1px solid var(--line); color: var(--text); }
.side-cta h4 { font-family: var(--font-head); font-weight: 700; margin: 0 0 7px; color: var(--ink); font-size: 1.08rem; letter-spacing: -.02em; }
.side-cta p { margin: 0 0 14px; font-size: 14px; color: var(--muted); }
.side-cta a { display: inline-block; background: var(--ink); color: #fff; font-weight: 600; padding: 10px 16px; border-radius: 8px; font-size: 14px; }
.side-cta a:hover { text-decoration: none; background: #000; }

/* ---------- Related ---------- */
.related { background: var(--surface); border-top: 1px solid var(--line); }

/* ---------- Newsletter (single solid ink block) ---------- */
.newsletter { background: var(--ink); color: #fff; border-radius: var(--radius); padding: 52px; text-align: center; }
.newsletter h2 { font-family: var(--font-head); font-weight: 700; color: #fff; font-size: clamp(1.6rem,2.8vw,2.1rem); margin: 0 0 10px; letter-spacing: -.03em; }
.newsletter p { color: #b9c0bc; max-width: 52ch; margin: 0 auto 24px; }
.newsletter form { display: flex; gap: 10px; max-width: 440px; margin: 0 auto; flex-wrap: wrap; justify-content: center; }
.newsletter input { flex: 1; min-width: 220px; padding: 13px 16px; border-radius: 8px; border: 1px solid rgba(255,255,255,.16); background: rgba(255,255,255,.06); color: #fff; font-size: 15px; }
.newsletter input::placeholder { color: #8b938e; }
.newsletter button { padding: 13px 24px; border-radius: 8px; border: none; background: #fff; color: var(--ink); font-weight: 600; font-size: 15px; cursor: pointer; }
.newsletter button:hover { background: var(--forest-100); }
.newsletter .fineprint { color: #7b837e; font-size: 12.5px; margin-top: 14px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #aab1ac; padding: 60px 0 30px; }
.site-footer a { color: #c7cdc9; font-size: 14px; }
.site-footer a:hover { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr 1fr; gap: 32px; padding-bottom: 36px; border-bottom: 1px solid rgba(255,255,255,.09); }
.footer-grid .col h5 { color: #fff; font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; margin: 0 0 15px; }
.footer-grid .col ul { list-style: none; margin: 0; padding: 0; }
.footer-grid .col li { margin-bottom: 10px; }
.footer-brand .brand { color: #fff; margin-bottom: 14px; }
.footer-brand .brand .logo { background: var(--forest-600); }
.footer-brand p { font-size: 13.5px; color: #868d88; max-width: 40ch; line-height: 1.6; }
.footer-brand .affiliate-note { font-size: 12.5px; color: #767d78; margin-top: 10px; }
.footer-bottom { display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; padding-top: 22px; font-size: 13px; color: #767d78; }

/* ---------- Utilities ---------- */
.center { text-align: center; }
.mt-0 { margin-top: 0; }
.lead-list { list-style: none; padding: 0; }
.lead-list li { padding-left: 28px; position: relative; margin-bottom: 12px; }
.lead-list li::before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--forest-700); font-weight: 700; }

/* ---------- Blog ---------- */
.blog-hero { background: var(--surface); border-bottom: 1px solid var(--line); color: var(--ink); padding: 64px 0 56px; }
.blog-hero .eyebrow { display:inline-flex; align-items:center; gap:8px; background:#fff; border:1px solid var(--line); color:var(--muted); padding:6px 14px; border-radius:999px; font-size:12px; font-weight:600; letter-spacing:.08em; text-transform:uppercase; margin-bottom:20px; }
.blog-hero h1 { font-family: var(--font-head); font-weight: 700; font-size: clamp(2rem,4.2vw,3rem); line-height:1.06; letter-spacing:-.035em; color:var(--ink); margin:0 0 14px; max-width:18ch; }
.blog-hero p { color:var(--muted); font-size:1.1rem; max-width:60ch; margin:0; }
.post-card .meta { display:flex; align-items:center; gap:10px; font-size:13px; color:var(--muted); margin-top:auto; }
.post-card .meta .dot { width:3px; height:3px; border-radius:50%; background:var(--line-2); }
.cat-pill { align-self:flex-start; font-size:11px; font-weight:600; letter-spacing:.08em; text-transform:uppercase; color:var(--forest-700); background:transparent; padding:0; }
.post-byline { font-size:13.5px; color:var(--muted); }
.readtime { display:inline-flex; align-items:center; gap:5px; }

/* ---------- Hero two-column + minimal art ---------- */
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.hero-copy { min-width: 0; }
.hero-art { position: relative; }
.hero-art svg { width: 100%; height: auto; display: block; }

/* ---------- Reusable CTA banner (flat ink) ---------- */
.cta-banner {
  background: var(--ink); color: #fff; border-radius: var(--radius); padding: 40px 44px;
  display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap;
}
.cta-banner .cb-copy { max-width: 48ch; }
.cta-banner h2 { font-family: var(--font-head); font-weight: 700; color: #fff; font-size: clamp(1.45rem, 2.4vw, 1.95rem); margin: 0 0 8px; letter-spacing: -.03em; }
.cta-banner p { margin: 0; color: #b9c0bc; font-size: 1rem; }
.cta-banner .cb-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.cta-banner .cb-ghost { background: transparent; border: 1px solid rgba(255,255,255,.24); color: #fff; font-weight: 600; padding: 11px 20px; border-radius: 8px; font-size: 15px; }
.cta-banner .cb-ghost:hover { background: rgba(255,255,255,.08); text-decoration: none; }
.cta-banner .cb-primary { background: #fff; color: var(--ink); font-weight: 600; padding: 11px 22px; border-radius: 8px; font-size: 15px; }
.cta-banner .cb-primary:hover { background: var(--forest-100); text-decoration: none; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .article-grid { grid-template-columns: 1fr; gap: 0; }
  .sidebar { display: none; }
  .grid.cols-3 { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .statline { grid-template-columns: 1fr; }
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .hero-art { max-width: 420px; }
}
@media (max-width: 640px) {
  body { font-size: 16.5px; }
  .nav { display: none; }
  .grid.cols-3, .grid.cols-2 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .newsletter { padding: 34px 22px; }
  .article-body { font-size: 17px; }
  .hero .wrap { padding-top: 56px; padding-bottom: 60px; }
  .hero-art { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto; }
}
