/* ==========================================================================
   BASE — reset, typografie en toegankelijkheid.
   ========================================================================== */

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

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

body {
	margin: 0;
	background: var(--c-bg);
	color: var(--c-text);
	font-family: var(--font-body);
	font-size: var(--fs-base);
	line-height: var(--lh-body);
	font-synthesis-weight: none;
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}

body.is-locked { overflow: hidden; }

h1, h2, h3, h4, h5 {
	margin: 0 0 .6em;
	font-family: var(--font-display);
	font-weight: 700;
	line-height: var(--lh-head);
	letter-spacing: var(--ls-tight);
	color: var(--c-heading);
	text-wrap: balance;
}

h1 { font-size: var(--fs-h1); line-height: var(--lh-tight); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }
h4 { font-size: var(--fs-h4); }

p { margin: 0 0 1.15em; max-width: 68ch; }
p:last-child { margin-bottom: 0; }

a {
	color: var(--c-green);
	text-decoration-color: rgba(47, 107, 60, .35);
	text-underline-offset: .18em;
	transition: color var(--t-fast) var(--ease);
}
a:hover { color: var(--c-deep); }

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

ul, ol { margin: 0 0 1.15em; padding-left: 1.25rem; }
li { margin-bottom: .4em; }

blockquote {
	margin: 2rem 0;
	padding: 1.25rem 0 1.25rem 1.5rem;
	border-left: 3px solid var(--c-lime);
	font-family: var(--font-display);
	font-size: var(--fs-lg);
	color: var(--c-heading);
}

hr {
	border: 0;
	border-top: 1px solid var(--c-line);
	margin: var(--sp-7) 0;
}

table {
	width: 100%;
	border-collapse: collapse;
	margin-bottom: 1.5rem;
	font-size: var(--fs-sm);
}
th, td {
	padding: .75rem 1rem;
	border-bottom: 1px solid var(--c-line);
	text-align: left;
}
th { font-weight: 700; color: var(--c-heading); }

code, kbd, pre {
	font-family: ui-monospace, "SFMono-Regular", Menlo, monospace;
	font-size: .9em;
}

/* --- Formuliervelden ------------------------------------------------- */
input, textarea, select, button {
	font: inherit;
	color: inherit;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="search"],
textarea,
select {
	width: 100%;
	padding: .85rem 1.05rem;
	background: var(--c-white);
	border: 1px solid var(--c-line);
	border-radius: var(--r-sm);
	transition: border-color var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease);
}

input:focus, textarea:focus, select:focus {
	outline: none;
	border-color: var(--c-green);
	box-shadow: 0 0 0 3px rgba(47, 107, 60, .16);
}

textarea { min-height: 140px; resize: vertical; }

/* --- Toegankelijkheid ------------------------------------------------- */
:focus-visible {
	outline: 3px solid var(--c-focus);
	outline-offset: 3px;
	border-radius: 4px;
}

.screen-reader-text {
	position: absolute !important;
	width: 1px; height: 1px;
	margin: -1px; padding: 0;
	overflow: hidden;
	clip: rect(0 0 0 0);
	clip-path: inset(50%);
	white-space: nowrap;
	border: 0;
}

.skip-link {
	position: absolute;
	top: -100px; left: var(--sp-4);
	z-index: var(--z-top);
	padding: .75rem 1.25rem;
	background: var(--c-deep);
	color: #fff;
	border-radius: var(--r-sm);
	text-decoration: none;
	transition: top var(--t-base) var(--ease);
}
.skip-link:focus { top: var(--sp-4); color: #fff; }

/* Selectie in merkkleur */
::selection { background: var(--c-lime); color: var(--c-deep); }

/* Nette scrollbar op desktop */
@media (min-width: 1024px) {
	* { scrollbar-width: thin; scrollbar-color: var(--c-green) transparent; }
}
