/* Element defaults, typography, and the browser surfaces most builds forget. */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 80px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.6 var(--font-sans);
  font-feature-settings: "ss01";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1, h2, h3 { margin: 0; line-height: 1.05; font-weight: 800; letter-spacing: -0.03em; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }

/* Browser surfaces themed from the palette — the cheap tell that a page was
   built, not assembled. */
::selection { background: var(--amber); color: var(--amber-ink); }
:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 3px;
  border-radius: var(--r-sm);
}
* { caret-color: var(--amber); }
:root { color-scheme: dark; scrollbar-color: var(--line-2) var(--bg); }
::-webkit-scrollbar { width: 12px; height: 12px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb {
  background: var(--line-2);
  border: 3px solid var(--bg);
  border-radius: 6px;
}
::-webkit-scrollbar-thumb:hover { background: #3a4756; }

/* mono defaults: tabular figures so readouts don't jitter */
code, kbd, samp, .mono { font-family: var(--font-mono); font-feature-settings: "tnum"; }

/* utilities */
.u-visually-hidden {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.mono, .readout, .band__addr, .nav__addr {
  font-family: var(--font-mono);
  font-feature-settings: "tnum";
}

.prose { color: var(--ink-dim); max-width: 68ch; }
.prose p + p { margin-top: 1em; }

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