/* ============================================================
   Base — reset, type roles, links, rules.

   Type roles carry the scale; nothing declares a raw font-size
   outside this file and sections.css.
   ============================================================ */

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  background: var(--ground);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  font-size: var(--t-14);
  line-height: 1.5;
  letter-spacing: 0.005em;
}

img,
video {
  display: block;
}

/* Figures are used as layout containers throughout; drop UA margins. */
figure {
  margin: 0;
}

/* The wordmark is one <path> in <defs>, instanced by <use> in the intro,
   the nav, the footer and the document pages. `fill` is set here rather
   than as a presentation attribute on the path: a presentation attribute
   would beat inheritance, and inheritance is exactly what carries the
   colour into the use-instance — white over the film, ink on the ground.
   Do not put fill back on the path. */
.mark svg {
  fill: currentColor;
}

/* Every figure in this build carries tabular numerals. */
.tnum {
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
}

/* ---- links: underlined text anchors, never buttons ---- */
a {
  color: inherit;
  text-decoration: none;
  cursor: pointer;
  transition: opacity 0.3s var(--ease);
}

a:hover {
  opacity: 0.55;
}

a:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
}

a[aria-disabled="true"] {
  cursor: default;
}

.lnk {
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}

/* ---- type roles — the whole scale, and only the scale ---- */
.cap {
  font-size: 11px;
  letter-spacing: 0.02em;
  color: var(--muted);
  font-weight: 400;
}

.lab {
  font-size: var(--t-12);
  letter-spacing: 0.02em;
}

.body {
  font-size: var(--t-14);
  line-height: 1.5;
  max-width: var(--measure);
}

.body p,
.col p {
  margin: 0;
}

.body p + p {
  margin-top: 12px;
}

.col {
  font-size: var(--t-12);
  line-height: 1.55;
  color: var(--secondary);
  max-width: var(--measure);
}

.sub {
  font-size: var(--t-20);
  line-height: 1.25;
  font-weight: 500;
  letter-spacing: -0.015em;
  color: var(--ink-strong);
  max-width: var(--measure-tight);
}

.h3,
.h2,
.h1 {
  font-family: "Rhymes Display", Georgia, serif;
  font-weight: 500;
  color: var(--ink-strong);
  margin: 0;
  text-wrap: balance;
}

.h3 {
  font-size: var(--t-28);
  line-height: 1.12;
  letter-spacing: -0.01em;
}

.h2 {
  font-size: clamp(32px, 2.8vw, 40px);
  line-height: 1.08;
  letter-spacing: -0.02em;
}

/* The 60px summit. Used exactly once on the page — the closing
   "See your own return." Do not add a second. */
.h1 {
  font-size: clamp(38px, 4.3vw, 60px);
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.q {
  font-family: "Rhymes Display", Georgia, serif;
  font-weight: 500;
  font-size: var(--t-20);
  line-height: 1.35;
  letter-spacing: -0.005em;
  color: var(--ink-strong);
}

.mut {
  color: var(--muted);
}

.sec {
  color: var(--secondary);
}

.sig-up {
  color: var(--good);
}

.warn {
  color: var(--signal);
}

b,
strong {
  font-weight: 500;
  color: var(--ink-strong);
}

/* ---- the two fixed relationships between type roles ----

   An eyebrow label always sits directly above the heading it belongs to,
   and a lede always sits directly below one. These are the only vertical
   relationships the type system fixes; everything else is section rhythm
   (see .stack-* in layout.css). */
.eyebrow {
  margin: 0 0 12px;
}

.lede {
  margin: 16px 0 0;
  font-weight: 400;
}

/* Small print that trails the thing it annotates. */
.attribution {
  margin: 14px 0 0;
}

/* ---- hairlines, never shadows ---- */
.hair {
  border: 0;
  border-top: 1px solid var(--hairline);
  margin: 0;
}

/* ---- available to assistive tech, absent from the design ---- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Skip link: hidden until focused, then honours the page margin. */
.skip {
  position: absolute;
  left: var(--margin);
  top: -60px;
  z-index: 80;
  background: var(--ground);
  color: var(--ink);
  padding: 10px 14px;
  border: 1px solid var(--rule);
  font-size: var(--t-12);
  letter-spacing: 0.02em;
  transition: top 0.2s var(--ease);
}

.skip:focus {
  top: var(--margin);
}
