/* ==========================================================================
   Base: reset, typografie, layout-hulpklassen
   ========================================================================== */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 1rem);
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--text);
  background: var(--peach-soft);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

img {
  height: auto;
}

h1, h2, h3, h4,
p, ul, ol, dl, dd, figure, blockquote {
  margin: 0;
}

ul[class],
ol[class] {
  list-style: none;
  padding: 0;
}

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

button {
  font: inherit;
  color: inherit;
}

/* --- Koppen: Grandstander (brandbook: "vaste plek voor de kop, linksboven") --- */
h1, h2, h3 {
  font-family: var(--font-heading);
  color: var(--forest);
  line-height: var(--lh-heading);
  letter-spacing: -0.01em;
  text-wrap: balance;
}

h1 { font-size: var(--fs-h1); font-weight: 800; }
h2 { font-size: var(--fs-h2); font-weight: 700; }
h3 { font-size: var(--fs-h3); font-weight: 700; }

p { text-wrap: pretty; }

/* --- Subkop: handschrift, direct onder de kop (brandbook) --- */
.subkop {
  font-family: var(--font-hand);
  font-size: var(--fs-subkop);
  line-height: 1.15;
  color: var(--berry);
  margin-top: 0.15em;
}

.subkop--small { font-size: 1.35rem; }
.subkop--on-dark { color: var(--mint); }

/* --- Material Symbols basis --- */
.material-symbols-rounded {
  font-size: 1.25em;
  line-height: 1;
  vertical-align: middle;
  font-variation-settings: "FILL" 0, "wght" 500, "GRAD" 0, "opsz" 24;
  user-select: none;
}

/* --- Layout --- */
.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  padding-block: var(--space-3xl);
}

.section-title { max-width: 22ch; }

.section-head { margin-bottom: var(--space-2xl); }

.section-head--split {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--space-l);
}

/* --- Toegankelijkheid --- */
[hidden] { display: none !important; }

.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: var(--space-m);
  top: -100px;
  z-index: 100;
  padding: var(--space-xs) var(--space-m);
  background: var(--forest);
  color: var(--white);
  border-radius: var(--radius-s);
  font-weight: 700;
}

.skip-link:focus { top: var(--space-m); }

:focus-visible {
  outline: 3px solid var(--berry);
  outline-offset: 3px;
  border-radius: 4px;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
