/* Basis: letters, reset, typografie, opmaak van de pagina. Tokens staan in tokens.css. */

/* Manrope en Space Mono, zelf gehost (OFL, zie assets/BRONNEN.md) */
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 400; font-display: swap; src: url("/assets/fonts/manrope-latin-400-normal.woff2?v=849290ef") format("woff2"); }
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 500; font-display: swap; src: url("/assets/fonts/manrope-latin-500-normal.woff2?v=19874318") format("woff2"); }
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 600; font-display: swap; src: url("/assets/fonts/manrope-latin-600-normal.woff2?v=f7ac6258") format("woff2"); }
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 700; font-display: swap; src: url("/assets/fonts/manrope-latin-700-normal.woff2?v=d2a12c85") format("woff2"); }
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 800; font-display: swap; src: url("/assets/fonts/manrope-latin-800-normal.woff2?v=74c161db") format("woff2"); }
@font-face { font-family: "Space Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url("/assets/fonts/space-mono-latin-400-normal.woff2?v=fb4a81a2") format("woff2"); }
@font-face { font-family: "Space Mono"; font-style: normal; font-weight: 700; font-display: swap; src: url("/assets/fonts/space-mono-latin-700-normal.woff2?v=2d46bd15") format("woff2"); }

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: 112px;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--papier);
  color: var(--ink);
  font-family: var(--f-tekst);
  font-size: var(--t-tekst);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

main { flex: 1; }

img, svg, video { display: block; max-width: 100%; height: auto; }

h1, h2, h3, h4 { margin: 0 0 var(--s-4); font-weight: 800; text-wrap: balance; }
h1 { font-size: var(--t-h1); line-height: 1.04; letter-spacing: -.035em; }
h2 { font-size: var(--t-h2); line-height: 1.08; letter-spacing: -.03em; }
h3 { font-size: var(--t-h3); line-height: 1.2; letter-spacing: -.02em; font-weight: 700; }

p { margin: 0 0 var(--s-4); max-width: var(--max-tekst); }
.lead { font-size: var(--t-lead); color: var(--ink-zacht); }
small, .klein { font-size: var(--t-klein); font-weight: 500; line-height: 1.5; }

a { color: var(--violet); text-underline-offset: .2em; }
a:hover { color: var(--violet-600); }

button, input, select, textarea { font: inherit; color: inherit; }

:focus-visible { outline: 3px solid var(--violet); outline-offset: 2px; }
.donker :focus-visible { outline-color: var(--violet-200); }

.cijfers { font-variant-numeric: tabular-nums; }

/* Opmaak van de pagina */
.wrap {
  width: 100%;
  max-width: calc(var(--breed) + 2 * var(--rand));
  margin-inline: auto;
  padding-inline: var(--rand);
}

.sectie { padding-block: var(--sectie); }
.sectie--vlak { background: var(--vlak); }

.donker { background: var(--nacht); color: var(--op-donker); }
.donker p, .donker .lead { color: var(--op-donker-zacht); }

.overslaan {
  position: absolute;
  left: var(--s-4);
  top: -100px;
  z-index: calc(var(--z-menu) + 1);
  padding: var(--s-3) var(--s-4);
  border-radius: var(--r-pil);
  background: var(--ink);
  color: var(--papier);
  font-weight: 700;
  text-decoration: none;
}
.overslaan:focus { top: var(--s-4); color: var(--papier); }

.verborgen {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

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

.raster {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: var(--s-5);
  margin-bottom: var(--s-6);
}
