/**
 * Global CSS.
 *
 * Bevat uitsluitend zaken die daadwerkelijk globaal zijn: reset, box model,
 * basis typografie, links en een generieke container. Component-specifieke
 * stijlen horen bij het component zelf, niet hier.
 */

:root {
	--color-text: #1a1a1a;
	--color-background: #ffffff;
	--color-link: #1a1a1a;
	--color-link-hover: #000000;

	--font-family-serif: "Playfair Display", serif;
	--font-family-base: "Questrial", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--font-size-base: 1rem;
	--line-height-base: 1.5;

	--container-max-width: 1200px;
	--container-padding: clamp(1rem, 4vw, 2rem);
}

* {
	box-sizing: border-box;
}

html {
	-webkit-text-size-adjust: 100%;
	text-size-adjust: 100%;
}

body {
	margin: 0;
	font-family: var(--font-family-base);
	font-size: var(--font-size-base);
	line-height: var(--line-height-base);
	color: var(--color-text);
	background-color: var(--color-background);
}

h1,
h2,
h3,
h4,
h5,
h6 {
	font-family: var(--font-family-serif);
	font-weight: 400; /* headings zijn altijd regular, Playfair Display wordt nooit bold */
}

img,
picture,
video,
svg {
	display: block;
	max-width: 100%;
	height: auto;
}

a {
	color: var(--color-link);
	text-decoration: underline;
}

a:hover,
a:focus {
	color: var(--color-link-hover);
}

.container {
	width: 100%;
	max-width: var(--container-max-width);
	margin-inline: auto;
	padding-inline: var(--container-padding);
}

/*
 * Typografie-utilities (zie fonts-spec.md). Genoeg componenten hebben een
 * heading-stijl op een niet-heading-element (bv. een span) of net andersom
 * nodig om dit globaal te houden.
 */
.heading-serif {
	font-family: var(--font-family-serif);
	font-weight: 400;
	letter-spacing: 0.01em;
}

.text-sans {
	font-family: var(--font-family-base);
}
