/* Reset, type and layout. Light sections are the default; .is-dark marks the gunmetal ones. */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--light); color: var(--text-on-light); font-family: var(--font-body); font-size: var(--step-0); line-height: 1.6; overflow-x: hidden; }
img, svg, canvas { display: block; max-width: 100%; }
a { color: var(--steel); text-underline-offset: 3px; }
a:hover { color: var(--text-on-light); }
:focus-visible { outline: 2px solid var(--steel); outline-offset: 3px; border-radius: 3px; }
.is-dark :focus-visible { outline-color: var(--gold); }
p { margin: 0 0 var(--space-2); max-width: var(--measure); }
ul, ol { margin: 0 0 var(--space-2); padding-left: 1.2em; }
h1, h2, h3 { margin: 0 0 var(--space-2); line-height: 1.05; text-wrap: balance; }
h1, h2 { font-family: var(--font-display); font-weight: 800; text-transform: uppercase; letter-spacing: 0.01em; }
h1 { font-size: var(--step-4); }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-1); font-weight: 600; line-height: 1.25; }
.eyebrow { font-family: var(--font-mono); font-weight: 500; font-size: 0.8125rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--steel); margin-bottom: var(--space-1); }
.lede { font-size: var(--step-1); color: var(--muted-on-light); }
.mono { font-family: var(--font-mono); }

.wrap { width: 100%; max-width: calc(var(--page) + 2 * var(--gutter)); margin-inline: auto; padding-left: var(--gutter); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.section { padding-block: var(--space-6); }
.section--tight { padding-block: var(--space-5); }
.is-dark { background: var(--gunmetal); color: var(--text-on-dark); }
.is-dark .lede, .is-dark p { color: var(--muted-on-dark); }
.is-dark .eyebrow { color: var(--gold); }
.is-dark a { color: var(--gold); }
.is-paper { background: var(--paper); }

.grid-2 { display: grid; gap: var(--space-4); grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr)); align-items: start; }
.grid-4 { display: grid; gap: var(--space-3); grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); }
.stack > * + * { margin-top: var(--space-2); }

.skip-link { position: absolute; left: -999px; top: 0; background: var(--gold); color: var(--gold-ink); padding: 0.5rem 1rem; z-index: 100; }
.skip-link:focus { left: var(--gutter); top: 0.5rem; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
[hidden] { display: none !important; }
