/* BEWAAR — reset, typografie en layoutprimitieven. */

*, *::before, *::after { box-sizing: border-box; border-radius: var(--radius); }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important;
                           transition-duration: .01ms !important; }
}

body {
  margin: 0;
  background: var(--grond);
  color: var(--inkt);
  font-family: var(--font);
  font-size: var(--t-body);
  line-height: var(--lh-body);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-wrap: break-word;
}
body.is-vast { overflow: hidden; }   /* wanneer drawer open is */

h1, h2, h3, h4, p, figure, blockquote, ul, ol, dl { margin: 0; }
ul, ol { padding: 0; list-style: none; }

img, video, svg { max-width: 100%; height: auto; display: block; }
img { background: var(--veld); }     /* nooit een gat tijdens laden */

/* ---- Koppen — alles vlak links, tracking strakker naarmate groter ---- */
h1, .h1 { font-size: var(--t-h1); line-height: var(--lh-h1); letter-spacing: var(--ls-h1); font-weight: 800; }
h2, .h2 { font-size: var(--t-h2); line-height: var(--lh-h2); letter-spacing: var(--ls-h2); font-weight: 700; }
h3, .h3 { font-size: var(--t-h3); line-height: 1.25; letter-spacing: -0.01em; font-weight: 700; }
h4, .h4 { font-size: 1.0625rem; line-height: 1.35; font-weight: 700; }

.tekst-groot { font-size: clamp(1.0625rem, 1.8vw, 1.25rem); line-height: 1.55; }
.tekst-klein { font-size: var(--t-klein); line-height: 1.5; }
.zacht { color: var(--inkt-zacht); }
.lees { max-width: var(--maxw-tekst); }

/* ---- Mono-label: codes, maten, kapitale labels ---------------------- */
.label {
  font-family: var(--mono);
  font-size: var(--t-label);
  font-weight: 500;
  letter-spacing: var(--ls-label);
  text-transform: uppercase;
  line-height: 1.4;
}
.label--rood { color: var(--rood-tekst); }
.label--zacht { color: var(--inkt-zacht); }

a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--rood); }

:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
  outline: 3px solid var(--rood);
  outline-offset: 2px;
}

/* ---- Layout --------------------------------------------------------- */
.omhulsel { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.sectie { padding-block: var(--sectie); }
.sectie--strak { padding-block: calc(var(--sectie) * .6); }
.sectie--inkt { background: var(--inkt); color: var(--grond); }
.sectie--veld { background: var(--veld); }
.sectie--wit { background: var(--wit); }

.raster { display: grid; gap: var(--s5); }
.raster--2 { grid-template-columns: 1fr; }
.raster--3 { grid-template-columns: 1fr; }
.raster--4 { grid-template-columns: repeat(2, 1fr); gap: var(--s4); }
@media (min-width: 40rem) {
  .raster--2 { grid-template-columns: repeat(2, 1fr); }
  .raster--3 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 60rem) {
  .raster--3 { grid-template-columns: repeat(3, 1fr); }
  .raster--4 { grid-template-columns: repeat(4, 1fr); gap: var(--s5); }
}

.stapel > * + * { margin-top: var(--s4); }
.stapel-groot > * + * { margin-top: var(--s6); }
.rij { display: flex; align-items: center; gap: var(--s3); flex-wrap: wrap; }

/* Sectiekop: mono-eyebrow + streep, zoals het merkboek */
.sectiekop { margin-bottom: var(--s6); }
.sectiekop__top { display: flex; justify-content: space-between; gap: var(--s4);
                  padding-bottom: var(--s3); border-bottom: var(--rand-inkt); margin-bottom: var(--s5); }
.sectiekop h2 { max-width: 22ch; }
.sectiekop p { margin-top: var(--s3); max-width: 52ch; color: var(--inkt-zacht); }

/* ---- Hulpklassen ---------------------------------------------------- */
.verborgen { display: none !important; }
.alleen-lezer {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.overslaan {
  position: absolute; left: var(--s4); top: -100px; z-index: var(--z-modal);
  background: var(--rood); color: #fff; padding: var(--s3) var(--s4); font-weight: 700;
}
.overslaan:focus { top: var(--s4); }

.beeld { position: relative; overflow: hidden; background: var(--veld); }
.beeld img { width: 100%; height: 100%; object-fit: cover; }
.beeld--4x3 { aspect-ratio: 4/3; }
.beeld--1x1 { aspect-ratio: 1/1; }
.beeld--3x4 { aspect-ratio: 3/4; }
.beeld--16x9 { aspect-ratio: 16/9; }

/* Onderschrift in mono — merkboekmanier om beeld te duiden */
.onderschrift { margin-top: var(--s3); color: var(--inkt-zacht); }
