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

:root {
  --bg: #06100b;
  --surface: #0b1812;
  --surface-2: #10251b;
  --ink: #f0ede7;
  --muted: #acb8b1;
  --quiet: #839189;
  --green: #59d7a0;
  --green-soft: #8ae7bd;
  --gold: #d7bb79;
  --line: rgba(170, 201, 184, 0.18);
  --max: 1120px;
}

* { box-sizing: border-box; }
html { color-scheme: dark; scroll-behavior: smooth; }
body { margin: 0; overflow-x: hidden; background: var(--bg); color: var(--ink); font: 16px/1.7 Inter, system-ui, sans-serif; }
p, li { max-width: 70ch; text-wrap: pretty; }
a { color: var(--green); text-underline-offset: 0.2em; }
a:hover { color: var(--green-soft); }
a:focus-visible, button:focus-visible { outline: 2px solid var(--green); outline-offset: 4px; border-radius: 3px; }
.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: 1rem; top: 1rem; z-index: 10; padding: 0.7rem 1rem; background: var(--ink); color: var(--bg); }

.site-header, main, footer { width: min(100% - 2rem, var(--max)); margin-inline: auto; }
.site-header { min-height: 64px; display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; border-bottom: 1px solid var(--line); }
.site-header nav, footer nav { display: flex; gap: 1.25rem; flex-wrap: wrap; }
.site-header nav a, footer nav a { min-height: 44px; display: inline-flex; align-items: center; color: var(--muted); text-decoration: none; font-size: 0.9rem; }
.brand, h1, h2 { font-family: Fraunces, Georgia, serif; }
.brand { color: #fff; text-decoration: none; font-size: 1.3rem; }
.crumbs { display: flex; gap: 0.5rem; align-items: center; margin: 1.25rem 0 2rem; color: var(--quiet); font-size: 0.82rem; }
.crumbs a { color: var(--quiet); }
article { max-width: 760px; margin-inline: auto; }
.wide article { max-width: 100%; }

.article-hero { margin-bottom: 2rem; }
.eyebrow, .section-kicker, .answer-label { margin: 0; color: var(--green-soft); font-size: 0.75rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; }
.article-hero h1 { max-width: 19ch; margin: 0.45rem 0 1.35rem; font-size: clamp(2.35rem, 7vw, 4.65rem); font-weight: 400; line-height: 1.02; letter-spacing: -0.025em; }
.answer { margin: 0 0 1rem; padding: 1.1rem 1.2rem; border-left: 3px solid var(--green); border-radius: 0 8px 8px 0; background: linear-gradient(90deg, rgba(89, 215, 160, 0.11), rgba(89, 215, 160, 0.025)); }
.answer p:last-child { margin: 0.3rem 0 0; font-size: clamp(1.05rem, 2.5vw, 1.22rem); line-height: 1.55; }
.lede { margin: 1rem 0; color: var(--muted); font-size: 1rem; }
.answer + .lede { display: none; }
.trust-row { display: flex; gap: 0.5rem 1.25rem; flex-wrap: wrap; padding-top: 1rem; border-top: 1px solid var(--line); color: var(--quiet); font-size: 0.78rem; }
.trust-row span + span::before { content: '·'; margin-right: 1.25rem; }

.toc { display: flex; flex-wrap: wrap; gap: 0.45rem 0.75rem; margin: 2rem 0; padding: 1rem 0; border-block: 1px solid var(--line); }
.toc p { flex-basis: 100%; margin: 0; color: var(--quiet); font-size: 0.78rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; }
.toc a { color: var(--muted); font-size: 0.86rem; }
.article-body > section, .wide article > section { margin: 3.5rem 0; scroll-margin-top: 1.5rem; }
.article-body h2, .wide article > section h2 { max-width: 27ch; margin: 0.35rem 0 1.3rem; font-size: clamp(1.75rem, 4vw, 2.35rem); line-height: 1.18; font-weight: 400; }
.article-body h3 { margin: 0 0 0.55rem; font-size: 1.05rem; line-height: 1.35; }

.checklist { display: grid; gap: 0.8rem; list-style: none; padding: 0; counter-reset: item; }
.checklist li { position: relative; padding: 0.9rem 1rem 0.9rem 3rem; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
.checklist li::before { counter-increment: item; content: counter(item); position: absolute; left: 1rem; width: 1.35rem; height: 1.35rem; display: grid; place-items: center; border-radius: 50%; background: rgba(89, 215, 160, 0.12); color: var(--green); font-size: 0.75rem; font-weight: 600; }
.can-cannot { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 1.25rem; }
.can-cannot > div, .label-tip { padding: 1.2rem; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
.can-cannot p, .label-tip p { margin: 0; color: var(--muted); }
.label-tip { margin: 1.25rem 0; border-left: 3px solid var(--gold); }

.label-example, .study-card, .evidence-summary { padding: 1.35rem; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.ingredient-list { padding: 1rem; border-radius: 6px; background: #07110c; color: #d9ded9; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.9rem; }
.label-example dl { margin: 0; }
.label-example dl div { display: grid; grid-template-columns: 10rem 1fr; gap: 1rem; padding: 0.85rem 0; border-top: 1px solid var(--line); }
dt { color: var(--quiet); }
dd { margin: 0; }

.questions > .question { margin: 0; padding: 1.5rem 0; border-top: 1px solid var(--line); scroll-margin-top: 1.5rem; }
.question h3 { font-family: Fraunces, Georgia, serif; font-size: 1.35rem; font-weight: 400; }
.question p { margin: 0.55rem 0; }
.source-line { display: flex; align-items: center; gap: 0.4rem 0.7rem; flex-wrap: wrap; margin: 0.8rem 0 0; color: var(--quiet); font-size: 0.76rem; }
.source-line span { font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; }
.source-line a { color: var(--green-soft); }

.evidence-summary span, .study-card > span { color: var(--green-soft); font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; }
.evidence-summary p, .study-card p { margin: 0.65rem 0; }
.evidence-groups { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 1rem; }
.evidence-groups > div { padding: 1.15rem; border: 1px solid var(--line); border-radius: 8px; }
.evidence-groups p { margin: 0; color: var(--muted); }
.fact-grid { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.fact-grid > div { padding: 1rem; background: var(--surface); border-bottom: 1px solid var(--line); }
.fact-grid > div:nth-child(odd) { border-right: 1px solid var(--line); }
.fact-grid span, .related-card span, .resource-card > span { display: block; margin-bottom: 0.35rem; color: var(--quiet); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.07em; }
.fact-grid strong { display: block; font-weight: 500; }

.references { padding-left: 1.3rem; }
.references li { margin: 0.75rem 0; }
.editorial-note, .medical-note { padding: 1rem 1.1rem; border-left: 3px solid var(--line); background: var(--surface); color: var(--muted); font-size: 0.88rem; }
.related-grid, .card-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.related-card, .resource-card { display: flex; flex-direction: column; padding: 1.2rem; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--ink); text-decoration: none; }
.related-card:hover, .resource-card:hover { border-color: rgba(89, 215, 160, 0.55); color: var(--ink); }
.related-card small { margin-top: 0.45rem; color: var(--muted); line-height: 1.5; }
.resource-card { min-height: 250px; padding: 1.4rem; }
.resource-card h3 { font-family: Fraunces, Georgia, serif; font-size: 1.45rem; font-weight: 400; }
.resource-card p { color: var(--muted); }
.resource-card strong { margin-top: auto; color: var(--green); font-size: 0.86rem; }

.cta { display: grid; grid-template-columns: 1.5fr 1fr; gap: 2rem; margin: 4rem 0 2rem; padding: 1.5rem; border-radius: 12px; background: var(--surface-2); }
.cta h2 { margin: 0.35rem 0 0.7rem; font-size: 1.65rem; }
.cta p { margin: 0.5rem 0; }
.cta-actions { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 0.8rem; }
.button { min-height: 44px; display: inline-flex; align-items: center; padding: 0.7rem 1rem; border-radius: 5px; background: var(--green); color: #06110b; text-decoration: none; font-weight: 600; }
.button:hover { background: var(--green-soft); color: #06110b; }
.medical-note { margin: 2rem 0 4rem; border-left-color: var(--gold); }

.ingredient-table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 10px; }
.ingredient-index { width: 100%; border-collapse: collapse; }
.ingredient-index th, .ingredient-index td { text-align: left; vertical-align: top; padding: 1rem; border-bottom: 1px solid var(--line); }
.ingredient-index th { color: var(--quiet); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.06em; }
.ingredient-index td:nth-child(2) { white-space: nowrap; }
.ingredient-index a { display: flex; flex-direction: column; color: var(--ink); text-decoration: none; }
.ingredient-index small { margin-top: 0.25rem; color: var(--quiet); }
footer { display: flex; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; padding-block: 1.5rem 2.5rem; border-top: 1px solid var(--line); color: var(--quiet); font-size: 0.82rem; }
footer p { margin: 0.7rem 0; }

@media (min-width: 1060px) {
  main:not(.wide) article { max-width: 1040px; display: grid; grid-template-columns: 210px minmax(0, 760px); column-gap: 48px; align-items: start; }
  main:not(.wide) .article-hero { grid-column: 2; }
  main:not(.wide) .toc { grid-column: 1; grid-row: 2; position: sticky; top: 96px; display: flex; flex-direction: column; padding: 1rem; border: 1px solid var(--line); border-radius: 8px; background: rgba(6, 16, 11, 0.94); }
  main:not(.wide) .toc p { width: 100%; max-width: none; }
  main:not(.wide) .article-body { grid-column: 2; grid-row: 2; }
}
@media (max-width: 700px) {
  .site-header nav { gap: 0.75rem; }
  .site-header nav a { font-size: 0.82rem; }
  .crumbs { margin-bottom: 1.25rem; }
  .article-hero h1 { font-size: 2.4rem; }
  .lede { display: none; }
  .trust-row span + span::before { display: none; }
  .can-cannot, .evidence-groups, .fact-grid, .related-grid, .card-grid, .cta { grid-template-columns: 1fr; }
  .fact-grid > div:nth-child(odd) { border-right: 0; }
  .label-example dl div { grid-template-columns: 1fr; gap: 0.2rem; }
  .resource-card { min-height: 0; }
  .cta { gap: 1rem; }
  .ingredient-index th:nth-child(3), .ingredient-index td:nth-child(3) { display: none; }
}
@media (max-width: 480px) {
  .site-header { min-height: 60px; }
  .site-header nav a:nth-child(3) { display: none; }
  .crumbs a:first-child, .crumbs span { display: none; }
  .crumbs a:last-child::before { content: '← '; }
  .article-hero h1 { max-width: 18ch; }
  .answer { padding: 1rem; }
  .article-body > section { margin: 3rem 0; }
  .toc { margin-top: 1.5rem; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
