/* Base: reset, typography, layout primitives, accessibility. */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; } }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 var(--fs-md)/1.6 var(--font-sans); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1; outline: none; }
img, svg { display: block; max-width: 100%; }
h1, h2, h3, h4 { margin: 0; line-height: 1.15; text-wrap: balance; }
h1, h2 { font-family: var(--font-serif); font-weight: 600; letter-spacing: -0.02em; }
h1 { font-size: var(--fs-2xl); }
h2 { font-size: var(--fs-xl); }
h3 { font-size: var(--fs-lg); font-weight: 650; letter-spacing: -0.01em; }
h4 { font-size: var(--fs-md); font-weight: 650; }
p { margin: 0; text-wrap: pretty; }
p + p { margin-top: 0.75em; }
a { color: var(--brand); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--brand-hover); text-decoration-thickness: 2px; }
b, strong { font-weight: 650; }
small { font-size: var(--fs-xs); }
hr { border: 0; border-top: 1px solid var(--line); margin: 24px 0; }
ul, ol { margin: 0; padding-left: 1.25em; }
li + li { margin-top: 0.35em; }
code { font: 0.9em ui-monospace, SFMono-Regular, Menlo, monospace; background: var(--paper-2); padding: 0.1em 0.35em; border-radius: 6px; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus { outline: none; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; border-radius: 6px; }
::selection { background: color-mix(in srgb, var(--brand) 25%, transparent); }

.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.narrow { max-width: 760px; }
.stack > * + * { margin-top: var(--gap, 16px); }
.stack-lg { --gap: 28px; }
.stack-sm { --gap: 8px; }
.cluster { display: flex; flex-wrap: wrap; align-items: center; gap: var(--gap, 12px); }
.cluster-sm { --gap: 8px; }
.between { justify-content: space-between; }
.grow { flex: 1 1 0; min-width: 0; }
.grid { display: grid; gap: var(--gap, 20px); }
.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 860px) { .cols-3, .cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .cols-2, .cols-3, .cols-4 { grid-template-columns: minmax(0, 1fr); } }
.muted { color: var(--ink-2); }
.faint { color: var(--ink-3); }
.small { font-size: var(--fs-sm); }
.tiny { font-size: var(--fs-xs); }
.center { text-align: center; }
.serif { font-family: var(--font-serif); }
.nowrap { white-space: nowrap; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
[hidden] { display: none !important; }

.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: var(--paper); padding: 10px 16px; border-radius: var(--r-sm); text-decoration: none; font-weight: 600; transition: top 0.15s; }
.skip:focus { top: 12px; }

.page { padding-block: clamp(28px, 5vw, 56px) clamp(56px, 8vw, 96px); }
.page-head { margin-bottom: clamp(20px, 3vw, 32px); }
.page-head p.lead { margin-top: 10px; }
.eyebrow { font-size: var(--fs-xs); font-weight: 700; letter-spacing: 0.09em; text-transform: uppercase; color: var(--brand); }
.lead { font-size: var(--fs-lg); line-height: 1.55; color: var(--ink-2); max-width: 62ch; }
.back { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 18px; color: var(--ink-2); text-decoration: none; font-size: var(--fs-sm); font-weight: 600; }
.back:hover { color: var(--ink); }

@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes shimmer { to { background-position: -200% 0; } }
.rise { animation: rise 0.5s var(--ease) both; }
.rise-2 { animation-delay: 0.08s; }
.rise-3 { animation-delay: 0.16s; }
