/* Base layer — from the mockup's reset and type rules. */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { margin: 0; background: var(--surface-0); color: var(--ink); font: 400 var(--fs-body)/var(--lh-base) var(--font-b); overflow-x: clip; min-height: 100vh; }
img, picture, svg, video { display: block; max-width: 100%; }
picture img { width: 100%; height: auto; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-h); font-weight: 800; line-height: var(--lh-tight); letter-spacing: -.02em; text-wrap: balance; margin: 0; }
p { text-wrap: pretty; margin: 0; }
ul, ol { margin: 0; padding: 0; }
table { border-collapse: collapse; }
.num, .tabnum { font-variant-numeric: tabular-nums; }
.sr-only, .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; }
[hidden][hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--brand-50); color: var(--ink); }

.wrap { max-width: var(--wrap); margin: 0 auto; padding-inline: var(--gut); }
.skip-link { position: fixed; left: 16px; top: -60px; z-index: 300; background: var(--ink); color: #fff; padding: 12px 18px; border-radius: var(--r-pill); font-weight: 600; text-decoration: none; transition: top .2s var(--ease); }
.skip-link:focus { top: 12px; }

/* Lucide inline icons (icon()) */
svg.icon { width: 20px; height: 20px; flex: none; }
.icon--missing { display: inline-block; width: 20px; height: 20px; border: 2px dashed var(--color-error); border-radius: 4px; }
.img-missing { display: block; width: 100%; height: 100%; background: var(--surface-3); }
