/* ============================================================
   Cannabidivarin · Center for Innovation and Advocacy
   Shared stylesheet for landing + detail pages.
   Tokens from brand-spec.md. Extracted 2026-04-28.
   ============================================================ */

/* ============ Tokens ============ */
:root {
  --brand-primary: #0A1F3D;
  --brand-bg: #F7F3EB;
  --brand-ink: #1C1F2E;
  --brand-accent: #1B5FB7;       /* confident medium blue — sibling of brand-primary navy, science-trust */
  --brand-accent-hover: #154C94; /* darker blue for hover/active */
  --brand-secondary: #3D4856;
  --brand-rule: #D9D2C2;
  --brand-card: #FFFFFF;
  --brand-overlay-top: rgba(32, 26, 20, 0.40);
  --brand-overlay-bottom: rgba(22, 16, 12, 0.65);

  --font-display: 'Inter', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, monospace;

  --s-1: 8px;
  --s-2: 16px;
  --s-3: 24px;
  --s-4: 32px;
  --s-5: 48px;
  --s-6: 64px;
  --s-7: 96px;
  --s-8: 128px;

  --container: 1280px;
  --content: 720px;
  --sidebar: 240px;
  --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--brand-bg);
  color: var(--brand-ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: var(--brand-accent); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ============ Header ============ */
header.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  background: rgba(247, 243, 235, 0.92);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--brand-rule);
  display: flex;
  align-items: center;
}
.header-inner {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--s-4);
  display: flex;
  align-items: center;
  gap: var(--s-3);
  justify-content: space-between;
}
.lockup {
  display: flex;
  align-items: center;
  gap: var(--s-3);
}
.wordmark {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 22px;
  letter-spacing: -0.015em;
  color: var(--brand-primary);
}
.lockup-rule {
  width: 1px;
  height: 22px;
  background: var(--brand-rule);
}
.institutional {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand-secondary);
}
@media (max-width: 720px) {
  .lockup-rule, .institutional { display: none; }
}

.nav-links {
  display: flex;
  gap: var(--s-4);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.10em;
  text-transform: uppercase;
}
.nav-links a { color: var(--brand-secondary); }
.nav-links a:hover {
  color: var(--brand-primary);
  text-decoration: none;
}
.nav-links a.nav-cta { color: var(--brand-accent); }
.nav-links a.nav-cta:hover { color: var(--brand-primary); }
.nav-links a.active { color: var(--brand-primary); }
@media (max-width: 880px) {
  .nav-links { display: none; }
}

/* ============ Hero (landing only, full-bleed video) ============ */
.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 640px;
  overflow: hidden;
  color: #FFFFFF;
}
.hero video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
.hero-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, var(--brand-overlay-top) 0%, var(--brand-overlay-bottom) 100%);
  z-index: 1;
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--s-4);
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-bottom: clamp(48px, 10vh, 96px);
}
.hero-content h1 {
  font-family: var(--font-display);
  font-size: clamp(40px, 6.5vw, 72px);
  line-height: 1.05;
  letter-spacing: -0.025em;
  font-weight: 600;
  margin: 0 0 var(--s-3);
  max-width: 28ch;
}
.hero-sub {
  font-family: var(--font-body);
  font-size: clamp(17px, 1.6vw, 22px);
  line-height: 1.5;
  font-weight: 400;
  font-style: italic;
  margin: 0 0 var(--s-5);
  max-width: 52ch;
  color: rgba(255, 255, 255, 0.92);
}
.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  padding: 14px 24px;
  background: var(--brand-accent);
  color: #FFFFFF;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.01em;
  border: none;
  width: fit-content;
  transition: background 200ms ease, transform 200ms ease;
}
.hero-cta:hover {
  background: var(--brand-accent-hover);
  text-decoration: none;
  transform: translateY(-1px);
}
.hero-cta .arrow {
  font-family: var(--font-mono);
  font-weight: 500;
  transition: transform 200ms ease;
}
.hero-cta:hover .arrow { transform: translateX(4px); }

/* ============ Page hero (detail pages) ============ */
.page-hero {
  background: var(--brand-bg);
  padding: var(--s-7) var(--s-4) var(--s-7);
  border-bottom: 1px solid var(--brand-rule);
  position: relative;
  overflow: hidden;
}
.page-hero-inner {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: var(--sidebar) 1fr;
  gap: var(--s-7);
  align-items: start;
  position: relative;
  z-index: 2;
}
.page-hero-meta {
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
  position: relative;
}
.page-hero-meta .eyebrow {
  margin-bottom: 0;
  color: var(--brand-secondary);
}
.page-meta-note {
  font-family: var(--font-body);
  font-size: 13px;
  line-height: 1.55;
  color: var(--brand-secondary);
  margin: 0;
  font-style: italic;
}
.page-hero-body h1 {
  font-family: var(--font-display);
  font-size: clamp(48px, 6.5vw, 88px);
  line-height: 1.05;
  letter-spacing: -0.025em;
  font-weight: 600;
  color: var(--brand-primary);
  margin: 0 0 var(--s-3);
  max-width: 16ch;
}
.page-lede {
  font-family: var(--font-body);
  font-size: clamp(19px, 1.5vw, 22px);
  line-height: 1.5;
  color: var(--brand-secondary);
  font-style: italic;
  margin: 0;
  max-width: 56ch;
}
@media (max-width: 960px) {
  .page-hero-inner {
    grid-template-columns: 1fr;
    gap: var(--s-3);
  }
}

/* Visual variant: full-bleed image hero with warm scrim + white text */
.page-hero--visual {
  background-color: #1A1410;
  border-bottom: none;
  min-height: 56vh;
  padding: var(--s-8) var(--s-4) var(--s-7);
  display: flex;
  align-items: flex-end;
  color: #FFFFFF;
}
.page-hero--visual::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: var(--page-hero-image);
  background-size: cover;
  background-position: center;
  z-index: 0;
}
.page-hero--visual::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, var(--brand-overlay-top) 0%, var(--brand-overlay-bottom) 100%);
  z-index: 1;
}
.page-hero--visual .page-hero-meta .eyebrow {
  color: rgba(255, 255, 255, 0.75);
}
.page-hero--visual .page-meta-note {
  color: rgba(255, 255, 255, 0.78);
}
.page-hero--visual .page-hero-body h1 {
  color: #FFFFFF;
}
.page-hero--visual .page-lede {
  color: rgba(255, 255, 255, 0.92);
  font-style: italic;
}

/* ============ Layout (V2 — asymmetric anchored sidebar) ============ */
.layout {
  max-width: var(--container);
  margin: 0 auto;
  padding: var(--s-7) var(--s-4) var(--s-8);
  display: grid;
  grid-template-columns: var(--sidebar) 1fr;
  gap: var(--s-7);
  align-items: start;
}
@media (max-width: 960px) {
  .layout {
    grid-template-columns: 1fr;
    gap: var(--s-5);
    padding-top: var(--s-6);
    padding-left: var(--s-2);
    padding-right: var(--s-2);
    padding-bottom: var(--s-6);
  }
  /* Grid items default to min-width: auto (i.e. min-content), which can
     pin the column open to the longest unbreakable child (citation cards,
     nested grids, etc.) and force the whole document wider than the
     viewport. min-width: 0 lets the column shrink to fit. */
  .layout > * { min-width: 0; }
}

/* ============ Sidebar TOC ============ */
aside.sidebar {
  position: sticky;
  top: calc(var(--header-h) + 32px);
}
.sidebar-eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand-secondary);
  margin: 0 0 var(--s-3);
}
.sidebar-toc {
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
  list-style: none;
  padding: 0;
  margin: 0;
  border-left: 1px solid var(--brand-rule);
}
.sidebar-toc li { padding: 0; }
.sidebar-toc a {
  display: block;
  padding: 6px var(--s-2);
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 500;
  color: var(--brand-secondary);
  border-left: 2px solid transparent;
  margin-left: -1px;
  transition: color 200ms ease, border-color 200ms ease;
}
.sidebar-toc a:hover {
  color: var(--brand-primary);
  text-decoration: none;
}
.sidebar-toc a.active {
  color: var(--brand-primary);
  border-left-color: var(--brand-accent);
  font-weight: 600;
}
@media (max-width: 960px) {
  aside.sidebar { position: static; }
  .sidebar-toc {
    flex-direction: row;
    overflow-x: auto;
    border-left: none;
    border-bottom: 1px solid var(--brand-rule);
    padding-bottom: var(--s-2);
    -webkit-mask-image: linear-gradient(to right, black 85%, transparent 100%);
    mask-image: linear-gradient(to right, black 85%, transparent 100%);
  }
  .sidebar-toc a {
    white-space: nowrap;
    border-left: none;
    border-bottom: 2px solid transparent;
  }
  .sidebar-toc a.active {
    border-left: none;
    border-bottom-color: var(--brand-accent);
  }
}

/* ============ Content sections ============ */
article.content {
  max-width: var(--content);
  display: flex;
  flex-direction: column;
  gap: var(--s-8);
}
.section { scroll-margin-top: calc(var(--header-h) + 32px); }
.eyebrow {
  display: block;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand-accent);
  margin-bottom: var(--s-2);
}
.facts .eyebrow { color: rgba(255, 255, 255, 0.70); }

/* Stat callout */
.stat-pull {
  margin: var(--s-4) 0;
  padding: var(--s-1) 0 var(--s-1) var(--s-3);
  border-left: 3px solid var(--brand-accent);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.stat-figure {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 600;
  letter-spacing: -0.020em;
  color: var(--brand-primary);
  line-height: 1.05;
}
.stat-label {
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.5;
  color: var(--brand-secondary);
  max-width: 56ch;
}
.section h2 {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.5vw, 40px);
  line-height: 1.15;
  letter-spacing: -0.015em;
  font-weight: 600;
  margin: 0 0 var(--s-3);
  color: var(--brand-primary);
}
.lede {
  font-family: var(--font-body);
  font-size: 20px;
  line-height: 1.55;
  color: var(--brand-secondary);
  margin: 0 0 var(--s-4);
}

/* ============ Components ============ */

/* Body prose */
.prose p {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--brand-ink);
  margin: 0 0 var(--s-3);
}
.prose p:last-child { margin-bottom: 0; }
.prose a {
  color: var(--brand-accent);
  border-bottom: 1px solid rgba(27, 95, 183, 0.35);
  transition: border-color 200ms ease;
}
.prose a:hover {
  border-bottom-color: var(--brand-accent);
  text-decoration: none;
}
.prose strong {
  font-weight: 600;
  color: var(--brand-primary);
}

/* Inline link CTA */
.link-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  color: var(--brand-accent);
  letter-spacing: 0.005em;
  margin-top: var(--s-3);
  transition: gap 200ms ease;
}
.link-cta .arrow {
  font-family: var(--font-mono);
  transition: transform 200ms ease;
}
.link-cta:hover {
  text-decoration: none;
  gap: 12px;
}
.link-cta:hover .arrow { transform: translateX(2px); }

/* Citation card */
.citation-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: var(--s-3);
  background: var(--brand-card);
  border: 1px solid var(--brand-rule);
  border-radius: 2px;
  transition: border-color 200ms ease, transform 200ms ease, box-shadow 200ms ease;
}
.citation-card:hover {
  border-color: var(--brand-accent);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(10, 31, 61, 0.06);
  text-decoration: none;
}
.study-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 2px 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand-secondary);
  line-height: 1.5;
  margin-bottom: 2px;
}
.study-meta .status-active {
  color: var(--brand-accent);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.study-meta .status-active::before {
  content: '';
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--brand-accent);
}
.citation-card .title {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.005em;
  color: var(--brand-primary);
  transition: color 200ms ease;
}
.citation-card:hover .title { color: var(--brand-accent); }
.citation-card .meta {
  font-family: var(--font-body);
  font-size: 13px;
  line-height: 1.5;
  color: var(--brand-secondary);
}
.citation-card .source {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--brand-secondary);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 2px;
}
.citation-card .source .arrow { transition: transform 200ms ease; }
.citation-card:hover .source .arrow { transform: translateX(2px); }
.facts .citation-card {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.18);
}
.facts .citation-card .study-meta { color: rgba(255, 255, 255, 0.55); }
.facts .citation-card .study-meta .status-active { color: #FFFFFF; }
.facts .citation-card .study-meta .status-active::before { background: #FFFFFF; }
.facts .citation-card .title { color: #FFFFFF; }
.facts .citation-card .meta { color: rgba(255, 255, 255, 0.78); }
.facts .citation-card .source { color: rgba(255, 255, 255, 0.6); }
.facts .citation-card:hover { border-color: var(--brand-accent); }
.facts .citation-card:hover .title { color: var(--brand-accent); }

/* Citation list (multiple cards stacked) */
.citation-list {
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
  margin-top: var(--s-3);
}

/* Molecule comparison (CBDV vs CBD structures) */
.molecule-compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-3);
  margin: var(--s-4) 0 0;
  padding: var(--s-4);
  background: var(--brand-card);
  border: 1px solid var(--brand-rule);
  border-radius: 2px;
}
.molecule-compare figure {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--s-2);
}
.molecule-compare img {
  max-width: 100%;
  max-height: 220px;
  width: auto;
  height: auto;
  object-fit: contain;
}
.molecule-compare figcaption {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--brand-secondary);
  text-align: center;
  line-height: 1.4;
}
.molecule-compare figcaption strong {
  display: block;
  font-weight: 600;
  color: var(--brand-primary);
  font-size: 13px;
  letter-spacing: 0.08em;
  margin-bottom: 2px;
}
.molecule-note {
  font-family: var(--font-body);
  font-size: 13px;
  line-height: 1.55;
  font-style: italic;
  color: var(--brand-secondary);
  margin: var(--s-2) 0 0;
  text-align: center;
  max-width: 64ch;
  margin-left: auto;
  margin-right: auto;
}
@media (max-width: 480px) {
  .molecule-compare { grid-template-columns: 1fr; gap: var(--s-3); padding: var(--s-3); }
}

/* Real ECS figure */
.ecs-figure {
  margin: var(--s-3) 0 0;
  padding: 0;
}
.ecs-figure img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--brand-rule);
  border-radius: 2px;
  background: var(--brand-card);
}
.ecs-figure figcaption {
  font-family: var(--font-body);
  font-size: 13px;
  line-height: 1.55;
  color: var(--brand-secondary);
  margin: var(--s-2) 0 0;
  font-style: italic;
}

/* Custom data / mechanism chart figure (inline SVG) */
.data-chart {
  margin: var(--s-3) 0 0;
  padding: var(--s-4);
  background: var(--brand-card);
  border: 1px solid var(--brand-rule);
  border-radius: 2px;
}
.data-chart svg {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
}
.data-chart figcaption {
  font-family: var(--font-body);
  font-size: 13px;
  line-height: 1.55;
  color: var(--brand-secondary);
  margin: var(--s-3) 0 0;
  font-style: italic;
}
.data-chart figcaption strong {
  font-style: normal;
  font-weight: 600;
  color: var(--brand-primary);
}

/* Closer image (atmospheric forest moment, full-width inside content column) */
.closer-image {
  margin: var(--s-5) 0 0;
}
.closer-image img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 2px;
}
.closer-image figcaption {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--brand-secondary);
  margin: var(--s-2) 0 0;
  text-align: right;
}

/* Honest figure placeholder (for diagrams TBD) */
.figure-placeholder {
  background: var(--brand-card);
  border: 1px solid var(--brand-rule);
  border-radius: 2px;
  padding: var(--s-5) var(--s-4);
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: var(--s-1);
  margin: var(--s-3) 0 0;
}
.figure-placeholder .label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand-secondary);
}
.figure-placeholder .caption {
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--brand-secondary);
  max-width: 48ch;
  margin: 0 auto;
}

/* Pull-quote */
.pull-quote {
  font-family: var(--font-display);
  font-size: clamp(20px, 2.4vw, 26px);
  line-height: 1.4;
  letter-spacing: -0.010em;
  font-weight: 500;
  color: var(--brand-primary);
  border-left: 2px solid var(--brand-accent);
  padding: var(--s-1) 0 var(--s-1) var(--s-3);
  margin: var(--s-4) 0 0;
  max-width: 50ch;
}

/* Limits callout (honest "what we don't know" box on detail pages) */
.limits-callout {
  margin-top: var(--s-5);
  padding: var(--s-4);
  background: var(--brand-card);
  border: 1px solid var(--brand-rule);
  border-radius: 2px;
}
.limits-callout .limits-eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand-secondary);
  margin: 0 0 var(--s-2);
}
.limits-callout h3 {
  font-family: var(--font-display);
  font-size: 22px;
  line-height: 1.25;
  letter-spacing: -0.010em;
  font-weight: 600;
  color: var(--brand-primary);
  margin: 0 0 var(--s-3);
}
.limits-callout ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
.limits-callout li {
  padding: var(--s-2) 0;
  border-top: 1px solid var(--brand-rule);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.55;
  color: var(--brand-ink);
}
.limits-callout li strong {
  font-weight: 600;
  color: var(--brand-primary);
}

/* Facts rows (used on landing) */
.facts-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--s-4) var(--s-5);
  margin-top: var(--s-5);
}
@media (max-width: 720px) {
  .facts-grid { grid-template-columns: 1fr; }
}
.fact {
  display: flex;
  flex-direction: column;
  gap: var(--s-1);
  padding-top: var(--s-3);
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}
.fact .fact-eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  margin: 0;
}
.fact .fact-claim {
  font-family: var(--font-display);
  font-size: 22px;
  line-height: 1.25;
  letter-spacing: -0.012em;
  font-weight: 600;
  color: #FFFFFF;
  margin: 0;
}
.fact .fact-claim em {
  font-style: normal;
  color: var(--brand-accent);
  font-weight: 700;
}
.fact .fact-body {
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.78);
  margin: 0;
}
.fact .fact-source {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.55);
  margin: 4px 0 0;
}
.fact .fact-source a {
  color: rgba(255, 255, 255, 0.78);
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}
.fact .fact-source a:hover {
  color: #FFFFFF;
  border-bottom-color: var(--brand-accent);
  text-decoration: none;
}

/* FAQ accordion */
.faq-list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--brand-rule);
  margin-top: var(--s-4);
}
.faq-item {
  border-bottom: 1px solid var(--brand-rule);
  padding: 0;
}
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: var(--s-3) 0;
  display: grid;
  grid-template-columns: 1fr 24px;
  align-items: center;
  gap: var(--s-3);
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--brand-primary);
  transition: color 200ms ease;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--brand-accent); }
.faq-item .faq-eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand-accent);
  display: block;
  margin-bottom: 4px;
}
.faq-item .toggle {
  font-family: var(--font-mono);
  font-size: 16px;
  font-weight: 400;
  color: var(--brand-secondary);
  transition: transform 250ms ease;
}
.faq-item[open] .toggle { transform: rotate(45deg); color: var(--brand-accent); }
.faq-item .faq-body {
  padding: 0 0 var(--s-3);
  max-width: 64ch;
}
.faq-item .faq-body p {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--brand-ink);
  margin: 0 0 var(--s-2);
}
.faq-item .faq-body .faq-source {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--brand-secondary);
}

/* Facts block (full-bleed dark, landing only) */
.facts {
  background: var(--brand-primary);
  color: #FFFFFF;
  width: 100%;
  padding: var(--s-7) var(--s-4);
  margin: var(--s-8) 0 0;
}
.facts-inner {
  max-width: var(--container);
  margin: 0 auto;
}
.facts h2 { color: #FFFFFF; max-width: 16ch; }
.facts .lede { color: rgba(255, 255, 255, 0.78); max-width: 60ch; }

/* ============ Newsletter ============ */
.newsletter {
  max-width: var(--container);
  margin: var(--s-7) auto 0;
  padding: var(--s-6) var(--s-4);
}
.newsletter-inner {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: var(--sidebar) 1fr;
  gap: var(--s-7);
  align-items: start;
  padding-top: var(--s-5);
  border-top: 1px solid var(--brand-rule);
}
@media (max-width: 960px) {
  .newsletter-inner { grid-template-columns: 1fr; gap: var(--s-3); }
}
.newsletter-eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand-secondary);
  margin: 0;
}
.newsletter-body { display: flex; flex-direction: column; gap: var(--s-3); }
.newsletter h2 {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.5vw, 40px);
  line-height: 1.15;
  letter-spacing: -0.015em;
  font-weight: 600;
  margin: 0;
  color: var(--brand-primary);
  max-width: 18ch;
}
.newsletter .lede {
  font-family: var(--font-body);
  font-size: 20px;
  line-height: 1.55;
  color: var(--brand-secondary);
  margin: 0;
  max-width: 56ch;
}
.newsletter-form {
  display: flex;
  gap: var(--s-2);
  max-width: 480px;
  margin-top: var(--s-2);
}
.newsletter-form input[type="email"] {
  flex: 1;
  padding: 12px 16px;
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--brand-ink);
  background: var(--brand-card);
  border: 1px solid var(--brand-rule);
  border-radius: 2px;
  outline: none;
  transition: border-color 200ms ease;
}
.newsletter-form input[type="email"]:focus { border-color: var(--brand-primary); }
.newsletter-form button {
  display: inline-flex;
  align-items: center;
  gap: var(--s-1);
  padding: 12px 20px;
  background: var(--brand-accent);
  color: #FFFFFF;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.01em;
  border: none;
  border-radius: 2px;
  cursor: pointer;
  transition: background 200ms ease, transform 200ms ease;
}
.newsletter-form button:hover {
  background: var(--brand-accent-hover);
  transform: translateY(-1px);
}
.newsletter-form button .arrow {
  font-family: var(--font-mono);
  transition: transform 200ms ease;
}
.newsletter-form button:hover .arrow { transform: translateX(3px); }
.newsletter-meta {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--brand-secondary);
  margin: 0;
}
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}
@media (max-width: 540px) {
  .newsletter-form { flex-direction: column; }
  .newsletter-form button { justify-content: center; }
}

/* ============ Person card (About §03) ============ */
.person-card {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: var(--s-4);
  align-items: start;
  margin-top: var(--s-3);
  padding: var(--s-4);
  background: var(--brand-card);
  border: 1px solid var(--brand-rule);
  border-radius: 2px;
}
.person-card-photo {
  display: block;
  width: 140px;
  height: 140px;
  object-fit: cover;
  border-radius: 2px;
}
.person-card-body { display: flex; flex-direction: column; gap: var(--s-2); }
.person-card-name {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  color: var(--brand-primary);
  letter-spacing: -0.010em;
  margin: 0;
}
.person-card-role {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--brand-secondary);
  margin: 0;
}
.person-card-teaser {
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.55;
  color: var(--brand-ink);
  margin: 0;
  max-width: 56ch;
}
.person-card-link {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  color: var(--brand-accent);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
  width: fit-content;
}
.person-card-link:hover { gap: 10px; text-decoration: none; }
.person-card-link .arrow { font-family: var(--font-mono); transition: transform 200ms ease; }
.person-card-link:hover .arrow { transform: translateX(2px); }
@media (max-width: 540px) {
  .person-card { grid-template-columns: 1fr; }
  .person-card-photo { width: 120px; height: 120px; }
}

/* ============ My Story page ============ */
.story-main {
  max-width: 1080px;
  margin: 0 auto;
  padding: var(--s-7) var(--s-4) var(--s-8);
}
.story {
  display: flex;
  flex-direction: column;
  gap: var(--s-6);
}

/* Opening spread (text + portrait) */
.story-opening {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: var(--s-7);
  align-items: start;
  padding-bottom: var(--s-6);
  border-bottom: 1px solid var(--brand-rule);
}
.story-opening-text {
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
  padding-top: var(--s-3);
}
.story-opening-text .eyebrow { margin-bottom: 0; }
.story-opening-text h1 {
  font-family: var(--font-display);
  font-size: clamp(40px, 5vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.025em;
  font-weight: 600;
  color: var(--brand-primary);
  margin: 0;
  max-width: 14ch;
}
.story-lede {
  font-family: var(--font-body);
  font-size: clamp(19px, 1.5vw, 22px);
  line-height: 1.55;
  font-style: italic;
  color: var(--brand-secondary);
  margin: 0;
  max-width: 48ch;
}

.story-portrait {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
}
.story-portrait img {
  display: block;
  width: 100%;
  height: 575px;
  object-fit: cover;
  border-radius: 2px;
}
.story-portrait figcaption {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-top: var(--s-1);
  border-top: 1px solid var(--brand-rule);
}
.story-portrait figcaption strong {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  color: var(--brand-primary);
  letter-spacing: -0.005em;
}
.story-portrait figcaption span {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--brand-secondary);
}

@media (max-width: 880px) {
  .story-opening { grid-template-columns: 1fr; gap: var(--s-5); }
  .story-portrait img { height: auto; aspect-ratio: 2 / 3; max-width: 360px; }
}

/* Essay body */
.story-body {
  max-width: 640px;
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
  margin: 0 auto;
}
.story-body p {
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.7;
  color: var(--brand-ink);
  margin: 0;
}
.story-body .pull-quote {
  margin: var(--s-4) 0 var(--s-3);
  max-width: none;
}
.story-signoff {
  font-family: var(--font-display);
  font-size: 17px;
  font-style: italic;
  color: var(--brand-primary);
  margin: var(--s-4) 0 0 !important;
  padding-top: var(--s-4);
  border-top: 1px solid var(--brand-rule);
}

/* CTA */
.story-cta-wrapper {
  max-width: 640px;
  margin: 0 auto;
}

/* ============ Contact button + modal ============ */
.contact-trigger {
  display: inline-flex;
  align-items: center;
  gap: var(--s-1);
  padding: 14px 26px;
  margin-top: var(--s-4);
  background: var(--brand-accent);
  color: #FFFFFF;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.01em;
  border: none;
  border-radius: 2px;
  cursor: pointer;
  transition: background 200ms ease, transform 200ms ease;
  width: fit-content;
}
.contact-trigger:hover {
  background: var(--brand-accent-hover);
  transform: translateY(-1px);
}
.contact-trigger .arrow {
  font-family: var(--font-mono);
  transition: transform 200ms ease;
}
.contact-trigger:hover .arrow { transform: translateX(3px); }

/* Modal dialog */
.contact-modal {
  width: 480px;
  max-width: calc(100vw - 32px);
  border: 1px solid var(--brand-rule);
  border-radius: 4px;
  background: var(--brand-card);
  color: var(--brand-ink);
  padding: 0;
  margin: auto;
  box-shadow: 0 24px 64px rgba(10, 31, 61, 0.20);
}
.contact-modal::backdrop {
  background: rgba(10, 31, 61, 0.55);
  backdrop-filter: blur(2px);
}

.contact-modal-form {
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
  padding: var(--s-4);
  margin: 0;
}
.contact-modal-header {
  position: relative;
  padding-bottom: var(--s-3);
  border-bottom: 1px solid var(--brand-rule);
  margin-bottom: var(--s-1);
}
.contact-modal-eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--brand-accent);
  margin: 0 0 6px;
}
.contact-modal-header h3 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.010em;
  color: var(--brand-primary);
  margin: 0;
}
.contact-modal-close {
  position: absolute;
  top: -2px;
  right: -8px;
  width: 32px;
  height: 32px;
  background: transparent;
  border: none;
  font-family: var(--font-mono);
  font-size: 22px;
  font-weight: 400;
  line-height: 1;
  color: var(--brand-secondary);
  cursor: pointer;
  transition: color 200ms ease, transform 200ms ease;
}
.contact-modal-close:hover {
  color: var(--brand-primary);
  transform: rotate(90deg);
}

/* Reusable form fields */
.contact-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.contact-field label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--brand-secondary);
  font-weight: 500;
}
.contact-field input,
.contact-field textarea {
  padding: 12px 14px;
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.5;
  color: var(--brand-ink);
  background: var(--brand-card);
  border: 1px solid var(--brand-rule);
  border-radius: 2px;
  outline: none;
  transition: border-color 200ms ease;
  width: 100%;
}
.contact-field textarea { resize: vertical; min-height: 120px; }
.contact-field input:focus,
.contact-field textarea:focus { border-color: var(--brand-primary); }

.contact-modal-actions {
  display: flex;
  gap: var(--s-2);
  justify-content: flex-end;
  margin-top: var(--s-1);
}
.contact-modal-cancel {
  padding: 11px 18px;
  background: transparent;
  border: 1px solid var(--brand-rule);
  border-radius: 2px;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 500;
  color: var(--brand-secondary);
  cursor: pointer;
  transition: border-color 200ms ease, color 200ms ease;
}
.contact-modal-cancel:hover {
  border-color: var(--brand-primary);
  color: var(--brand-primary);
}
.contact-modal-submit {
  display: inline-flex;
  align-items: center;
  gap: var(--s-1);
  padding: 11px 22px;
  background: var(--brand-accent);
  color: #FFFFFF;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.01em;
  border: none;
  border-radius: 2px;
  cursor: pointer;
  transition: background 200ms ease;
}
.contact-modal-submit:hover { background: var(--brand-accent-hover); }
.contact-modal-submit .arrow {
  font-family: var(--font-mono);
  transition: transform 200ms ease;
}
.contact-modal-submit:hover .arrow { transform: translateX(2px); }

.contact-modal-meta {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--brand-secondary);
  margin: 0;
}

/* ============ Footer ============ */
footer.site-footer {
  background: var(--brand-bg);
  border-top: 1px solid var(--brand-rule);
  padding: var(--s-6) var(--s-4) var(--s-5);
  margin-top: var(--s-6);
}
.footer-inner {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: var(--sidebar) 1fr;
  gap: var(--s-7);
}
@media (max-width: 960px) {
  .footer-inner { grid-template-columns: 1fr; gap: var(--s-4); }
}
.footer-brand .wordmark { font-size: 18px; }
.footer-meta {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--brand-secondary);
  margin-top: var(--s-2);
}
.footer-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-4);
}
@media (max-width: 720px) { .footer-cols { grid-template-columns: 1fr; } }
.footer-col-title {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand-secondary);
  margin: 0 0 var(--s-2);
}
.footer-col p {
  font-size: 14px;
  color: var(--brand-secondary);
  margin: 0 0 var(--s-1);
}

/* ---- Turnstile widget + form status (added for forms wiring) ---- */
.turnstile-slot {
  margin: 0.5rem 0;
  min-height: 65px;
}

.newsletter-status,
.contact-modal-status {
  margin-top: 0.5rem;
  font-size: 0.875rem;
  color: var(--brand-secondary);
  font-family: var(--font-mono, 'IBM Plex Mono', monospace);
}

.newsletter-status[data-kind="error"],
.contact-modal-status[data-kind="error"] {
  color: #B23A3A;
}

.newsletter-status--success {
  color: var(--brand-accent);
  font-weight: 500;
}

/* Honeypot: visually + tab-order hidden, but doesn't trigger horizontal overflow
   the way `left:-9999px` can on small viewports. Bots that fill every input still
   trip it; humans never see it. */
.honeypot {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* ============ Hamburger toggle (mobile only) ============ */
.nav-toggle {
  display: none; /* shown at <=880px via media query */
  width: 44px;
  height: 44px;
  padding: 0;
  background: transparent;
  border: none;
  cursor: pointer;
  position: relative;
  margin-right: -10px;
}
.nav-toggle-bar {
  display: block;
  position: absolute;
  left: 11px;
  width: 22px;
  height: 1.5px;
  background: var(--brand-primary);
  transition: transform 200ms ease, top 200ms ease, opacity 200ms ease;
}
.nav-toggle-bar:nth-child(1) { top: 18px; }
.nav-toggle-bar:nth-child(2) { top: 25px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) {
  top: 21.5px;
  transform: rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) {
  top: 21.5px;
  transform: rotate(-45deg);
}
@media (max-width: 880px) {
  .nav-toggle { display: block; }
}

/* ============ Mobile menu overlay ============ */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: var(--brand-bg);
  opacity: 0;
  visibility: hidden;
  transition: opacity 200ms ease, visibility 0s linear 200ms;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.mobile-menu[aria-hidden="false"] {
  opacity: 1;
  visibility: visible;
  transition: opacity 200ms ease, visibility 0s linear 0s;
}
.mobile-menu-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: calc(var(--header-h) + var(--s-4)) var(--s-4) var(--s-5);
  min-height: 100%;
  display: flex;
  flex-direction: column;
  transform: translateY(12px);
  transition: transform 200ms ease;
}
.mobile-menu[aria-hidden="false"] .mobile-menu-inner {
  transform: translateY(0);
}
.mobile-menu-eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand-secondary);
  margin: 0 0 var(--s-4);
}
.mobile-menu-nav {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--brand-rule);
}
.mobile-menu-nav a {
  display: block;
  padding: var(--s-3) 0;
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--brand-primary);
  border-bottom: 1px solid var(--brand-rule);
  transition: color 200ms ease;
}
@media (hover: hover) {
  .mobile-menu-nav a:hover {
    color: var(--brand-accent);
    text-decoration: none;
  }
}
.mobile-menu-nav a.active {
  color: var(--brand-accent);
}
@media (min-width: 881px) {
  .mobile-menu { display: none !important; }
}
body.menu-open { overflow: hidden; }
/* When the overlay is open, lift the header above it so the hamburger
   (now showing as ×) remains visible and clickable for closing. */
body.menu-open .site-header { z-index: 101; }

/* Honor the user's motion preference. */
@media (prefers-reduced-motion: reduce) {
  .mobile-menu,
  .mobile-menu-inner,
  .nav-toggle-bar { transition: none; }
}
