/* ============================================================
   BASE — minimal resets + element defaults.
   Keep this light; tokens carry the system.
   ============================================================ */

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

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: var(--lh-normal);
  color: var(--text-body);
  background: var(--surface-page);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

code, pre, kbd, samp { font-family: var(--font-mono); font-size: var(--fs-mono); }

pre {
  background: var(--gray-900);
  color: #EDEDF2;
  padding: var(--space-4) var(--space-5);
  border-radius: var(--radius-md);
  overflow: auto;
  line-height: 1.6;
}
code:not(pre code) {
  background: var(--surface-control);
  color: var(--neutral-333);
  padding: 2px 6px;
  border-radius: var(--radius-sm);
  font-size: 0.9em;
}

a { color: var(--text-link); text-underline-offset: 2px; }

:focus-visible {
  outline: var(--focus-width) solid var(--focus-ring);
  outline-offset: var(--focus-offset);
}

::selection { background: var(--blue-200); color: var(--text-black); }

h1, h2, h3, h4 { color: var(--text-strong); font-weight: var(--fw-bold); }
