/* A · Kompas: tokens, modes, base typography. All sizes in rem. */
:root {
  --font: "Atkinson Hyperlegible Next", "Atkinson Hyperlegible", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Atkinson Hyperlegible Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --bg: #FBF3E2; --text: #111111; --muted: #3A3328; --surface: #FFFFFF; --tile: #F7DEB9;
  --link: #000087; --sign: #F59200; --sign-text: #000000; --line: #111111; --edge: #111111;
  --focus: #000000; --focus-in: #FFFFFF;
  --foot-bg: #111111; --foot-text: #FBF3E2; --foot-link: #FFD27A; --foot-focus: #FFE600; --foot-focus-in: #000000;
  --lh: 1.6; --radius: .75rem; --gap: clamp(1rem, 3vw, 2rem); --wrap: 76rem;
  --t: 200ms;
}
html[data-contrast="dark"] {
  --bg: #16130E; --text: #F6EBD5; --muted: #E3D7BE; --surface: #211C14; --tile: #2B241A;
  --link: #FFD27A; --line: #F6EBD5; --edge: #8A7A5C; --focus: #FFE600; --focus-in: #000000;
  --foot-bg: #0C0A07;
}
html[data-contrast="high"] {
  --bg: #000000; --text: #FFFFFF; --muted: #FFFFFF; --surface: #000000; --tile: #000000;
  --link: #FFE600; --sign: #FFE600; --line: #FFE600; --edge: #FFE600; --focus: #FFE600; --focus-in: #000000;
  --foot-bg: #000000; --foot-text: #FFFFFF; --foot-link: #FFE600;
}
html { font-size: 100%; -webkit-text-size-adjust: 100%; scroll-padding-top: 1rem; }
html[data-size="2"] { font-size: 125%; }
html[data-size="3"] { font-size: 150%; }
html[data-lh="1"] { --lh: 2; }
*, *::before, *::after { box-sizing: border-box; }
body {
  margin: 0; background: var(--bg); color: var(--text); font-family: var(--font);
  font-size: 1.125rem; line-height: var(--lh); overflow-wrap: break-word;
}
html[data-lh="1"] p, html[data-lh="1"] li, html[data-lh="1"] dd { letter-spacing: .01em; word-spacing: .05em; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; font-weight: 800; text-wrap: balance; }
h1 { font-size: clamp(2.3rem, 5.5vw + .5rem, 4rem); line-height: 1.15; }
h2 { font-size: clamp(1.8rem, 3vw + .6rem, 2.75rem); }
h3 { font-size: 1.5rem; }
p { margin: 0 0 1em; max-width: 42rem; }
ul, ol { margin: 0 0 1em; padding-left: 1.4em; }
li { margin-bottom: .35em; }
a { color: var(--link); text-decoration: underline; text-decoration-thickness: .12em; text-underline-offset: .2em; }
a:hover { text-decoration-thickness: .22em; }
img { max-width: 100%; height: auto; display: block; }
:where(a, button, input, summary, [tabindex]):focus-visible {
  outline: 3px solid var(--focus); outline-offset: 3px; box-shadow: 0 0 0 3px var(--focus-in); border-radius: .25rem;
}
.mono, time, .tel { font-family: var(--mono); font-variant-numeric: lining-nums tabular-nums; }
.tel { white-space: nowrap; }
.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 { position: absolute; left: .5rem; top: -6rem; z-index: 100; background: var(--sign); color: var(--sign-text); padding: .9rem 1.2rem; font-weight: 800; border: 3px solid var(--line); }
.skip:focus { top: .5rem; }
.wrap { width: min(100% - 2 * var(--gap), var(--wrap)); margin-inline: auto; }
.gloss { font-weight: 400; }
/* reveal: JS only, off with reduced motion or the panel switch */
html.js .reveal { opacity: 0; translate: 0 .75rem; transition: opacity var(--t) ease-out, translate var(--t) ease-out; }
html.js .reveal.in { opacity: 1; translate: 0 0; }
@media (prefers-reduced-motion: reduce) {
  html.js .reveal { opacity: 1; translate: none; transition: none; }
  * { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
html[data-still="1"].js .reveal { opacity: 1; translate: none; transition: none; }
html[data-still="1"] * { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
@media (forced-colors: active) {
  :where(a, button, input, summary):focus-visible { outline: 3px solid Highlight; box-shadow: none; }
  .btn, .sign, .tile, .card, .guide, .opt { border: 2px solid CanvasText; }
}
a[href^="mailto:"] { overflow-wrap: anywhere; }
p, li, dd, .card .body, .news p { text-wrap: pretty; }
main:focus { outline: none; }
