/* Base reset and typographic roles. */
*, *::before, *::after { box-sizing: border-box; }
html { color-scheme: light dark; -webkit-text-size-adjust: 100%; }
:root[data-theme="light"] { color-scheme: light; } :root[data-theme="dark"] { color-scheme: dark; }
body { margin: 0; font: var(--fs)/var(--lh) var(--font); color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4 { margin: 0 0 var(--sp-3); line-height: var(--lh-tight); font-weight: 650; letter-spacing: -.01em; }
h1 { font-size: var(--fs-h1); }                      /* page title */
h2 { font-size: var(--fs-h2); }                      /* section title */
h3 { font-size: var(--fs-lg); font-weight: 600; }    /* card title */
h4 { font-size: var(--fs); font-weight: 600; }
p { margin: 0 0 var(--sp-3); }
a { color: var(--link); } a:hover { text-decoration-thickness: 2px; }
code, pre, kbd { font-family: var(--mono); font-size: var(--fs-sm); }
code { background: var(--neutral-bg); padding: .1rem .35rem; border-radius: var(--radius-sm); }
kbd { border: 1px solid var(--border-strong); border-bottom-width: 2px; border-radius: var(--radius-sm); padding: 0 .35rem; background: var(--surface); }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
::selection { background: var(--brand-soft); }
.text-secondary, .muted { color: var(--muted); }
.text-helper { color: var(--muted); font-size: var(--fs-sm); }
.text-label { font-size: var(--fs-sm); font-weight: 600; }
.text-metric { font-size: var(--fs-metric); font-weight: 650; line-height: 1.15; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.num, .table td.is-right, .kpi__value { font-variant-numeric: tabular-nums; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; } }
