/* =============================================================
   Typography — JSHW

   Headings, body copy and the hero lockup. Element-level type only;
   type inside a specific component lives with that component.

   Structure only. Every value is a token from tokens.css — no
   hard-coded hex, spacing or type values in here (see CLAUDE.md).

   Load order: 4th, after layout.css. See the stylesheet block in
   _includes/layouts/base.njk for the full order and why it matters.
   ============================================================= */

.hero {
  max-width: var(--measure);
}

.hero__eyebrow {
  color: var(--color-text-muted);
  font-size: var(--text-sm);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 0 0 var(--space-2xs);
}

h1 {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: var(--weight-bold);
  line-height: var(--leading-tight);
  margin: 0 0 var(--space-m);
}

/* h2's weight was relying on the browser's default bold (700) rather
   than any token — happened to look plausible, but didn't match the
   real extracted value (500, see tokens.css) and would silently drift
   from --weight-medium if that token ever changed. Made explicit
   27 Aug 2026, found while verifying TOK-5's font loading.

   `.site-footer h2` in layout.css overrides this for footer headings
   at (0,1,1) — higher specificity, so it wins regardless of load order. */
h2 {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: var(--weight-medium);
  line-height: var(--leading-tight);
}

p {
  max-width: var(--measure);
}

/* --- Report type (/insights/ articles) -----------------------------
   Distinct from .hero__eyebrow above on purpose: that one sits on
   --color-bg (light), this one sits on --color-brand-strong (dark, the
   masthead band) — different colour, same idea. */
.report-eyebrow {
  font-family: var(--font-display);
  font-size: var(--text-xs);
  font-weight: var(--weight-medium);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-brand);
  margin: 0 0 var(--space-s);
}

.report-masthead h1 {
  font-size: var(--text-3xl);
  max-width: var(--measure);
}

.report-standfirst {
  font-size: var(--text-lg);
  line-height: var(--leading-body);
  color: var(--color-text-inverse);
  opacity: 0.85;
  max-width: var(--measure);
}

.report-continues {
  font-size: var(--text-sm);
  border-left: 3px solid var(--color-brand);
  padding-left: var(--space-s);
  margin: var(--space-m) 0 0;
  max-width: var(--measure);
  opacity: 0.85;
}

.report-dateline {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2xs) var(--space-m);
  font-size: var(--text-xs);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0.7;
  border-top: 1px solid rgb(245 245 245 / 25%);
  padding-top: var(--space-s);
  margin-top: var(--space-l);
}

/* Report body sections read wider than a brochure page's prose column —
   they carry tables and stat grids, not just paragraphs. */
.report-body h2 {
  max-width: var(--measure);
}
