/* Reset and base typography. */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font: var(--fs-md)/1.45 var(--font);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 { margin: 0; line-height: 1.2; text-wrap: balance; }
h1 { font-size: var(--fs-2xl); font-weight: 650; letter-spacing: -0.02em; }
h2 { font-size: var(--fs-xl); font-weight: 600; letter-spacing: -0.01em; }
h3 { font-size: var(--fs-md); font-weight: 600; color: var(--ink-2); }
p { margin: 0; max-width: 70ch; text-wrap: pretty; }
a { color: var(--primary-ink); }
img, svg { display: block; max-width: 100%; }
svg { flex: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:disabled { cursor: not-allowed; }
[hidden] { display: none !important; }
code, kbd { font-family: var(--font-mono); }
code { font-size: 0.92em; background: var(--panel); border: 1px solid var(--line); border-radius: 4px; padding: 0 4px; }
/* Amounts, rates, barcodes and bill numbers in the number font (D90); headings and sentences keep the text font */
.num, table td.num { font-variant-numeric: tabular-nums; }
:is(td, dd, b, output, input, a, span, div).num { font-family: var(--font-mono); letter-spacing: -0.02em; }
.muted { color: var(--ink-2); }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }

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