/* Base element styles */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--bg); }
body {
  margin: 0; font-family: var(--font); font-size: var(--fs-body); line-height: var(--lh-body);
  color: var(--text); background: var(--bg); font-feature-settings: 'tnum' 1, 'cv11' 1;
  -webkit-font-smoothing: antialiased; min-height: 100dvh; overflow-x: hidden;
}
h1, h2, h3, h4, p { margin: 0; }
h1 { font-size: var(--fs-title); line-height: var(--lh-title); font-weight: 800; letter-spacing: -0.02em; }
h2 { font-size: var(--fs-section); line-height: var(--lh-section); font-weight: 700; letter-spacing: -0.01em; }
h3 { font-size: var(--fs-body); line-height: var(--lh-body); font-weight: 700; }
a { color: var(--accent-text); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
img, svg { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus { outline: none; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--accent); color: var(--on-accent); }
.tnum, .mono { font-variant-numeric: tabular-nums; }
.mono { font-family: var(--mono); }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 8px; top: -60px; z-index: 100; background: var(--accent); color: var(--on-accent); padding: 10px 16px; border-radius: 10px; font-weight: 700; text-decoration: none; }
.skip-link:focus { top: 8px; }
.muted { color: var(--muted); }
.small { font-size: var(--fs-small); line-height: var(--lh-small); }
.meta { font-size: var(--fs-meta); line-height: var(--lh-meta); color: var(--muted); }
[hidden] { display: none !important; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}
