/* sikkereuc.dk — base: tokens, reset, type. Mobile first.
   One accent colour (road-sign yellow). No gradients, no glows, no shadows-as-decoration.
   Text/background pairs are checked for WCAG AA in internal/web/contrast_test.go. */
:root {
  --ink: #1D1D1B;        /* text, logo */
  --paper: #FAF8F3;      /* page background, calm off-white */
  --white: #FFFFFF;      /* cards */
  --muted: #55534D;      /* secondary text */
  --line: #D8D4CA;       /* borders, dividers (not text) */
  --yellow: #F5C400;     /* the one accent: buttons, highlights, road line. Never text on light bg. */
  --yellow-soft: #FFF3BF;/* notice background */
  --danger: #A3261B;     /* errors, and "against" points */
  --pro: #1E6B3C;        /* "for" points (7:1 on white) */
  --on-ink-muted: #D9D6CE; /* secondary text on the dark footer */

  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --step--1: 0.875rem;
  --step-0: 1rem;
  --step-1: 1.2rem;
  --step-2: 1.5rem;
  --step-3: clamp(1.75rem, 5vw, 2.6rem);
  --radius: 6px;
  --gap: 1rem;
  --wrap: 68rem;
  --bar-h: 4rem; /* mobile bottom bar */
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: var(--step-0);
  line-height: 1.55;
}
img, svg { max-width: 100%; height: auto; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 0.6em; }
h1 { font-size: var(--step-3); letter-spacing: -0.01em; }
h2 { font-size: var(--step-2); margin-top: 1.6em; }
h3 { font-size: var(--step-1); }
p, ul, ol { margin: 0 0 1em; }

a { color: var(--ink); text-decoration-thickness: 2px; text-underline-offset: 3px; text-decoration-color: var(--yellow); }
a:hover { text-decoration-color: var(--ink); }

:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; border-radius: 2px; }
main:focus { outline: none; }

.visually-hidden {
  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: 0.5rem; top: -3rem; z-index: 100;
  background: var(--ink); color: var(--white); padding: 0.5rem 0.9rem; border-radius: var(--radius);
}
.skip-link:focus { top: 0.5rem; }

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