/* ============================================================
   base.css — resets + element defaults, all using tokens.
   No raw values here either.
   ============================================================ */

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

* { margin: 0; }

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

body {
  font-family: var(--font-sans);
  font-size: var(--text-base);
  line-height: var(--leading-normal);
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { line-height: var(--leading-tight); font-weight: var(--weight-bold); }
h1 { font-size: var(--text-4xl); letter-spacing: -0.02em; }
h2 { font-size: var(--text-2xl); letter-spacing: -0.01em; }
h3 { font-size: var(--text-lg); }

p  { max-width: var(--max-width-prose); }

a  { color: var(--color-link); text-decoration: none; }
a:hover { color: var(--color-brand-hover); }

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

code, pre { font-family: var(--font-mono); font-size: var(--text-sm); }

/* Global visible focus — never remove without a replacement */
:focus-visible { outline: 2px solid var(--color-brand); outline-offset: 2px; }

/* Respect users who ask for less motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---- Layout helpers ---- */
.container {
  width: 100%;
  max-width: var(--max-width-content);
  margin-inline: auto;
  padding-inline: var(--space-6);
}

.section { padding-block: var(--space-24); }

.eyebrow {
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  color: var(--color-brand);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

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

.stack > * + * { margin-top: var(--space-4); }
.stack-lg > * + * { margin-top: var(--space-8); }
