/* ==========================================================================
   Base: reset, typography, links, focus, utilities, prose, motion preferences
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); background: var(--bg-page); }
body {
	margin: 0;
	font-family: var(--font-sans);
	font-size: var(--fs-base);
	line-height: var(--lh-body);
	color: var(--c-text);
	background: var(--bg-page);
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
	overflow-x: clip;
}
img, svg, video { display: block; max-width: 100%; height: auto; }
[hidden] { display: none !important; }
button, input, select, textarea { font: inherit; color: inherit; }
input::placeholder, textarea::placeholder { color: rgba(166, 187, 207, .66); }
button { cursor: pointer; background: none; border: 0; padding: 0; }
a { color: var(--c-brand); text-decoration: none; transition: color var(--dur-fast) var(--ease); }
a:hover { color: var(--c-brand-600); }
.section--dark a:not(.btn):hover, .site-footer a:hover { color: var(--c-cyan); }
ul, ol { margin: 0; padding: 0; }
p { margin: 0 0 var(--sp-4); }
p:last-child { margin-bottom: 0; }
address { font-style: normal; }
table { border-collapse: collapse; width: 100%; }
hr { border: 0; border-top: 1px solid var(--c-line); margin: var(--sp-8) 0; }

h1, h2, h3, h4, .h1, .h2, .h3 {
	margin: 0 0 var(--sp-4);
	font-weight: var(--fw-bold); /* all headings bold per user decision 2026-09-23 */
	letter-spacing: -.02em;
	line-height: var(--lh-snug);
	color: var(--c-text);
	text-wrap: balance;
}
h1, .h1 { font-size: var(--fs-4xl); line-height: var(--lh-tight); letter-spacing: -.025em; }
h2, .h2 { font-size: var(--fs-3xl); }
h3, .h3 { font-size: var(--fs-xl); }
h4 { font-size: var(--fs-lg); }
small { font-size: var(--fs-sm); color: var(--c-text-2); }
strong { font-weight: var(--fw-semibold); }
code, kbd { font-family: var(--font-mono); font-size: .9em; background: var(--c-surface); padding: .1em .4em; border-radius: 4px; }
.section--dark code { background: rgba(255,255,255,.08); }

.eyebrow {
	margin: 0 0 var(--sp-3);
	font-size: var(--fs-xs);
	font-weight: var(--fw-semibold);
	letter-spacing: var(--ls-eyebrow);
	text-transform: uppercase;
	color: var(--c-brand);
}
.eyebrow--light, .section--dark .eyebrow, .hero .eyebrow { color: var(--c-cyan); }
.eyebrow::before { content: ""; display: inline-block; width: 18px; height: 2px; background: currentColor; vertical-align: middle; margin-right: var(--sp-2); opacity: .8; }
.mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }

:focus { outline: none; }
:focus-visible { outline: 2px solid var(--c-cyan); outline-offset: 3px; border-radius: 3px; }
::selection { background: var(--c-cyan-soft); }

.skip-link { position: absolute; left: 8px; top: -100px; z-index: 1000; background: var(--c-navy-900); color: #fff; padding: 10px 14px; border-radius: 6px; }
.skip-link:focus { top: 8px; }
.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; }

/* rich text */
.prose { max-width: 72ch; font-size: var(--fs-lg); }
.prose h2 { margin-top: var(--sp-10); font-size: var(--fs-2xl); }
.prose h3 { margin-top: var(--sp-8); font-size: var(--fs-xl); }
.prose ul, .prose ol { padding-left: 1.25em; margin: 0 0 var(--sp-5); }
.prose li { margin-bottom: var(--sp-2); }
.prose li::marker { color: var(--c-brand); }
.prose img { border-radius: var(--radius); margin: var(--sp-6) 0; }
.prose blockquote { margin: var(--sp-6) 0; padding: var(--sp-4) var(--sp-6); border-left: 3px solid var(--c-cyan); background: var(--c-surface); border-radius: 0 var(--radius) var(--radius) 0; }
.prose table { font-size: var(--fs-sm); }
.prose th, .prose td { text-align: left; padding: var(--sp-3); border-bottom: 1px solid var(--c-line); }
.prose .demo-note, .demo-note { font-size: var(--fs-sm); color: var(--c-text-2); border-left: 3px solid var(--c-warning); padding-left: var(--sp-3); }
.section--dark .prose { color: var(--c-text-inv-2); }
.section--dark .prose h2, .section--dark .prose h3, .section--dark .prose strong { color: var(--c-text-inv); }

/* motion preferences — reveal is progressive enhancement: hidden only under .js, driven by the
   scroll-scrub engine in main.js (progress bound to scrollY, lerped per frame — no timeline, no pop).
   reduced-motion and no-JS get fully static content. */
.js [data-reveal], .js [data-reveal-group] > * { opacity: 0; }
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
	.js [data-reveal], .js [data-reveal-group] > * { opacity: 1 !important; }
}

/* Lenis smooth scroll (optional enhancement; JS init guards reduced-motion) */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }
