/* ---------------------------------------------------------------------------
   Blown Away — stylesheet
   Editorial / public-health-report aesthetic. Cream paper, near-black ink,
   single steel-blue accent, muted-gold highlight, restrained throughout.
   No third-party fonts.
--------------------------------------------------------------------------- */

:root {
  --paper:          #f6f4ee;
  --paper-soft:     #efece2;
  --paper-edge:     #e6e1d2;
  --ink:            #15171a;
  --ink-soft:       #3a3d44;
  --ink-mute:       #6b6e76;
  --rule:           #d7d3c7;
  --rule-soft:      #e3dfd3;

  --accent:         #2b4a6f;        /* steel-blue, link & callout border    */
  --accent-soft:    #5a7aa1;
  --highlight:      #b59947;        /* muted gold — stat figures, cluster   */
  --highlight-soft: #e6dab8;

  --serif: Charter, "Iowan Old Style", "Source Serif Pro", Georgia, "Times New Roman", serif;
  --sans:  -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu,
           Cantarell, "Helvetica Neue", Arial, sans-serif;
  --mono:  ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;

  --maxw:      78ch;
  --maxw-wide: 1100px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 17px/1.6 var(--serif);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* --- Base typography ----------------------------------------------------- */

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 600;
  color: var(--ink);
  margin: 1.6em 0 0.5em;
  line-height: 1.2;
  letter-spacing: -0.005em;
}
h1 { font-size: 2.0rem;  margin-top: 0; }
h2 { font-size: 1.35rem; }
h3 { font-size: 1.10rem; }
h4 {
  font-size: 1.0rem;
  font-family: var(--sans);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-mute);
}

p, ul, ol, blockquote, figure, table { margin: 0 0 1em; }

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

strong { font-weight: 700; }
em     { font-style: italic; }

hr { border: 0; border-top: 1px solid var(--rule); margin: 2em 0; }

small, .meta {
  font-family: var(--sans);
  font-size: 0.82rem;
  color: var(--ink-mute);
  letter-spacing: 0.01em;
}

code, kbd {
  font-family: var(--mono);
  font-size: 0.92em;
  background: var(--paper-soft);
  padding: 0 0.25em;
  border-radius: 2px;
}

blockquote {
  border-left: 3px solid var(--rule);
  padding-left: 1em;
  color: var(--ink-soft);
}
blockquote cite {
  display: block;
  margin-top: 0.5rem;
  font-style: normal;
  font-family: var(--sans);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-mute);
}

/* --- Layout primitives --------------------------------------------------- */

.skip { position: absolute; left: -9999px; top: 0; }
.skip:focus {
  left: 1rem; top: 1rem;
  background: var(--ink); color: var(--paper);
  padding: 0.5em 0.75em; z-index: 100;
}

.wrap     { width: 100%; max-width: var(--maxw-wide); margin: 0 auto; padding: 0 1.25rem; }
main      { padding: 2.5rem 0 4rem; }
.prose    { max-width: var(--maxw); }
.prose p, .prose li { font-size: 1.0625rem; }

.lede {
  font-size: 1.18rem;
  line-height: 1.55;
  color: var(--ink-soft);
  margin: 0.5em 0 1.5em;
  max-width: var(--maxw);
}

.section { padding: 2rem 0; border-top: 1px solid var(--rule-soft); }
.section:first-of-type { border-top: 0; }
.section__head {
  display: flex; align-items: baseline; justify-content: space-between;
  flex-wrap: wrap; gap: 0.5rem 1rem; margin-bottom: 0.5rem;
}
.section__head h2 { margin: 0; font-size: 1.45rem; }
.section__head a  { font-family: var(--sans); font-size: 0.85rem; }

/* --- Site header --------------------------------------------------------- */

.site-header {
  background: var(--paper);
  border-bottom: 1px solid var(--rule);
}
.site-header__inner {
  display: flex; flex-wrap: wrap; align-items: baseline;
  gap: 1rem 2rem;
  padding-top: 1.1rem; padding-bottom: 1rem;
}

.site-mark {
  display: inline-flex; align-items: baseline; gap: 0.6rem;
  text-decoration: none; color: var(--ink);
}
.site-mark__name {
  font-family: var(--serif); font-weight: 600; font-size: 1.4rem;
  letter-spacing: -0.01em;
}
.site-mark__rule {
  display: inline-block;
  width: 2rem; height: 1px; background: var(--ink);
  margin: 0 0.1rem 0.25rem;
}
.site-mark__sub {
  font-family: var(--sans); font-size: 0.8rem;
  text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--ink-mute);
}

.site-nav { margin-left: auto; }
.site-nav ul {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-wrap: wrap; gap: 0.2rem 1.1rem;
}
.site-nav li a {
  font-family: var(--sans); font-size: 0.9rem;
  color: var(--ink-soft); text-decoration: none;
  padding: 0.25rem 0;
  border-bottom: 1px solid transparent;
}
.site-nav li a:hover               { color: var(--ink); border-bottom-color: var(--rule); }
.site-nav li a[aria-current="page"]{ color: var(--ink); border-bottom-color: var(--ink); }

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

.site-footer {
  background: var(--paper-soft);
  border-top: 1px solid var(--rule);
  margin-top: 3rem;
  padding: 2.5rem 0 3rem;
}
.site-footer__inner {
  display: grid; gap: 1.5rem; grid-template-columns: 1fr;
}
@media (min-width: 720px) {
  .site-footer__inner { grid-template-columns: 1.4fr 1fr; align-items: start; }
}
.site-footer__about p   { margin: 0 0 0.4rem; }
.site-footer__name      { font-weight: 600; }
.site-footer__tag       { color: var(--ink-mute); }
.site-footer__nav ul    { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 0.4rem 1.4rem; }
.site-footer__nav a     { font-family: var(--sans); font-size: 0.88rem; color: var(--ink-soft); text-decoration: none; }
.site-footer__nav a:hover { color: var(--ink); text-decoration: underline; }
.site-footer__legal {
  font-family: var(--sans); font-size: 0.78rem; color: var(--ink-mute);
  grid-column: 1 / -1;
  margin-top: 1rem; padding-top: 1rem;
  border-top: 1px solid var(--rule-soft);
}

/* --- Home: hero + thesis ------------------------------------------------- */

.hero          { padding: 1rem 0 1.5rem; }
.hero h1 {
  font-size: 2.4rem; line-height: 1.1; letter-spacing: -0.012em;
  margin: 0; max-width: 28ch; font-weight: 600;
}
.hero p.lede   { margin-top: 1rem; max-width: 60ch; }
.hero__eyebrow {
  font-family: var(--sans); font-size: 0.78rem;
  text-transform: uppercase; letter-spacing: 0.16em;
  color: var(--ink-mute); margin: 0 0 0.6rem;
}
.hero__title {
  font-size: 2.4rem; line-height: 1.1; letter-spacing: -0.012em;
  margin: 0; max-width: 28ch;
}
.hero__lede {
  font-size: 1.2rem; line-height: 1.55; color: var(--ink-soft);
  margin: 1rem 0 0; max-width: 60ch;
}

.thesis {
  display: grid; gap: 2.5rem; grid-template-columns: 1fr;
  margin: 2.5rem 0 1rem; padding: 1.75rem 0;
  border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule);
}
@media (min-width: 860px) { .thesis { grid-template-columns: 1.1fr 1fr; } }
.thesis h2 { margin-top: 0; }
.thesis p  { color: var(--ink-soft); }
.thesis__caveat {
  background: var(--paper-soft);
  border-left: 3px solid var(--accent);
  padding: 0.9rem 1rem;
  font-size: 0.96rem;
}

/* --- Stat row (the WHO numbers) ----------------------------------------- */

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr));
  gap: 1.25rem 1.5rem;
  margin: 1.5rem 0 2rem;
  padding: 1.5rem 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.stat .num {
  font-family: var(--serif); font-weight: 700;
  font-size: 1.85rem; line-height: 1.05;
  color: var(--highlight);
  letter-spacing: -0.01em;
}
.stat .label {
  font-family: var(--sans); font-size: 0.82rem;
  color: var(--ink-soft);
  margin-top: 0.35rem; line-height: 1.4;
}

/* --- Cards / lists ------------------------------------------------------- */

.card-grid                       { display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 640px)        { .card-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 960px)        { .card-grid--3 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 960px)        { .card-grid--4 { grid-template-columns: repeat(4, 1fr); } }

.card {
  display: block;
  background: var(--paper);
  border: 1px solid var(--rule);
  padding: 1.1rem 1.15rem;
  border-radius: 2px;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s ease;
}
.card:hover   { border-color: var(--accent-soft); }
.card h3      { margin: 0 0 0.3rem; font-size: 1.05rem; }
.card .meta   { display: block; margin-bottom: 0.4rem; }
.card p       { margin: 0; color: var(--ink-soft); font-size: 0.96rem; }

/* Backwards-compat aliases for the .grid / .grid-* classes used on early pages. */
.grid       { display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .grid-2 { grid-template-columns: 1fr 1fr; }
                            .grid-3 { grid-template-columns: 1fr 1fr; } }
@media (min-width: 960px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }

/* --- Callout / fact-box (uses thesis__caveat visual) -------------------- */

.callout, .factbox {
  background: var(--paper-soft);
  border-left: 3px solid var(--accent);
  padding: 1rem 1.2rem;
  margin: 1.5rem 0;
  font-size: 0.96rem;
}
.callout h4, .factbox h4 {
  margin: 0 0 0.5rem;
  font-family: var(--sans); font-size: 0.78rem;
  text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--accent);
}
.callout dl, .factbox dl { margin: 0; }
.callout dt, .factbox dt {
  font-family: var(--sans); font-size: 0.74rem;
  text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--ink-mute);
  margin-top: 0.6rem;
}
.callout dt:first-of-type, .factbox dt:first-of-type { margin-top: 0; }
.callout dd, .factbox dd { margin: 0.15rem 0 0; }

/* "caution" callout — same family, same accent (no rust orange in this palette). */
.caution { background: var(--paper-soft); border-left: 3px solid var(--accent);
           padding: 1rem 1.2rem; margin: 1.5rem 0; font-size: 0.96rem; }
.caution h4 { margin: 0 0 0.4rem; font-family: var(--sans);
              font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.08em;
              color: var(--accent); }

/* --- Pull quote --------------------------------------------------------- */

.pullquote {
  font-family: var(--serif); font-size: 1.35rem; line-height: 1.35;
  color: var(--ink); font-style: italic;
  border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule);
  padding: 1.4rem 0; margin: 2rem 0;
  max-width: var(--maxw);
}

/* --- Tables ------------------------------------------------------------- */

table {
  width: 100%; border-collapse: collapse;
  font-size: 0.95rem; font-family: var(--serif);
  margin: 1.25rem 0;
}
thead th {
  text-align: left;
  font-family: var(--sans); font-size: 0.78rem;
  text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--ink-mute);
  border-bottom: 1px solid var(--rule);
  background: var(--paper-soft);
  padding: 0.55rem 0.7rem;
}
tbody td {
  border-bottom: 1px solid var(--rule-soft);
  padding: 0.55rem 0.7rem;
  vertical-align: top;
}
tbody tr:hover { background: var(--paper-soft); }

/* --- Breadcrumb --------------------------------------------------------- */

.crumbs, .breadcrumb {
  font-family: var(--sans); font-size: 0.82rem;
  color: var(--ink-mute); margin: 0 0 1rem;
}
.crumbs a, .breadcrumb a {
  color: var(--ink-soft); text-decoration: none;
  border-bottom: 1px solid var(--rule);
}
.crumbs a:hover, .breadcrumb a:hover { border-bottom-color: var(--accent); }
.crumbs .sep, .breadcrumb .sep { margin: 0 0.4em; color: var(--rule); }

/* --- Definition lists --------------------------------------------------- */

.glossary-dl dt {
  font-weight: 600; margin-top: 1.4rem;
  padding-top: 0.7rem; border-top: 1px solid var(--rule-soft);
}
.glossary-dl dt:first-of-type { border-top: 0; padding-top: 0; margin-top: 0; }
.glossary-dl dd { margin: 0.3rem 0 0; color: var(--ink-soft); }

/* --- Utilities ---------------------------------------------------------- */

.eyebrow {
  font-family: var(--sans); font-size: 0.78rem;
  text-transform: uppercase; letter-spacing: 0.16em;
  color: var(--ink-mute);
}
.muted { color: var(--ink-mute); }
.center { text-align: center; }
.section-intro { font-size: 1.08rem; color: var(--ink-soft); max-width: var(--maxw); }

.colophon-note {
  margin-top: 2.5rem; padding-top: 1rem;
  border-top: 1px solid var(--rule-soft);
  font-family: var(--sans); font-size: 0.85rem;
  color: var(--ink-mute);
}
.colophon-note a { color: var(--ink-soft); text-decoration: none; border-bottom: 1px solid var(--rule); }
.colophon-note a:hover { border-bottom-color: var(--accent); }

/* --- CTA banner ---------------------------------------------------------
   Quieter than the previous dark-on-dark version — paper-soft band, accent
   left rule, prose unchanged. Reads as a closing aside, not a button. */

.cta-banner {
  background: var(--paper-soft);
  border-left: 3px solid var(--accent);
  padding: 1.5rem 1.6rem;
  margin: 3rem 0 0;
  max-width: var(--maxw);
}
.cta-banner h2 {
  margin: 0 0 0.5rem; font-size: 1.2rem; color: var(--ink);
  border: 0; padding: 0;
}
.cta-banner p { margin: 0 0 0.5rem; color: var(--ink-soft); }

/* --- Responsive tweaks -------------------------------------------------- */

@media (max-width: 540px) {
  .hero__title { font-size: 1.85rem; }
  .site-mark__sub { display: none; }
  body { font-size: 16px; }
}

/* --- Print --------------------------------------------------------------- */

@media print {
  .site-nav, .site-footer__nav, .cta-banner { display: none; }
  body { background: #fff; color: #000; }
  a { color: #000; text-decoration: underline; }
  main { padding: 0; }
}
