/**
 * Base: reset en de standaard voor tekst.
 */

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

html {
	-webkit-text-size-adjust: 100%;
	text-size-adjust: 100%;
	scroll-behavior: smooth;
	scroll-padding-block-start: var(--header-height);
}

/* Echt grote schermen (vanaf 1920): alles in rem (tekst, ruimte, illustraties) groeit mee met de breedte,
   tot 125% bij 2400 en breder. De breekpunten zelf veranderen niet (die rekenen met de standaard 16px). */
@media (width >= 120rem) {
	html {
		font-size: min(0.8333vw, 1.25rem); /* 16px op 1920, 20px vanaf 2400 */
	}
}

body {
	margin: 0;
	background: var(--color-white);
	font: 400 var(--text-body) / var(--leading-body) var(--font-text);
	color: var(--color-ink);
	text-wrap: pretty;
	-webkit-font-smoothing: antialiased;
}

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

ul[role='list'],
ol[role='list'] {
	padding: 0;
	list-style: none;
}

img,
svg {
	display: block;
	max-inline-size: 100%;
	block-size: auto;
}

a {
	color: inherit;
}

button,
input,
textarea,
select {
	font: inherit;
	color: inherit;
}

/* Zichtbare focus voor wie met het toetsenbord werkt. */
:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 0.25rem;
}

.skip-link {
	position: absolute;
	z-index: 200;
	inset: var(--space-xs) auto auto var(--space-xs);
	padding: var(--space-xs) var(--space-s);
	border-radius: var(--radius-s);
	background: var(--color-white);
	color: var(--color-ink);
	transform: translateY(-200%);
}

.skip-link:focus {
	transform: none;
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	*,
	*::before,
	*::after {
		transition-duration: 0.01ms !important;
		animation-duration: 0.01ms !important;
	}
}
