/* ── Reset ───────────────────────────────────────────────*/
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  font-weight: 400;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  overscroll-behavior-y: contain;
  -webkit-tap-highlight-color: transparent;
}

/* The unifying noise overlay — inline SVG, no extra request */
body::after {
  content: "";
  pointer-events: none;
  position: fixed; inset: 0; z-index: 1;
  background-image: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%20220%20220'%3E%3Cfilter%20id='n'%3E%3CfeTurbulence%20type='fractalNoise'%20baseFrequency='0.9'%20numOctaves='2'%20stitchTiles='stitch'/%3E%3CfeColorMatrix%20values='0%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%201%200'/%3E%3C/filter%3E%3Crect%20width='100%25'%20height='100%25'%20filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 220px 220px;
  opacity: 0.06;
  mix-blend-mode: multiply;
}

img, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, p, dl, dd, figure, blockquote { margin: 0; }
::selection { background: var(--lime); color: var(--ink); }

/* ── Typography primitives ───────────────────────────────*/
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 400; line-height: var(--lh-tight); letter-spacing: var(--ls-display); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }
h4 { font-size: var(--fs-h4); }
em { font-style: italic; }

/* ── Layout primitives ───────────────────────────────────*/
.container { max-width: var(--container); margin-inline: auto; padding-inline: var(--pad-inline); }
.section { padding-block: var(--section-y); position: relative; z-index: 2; }

.section-head { max-width: 1200px; margin-inline: auto; padding-inline: var(--pad-inline); margin-bottom: var(--s-8); }
.section-head--row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: var(--s-6); max-width: var(--container); }
.section-head h2 { margin-top: var(--s-3); }
.section-head .lead { margin-top: var(--s-5); max-width: 52ch; font-size: var(--fs-lead); line-height: 1.4; }
.section-head__note { font: 400 var(--fs-credit)/1 var(--font-mono); letter-spacing: .14em; text-transform: uppercase; color: inherit; opacity: .6; }

.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;
}

/* ── Focus ───────────────────────────────────────────────*/
:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; border-radius: 2px; }

/* ── Reduced motion ──────────────────────────────────────*/
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}
