/* Reset, typography and layout primitives. Uses only tokens.css. */

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: var(--text-md) / var(--leading-body) var(--font-sans);
  -webkit-font-smoothing: antialiased;
}

img, video { display: block; max-width: 100%; }

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

code { font-family: var(--font-mono); font-size: 0.9em; }

h1, h2, h3 { margin: 0; font-weight: 700; }
.display { font-weight: 700; font-size: var(--text-display); line-height: var(--leading-tight); letter-spacing: var(--tracking-display); }
h2, .h2 { font-size: var(--text-2xl); line-height: var(--leading-snug); letter-spacing: var(--tracking-heading); }
h3, .h3 { font-size: var(--text-md); line-height: var(--leading-snug); letter-spacing: -0.01em; }
.lede { font-size: var(--text-lg); color: var(--text-muted); max-width: var(--width-text); }
.muted { color: var(--text-muted); }
.small { font-size: var(--text-sm); }
.fine { font-size: var(--text-xs); color: var(--text-muted); }
.eyebrow { font-size: var(--text-sm); font-weight: 600; color: var(--highlight); letter-spacing: 0.02em; }

/* Layout */
.container { max-width: var(--width-page); margin-inline: auto; padding-inline: var(--space-6); }
.section { padding-block: var(--space-16); }
.section-head { text-align: center; margin-bottom: var(--space-12); display: grid; gap: var(--space-3); justify-items: center; }
.center { text-align: center; margin-inline: auto; }
.stack { display: grid; gap: var(--stack-gap, var(--space-4)); }
.grid { display: grid; gap: var(--space-5); grid-template-columns: repeat(auto-fill, minmax(var(--grid-min, 300px), 1fr)); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
