/* ==========================================================================
   Basis — reset, typografie, links, knoppen, formulierelementen
   ========================================================================== */

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

html {
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
	/* sticky header compenseren bij het springen naar een anker */
	scroll-padding-top: 90px;
}

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

body {
	/* Vangnet tegen horizontaal scrollen: full-bleed blokken rekenen met 100vw,
	   wat op desktop de scrollbar meetelt. `clip` maakt geen scroll-container
	   aan, dus position: sticky blijft werken. */
	overflow-x: clip;
	font-family: var(--font-body);
	background: var(--wit);
	color: var(--ink);
	line-height: 1.55;
	font-size: 16px;
	-webkit-font-smoothing: antialiased;
}

/* Fijne filmkorrel over de hele pagina — puur decoratief */
.grain {
	position: fixed;
	inset: 0;
	z-index: 60;
	pointer-events: none;
	opacity: 0.035;
	mix-blend-mode: overlay;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

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

a { color: inherit; text-decoration: none; }
ul { list-style: none; padding: 0; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }

h1, h2, h3, h4, h5, h6 {
	font-family: var(--font-display);
	font-weight: 600;
	letter-spacing: -0.01em;
	line-height: 1.08;
}
h1 { font-size: var(--h1-size); font-weight: 700; letter-spacing: -0.03em; line-height: 1.1; }
h2 { font-size: var(--h2-size); font-weight: 700; letter-spacing: -0.02em; }
h3 { font-size: var(--h3-size); font-weight: 700; letter-spacing: -0.02em; }
h4 { font-size: var(--h4-size); }
h5 { font-size: var(--h5-size); }
h6 { font-size: var(--h6-size); }

p { text-wrap: pretty; }
b, strong { font-weight: 600; }
i, em { font-style: italic; }

/* Twee-tonige focusring (wit + donker) zodat hij zowel op lichte als op
   donkere secties zichtbaar blijft zonder een zesde kleur toe te voegen. */
:focus-visible {
	outline: 3px solid #fff;
	box-shadow: 0 0 0 6px var(--ink);
	border-radius: 4px;
}

.sr-only {
	position: absolute;
	width: 1px; height: 1px;
	padding: 0; margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}


/* ---------- Rich text (WYSIWYG-uitvoer) ---------- */
.content > * + * { margin-top: 1em; }
.content h1, .content h2, .content h3,
.content h4, .content h5, .content h6 { margin-top: 1.4em; }
.content > :first-child { margin-top: 0; }
.content p { color: rgba(var(--ink-rgb), 0.72); font-size: 1.02rem; }
.content a { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1.5px; }
.content a:hover { color: var(--rinse); }
.content ul, .content ol { padding-left: 1.3em; }
.content ul { list-style: disc; }
.content ol { list-style: decimal; }
.content li { margin-bottom: 0.5em; color: rgba(var(--ink-rgb), 0.72); }
.content img { border-radius: var(--radius-m); }
.content blockquote {
	border-left: 3px solid var(--accent);
	padding-left: 20px;
	font-size: 1.1rem;
}


/* ---------- Knoppen ---------- */
.btn,
a.button,
main button,
input[type='submit'] {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	padding: 15px 28px;
	border-radius: var(--radius-pill);
	font-weight: 600;
	font-size: 0.98rem;
	border: 1.5px solid transparent;
	background: var(--rinse);
	color: #fff;
	width: fit-content;
	white-space: nowrap;
	transition: transform 0.25s var(--ease), background 0.25s var(--ease),
	            border-color 0.25s var(--ease), box-shadow 0.25s var(--ease), color 0.25s var(--ease);
}
.btn svg { width: 18px; height: 18px; flex-shrink: 0; }
.btn:active { transform: scale(0.97) !important; }

.btn--primary,
a.button,
input[type='submit'] {
	background: var(--rinse);
	color: #fff;
	box-shadow: 0 1px 0 rgba(255, 255, 255, 0.08) inset, 0 14px 30px -12px rgba(24, 34, 56, 0.65);
}
.btn--primary:hover,
a.button:hover,
input[type='submit']:hover {
	background: var(--rinse-dark);
	transform: translateY(-2px);
	box-shadow: 0 1px 0 rgba(255, 255, 255, 0.1) inset, 0 20px 36px -12px rgba(24, 34, 56, 0.7);
}

.btn--ghost {
	background: transparent;
	border-color: rgba(var(--ink-rgb), 0.18);
	color: var(--ink);
	box-shadow: none;
}
.btn--ghost:hover {
	border-color: var(--ink);
	background: rgba(var(--ink-rgb), 0.04);
	transform: translateY(-2px);
}

.btn--ghost-light {
	background: transparent;
	border-color: rgba(255, 255, 255, 0.5);
	color: #fff;
	box-shadow: none;
}
.btn--ghost-light:hover {
	border-color: #fff;
	background: rgba(255, 255, 255, 0.12);
	transform: translateY(-2px);
}

.btn--light {
	background: #fff;
	color: var(--ink);
	box-shadow: none;
}
.btn--light:hover { background: var(--mist-dim); transform: translateY(-2px); }

.btn--block { width: 100%; justify-content: center; }

.buttons {
	display: flex;
	gap: 14px 20px;
	flex-wrap: wrap;
	align-items: center;
}
.buttons:not(:first-child) { margin-top: var(--padding); }

/* Op donkere en blauwe achtergronden wordt de standaardknop een lichte knop,
   zodat de blauwe vulling niet wegvalt tegen de sectie. */
.bg-donker .btn--primary,
.bg-blauw  .btn--primary {
	background: #fff;
	color: var(--ink);
}
.bg-donker .btn--primary:hover,
.bg-blauw  .btn--primary:hover { background: var(--mist-dim); }
.bg-donker .btn--ghost,
.bg-blauw  .btn--ghost {
	border-color: rgba(255, 255, 255, 0.5);
	color: #fff;
}
.bg-donker .btn--ghost:hover,
.bg-blauw  .btn--ghost:hover { border-color: #fff; background: rgba(255, 255, 255, 0.12); }
