/* Reset and element defaults. Every value comes from tokens.css. */
*, *::before, *::after { box-sizing: border-box; }

/* `hidden` always wins, even over a class that sets display (such as .btn). */
[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  background: var(--surface);
  color: var(--text);
  font-family: var(--ui);
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}

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

h1, h2, h3 { margin: 0; font-family: var(--display); font-weight: 800; letter-spacing: -.025em; color: var(--navy); line-height: 1.2; }

a { color: var(--blue); }

:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; border-radius: 5px; }

/* The router moves focus to a screen's heading so screen readers announce it. That is not a control, so no outline. */
[tabindex="-1"]:focus { outline: none; }

/* Numbers and figures. */
.num { font-family: var(--data); font-variant-numeric: tabular-nums; }
.eyebrow { font-family: var(--ui); font-size: 10px; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; color: var(--faint); }

/* Lucide icons sit on the text line. */
.icon { flex-shrink: 0; vertical-align: -2px; }

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