*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scrollbar-color: var(--color-text-muted) var(--color-bg); scroll-padding-top: var(--space-8); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  caret-color: var(--color-brand);
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: var(--leading-body);
  overflow-wrap: break-word;
  hyphens: auto;
  font-variant-numeric: tabular-nums;
}
::selection { background: var(--color-selection); color: var(--color-text); }
img, svg { display: block; max-width: 100%; height: auto; }

h1, h2, h3 { font-family: var(--font-heading); line-height: var(--leading-tight); margin: 0 0 var(--space-4); text-wrap: balance; overflow-wrap: anywhere; hyphens: auto; hyphenate-limit-chars: 14 6 6; }
h1 { font-weight: 800; font-size: var(--text-3xl); letter-spacing: -0.015em; }
h2 { font-weight: 800; font-size: var(--text-2xl); letter-spacing: -0.01em; }
h3 { font-weight: 700; font-size: var(--text-lg); }
p, ul, ol, dl { margin: 0 0 var(--space-4); }
address { font-style: normal; }
strong { font-weight: 700; }

a { color: var(--color-brand); text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
a:hover { color: var(--color-brand-strong); text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--color-focus); outline-offset: 3px; border-radius: var(--radius-sm); }

.container { width: min(100% - 2 * var(--gutter), var(--container)); margin-inline: auto; }
.lead { font-size: var(--text-lg); color: var(--color-text-muted); max-width: 40rem; }
.muted { color: var(--color-text-muted); }
.num { font-variant-numeric: tabular-nums; }

.prose { max-width: var(--container-narrow); }
.prose h1 { font-size: var(--text-2xl); }
.prose h2 { font-size: var(--text-xl); margin-top: var(--space-8); }
.prose ul, .prose ol { padding-left: var(--space-6); }
.prose li + li { margin-top: var(--space-2); }
.prose li::marker { color: var(--color-text-muted); }
.prose blockquote { margin: 0 0 var(--space-6); padding: var(--space-4) var(--space-6); background: var(--color-surface); border: 2px dashed var(--color-text-muted); border-radius: var(--radius-md); }
.prose blockquote p:last-child { margin: 0; }
.prose > :last-child { margin-bottom: 0; }

.icon { display: inline-block; width: 1.25em; height: 1.25em; vertical-align: -0.2em; flex-shrink: 0; }

.skip-link { position: absolute; left: var(--space-4); top: -100%; padding: var(--space-3) var(--space-4); background: var(--color-inverse-bg); color: var(--color-inverse-text); border-radius: var(--radius-sm); z-index: 10; }
.skip-link:focus { top: var(--space-4); color: var(--color-inverse-text); }
.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) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
