/*
 * Basis: reset, typografie, inhoud. Alleen CSS-variabelen uit het controlepaneel (Master-instructie 3 tot 6).
 * Geen vaste kleuren of lettermaten hier, behalve vaste kleine maten uit de instructie (13px, 14px, 15px).
 */

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
	margin: 0;
	background: var(--offwhite);
	color: var(--zwart);
	font-family: var(--letter);
	font-weight: var(--gewicht-tekst);
	font-size: var(--tekst);
	line-height: var(--regelhoogte);
	-webkit-font-smoothing: antialiased;
	min-height: 100vh;
	display: flex;
	flex-direction: column;
}
.hoofdinhoud { flex: 1 0 auto; }

img, svg, video { max-width: 100%; height: auto; display: block; }
strong, b { font-weight: var(--gewicht-titel); }
em, cite { font-style: italic; } /* in Obsidian alleen voor titels van boeken en tentoonstellingen */

h1, h2, h3, h4 { font-weight: var(--gewicht-titel); line-height: 1.2; margin: 0; }

a { color: var(--zwart); }

:focus-visible { outline: 3px solid var(--geel); outline-offset: 2px; }

.screen-reader-text {
	position: absolute !important;
	width: 1px; height: 1px;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
	white-space: nowrap;
}
.overslaan:focus {
	clip: auto; width: auto; height: auto;
	top: 8px; left: 8px; z-index: 1000;
	background: var(--geel); color: var(--zwart);
	padding: 10px 16px; border-radius: 3px;
}

/* ---- Opmaak ---- */

.container {
	max-width: var(--breedte);
	margin: 0 auto;
	padding: 0 40px;
}
.pagina { padding-top: 48px; padding-bottom: 112px; }

/* ---- Paginatitel met gele lijn eronder (6.2) ---- */

.paginatitel { font-size: var(--h1); margin: 0 0 48px; }
.paginatitel::after {
	content: "";
	display: block;
	width: 64px; height: 3px;
	background: var(--geel);
	margin-top: 20px;
}
.paginatitel-print { font-size: calc(var(--h1) * 0.9); margin-bottom: 28px; }

/* Titel van een sectie buiten de inhoud, zelfde vorm als h2 in de inhoud. */
.sectietitel,
.inhoud h2 {
	font-size: var(--h2);
	text-transform: var(--h2-hoofdletters);
	letter-spacing: var(--h2-letterafstand);
	margin: 0 0 20px;
}
.sectietitel::before,
.inhoud h2::before {
	content: "";
	display: block;
	width: 48px; height: 3px;
	background: var(--geel);
	margin-bottom: 18px;
}

/* ---- Inhoud uit Obsidian (8.1) ---- */

.inhoud > * + * { margin-top: 0; }
.inhoud p, .inhoud ul, .inhoud ol, .inhoud dl { margin: 0 0 16px; }
.inhoud > h2, .inhoud .blok-vol > h2 { margin-top: 64px; }
.inhoud > h2:first-child { margin-top: 0; }
.inhoud h3 { font-size: var(--h3); margin: 32px 0 12px; }
.inhoud h4 { font-size: var(--tekst); margin: 24px 0 8px; }
.inhoud ul, .inhoud ol { padding-left: 1.3em; }
.inhoud li + li { margin-top: 4px; }
.inhoud dt { font-weight: var(--gewicht-titel); }
.inhoud dd { margin: 0 0 12px; }

/* Inleiding van een overzicht (portfolio, publicaties) smaller; de eerste alinea van een pagina of blogbericht
   loopt over de volle breedte, zoals de rest van de tekst (2026-10-14). */
.inleiding { max-width: 760px; }
.inleiding { margin-bottom: 48px; }
/* Blog- en portfolio-overzicht (ook per categorie of thema): de inleiding loopt over de volle breedte, zoals de tekst van een blogbericht. */
body.blog .inleiding,
body.category .inleiding,
.pagina.portfolio .inleiding { max-width: none; }

/* Links in lopende tekst (6.3) */
.inhoud a,
.kruimelpad a {
	text-decoration: underline;
	text-decoration-color: var(--geel);
	text-decoration-thickness: 2px;
	text-underline-offset: 3px;
}
.inhoud a:hover { background: var(--geel); }
.inhoud .losse-link { margin-top: 20px; }
.inhoud a.leeslink { text-decoration: none; border-bottom: 2px solid var(--geel); padding-bottom: 2px; }

/* Foto's (6.4): nooit bijgesneden, hoeken, bijschrift eronder */
.inhoud img { border-radius: var(--hoeken); }
.inhoud figure { margin: 32px 0; }
.inhoud figure img { width: auto; max-height: 85vh; }
figcaption,
.wp-element-caption {
	font-size: 14px;
	margin-top: 10px;
	color: var(--zwart);
}

/* Lijn (hr) */
.inhoud hr { border: 0; border-top: 1px solid var(--lijn); margin: 48px 0; }

/* Citaat (6.9): cursief, even groot als de lopende tekst, weinig witruimte */
.inhoud blockquote {
	margin: 8px 0 16px;
	padding: 0;
	border: 0;
	font-size: var(--tekst);
	line-height: var(--regelhoogte);
	font-style: italic;
}
.inhoud blockquote p:last-of-type { margin-bottom: 0; } /* ook vóór de naam (footer) */
.inhoud blockquote cite,
.inhoud blockquote footer {
	display: block;
	margin-top: 14px;
	font-size: 15px;
	font-style: normal;
	text-transform: uppercase;
	letter-spacing: 0.08em;
}

/* Tabellen: technisch kader (6.7) */
.inhoud .wp-block-table { margin: 24px 0 32px; overflow-x: auto; }
.inhoud table {
	width: 100%;
	border-collapse: collapse;
	font-size: 15px;
	margin: 24px 0 32px;
}
.inhoud .wp-block-table table { margin: 0; }
.inhoud th,
.inhoud td,
.inhoud .wp-block-table th,
.inhoud .wp-block-table td {
	border: 0;
	text-align: left;
	vertical-align: top;
	padding: 10px 16px 10px 0;
	border-bottom: 1px solid var(--lijn);
}
.inhoud .wp-block-table thead { border-bottom: 0; }
.inhoud thead th { font-size: 13px; text-transform: uppercase; letter-spacing: 0.08em; }
.inhoud tbody th,
.inhoud tbody td:first-child { font-weight: var(--gewicht-titel); width: 38%; }
.inhoud table caption,
.inhoud .wp-block-table figcaption { text-align: left; font-size: 13px; text-transform: uppercase; letter-spacing: 0.08em; }
.inhoud table .fas,
.inhoud table .far,
.inhoud table .fab { width: 1.3em; text-align: center; margin-right: 6px; }
.inhoud .af-icoon { display: inline-block; width: 1.2em; height: 1.2em; vertical-align: -0.22em; }
.inhoud table .af-icoon { margin: 0 6px 0 0.05em; }

/* Code */
.inhoud code { font-size: 0.9em; background: var(--wit); padding: 1px 5px; border-radius: 3px; }
.inhoud pre { background: var(--wit); padding: 16px; overflow-x: auto; border-radius: 3px; font-size: 14px; }

/* ---- Gsm ---- */

@media (max-width: 600px) {
	.container { padding: 0 20px; }
	.pagina { padding-top: 32px; padding-bottom: 80px; }
	.paginatitel { font-size: calc(var(--h1) * 0.8); }
}
