/* ==========================================================================
   MN Project Beweging — Base
   Reset, typografie-defaults, focus, utilities.
   ========================================================================== */

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

html {
  overflow-x: clip;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1rem);
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: var(--step-0);
  font-weight: var(--fw-regular);
  line-height: var(--lh-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

img, picture, svg, video { display: block; max-width: 100%; height: auto; }
input, button, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }

h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--font-display);
  color: var(--color-heading);
  line-height: var(--lh-snug);
  text-wrap: balance;
}
h1 { font-size: var(--step-5); line-height: var(--lh-tight); letter-spacing: var(--tracking-tight); }
h2 { font-size: var(--step-4); line-height: var(--lh-tight); letter-spacing: var(--tracking-tight); }
h3 { font-size: var(--step-2); }
h4 { font-size: var(--step-1); }

p, ul, ol, dl, figure, blockquote { margin: 0; }
p { text-wrap: pretty; }
p + p { margin-top: var(--space-4); }

a {
  color: var(--color-cta);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}
a:hover { text-decoration-thickness: 2px; }

strong { color: var(--color-text-strong); font-weight: var(--fw-semibold); }

:focus-visible {
  outline: 3px solid var(--color-focus);
  outline-offset: 3px;
  border-radius: var(--r-sm);
}

::selection { background: var(--c-koraal); color: #fff; }

/* ---------- Layout ---------- */
.container {
  width: min(100% - 2 * var(--gutter), var(--container));
  margin-inline: auto;
}
.container--narrow { width: min(100% - 2 * var(--gutter), var(--container-narrow)); }

.section { padding-block: var(--section-y); }
.section--alt { background: var(--color-bg-alt); }
.section--dark {
  background: var(--color-dark);
  color: var(--color-on-dark);
  --color-heading: var(--color-on-dark);
  --color-text-strong: #fff;
  --color-muted: var(--c-kurk);
  --color-border: rgb(247 234 223 / 0.18);
  --color-cta: var(--c-koraal);
}
.section--dark a:not(.btn) { color: var(--c-zand); }

.stack > * + * { margin-top: var(--stack, var(--space-4)); }
.measure { max-width: var(--measure); }
.center { text-align: center; margin-inline: auto; }

/* ---------- Typografische helpers ---------- */
.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: var(--step--1);
  font-weight: var(--fw-bold);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--color-muted);
}
.lead { font-size: var(--step-1); line-height: 1.55; color: var(--color-text-strong); }
.small { font-size: var(--step--1); }

/* ---------- Toegankelijkheid ---------- */
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.skip-link {
  position: absolute;
  left: var(--space-4);
  top: -100px;
  z-index: 100;
  padding: var(--space-3) var(--space-5);
  background: var(--color-dark);
  color: var(--color-on-dark);
  border-radius: var(--r-md);
  font-weight: var(--fw-semibold);
}
.skip-link:focus { top: var(--space-4); }

/* ---------- Scroll-reveal (alleen actief met JS) ---------- */
.js .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity var(--dur-slow) var(--ease-out), transform var(--dur-slow) var(--ease-out);
}
.js .reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; }
}
