*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 24px); color-scheme: dark; }
body {
  margin: 0; background: var(--bg); color: var(--text-2);
  font-family: var(--font); font-size: 1rem; line-height: 1.6;
  font-feature-settings: "cv11", "ss03"; -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility; overflow-x: hidden;
}
@media (min-width: 768px) { body { font-size: 1.0625rem; } }
img, svg { max-width: 100%; display: block; }
h1, h2, h3, h4 { color: var(--text); font-weight: 560; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(2rem, 4.6vw, 3rem); letter-spacing: -.035em; line-height: 1.08; }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); letter-spacing: -.03em; line-height: 1.15; }
h3 { font-size: 1.25rem; letter-spacing: -.02em; line-height: 1.25; }
h4 { font-size: 1rem; letter-spacing: -.01em; line-height: 1.3; }
p { margin: 0 0 1em; }
a { color: var(--text); text-decoration-color: var(--line-strong); text-underline-offset: 3px; transition: color var(--t) var(--ease), text-decoration-color var(--t) var(--ease); }
a:hover { text-decoration-color: var(--accent); }
strong { color: var(--text); font-weight: 560; }
em { color: var(--text); font-style: italic; }
ul, ol { margin: 0 0 1em; padding-left: 1.2em; }
li { margin-bottom: .4em; }
hr { border: 0; border-top: 1px solid var(--line); margin: 48px 0; }
::selection { background: var(--accent-soft); color: var(--text); }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.skip { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--text); color: var(--bg); padding: 8px 14px; border-radius: var(--radius-sm); font-size: .875rem; text-decoration: none; }
.skip:focus { top: 12px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { width: 100%; max-width: calc(var(--maxw) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.eyebrow { font-family: var(--mono); font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; color: var(--text-3); margin: 0 0 12px; font-weight: 500; }
.mono { font-family: var(--mono); }
.muted { color: var(--text-3); }

/* reveal */
.reveal { opacity: 0; transform: translateY(10px); transition: opacity 420ms var(--ease), transform 420ms var(--ease); }
.reveal.in { opacity: 1; transform: none; }
html:not(.js) .reveal { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0ms !important; animation-duration: 0ms !important; }
  .reveal { opacity: 1; transform: none; }
}
@media print { .nav, .footer, .toc, .progress { display: none !important; } body { background: #fff; color: #000; } }

[hidden] { display: none !important; }
