/* ====================================================================
   style.css  —  ALL VISUAL STYLING IN ONE PLACE
   To change the colour scheme, edit only the variables in :root below.
   Palette: "charcoal / teal / peach" — charcoal is a real third colour
   (hero + footer backgrounds, all heading/body text), not just a grey
   used for text. Swap the hex values to retheme the whole site.
   ==================================================================== */
:root {
  --anchor:      #292524;  /* charcoal: hero/footer bg, all headings-on-white */
  --anchor-soft: #3D3835;  /* lighter charcoal: hover states */
  --secondary:   #A39D97;  /* warm light grey: borders */
  --accent:      #017F87;  /* assertive teal: buttons, links, highlights */
  --accent-dark: #015F66;  /* darkened teal: button hover */
  --bg:          #FFFFFF;
  --bg-tint:     #FADAC5;  /* peach: secondary/action section backgrounds + hero secondary text */
  --cream:       #FFF6EE;  /* brighter warm white, hero H1 only */
  --footer-text: #FFFFFF;  /* the footer is still charcoal, needs light text */
  --ink:         #292524;  /* body text: the same charcoal as --anchor */
  --ink-soft:    #6B6560;  /* warm mid-grey: captions, sources */
  --maxwidth:    1040px;
  --font:        -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-display: 'Anton', var(--font);  /* bold condensed display face, H1/H2 only */
}
* { box-sizing: border-box; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--bg); line-height: 1.55; }
.wrap { max-width: var(--maxwidth); margin: 0 auto; padding: 0 1.25rem; text-align: center; }
h1, h2, h3 { line-height: 1.15; }
h1, h2 { font-family: var(--font-display); font-weight: 400; letter-spacing: 0.01em; }
/* key findings bolded within prose paragraphs (see build_site.py's rich()) */
.lede strong, .milestone-body p strong, .initiative-body p strong, .figure-narrative strong {
  color: var(--anchor);
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
/* charcoal hero: signals "serious investigation" rather than "friendly
   explainer" — cream headline, peach secondary text, solid teal button. */
.hero { background: var(--anchor); color: var(--bg-tint); padding: 5rem 0 4.5rem; position: relative; }
.hero::after { content: ""; position: absolute; left: 0; bottom: 0; height: 5px; width: 100%;
  background: linear-gradient(90deg, var(--accent) 0%, var(--accent) 38%, transparent 38%); }
.hero .kicker { text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.8rem;
  font-weight: 700; color: var(--bg-tint); margin: 0 0 1rem; }
.hero h1 { font-size: 3.1rem; line-height: 1.05; margin: 0 auto 1.1rem; max-width: 22ch; color: var(--cream); }
.tagline { font-size: 1.3rem; line-height: 1.4; color: var(--bg-tint); max-width: 46ch; margin: 0 auto 2rem; }
.hero-actions { display: flex; gap: 0.85rem; flex-wrap: wrap; justify-content: center; }
.btn { display: inline-block; padding: 0.7rem 1.3rem; border-radius: 0.5rem; font-weight: 600;
       font-size: 1rem; border: 2px solid transparent; cursor: pointer; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); text-decoration: none; }
.btn-ghost { background: transparent; color: var(--bg-tint); border-color: rgba(255, 255, 255, 0.35); }
.btn-ghost:hover { border-color: #fff; color: #fff; text-decoration: none; }
.section { padding: 3rem 0; }
/* a little extra room before the first peach section, so it stays below
   the fold on typical viewport heights rather than peeking in early */
.section + .metrics-section { padding-top: 8rem; }
.section h2 { font-size: 1.9rem; color: var(--anchor); margin: 0 auto 1.25rem; }
.lede { font-size: 1.15rem; max-width: 68ch; color: var(--ink); margin: 0 auto; }
.metrics-section, .milestones-section { background: var(--bg-tint); }
.methodology { font-size: 0.85rem; color: var(--ink-soft); margin: 0 auto 1.25rem; max-width: 60ch; }
.metrics { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem; }
.metric { background: #fff; border: 1px solid #e3e8ef; border-radius: 0.75rem; padding: 1.5rem; }
.metric-value { font-size: 2rem; font-weight: 800; color: var(--accent); }
.metric-label { margin-top: 0.35rem; color: var(--ink); }
.metric-source { margin-top: 0.6rem; font-size: 0.8rem; color: var(--ink-soft); }
.figure { margin: 0; background: #fff; border: 1px solid #e3e8ef; border-radius: 0.75rem; padding: 1rem; }
.figure img { width: 100%; height: auto; border-radius: 0.4rem; }
.figure figcaption { margin-top: 0.6rem; font-size: 0.95rem; color: var(--ink-soft); }
.milestones { display: grid; gap: 1rem; margin-top: 2.5rem; }
.milestone { display: flex; flex-direction: column; align-items: center; gap: 0.5rem; background: #fff;
             border: 1px solid #e3e8ef; border-top: 5px solid var(--accent); border-radius: 0.75rem;
             padding: 1.4rem 1.5rem; }
.milestone-icon { font-size: 2rem; line-height: 1; }
.milestone-body h3 { margin: 0 0 0.4rem; color: var(--anchor); font-size: 1.25rem; }
.milestone-body p { margin: 0 auto 1rem; color: var(--ink); max-width: 60ch; }
.footer { background: var(--anchor); color: var(--footer-text); padding: 2.5rem 0; }
.footer a { color: #fff; }
.partners { font-weight: 600; color: #fff; margin: 0 0 0.75rem; }
.disclaimer { font-size: 0.85rem; max-width: 80ch; margin: 0 auto; }
@media (max-width: 600px) {
  .hero h1 { font-size: 2.15rem; }
}

/* ---- three-up metric grid (forces 3 across on wide screens) ---- */
.metrics { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 800px) { .metrics { grid-template-columns: 1fr; } }

/* ---- full-width figure rows with narrative beside them ---- */
.figures-section .figure-row { display: grid; grid-template-columns: 1.4fr 1fr; gap: 2rem;
  align-items: center; margin: 2.5rem 0; }
.figures-section .figure-row.fig-right { grid-template-columns: 1fr 1.4fr; }
.figures-section .figure-row.fig-right .figure { order: 2; }
.figures-section .figure-row.fig-right .figure-text { order: 1; }
.figure { margin: 0; background: #fff; border: 1px solid #e3e8ef; border-radius: 0.75rem; padding: 1rem; }
.figure img { width: 100%; height: auto; display: block; border-radius: 0.4rem; }
.figure-caption { font-size: 1.3rem; font-weight: 700; color: var(--anchor); margin: 0 0 0.6rem; line-height: 1.25; }
.figure-narrative { font-size: 1.02rem; color: var(--ink); margin: 0; }
@media (max-width: 800px) {
  .figures-section .figure-row,
  .figures-section .figure-row.fig-right { grid-template-columns: 1fr; gap: 1rem; }
  .figures-section .figure-row.fig-right .figure { order: 0; }
  .figures-section .figure-row.fig-right .figure-text { order: 0; }
}

/* ---- action note (only shown when tool not deployed) ---- */
.action-note { margin-top: 2rem; padding: 1rem 1.25rem; background: #fff;
  border: 1px dashed var(--secondary); border-radius: 0.5rem; color: var(--ink-soft); }
.action-note code { background: var(--bg-tint); padding: 0.1rem 0.35rem; border-radius: 0.25rem; }

/* rename btn-primary usages to btn-accent (kept both for safety) */
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: var(--accent-dark); text-decoration: none; }

/* ---- the 4th call to action: separate from and below the milestone
   cards, on the white/peach boundary, with a muted outline treatment
   rather than a solid accent card, to read as a distinct, lower-key ask ---- */
.initiative { display: flex; flex-direction: column; align-items: center; gap: 0.5rem; max-width: 68ch;
  margin: 2.5rem auto 0; padding-top: 1.75rem; border-top: 1px solid var(--secondary); }
.initiative-icon { font-size: 1.75rem; line-height: 1; }
.initiative-body h3 { margin: 0 0 0.4rem; color: var(--anchor); font-size: 1.1rem; }
.initiative-body p { margin: 0 auto 1rem; color: var(--ink); }
.btn-outline { background: transparent; color: var(--accent); border-color: var(--accent); }
.btn-outline:hover { background: var(--accent); color: #fff; text-decoration: none; }

/* ---- small "join the campaign" note at the very bottom of the page ---- */
.join-breakfree { margin-top: 1.75rem; padding-top: 1.5rem; border-top: 1px solid #ffffff33; text-align: center; }
.join-breakfree h4 { margin: 0 0 0.35rem; font-size: 0.95rem; color: #fff; }
.join-breakfree p { margin: 0; font-size: 0.9rem; }
.join-breakfree a { color: #fff; text-decoration: underline; }

/* ---- language switcher (top of hero) ---- */
.lang-switch { display: flex; gap: 0.4rem; margin: 0 0 1.5rem; justify-content: center; }
.lang-link { display: inline-block; padding: 0.3rem 0.7rem; border-radius: 0.35rem;
  font-size: 0.85rem; font-weight: 700; letter-spacing: 0.03em; color: var(--bg-tint);
  border: 1px solid rgba(255, 255, 255, 0.3); }
.lang-link:hover { border-color: #fff; color: #fff; text-decoration: none; }
.lang-link.active { background: var(--accent); border-color: var(--accent); color: #fff; }
