/* Fundament: nulstilling, tilgængelighed og bevægelse.
   Ingen designvalg her — farver, typografi og layout hører til i site.css. */

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; hanging-punctuation: first last; }
body { min-height: 100svh; line-height: 1.5; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img, picture, video, canvas, svg { display: block; max-width: 100%; }
img { height: auto; }
input, button, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; }
a { color: inherit; }
p, li, figcaption { text-wrap: pretty; overflow-wrap: break-word; }
h1, h2, h3, h4 { text-wrap: balance; overflow-wrap: break-word; }
ul[role="list"], ol[role="list"] { list-style: none; padding: 0; }
address { font-style: normal; }

:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; border-radius: 2px; }

.sr-only {
  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: 1rem; top: -4rem; z-index: 1000; padding: .75rem 1rem; background: Canvas; color: CanvasText; }
.skip-link:focus { top: 1rem; }

/* Bløde sideskift mellem undersider (Chrome/Edge/Safari 18+) */
@view-transition { navigation: auto; }

/* Reveal: skjules kun når JS kører og bruger ikke har slået bevægelse fra.
   Selve animationen (retning, afstand, varighed) defineres i site.css via --reveal-* */
.js [data-reveal] {
  opacity: 0;
  translate: var(--reveal-x, 0) var(--reveal-y, 1.5rem);
  transition:
    opacity var(--reveal-dur, .9s) var(--ease-out, cubic-bezier(.16, 1, .3, 1)) var(--reveal-delay, 0s),
    translate var(--reveal-dur, .9s) var(--ease-out, cubic-bezier(.16, 1, .3, 1)) var(--reveal-delay, 0s);
}
.js [data-reveal].is-in { opacity: 1; translate: 0 0; }

/* Ord-for-ord tekst (data-split). Bruges til ét øjeblik, typisk hero-overskriften. */
.split-word { display: inline-block; white-space: pre; }
.split-word > span { display: inline-block; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important;
    transition-duration: .01ms !important; scroll-behavior: auto !important;
  }
  .js [data-reveal] { opacity: 1; translate: none; }
  @view-transition { navigation: none; }
}
