*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 15px/1.55 var(--font-ui); -webkit-font-smoothing: antialiased; min-height: 100vh;
}
h1, h2, h3, h4 { margin: 0; line-height: 1.2; font-weight: 600; letter-spacing: -0.01em; }
p { margin: 0; }
a { color: var(--sage); text-underline-offset: 3px; }
a:hover { color: var(--text); }
button, input, select, textarea { font: inherit; color: inherit; }
img, svg { max-width: 100%; }
code, .mono { font-family: var(--font-mono); font-size: 0.92em; }
sub, sup { line-height: 0; font-size: 0.75em; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
::selection { background: var(--sage); color: var(--sage-ink); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -48px; background: var(--sage); color: var(--sage-ink); padding: 8px 12px; border-radius: var(--r-sm); z-index: 100; text-decoration: none; font-weight: 600; }
.skip:focus { top: 12px; }
.muted { color: var(--text-2); }
.faint { color: var(--text-3); }
.stack > * + * { margin-top: var(--gap-y, 16px); }
.row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.row.between { justify-content: space-between; }
.grid { display: grid; gap: 16px; }
.container { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 20px; }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }

/* headings and the page container receive focus from script after navigation; they are not controls, so no ring */
[tabindex='-1']:focus, [tabindex='-1']:focus-visible { outline: none; }
