/* Altalus Design System — base (reset + element defaults). Requires tokens.css */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 1rem); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-sans);
  font-size: var(--step-0);
  line-height: var(--lh-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 { font-family: var(--font-display); line-height: var(--lh-tight); letter-spacing: var(--tracking-heading); margin: 0 0 var(--space-4); text-wrap: balance; font-kerning: normal; }
h1 { font-size: var(--step-4); font-weight: 700; letter-spacing: var(--tracking-display); line-height: 1.04; }
h2 { font-size: var(--step-3); font-weight: 660; line-height: 1.08; }
h3 { font-size: var(--step-1); font-weight: 620; line-height: var(--lh-snug); letter-spacing: -0.012em; }
h4 { font-size: var(--step-0); font-weight: 620; letter-spacing: -0.005em; }
p { margin: 0 0 var(--space-4); text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; list-style: none; }
img, svg, video { max-width: 100%; display: block; }
a { color: var(--brand); text-decoration-thickness: 0.08em; text-underline-offset: 0.2em; }
a:hover { color: var(--brand-strong); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--brand); color: var(--brand-contrast); }
small { font-size: var(--step--1); }
hr { border: 0; border-top: 1px solid var(--border); margin: var(--space-6) 0; }

.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: var(--space-4); top: -4rem; background: var(--brand); color: var(--brand-contrast); padding: var(--space-2) var(--space-4); border-radius: var(--radius-sm); z-index: 100; }
.skip-link:focus { top: var(--space-3); }
