/* Reset + typography + layout primitives. */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
body {
  background: var(--bg); color: var(--ink);
  font: 500 var(--t-body)/1.45 var(--font-sans);
  min-height: 100dvh; -webkit-tap-highlight-color: transparent;
}
img, svg { display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; }
a { color: inherit; }
ul { list-style: none; }
[hidden] { display: none !important; }

:focus-visible { outline: 2.5px solid var(--focus); outline-offset: 3px; border-radius: 4px; }

/* type */
.t-display { font-size: var(--t-display); line-height: 1.05; font-weight: 900; letter-spacing: -.04em; }
.t-h1 { font-size: var(--t-h1); line-height: 1.1; font-weight: 900; letter-spacing: -.04em; }
.t-h2 { font-size: var(--t-h2); line-height: 1.2; font-weight: 700; letter-spacing: -.02em; }
.t-body { font-size: var(--t-body); }
.t-small { font-size: var(--t-small); }
.t-label { font: 500 var(--t-label)/1.2 var(--font-mono); letter-spacing: .09em; text-transform: uppercase; color: var(--muted); }
.mono { font-family: var(--font-mono); font-feature-settings: 'zero' 0; }
.num { font-family: var(--font-mono); font-weight: 700; letter-spacing: -.02em; }
.muted { color: var(--muted); }

/* layout */
.screen { width: 100%; max-width: var(--screen-max); margin: 0 auto; min-height: 100dvh; display: flex; flex-direction: column; padding: 0 var(--s4); }
.stack { display: flex; flex-direction: column; gap: var(--s3); }
.stack-lg { display: flex; flex-direction: column; gap: var(--s5); }
.row { display: flex; align-items: center; gap: var(--s3); }
.between { justify-content: space-between; }
.grow { flex: 1; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

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