/* ============================================================
   BLUE BY 2032 — design tokens · "Newsprint Signal"
   Ink on near-white · heavy black rules · one signal blue
   IBM Plex Serif (display + body) · IBM Plex Sans (utility)
   ============================================================ */
:root {
  --ink: #141414;
  --ink-soft: #1c1c1c;
  --paper: #fbfbf8;
  --accent: #1d4ed8;
  --muted: #565656;
  --rule: #141414;
  --rule-soft: #d8d6cf;

  --serif: "IBM Plex Serif", Georgia, serif;
  --display: "IBM Plex Serif", Georgia, serif;
  --sans: "IBM Plex Sans", -apple-system, Helvetica, Arial, sans-serif;

  --measure: 42rem;
  --gutter: clamp(1.25rem, 5vw, 2.5rem);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  font-family: var(--serif);
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--ink-soft);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--ink); text-decoration-color: var(--accent); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
a:hover { color: var(--accent); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

/* ---------- progress bar ---------- */
#progress {
  position: fixed; top: 0; left: 0; z-index: 60;
  height: 3px; width: 0;
  background: var(--accent);
}

/* ---------- sticky header (light, ruled) ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--paper);
  color: var(--ink);
  border-bottom: 3px solid var(--ink);
}
.site-header .bar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem;
  padding: 0.7rem var(--gutter);
  max-width: 72rem; margin: 0 auto;
}
.site-header .brand {
  font-family: var(--sans); font-weight: 700; font-size: 0.95rem;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink); text-decoration: none;
}
.site-header .brand span { color: var(--accent); }
.header-actions { display: flex; align-items: center; gap: 0.75rem; }

.btn {
  font-family: var(--sans); font-weight: 700; font-size: 0.9rem;
  letter-spacing: 0.04em;
  display: inline-block;
  padding: 0.6rem 1.15rem;
  border: 1.5px solid var(--ink);
  border-radius: 0;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.btn-accent { background: var(--accent); color: #fff; border-color: var(--accent); }
.btn-accent:hover { background: #1740b0; border-color: #1740b0; color: #fff; }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--paper); }

#nav-toggle {
  font-family: var(--sans); font-size: 0.9rem; font-weight: 700;
  background: none; border: 1.5px solid var(--ink);
  border-radius: 0; color: var(--ink); padding: 0.55rem 0.9rem; cursor: pointer;
  display: inline-flex; align-items: center; gap: 0.5em;
}
#nav-toggle:hover { background: var(--ink); color: var(--paper); }
#nav-toggle .bars { display: inline-flex; flex-direction: column; gap: 4px; }
#nav-toggle .bars span { display: block; width: 16px; height: 2px; background: currentColor; }

/* mobile header: icon-only hamburger, CTA lives in the drawer/masthead */
@media (max-width: 640px) {
  .nav-toggle-label { display: none; }
  .site-header .header-actions .btn-accent { display: none; }
  .site-nav ol, .site-nav ul { columns: 1; }
}

.site-nav {
  display: none;
  background: var(--ink);
}
.site-nav.open { display: block; }
.site-nav ol, .site-nav ul {
  list-style: none;
  max-width: 72rem; margin: 0 auto;
  padding: 1rem var(--gutter) 1.4rem;
  columns: 2; column-gap: 2rem;
}
.site-nav a {
  font-family: var(--sans); font-size: 0.9rem;
  color: #eceae3; text-decoration: none;
  display: block; padding: 0.4rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.site-nav a:hover { color: #fff; text-decoration: underline; text-decoration-color: var(--accent); }
.site-nav .nav-num { color: var(--accent); font-variant-numeric: tabular-nums; margin-right: 0.5em; font-weight: 700; }

/* ---------- masthead: front page, not a cover ---------- */
.masthead {
  background: var(--paper);
  color: var(--ink);
  padding: clamp(3.5rem, 9vw, 6rem) var(--gutter) clamp(3rem, 7vw, 5rem);
  border-bottom: 3px solid var(--ink);
}
.masthead .inner { max-width: 56rem; margin: 0 auto; }
.masthead .kicker {
  font-family: var(--sans); font-size: 0.8rem; font-weight: 700;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--accent);
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--ink);
  margin-bottom: 2rem;
}
.masthead .wordmark { max-width: 100%; height: auto; display: block; }
.masthead .subtitle {
  font-family: var(--serif); font-size: clamp(1.15rem, 2.5vw, 1.4rem);
  font-style: italic; color: var(--muted);
  margin-top: 1.75rem; max-width: 36em;
}
.masthead .byline {
  font-family: var(--sans); font-size: 0.95rem; color: var(--muted);
  margin-top: 2.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--ink);
  display: flex; flex-wrap: wrap; gap: 0.5rem 2rem;
}
.masthead .byline strong { color: var(--ink); font-weight: 600; }
.masthead .cta-row { margin-top: 2.5rem; display: flex; flex-wrap: wrap; gap: 0.85rem; }

/* ---------- article body ---------- */
.report { padding: 0 var(--gutter); }
.report section { max-width: var(--measure); margin: 0 auto; padding: clamp(3rem, 7vw, 4.5rem) 0; }
.report section + section { border-top: 1px solid var(--ink); }

.part-label {
  font-family: var(--sans); font-size: 0.8rem; font-weight: 700;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--accent);
  display: block; margin-bottom: 0.75rem;
}
h1, h2, h3 { font-family: var(--display); color: var(--ink); line-height: 1.15; }
h2 { font-size: clamp(1.7rem, 4vw, 2.3rem); font-weight: 600; margin-bottom: 1.5rem; letter-spacing: -0.01em; }
h3 { font-size: 1.25rem; font-weight: 600; margin: 2.25rem 0 0.85rem; }
.report p { margin-bottom: 1.25rem; }
.report p:last-child { margin-bottom: 0; }

.subsection-num { color: var(--accent); font-family: var(--sans); font-size: 0.95rem; font-weight: 700; margin-right: 0.4em; }

/* pull quote — bold sans, built to be screenshotted */
.pull-quote {
  border-left: 3px solid var(--accent);
  padding: 0.4rem 0 0.4rem 1.5rem;
  margin: 2.25rem 0;
}
.pull-quote p {
  font-family: var(--sans); font-size: clamp(1.25rem, 3vw, 1.5rem);
  font-weight: 600; line-height: 1.35; color: var(--ink);
  margin: 0;
}

/* takeaway box */
.takeaway {
  font-family: var(--sans);
  background: #fff;
  border: 1.5px solid var(--ink);
  padding: 1.4rem 1.5rem;
  margin: 2.25rem 0;
  font-size: 0.98rem; line-height: 1.6;
}
.takeaway .takeaway-label {
  display: block; font-size: 0.75rem; font-weight: 700;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--accent);
  margin-bottom: 0.6rem;
}

/* placeholder styling so unset content is unmissable */
.placeholder { color: var(--muted); }
.placeholder::before { content: "✎ "; color: var(--accent); }

/* toast notifications (form confirmation / error) */
.toast-stack {
  position: fixed; bottom: 1.25rem; left: 50%; transform: translateX(-50%);
  z-index: 80;
  width: min(26rem, calc(100vw - 2rem));
  display: flex; flex-direction: column; gap: 0.5rem;
}
.toast {
  font-family: var(--sans); font-size: 0.9rem; font-weight: 600; line-height: 1.4;
  background: var(--ink); color: var(--paper);
  padding: 0.85rem 1.1rem;
  opacity: 0; transform: translateY(0.5rem);
  transition: opacity 0.25s, transform 0.25s;
}
.toast.show { opacity: 1; transform: none; }
.toast-error { background: var(--paper); color: var(--ink); border: 1.5px solid var(--ink); }

/* pre-launch preview banner on index-report.html — remove at launch */
.preview-note {
  font-family: var(--sans); font-size: 0.85rem; font-weight: 600;
  color: var(--muted);
  background: var(--paper);
  border-bottom: 1px solid var(--rule-soft);
  padding: 0.6rem var(--gutter);
  text-align: center;
}
.preview-note .placeholder { font-weight: 600; }

/* slim per-part CTA */
.part-cta {
  margin-top: 2.5rem;
  font-family: var(--sans); font-size: 0.9rem; font-weight: 700;
}
.part-cta a { color: var(--accent); text-decoration-color: var(--accent); }
.part-cta a:hover { color: var(--ink); }

/* full CTA band — ink black, the page's heavy rule writ large */
.cta-band {
  background: var(--ink);
  color: #fff;
  margin: 0; padding: clamp(2.5rem, 6vw, 3.5rem) var(--gutter);
}
.cta-band .inner { max-width: var(--measure); margin: 0 auto; text-align: left; }
.cta-band h2, .cta-band p { color: #fff; }
.cta-band h2 { font-size: clamp(1.4rem, 3vw, 1.8rem); margin-bottom: 0.75rem; }
.cta-band p { font-size: 1.05rem; color: #c9c7c0; margin-bottom: 1.5rem; }
.cta-band .btn-ghost { color: #fff; border-color: #fff; }
.cta-band .btn-ghost:hover { background: #fff; color: var(--ink); }

/* epigraph */
.epigraph { font-style: italic; color: var(--muted); margin: 0 0 2rem; }
.epigraph cite { display: block; font-style: normal; font-family: var(--sans); font-size: 0.85rem; margin-top: 0.5rem; }

/* praise blurbs */
.blurbs { display: grid; gap: 1.25rem; margin-top: 1.5rem; }
.blurb {
  background: #fff; border: 1px solid var(--ink);
  padding: 1.25rem 1.4rem; font-size: 1rem;
}
.blurb cite { display: block; font-family: var(--sans); font-style: normal; font-size: 0.85rem; color: var(--muted); margin-top: 0.75rem; }

/* ---------- utility pages ---------- */
.utility-main {
  max-width: 34rem; margin: 0 auto;
  padding: clamp(3rem, 8vw, 5rem) var(--gutter);
}
.utility-main h1 { font-size: clamp(1.9rem, 5vw, 2.5rem); font-weight: 600; margin-bottom: 1rem; }
.utility-main .lede { font-size: 1.15rem; color: var(--muted); margin-bottom: 2rem; }

form .field { margin-bottom: 1.25rem; }
form label {
  font-family: var(--sans); font-size: 0.85rem; font-weight: 700;
  letter-spacing: 0.03em; display: block; margin-bottom: 0.4rem;
}
form label .opt { font-weight: 400; color: var(--muted); }
input, select, textarea {
  font-family: var(--sans); font-size: 1rem;
  width: 100%;
  padding: 0.7rem 0.85rem;
  border: 1.5px solid var(--ink);
  border-radius: 0;
  background: #fff; color: var(--ink);
}
input:focus, select:focus, textarea:focus { border-color: var(--accent); outline: none; box-shadow: 0 0 0 3px rgba(29, 78, 216, 0.18); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 540px) { .field-row { grid-template-columns: 1fr; } }
form .btn { width: 100%; padding: 0.85rem; font-size: 1rem; margin-top: 0.5rem; }
.form-note { font-family: var(--sans); font-size: 0.82rem; color: var(--muted); margin-top: 1rem; }

/* press kit */
.press-list { list-style: none; margin-top: 1.5rem; }
.press-list li { border-top: 1px solid var(--ink); padding: 1.1rem 0; }
.press-list li:last-child { border-bottom: 1px solid var(--ink); }
.press-list .item-name { font-family: var(--sans); font-weight: 700; }
.press-list .item-desc { font-size: 0.95rem; color: var(--muted); }

/* thanks page next actions */
.next-actions { display: grid; gap: 1rem; margin-top: 2rem; }
.next-actions .action-card {
  display: block; background: #fff; border: 1.5px solid var(--ink);
  border-left: 4px solid var(--accent);
  padding: 1.25rem 1.4rem; text-decoration: none;
}
.next-actions .action-card:hover { background: var(--paper); border-left-color: var(--ink); }
.next-actions .action-title { font-family: var(--sans); font-weight: 700; color: var(--accent); display: block; }
.next-actions .action-desc { font-size: 0.95rem; color: var(--muted); }

/* ---------- footer ---------- */
.site-footer {
  background: var(--ink); color: #c9c7c0;
  padding: 3rem var(--gutter);
  font-family: var(--sans); font-size: 0.9rem;
}
.site-footer .inner { max-width: 72rem; margin: 0 auto; }
.site-footer .footer-cta { margin-bottom: 2rem; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 1.5rem; margin-bottom: 1.5rem; }
.site-footer a { color: #eceae3; }
.site-footer a:hover { color: #fff; }
.site-footer .legal { font-size: 0.8rem; border-top: 1px solid rgba(255,255,255,0.18); padding-top: 1.25rem; }
