/* Reset, typography, accessibility basics. */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; width: 100%; height: 100%; }
body { font: 14px/1.5 var(--font); color: var(--text); background: var(--bg); overflow: hidden; }
h1, h2, h3, h4 { line-height: 1.25; margin: 0 0 .5em; text-wrap: balance; }
a { color: var(--accent); }
a:hover { text-decoration-thickness: 2px; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
button, a, input, select, label, summary { touch-action: manipulation; -webkit-tap-highlight-color: #22d3ee33; }
select { background-color: var(--bg-2); color: var(--text); }
button:disabled { opacity: .45; cursor: not-allowed; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
code, .mono { font-family: var(--mono); font-size: .92em; }
.muted { color: var(--muted); }
[hidden] { display: none !important; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 10000; background: var(--accent); color: var(--accent-ink); padding: 8px 12px; border-radius: 8px; font-weight: 700; }
.skip-link:focus { top: 12px; }
.file-warning, .noscript { position: relative; z-index: 9999; margin: 12px 16px; padding: 14px 16px; border-radius: var(--radius-sm); background: var(--warn-bg); color: var(--warn); border: 1px solid var(--warn); line-height: 1.7; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }
