/* Reset, document defaults, typography primitives. */
*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: var(--text-base);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 { margin: 0; font-weight: 600; letter-spacing: -0.011em; line-height: 1.25; }
p { margin: 0 0 var(--s-4); }
p:last-child { margin-bottom: 0; }

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 2px; }

:focus-visible { outline: var(--focus); outline-offset: 2px; border-radius: var(--radius-sm); }

[hidden] { display: none !important; }

hr { border: 0; border-top: 1px solid var(--line); margin: var(--s-6) 0; }

code { font-family: var(--font-mono); font-size: 0.92em; background: var(--surface-2); border: 1px solid var(--line-2); padding: 1px 5px; border-radius: var(--radius-sm); }

/* Fixed-width numerals so columns of figures align and digits cannot be misread. */
.num { font-family: var(--font-mono); font-variant-numeric: tabular-nums; font-feature-settings: "tnum" 1; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0;
}

.prose { max-width: var(--prose-max); color: var(--ink-2); font-size: var(--text-md); line-height: 1.7; }
.prose strong, .prose b { color: var(--ink); font-weight: 600; }

.lede { font-size: var(--text-lg); line-height: 1.6; color: var(--ink-2); max-width: 60ch; }
/* For a single short sentence, the 60ch measure forces a needless wrap. */
.lede--wide { max-width: none; }

.muted { color: var(--muted); }
.small { font-size: var(--text-sm); }

.visually-hidden {
  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 {
  position: absolute; left: var(--s-3); top: -60px; z-index: 100;
  background: var(--ink); color: #fff; padding: var(--s-2) var(--s-4);
  border-radius: var(--radius); font-weight: 600; font-size: var(--text-sm);
  transition: top 120ms ease;
}
.skip-link:focus { top: var(--s-3); text-decoration: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
