/* Reset + global primitives only. Component styles live next to their module (useStyles()). */
*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
body {
  background: var(--bg); color: var(--text); font: 400 var(--fs-md)/1.5 var(--font-sans);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow: hidden;
}
#app { height: 100%; }
a { color: var(--accent-2); text-decoration: none; }
a:hover { text-decoration: underline; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: none; box-shadow: var(--focus-ring); border-radius: var(--r-sm); }
code, kbd, pre, .mono { font-family: var(--font-mono); font-size: .92em; }
mark { background: var(--mark-bg); color: inherit; border-radius: 3px; padding: 0 2px; }
::selection { background: var(--mark-bg); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* boot + fatal states (before the shell mounts) */
.boot { height: 100%; display: grid; place-content: center; gap: var(--sp-4); justify-items: center; color: var(--text-dim); letter-spacing: .08em; text-transform: uppercase; font-size: var(--fs-xs); }
.boot-star { width: 10px; height: 10px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 24px 8px var(--accent); animation: boot-pulse 1.6s var(--ease-in-out) infinite; }
@keyframes boot-pulse { 50% { transform: scale(.6); opacity: .5; } }
.boot-error { max-width: 560px; margin: 15vh auto; padding: var(--sp-5); }
.boot-error h1 { font: 400 var(--fs-2xl) var(--font-serif); margin: 0 0 var(--sp-3); }
.boot-error pre { background: var(--surface-solid); padding: var(--sp-4); border-radius: var(--r-md); border: 1px solid var(--line); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
