/* The Round: base. Reset, reading, links, focus and the browser's own surfaces. */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 1rem); }
body {
  margin: 0;
  min-height: 100svh;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--face-text);
  font-size: var(--step-0);
  line-height: 1.55;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  padding-bottom: var(--dock-h);
}
h1, h2, h3, h4 { font-family: var(--face-display); font-weight: 650; line-height: 1.08; letter-spacing: var(--track-display); margin: 0; text-wrap: balance; }
p, ul, ol, dl, figure, blockquote { margin: 0; }
p, li, dd { text-wrap: pretty; }
ul[role="list"], ol[role="list"] { list-style: none; padding: 0; }
img, svg, picture { display: block; max-width: 100%; }
img { height: auto; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.22em; text-decoration-color: color-mix(in srgb, currentColor 45%, transparent); }
a:hover { text-decoration-color: currentColor; }
strong { font-weight: 650; }

/* Focus: 2 px ink, 3 px offset, on every ground. */
:focus { outline: none; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 4px; }

/* The surfaces nobody draws, drawn. */
::selection { background: color-mix(in srgb, var(--seal) 32%, transparent); color: var(--ink); }
html { caret-color: var(--call); accent-color: var(--call); scrollbar-color: var(--line-strong) var(--ground); scrollbar-width: thin; }
.num { font-variant-numeric: tabular-nums lining-nums; }

.skip-link { position: absolute; left: var(--s-4); top: -100px; z-index: 100; padding: var(--s-3) var(--s-4); background: var(--ink); color: var(--ground); border-radius: var(--radius); font-weight: 600; }
.skip-link:focus-visible { top: var(--s-3); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.defs { position: absolute; width: 0; height: 0; overflow: hidden; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; }
}
main { overflow-x: clip; }
