/* sickpoliticians.org
   Rule of the system: anything quoted verbatim from the grand jury
   report is set in Courier Prime. Everything we say is set in Public Sans.
   Headlines are Big Shoulders Display.
   Palette: night-shift teal (the ward after hours), monitor green,
   emergency red, and highlighter yellow for the record. */

@font-face { font-family: "Big Shoulders Display"; src: url("fonts/big-shoulders-display.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Public Sans"; src: url("fonts/public-sans.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Public Sans"; src: url("fonts/public-sans-italic.woff2") format("woff2"); font-weight: 100 900; font-style: italic; font-display: swap; }
@font-face { font-family: "Courier Prime"; src: url("fonts/courier-prime.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Courier Prime"; src: url("fonts/courier-prime-bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --night: #0b3940;      /* night-shift teal */
  --night-line: rgba(255, 255, 255, 0.14);
  --teal: #1c7c7d;       /* scrubs */
  --mint: #e2f0ec;       /* ward wall */
  --monitor: #5ee6c8;    /* heart monitor trace */
  --paper: #ffffff;
  --ink: #0b2a2f;
  --muted: #4f6a69;
  --rule: #c9dbd6;
  --alarm: #d0281f;      /* emergency red */
  --alarm-ink: #fff1ef;
  --marker: #f5e04a;     /* highlighter */
  --on-night: #cfe5df;

  --display: "Big Shoulders Display", "Arial Narrow", Impact, sans-serif;
  --body: "Public Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --record: "Courier Prime", "Courier New", Courier, monospace;

  --wrap: 1180px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --section-y: clamp(3.5rem, 9vw, 7rem);

  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.55;
  font-kerning: normal;
  text-rendering: optimizeLegibility;
}
@media (min-width: 48em) { body { font-size: 1.125rem; } }

::selection { background: var(--marker); color: var(--ink); }

img, svg { max-width: 100%; height: auto; display: block; }

a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 2px; }

:focus-visible { outline: 3px solid var(--marker); outline-offset: 3px; }

.skip { position: absolute; left: 1rem; top: -4rem; background: var(--marker); color: var(--ink); padding: 0.6rem 1rem; z-index: 10; font-weight: 700; }
.skip:focus { top: 1rem; }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.hidden { display: none !important; }

/* ---------- Masthead (always on night teal) ---------- */

.masthead {
  background: var(--night);
  color: var(--paper);
  border-bottom: 1px solid var(--night-line);
  position: relative;
  z-index: 2;
}
.masthead .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4rem;
}
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--display);
  font-weight: 900;
  font-size: 1.5rem;
  line-height: 1;
  letter-spacing: 0.01em;
  text-decoration: none;
}
.wordmark svg { width: 1.6rem; height: auto; color: var(--monitor); flex: none; }
.nav { display: flex; gap: 1.25rem; font-size: 0.9375rem; font-weight: 600; white-space: nowrap; }
.wordmark { white-space: nowrap; }
@media (max-width: 30em) {
  .wordmark { font-size: 1.25rem; gap: 0.45rem; }
  .wordmark svg { width: 1.35rem; }
  .nav { gap: 0.85rem; font-size: 0.875rem; }
}
@media (max-width: 22.5em) {
  .wordmark svg { display: none; }
  .nav { gap: 0.7rem; font-size: 0.8125rem; }
}
.nav a { text-decoration: none; color: var(--on-night); }
.nav a:hover, .nav a[aria-current="page"] { color: var(--paper); text-decoration: underline; }

/* ---------- Buttons ---------- */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.25rem;
  padding: 0.8rem 1.4rem;
  border: 2px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
  font-family: var(--body);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 150ms, color 150ms, border-color 150ms;
}
.button:hover { background: var(--alarm); border-color: var(--alarm); text-decoration: none; }
.button-quiet { background: transparent; color: var(--ink); }
.button-quiet:hover { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.button-marker { background: var(--marker); border-color: var(--marker); color: var(--ink); }
.button-marker:hover { background: var(--paper); border-color: var(--paper); color: var(--ink); }
.button-ghost { background: transparent; border-color: currentColor; color: var(--paper); }
.button-alarm { background: var(--alarm); border-color: var(--alarm); color: var(--paper); }
.button-alarm:hover { background: var(--ink); border-color: var(--ink); }
.button-ghost:hover { background: var(--paper); border-color: var(--paper); color: var(--ink); }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  background: var(--night);
  color: var(--paper);
  padding-top: clamp(2.5rem, 7vw, 5rem);
}
.hero > .wrap { position: relative; z-index: 1; display: grid; gap: 0; }

/* Optional photo: drop a file at images/hero.jpg and it appears, tinted */
.hero-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  filter: grayscale(1) contrast(1.1);
  mix-blend-mode: luminosity;
  opacity: 0;
  transition: opacity 600ms;
}
.hero-photo.is-loaded { opacity: 0.32; }
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(11, 57, 64, 0) 40%, var(--night) 100%),
    linear-gradient(90deg, rgba(11, 57, 64, 0.55) 0%, rgba(11, 57, 64, 0) 60%);
  pointer-events: none;
}

.headline {
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(2.75rem, 13.5vw, 5rem);
  line-height: 0.9;
  letter-spacing: -0.012em;
  margin: 0 0 1.75rem;
}
.headline span { display: block; text-wrap: balance; }
@media (min-width: 48em) {
  .headline { font-size: clamp(3.25rem, 7.2vw, 6.5rem); }
}

.lede {
  font-size: clamp(1.125rem, 2vw, 1.3125rem);
  line-height: 1.5;
  max-width: 36em;
  margin: 0 0 2rem;
  color: var(--on-night);
}
.lede q { font-family: var(--record); font-size: 0.95em; color: var(--paper); quotes: "“" "”"; }

.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }

.hero .record { margin-top: 3rem; }

@media (min-width: 60em) {
  .hero > .wrap {
    grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
    column-gap: clamp(3rem, 6vw, 5rem);
    align-items: start;
  }
  .hero .headline { grid-column: 1 / -1; margin-bottom: clamp(2.5rem, 4vw, 3.5rem); }
  .hero-copy { padding-top: 0.5rem; }
  .hero .record { margin-top: 0; }
}

/* Heart monitor trace closing the hero */
.ekg {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: 84px;
  margin-top: clamp(2.5rem, 6vw, 4.5rem);
  color: var(--monitor);
}
.ekg path {
  fill: none;
  stroke: currentColor;
  stroke-width: 2.5;
  stroke-linejoin: round;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
  filter: drop-shadow(0 0 5px rgba(94, 230, 200, 0.6));
}

/* ---------- The record (document facsimile) ---------- */

.record {
  position: relative;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--record);
  font-size: 0.98rem;
  line-height: 1.6;
  padding: 2.25rem 1.75rem 1.75rem;
  box-shadow: 10px 10px 0 var(--alarm);
  margin: 0;
}
@media (min-width: 30em) { .record { padding: 2.75rem 2.25rem 2rem; } }
.record p { margin: 0 0 1rem; }
.record .record-head { font-weight: 700; margin-bottom: 2.25rem; }
.record-cite {
  font-family: var(--body);
  font-size: 0.8125rem;
  line-height: 1.4;
  color: var(--muted);
  border-top: 1px solid var(--rule);
  padding-top: 0.9rem;
  margin-top: 1.25rem;
}
.record-cite a { color: var(--ink); }

.stamp {
  position: absolute;
  top: 0.9rem;
  right: 0.9rem;
  transform: rotate(-7deg);
  border: 3px double var(--alarm);
  color: var(--alarm);
  font-family: var(--record);
  font-weight: 700;
  font-size: 0.75rem;
  line-height: 1.25;
  text-align: center;
  padding: 0.35rem 0.6rem;
  opacity: 0.88;
  pointer-events: none;
}
.stamp b { display: block; font-size: 1.05rem; letter-spacing: 0.04em; }

/* Highlighter. Visible by default; animated only when JS is present. */
.hl {
  background-image: linear-gradient(var(--marker), var(--marker));
  background-repeat: no-repeat;
  background-position: 0 70%;
  background-size: 100% 78%;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
  padding: 0 0.12em;
  margin: 0 -0.12em;
  color: var(--ink);
}
.js .hl { background-size: 0% 78%; transition: background-size 1100ms cubic-bezier(.6, .05, .3, 1); }
.js .hl.is-on { background-size: 100% 78%; }
.js .hl-late { transition-delay: 650ms; }

/* ---------- Sections ---------- */

.section { padding-top: var(--section-y); padding-bottom: var(--section-y); }
.section-mint { background: var(--mint); }
.section-title {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(2.5rem, 6vw, 4.25rem);
  line-height: 0.95;
  margin: 0 0 1.25rem;
}
.section-intro { max-width: 32em; margin: 0 0 2.5rem; }

/* Two names */
.names { display: grid; gap: 2rem; }
@media (min-width: 52em) { .names { grid-template-columns: 1fr 1fr; } }
.name {
  background: var(--paper);
  border-top: 8px solid var(--alarm);
  padding: clamp(1.5rem, 3vw, 2.25rem);
}
/* Optional portrait: drop images/moody.jpg or images/uthmeier.jpg */
.portrait {
  margin: calc(-1 * clamp(1.5rem, 3vw, 2.25rem)) calc(-1 * clamp(1.5rem, 3vw, 2.25rem)) 1.5rem;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--night);
}
.portrait:not(.is-loaded) { display: none; }
.portrait { position: relative; }
.portrait .credit { position: absolute; right: 0; bottom: 0; margin: 0; padding: 0.25rem 0.5rem; font-size: 0.6875rem; line-height: 1.3; color: #fff; background: rgba(11, 57, 64, 0.8); }
.portrait .credit a { color: inherit; }
.portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  filter: grayscale(1) contrast(1.08);
}
.name h3 {
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(3.25rem, 9vw, 5.5rem);
  line-height: 0.88;
  margin: 0 0 1.5rem;
}
.name h3 span { display: block; }
.then-now {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.35rem 1rem;
  margin: 0 0 1.5rem;
  padding: 0.9rem 1rem;
  background: var(--mint);
  font-size: 1rem;
}
.then-now dt { color: var(--muted); }
.then-now dd { margin: 0; font-weight: 700; }
.then-now .now { color: var(--alarm); }
.name blockquote {
  margin: 0 0 1rem;
  font-family: var(--record);
  font-size: 1.0625rem;
  line-height: 1.55;
  padding: 0.25rem 0 0.25rem 1.25rem;
  border-left: 4px solid var(--alarm);
}
.name > p { margin: 0 0 1rem; max-width: 34em; }
.source { font-size: 0.8125rem; color: var(--muted); margin: 0; }
.source a { color: inherit; }

/* Red band: the children */
.band {
  background: var(--alarm);
  color: var(--paper);
  padding-top: clamp(4rem, 11vw, 8rem);
  padding-bottom: clamp(4rem, 11vw, 8rem);
}
.band p { max-width: 36em; margin: 0 0 1rem; color: var(--alarm-ink); }
.band q { font-family: var(--record); font-size: 0.95em; quotes: "“" "”"; }
.band blockquote {
  margin: 0 0 2rem;
  font-family: var(--record);
  font-size: clamp(1.5rem, 4vw, 2.625rem);
  line-height: 1.5;
  max-width: 24em;
}
.band .hl { background-size: 100% 100%; background-position: 0 50%; padding: 0.05em 0.2em; margin: 0 -0.2em; }
.js .band .hl { background-size: 0% 100%; }
.js .band .hl.is-on { background-size: 100% 100%; }
.band .source { color: var(--alarm-ink); }
.band .verdict { margin-top: 0; }
.verdict {
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(3rem, 9vw, 7rem);
  line-height: 0.9;
  margin: 0 0 1.75rem;
  max-width: 12em;
}
.band .remember {
  font-size: clamp(1.25rem, 2.5vw, 1.625rem);
  font-weight: 700;
  color: var(--paper);
  margin: 0;
}

.share { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 2.5rem; }
.share .button { min-height: 2.9rem; padding: 0.6rem 1.1rem; font-size: 0.9375rem; }
.share .button-ghost:hover { color: var(--alarm); }

/* ---------- Footer ---------- */

.footer {
  background: var(--night);
  color: var(--on-night);
  padding: 3rem 0 3.5rem;
  font-size: 0.9375rem;
}
.footer .wrap { display: grid; gap: 2rem; }
@media (min-width: 52em) {
  .footer .wrap { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: start; }
}
.disclaimer {
  background: var(--paper);
  color: var(--ink);
  padding: 1rem 1.25rem;
  font-size: 0.875rem;
  line-height: 1.5;
}
.disclaimers { display: grid; gap: 0.75rem; }
.disclaimer p { margin: 0; }
.footer-meta p { margin: 0 0 0.75rem; }
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  list-style: none;
  padding: 0;
  margin: 0 0 1rem;
  font-weight: 600;
}
.footer-links a { color: var(--paper); }
.photo-credit { font-size: 0.8125rem; }
.photo-credit a { color: var(--paper); }

/* ---------- Inner page header ---------- */

.page-head {
  background: var(--night);
  color: var(--paper);
  padding-top: clamp(2.5rem, 7vw, 5rem);
  padding-bottom: clamp(2.5rem, 6vw, 4rem);
}
.page-title {
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(3.25rem, 10vw, 7rem);
  line-height: 0.88;
  margin: 0 0 1.5rem;
}
.page-head p { max-width: 36em; margin: 0 0 1.5rem; color: var(--on-night); }
.page-head p:last-child { margin-bottom: 0; }

/* ---------- Legal pages ---------- */

.legal { max-width: 44em; padding-top: clamp(2rem, 5vw, 3rem); padding-bottom: clamp(3rem, 8vw, 5rem); }
.legal h2 { font-family: var(--display); font-weight: 800; font-size: 2rem; line-height: 1.05; margin: 2.75rem 0 0.75rem; color: var(--teal); }
.legal h3 { font-size: 1.125rem; margin: 1.75rem 0 0.5rem; }
.legal p, .legal li { max-width: 40em; }
.legal ul { padding-left: 1.25rem; }
.legal li { margin-bottom: 0.4rem; }
.updated { color: var(--on-night); font-size: 0.9375rem; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .hl, .js .band .hl { transition: none; }
  .js .hl { background-size: 100% 78%; }
  .js .band .hl { background-size: 100% 100%; }
  .hero-photo, .button { transition: none; }
}

/* ---------- Faces in the hero ---------- */
.faces {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(0.5rem, 1.5vw, 1rem);
  margin: 0 0 clamp(2.5rem, 4vw, 3.5rem);
}
.face {
  position: relative;
  margin: 0;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: #072a2f;
  border-bottom: 6px solid var(--alarm);
}
.face:not(.is-loaded) { display: none; }
.face img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 32% 20%;
  filter: grayscale(1) contrast(1.15);
}
.face figcaption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 3rem clamp(0.75rem, 2vw, 1.5rem) clamp(0.75rem, 2vw, 1.25rem);
  background: linear-gradient(180deg, rgba(11, 57, 64, 0) 0%, rgba(11, 57, 64, 0.92) 70%);
  color: var(--paper);
}
.face-name {
  display: block;
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(1.5rem, 5vw, 3.25rem);
  line-height: 0.95;
}
.face-role {
  display: block;
  margin-top: 0.35rem;
  font-size: clamp(0.75rem, 1.5vw, 0.95rem);
  color: var(--on-night);
}
.face-credit {
  position: absolute;
  top: 0; right: 0;
  margin: 0;
  padding: 0.2rem 0.45rem;
  font-size: 0.625rem;
  line-height: 1.3;
  color: #fff;
  background: rgba(11, 57, 64, 0.8);
  max-width: 90%;
}
.face-credit a { color: inherit; }
.credit-long { display: none; }
.face:first-child img { object-position: 12% 20%; }
.face:last-child img { object-position: 30% 20%; }
@media (min-width: 48em) {
  .face { aspect-ratio: 16 / 10; }
  .face:first-child img, .face:last-child img { object-position: center 25%; }
  .credit-long { display: inline; }
  .credit-short { display: none; }
}
.hero .headline { margin-bottom: clamp(1.75rem, 3vw, 2.5rem); }
