/* Base — minimal reset + shared utility classes. Sonic Pulse tokens live in
 * each page's inline tailwind.config (so the CDN Tailwind compiles them).
 * This file only holds rules that Tailwind utilities can't express. */

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

body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-variant-numeric: tabular-nums;
}

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

button, input, select, textarea { font: inherit; color: inherit; }

:focus-visible { outline: 2px solid #d0bcff; outline-offset: 2px; }

.num { font-variant-numeric: tabular-nums; }

/* Force the HTML `hidden` attribute to win over Tailwind utility display
 * classes (e.g. `flex`, `grid`). Tailwind's class specificity equals the
 * UA stylesheet's `[hidden]` rule, so without this our toggles do nothing. */
[hidden] { display: none !important; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%);
  white-space: nowrap; border: 0;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}
