/* Base: reset, type and layout helpers. Tokens are in tokens.css. */

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  margin: 0;
  background: var(--parchment-50);
  color: var(--ink);
  font-family: var(--sans);
  font-size: var(--fs-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1, h2, h3, h4, p, figure, dl, dd, ul, ol, fieldset { margin: 0; }
ul, ol { padding: 0; }
fieldset { border: 0; padding: 0; min-width: 0; }
legend { padding: 0; }
h1, h2, h3, h4 { text-wrap: balance; }
p, li, dd { text-wrap: pretty; }
a { color: inherit; }
/* Every underlined text link answers the pointer the same way: its underline
   goes wavy. Links underlined on an inner span (the header menus) and buttons
   have their own hover. Two classes' worth of weight, so a section's own
   "underline, solid" doesn't win while the pointer is on the link. */
a:not(.btn):not(.nl):hover { text-decoration-style: wavy; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
svg { flex: none; }
:focus-visible { outline: 3px solid var(--clay-ink); outline-offset: 3px; }
.wrap { max-width: 1180px; margin-inline: auto; padding-inline: var(--gutter); }
.sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.serif { font-family: var(--serif); font-variation-settings: "SOFT" 100, "WONK" 1; }

/* ---------- Type roles (style guide) ---------- */
.display { font-family: var(--serif); font-weight: 580; font-size: var(--fs-display); line-height: 1.0; letter-spacing: -0.02em; color: var(--forest); font-variation-settings: "SOFT" 100, "WONK" 1, "opsz" 144; }
.t-h1 { font-family: var(--serif); font-weight: 580; font-size: var(--fs-h1); line-height: 1.05; letter-spacing: -0.018em; color: var(--forest); font-variation-settings: "SOFT" 100, "WONK" 1; }
.t-h2 { font-family: var(--serif); font-weight: 560; font-size: var(--fs-h2); line-height: 1.1; letter-spacing: -0.015em; color: var(--forest); font-variation-settings: "SOFT" 100, "WONK" 1; }
.t-h3 { font-family: var(--serif); font-weight: 560; font-size: var(--fs-h3); line-height: 1.2; color: var(--forest); font-variation-settings: "SOFT" 100, "WONK" 1; }
.t-prompt { font-family: var(--serif); font-weight: 520; font-size: var(--fs-prompt); line-height: 1.25; color: var(--forest); font-variation-settings: "SOFT" 100, "WONK" 1; }
.t-lead { font-size: var(--fs-lead); line-height: 1.55; color: var(--ash-600); max-width: 52ch; }
.t-body { font-size: var(--fs-body); line-height: 1.65; color: var(--ink); max-width: 68ch; }
.t-small { font-size: var(--fs-small); line-height: 1.5; color: var(--ash-600); }
.t-caption { font-size: var(--fs-caption); font-weight: 500; line-height: 1.4; color: var(--ash-600); letter-spacing: 0.01em; }
.t-timer { font-family: var(--serif); font-weight: 600; font-size: var(--fs-timer); line-height: 1; color: var(--forest); font-variation-settings: "SOFT" 100, "WONK" 1; font-variant-numeric: tabular-nums lining-nums; }

/* ---------- Sections ---------- */
.sec { padding-top: clamp(64px, 9vw, 112px); }
.band { background: var(--parchment); padding-bottom: clamp(56px, 8vw, 96px); margin-top: clamp(64px, 9vw, 112px); }
.band > .sec { padding-top: clamp(56px, 8vw, 96px); }
.sec-head { display: grid; gap: 10px; max-width: 64ch; margin-bottom: clamp(24px, 3.5vw, 36px); }
.sec-head h2 { font-family: var(--serif); font-weight: 560; font-size: var(--fs-h2); line-height: 1.1; letter-spacing: -0.015em; color: var(--forest); font-variation-settings: "SOFT" 100, "WONK" 1; }
.sec-head p { font-size: var(--fs-lead); color: var(--ash-600); line-height: 1.55; }
.row { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }
.cap { font-size: var(--fs-caption); color: var(--ash-600); line-height: 1.4; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation: none !important; }
}
[data-motion="reduced"] *, [data-motion="reduced"] *::before, [data-motion="reduced"] *::after { transition-duration: 0.01ms !important; animation: none !important; }
[data-motion="reduced"] { scroll-behavior: auto; }
