*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  background: var(--mist);
  color: var(--ink);
  font: 400 var(--fs-body)/var(--lh-body) var(--font-sans);
  letter-spacing: var(--track-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
input, select, button, textarea { font: inherit; color: inherit; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: var(--track-display);
  text-wrap: balance;
  color: var(--ink);
}
h1 { font-size: var(--fs-h1); line-height: 1.02; font-weight: 800; }
h2 { font-size: var(--fs-h2); line-height: 1.1; margin-top: var(--space-8); margin-bottom: var(--space-4); }
h3 { font-size: var(--fs-h3); line-height: 1.25; margin-top: var(--space-6); margin-bottom: var(--space-3); }
p, ul, ol, table, figure, details { margin-top: var(--space-4); }
li + li { margin-top: var(--space-2); }
p { text-wrap: pretty; }
strong { font-weight: 700; }

a { color: var(--link); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }

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

.skip-link {
  position: absolute;
  left: var(--space-4);
  top: -100px;
  z-index: 100;
  padding: var(--space-3) var(--space-5);
  background: var(--paper);
  color: var(--ink);
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-card);
}
.skip-link:focus { top: var(--space-4); }

.container { width: 100%; max-width: var(--width-wide); margin-inline: auto; padding-inline: var(--space-4); }
.prose { width: 100%; max-width: var(--width-prose); margin-inline: auto; padding-inline: var(--space-4); }
@media (min-width: 768px) {
  .container, .prose { padding-inline: var(--space-6); }
}

.num, .tabular { font-family: var(--font-mono); font-variant-numeric: tabular-nums; letter-spacing: 0; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
