/* ══ Basis ═══════════════════════════════════════════════════════════
   Reset, typografie, knoppen en de hulpklassen die elke pagina gebruikt.
   Alle kleuren en maten komen uit tokens.css. */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text-body);
  font-family: var(--font-body);
  font-size: var(--body-size);
  font-weight: var(--body-weight);
  line-height: var(--body-line-height);
  -webkit-font-smoothing: antialiased;
}
img, svg, video { display: block; max-width: 100%; }
/* breedte/hoogte-attributen reserveren ruimte tijdens het laden, maar mogen
   de hoogte daarna niet vastzetten zodra CSS de breedte bepaalt */
img { height: auto; }
button, input, textarea, select { font: inherit; color: inherit; }
a { color: inherit; }

h1, h2, h3, h4 {
  margin: 0;
  color: var(--text-heading);
  font-family: var(--font-heading);
  font-weight: var(--heading-weight);
  letter-spacing: var(--h1-tracking);
  line-height: 1.04;
  text-wrap: balance;
}
h1 { font-size: var(--h1-size); line-height: var(--h1-line-height); }
h2 { font-size: var(--h2-size); }
h3 { font-size: var(--h3-size); letter-spacing: -0.02em; line-height: 1.15; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
.lede { font-size: var(--lede-size); line-height: 1.45; color: var(--text-body); text-wrap: pretty; }
.label {
  font-size: var(--label-size);
  font-weight: 600;
  letter-spacing: var(--label-tracking);
  text-transform: uppercase;
  color: var(--text-muted);
}
.small { font-size: var(--small-size); color: var(--text-muted); }
.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: fixed; left: var(--gutter); top: -200px; z-index: 200;
  background: var(--aubergine); color: var(--bg);
  padding: 12px 20px; border-radius: var(--radius-button); font-weight: 600;
}
.skip:focus { top: 12px; }

:where(a, button, input, select, textarea, [tabindex]):focus-visible {
  outline: 3px solid var(--aubergine);
  outline-offset: 3px;
  border-radius: 8px;
}

/* ── knoppen ──────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 16px 28px;
  border: 1px solid transparent;
  border-radius: var(--radius-button);
  font-weight: var(--button-weight);
  font-size: 1rem;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition: background-color var(--t-fast) ease, color var(--t-fast) ease,
              border-color var(--t-fast) ease, transform var(--t-fast) ease;
}
.btn:active { transform: translateY(1px); }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn--primary { background: var(--aubergine); color: var(--bg); }
.btn--primary:hover { background: var(--aubergine-hover); }
.btn--ghost { background: transparent; color: var(--text-heading); border-color: var(--aubergine-lijn); }
.btn--ghost:hover { border-color: var(--aubergine); }
.btn--licht { background: var(--pistache); color: var(--aubergine); }
.btn--licht:hover { background: var(--pistache-diep); }
.btn--sm { padding: 12px 20px; font-size: var(--small-size); }

/* tekstlink met pistache-onderstreping */
.link {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 600; color: var(--text-heading); text-decoration: none;
  border-bottom: 2px solid var(--pistache);
  padding-bottom: 3px;
  transition: border-color var(--t-fast) ease;
}
.link:hover { border-bottom-color: var(--aubergine); }
.link svg { width: 14px; height: 14px; }

/* ── vlakken ──────────────────────────────────────────────────────── */
.band { padding-block: var(--block); }
.band--creme { background: var(--bg); }
.band--wit { background: var(--surface); }
.band--lavendel { background: var(--lavendel); }
.band--lavendel .label { color: var(--label-op-lavendel); }
.card {
  background: var(--surface);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
}

/* ── binnenkomst ──────────────────────────────────────────────────── */
html.js [data-rise] { opacity: 0; transform: translateY(16px); }
html.js [data-rise].is-in {
  opacity: 1; transform: none;
  transition: opacity 620ms var(--ease), transform 620ms var(--ease);
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  html.js [data-rise] { opacity: 1 !important; transform: none !important; }
  * { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
