@layer reset, tokens, base, components, utilities;

@layer reset {
  *, *::before, *::after { box-sizing: border-box; }
  body, h1, h2, h3, p, ul, ol { margin: 0; }
  ul, ol { padding: 0; list-style: none; }
  button, input, select, textarea { font: inherit; color: inherit; }
  a { color: inherit; text-decoration: none; }
}

@layer base {
  html { -webkit-text-size-adjust: 100%; }
  body {
    font-family: var(--font-body);
    font-variant-numeric: tabular-nums;
    font-size: 15px;
    line-height: 1.55;
    color: var(--ink);
    background: var(--surface-2);
    -webkit-font-smoothing: antialiased;
  }
  h1 { font-size: 22px; font-weight: 700; letter-spacing: -0.01em; }
  h2 { font-size: 16px; font-weight: 700; }
  .num { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
  :focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
  @media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }
}

@layer utilities {
  .muted { color: var(--muted); }
  .visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .hidden { display: none !important; }
  [hidden] { display: none !important; }
}
