/* Base: reset, type, links, focus, layout helpers. Loads after tokens.css. */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 72px; }
@media (pointer: fine) { html { overscroll-behavior: none; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 var(--fs-ui)/var(--lh-ui) var(--font);
  font-feature-settings: "cv11", "ss01";   /* Inter: single-storey a off, open digits */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
img, svg, video { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }

h1, h2, h3, h4 { margin: 0; font-weight: 650; letter-spacing: var(--track-head); line-height: var(--lh-tight); text-wrap: balance; }
h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }
p { margin: 0; text-wrap: pretty; }
p + p { margin-top: .85em; }

a { color: var(--accent-text); text-decoration-thickness: .07em; text-underline-offset: .18em; }
a:hover { text-decoration-thickness: .12em; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
::selection { background: var(--accent-weak); color: var(--text); }

.num, .tabular { font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }
.faint { color: var(--faint); }
.small { font-size: var(--fs-sm); }
.xs { font-size: var(--fs-xs); }

.wrap { width: 100%; max-width: var(--page); margin-inline: auto; padding-inline: var(--gutter); }
.wrap-app { width: 100%; max-width: var(--page-app); margin-inline: auto; padding-inline: var(--gutter); }
.stack > * + * { margin-top: var(--stack, var(--s-4)); }
.row { display: flex; align-items: center; gap: var(--gap, var(--s-3)); }
.row-wrap { display: flex; flex-wrap: wrap; align-items: center; gap: var(--gap, var(--s-2)); }
.spacer { flex: 1; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link { position: absolute; left: var(--s-4); top: -60px; transform: translateY(-100%); z-index: 100; background: var(--surface); padding: var(--s-2) var(--s-4); border-radius: var(--r-sm); box-shadow: var(--shadow-float); }
.skip-link:focus { top: var(--s-4); transform: none; }

/* Icons from the sprite: <svg class="i"><use href="…/icons.svg#i-flag"/></svg> */
.i { width: 1.25em; height: 1.25em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.i-sm { width: 1em; height: 1em; }
.i-lg { width: 1.5em; height: 1.5em; }

@media print {
  /* Content pages replace this with the "Printing is not available." notice (SPEC 6). */
  body { background: #fff; }
}
