*, *::before, *::after { box-sizing: border-box; }

/* Anchor jumps stop below the sticky header (73 px) instead of under it. */
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: var(--s9); }

body {
    margin: 0;
    font-family: var(--font);
    font-size: var(--text-base);
    line-height: 1.6;
    color: var(--graphite);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
    overflow-wrap: break-word;
}

h1, h2, h3 { margin: 0 0 var(--s4); font-family: var(--font-display); font-weight: var(--weight-strong); letter-spacing: -0.025em; }
h1 { font-size: var(--text-3xl); line-height: 1.02; letter-spacing: -0.04em; }
h2 { font-size: var(--text-2xl); line-height: 1.08; letter-spacing: -0.03em; }
h3 { font-size: var(--text-lg); line-height: 1.3; letter-spacing: -0.01em; }
p { margin: 0 0 var(--s4); }
img { max-width: 100%; height: auto; display: block; }

a { color: var(--terracotta); text-underline-offset: 3px; }
a:hover { color: var(--terracotta-dark); }

:focus-visible { outline: 3px solid var(--terracotta); outline-offset: 3px; border-radius: var(--radius-control); }
.dark :focus-visible { outline-color: var(--accent-on-dark); }

.skip-link { position: absolute; left: -999px; top: var(--s2); background: var(--white); color: var(--graphite); padding: var(--s2) var(--s3); z-index: 20; }
.skip-link:focus { left: var(--s2); }

.muted { color: var(--muted); }
.hint { color: var(--muted); font-size: var(--text-sm); margin: var(--s1) 0 0; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition: none !important; animation: none !important; }
}
