/* ─────────────────────────────────────────
   VOICES OF COURAGE — typography

   Loaded last, on every page, after fonts.css (the @font-face rules written
   by tools/subset_fonts.py). style.css and home.css name their fonts only
   through the --font-* variables, so redefining those here re-sets the whole
   site without touching either file.

   Three families, each with one job:
     Newsreader     headings, long reading, quotations
     Archivo        the interface: navigation, buttons, labels, forms, notes
     IBM Plex Mono  dates and day counts

   Two weights, 400 and 600. style.css still asks for 500, 700 and 800 in
   places; the browser resolves 500 to the 400 face and anything heavier to
   the 600 face, and `font-synthesis: none` stops it from faking a bolder or
   slanted cut that was never drawn.

   A rule here only takes effect where style.css or home.css has no more
   specific rule for the same property; where one of them must be beaten, the
   selector below repeats theirs and wins by coming later.
───────────────────────────────────────── */

:root {
  --font-heading: 'Newsreader', 'Newsreader fb', Georgia, 'Times New Roman', serif;
  --font-text: var(--font-heading);
  --font-accent: var(--font-heading);
  --font-body: 'Archivo', 'Archivo fb', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-mono: 'IBM Plex Mono', 'IBM Plex Mono fb', ui-monospace, Menlo, monospace;

  --type-read: 1.0625rem;      /* 17px — reading text */
  --type-read-small: 1rem;     /* 16px — reading text inside a card */
  --type-leading: 1.6;
  --type-leading-small: 1.55;
}

body {
  font-synthesis: none;
}

h1, h2, h3, h4, h5, h6, strong, b, th {
  font-weight: 600;
}

/* ── headings ──────────────────────────────────────────────────────────── */

/* Newsreader is drawn tighter than the face it replaces, so the page titles
   give back some of the negative tracking style.css set for it. */
.section-header h1,
.section-header h2 {
  letter-spacing: -0.012em;
}

.home-v2 .lede-title {
  letter-spacing: -0.02em;
  line-height: 1.08;
}

/* The wordmark is capitals; capitals want air, not tightening. */
.logo {
  letter-spacing: 0.035em;
}

/* ── long reading: the serif ───────────────────────────────────────────── */

/* Family and size apply to all of these. A few keep the leading their own
   section gives them (the home page blocks, the two accordions on the
   crackdown page); the value here covers the rest. */
.section-desc,
.lede-sub,
.why-text p,
.nine-intro p,
.closing-about p,
.modal-body p,
.modal-body li,
.accordion-body p,
.accordion-body li,
.legal-verdict p,
.signup-lead,
.send-letter-desc,
.vid-desc,
.hv-head p,
.nf p {
  font-family: var(--font-text);
  font-size: var(--type-read);
  line-height: var(--type-leading);
}

.card-bio,
.update-body p,
.share-message-text,
.act-card p,
.closing-item-desc,
.template-textarea {
  font-family: var(--font-text);
  font-size: var(--type-read-small);
  line-height: var(--type-leading-small);
}

/* The news cards size their summaries through #news-grid (14px, 14.7px for
   the lead, 12.8px for older items). The serif is smaller on the body than
   the sans it replaces, so each step moves up; the three selectors repeat
   style.css's own so that these win. */
#news-grid .update-body > p {
  font-size: var(--type-read-small);
  line-height: var(--type-leading-small);
}

#news-grid .news-lead .update-body > p { font-size: var(--type-read); }

#news-grid .news-archive .update-body > p { font-size: 0.9375rem; }

/* style.css hyphenates these automatically, which in a column this wide only
   produces breaks like "de-cision" where the line could simply have ended. */
.modal-body p,
.letter-text,
.card-body p {
  hyphens: manual;
}

/* ── italics ───────────────────────────────────────────────────────────── */

/* Archivo ships without an italic, and a slanted roman is not one. Text that
   is italic for emphasis or attribution takes the serif, which has a real
   italic. */
em,
i,
cite,
.question-attr {
  font-family: var(--font-accent);
}

.question-attr { font-size: 0.9375rem; }

/* Two small notes used to be slanted Inter. At 12px an upright Archivo is
   easier to read than a serif italic of the same size, so they stand upright. */
.condition-source,
.footer-disclaimer p {
  font-style: normal;
}

/* ── dates and counts: the mono ────────────────────────────────────────── */

/* Only where the text is a date or a count and nothing else: a line such as
   "October 28, 2026 · Letter from detention" is prose and stays in Archivo. */
.tl-row-date,
.update-date,
.stmt-date,
.latest-date,
.tl-days,
.nine-meta [data-nine-days],
.home-v2 .lede-hearing-when {
  font-family: var(--font-mono);
  font-weight: 400;
  letter-spacing: 0;
}

/* Every mono character is the same width, so "Oct 28, 2026" is wider than it
   was: the date column of the chronology grows to hold it. Below 681px
   style.css hides that column and prints the date above the entry instead. */
@media (min-width: 681px) {
  .tl-row { grid-template-columns: 4px 124px 1fr; }
}

@media (max-width: 680px) {
  .tl-row-content::before {
    font-family: var(--font-mono);
    font-weight: 400;
  }
}

/* ── figures ───────────────────────────────────────────────────────────── */

/* Counts line up in columns. */
.dash-stat-num,
.prison-stat-num,
.stat-num,
.q-num,
.sticky-cta-counter {
  font-variant-numeric: tabular-nums;
}
