/* No Waste Wonen: an indie interior magazine with thrift-shop finds and label-maker tags.
   Instrument Serif for headlines, Instrument Sans for text, risograph-style line drawings. */

@font-face {
	font-family: "Instrument Serif";
	src: url("/assets/fonts/instrument-serif-latin-400-normal.woff2") format("woff2");
	font-weight: 400;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: "Instrument Serif";
	src: url("/assets/fonts/instrument-serif-latin-400-italic.woff2") format("woff2");
	font-weight: 400;
	font-style: italic;
	font-display: swap;
}
@font-face {
	font-family: "Instrument Sans";
	src: url("/assets/fonts/instrument-sans-latin-standard-normal.woff2") format("woff2-variations");
	font-weight: 400 700;
	font-stretch: 75% 100%;
	font-style: normal;
	font-display: swap;
}

:root {
	color-scheme: light dark;
	/* paper and ink */
	--paper: #eee6d6;
	--paper-hi: #f8f3e8;
	--paper-lo: #e3d9c4;
	--ink: #22201c;
	--ink-soft: #57524a;
	--rule: #cbbfa6;
	/* colour blocks: strong (with --on-strong text) and tints */
	--clay: #a64a28;
	--clay-text: #9c4224;
	--clay-tint: #ebc9b0;
	--moss: #5b6532;
	--moss-text: #535c2c;
	--moss-tint: #d3d6b0;
	--mustard: #dda437;
	--mustard-tint: #f1dca6;
	--on-strong: #f8f3e8;
	/* risograph inks for the drawings */
	--riso-clay: #cf6a42;
	--riso-moss: #8a9550;
	--riso-mustard: #e6ac3c;
	--riso-ink: #22201c;
	--riso-blend: multiply;
	--tape: rgba(244, 233, 205, 0.78);
	--footer-bg: #22201c;
	--footer-fg: #eee6d6;
	--footer-soft: #bdb4a3;

	--serif: "Instrument Serif", "Iowan Old Style", Georgia, serif;
	--sans: "Instrument Sans", "Helvetica Neue", Arial, sans-serif;
	--width: 76rem;
	--measure: 41rem;

	/* hand-drawn marks (src/assets/marks), used as masks so they take any colour */
	--m-box: url("/assets/marks/box.svg");
	--m-cross: url("/assets/marks/cross.svg");
	--m-squiggle: url("/assets/marks/squiggle.svg");
	--m-circle: url("/assets/marks/circle.svg");
	--m-torn: url("/assets/marks/torn.svg");
	--m-torn-top: url("/assets/marks/torn-top.svg");
	--m-zigzag: url("/assets/marks/zigzag.svg");
	--m-arrow: url("/assets/marks/arrow.svg");
	--m-solid: linear-gradient(#000, #000);
}

@media (prefers-color-scheme: dark) {
	:root {
		--paper: #1d1b18;
		--paper-hi: #27241f;
		--paper-lo: #151310;
		--ink: #ede4d3;
		--ink-soft: #b3aa9a;
		--rule: #423c33;
		--clay: #e8936d;
		--clay-text: #eb9d7a;
		--clay-tint: #3d2a21;
		--moss: #b9c27f;
		--moss-text: #bcc585;
		--moss-tint: #2f3221;
		--mustard: #e3b04e;
		--mustard-tint: #3b311c;
		--on-strong: #1d1b18;
		--riso-clay: #b85a36;
		--riso-moss: #6f7a3c;
		--riso-mustard: #c08f2e;
		--riso-ink: #ede4d3;
		--riso-blend: normal;
		--tape: rgba(237, 228, 211, 0.22);
		--footer-bg: #151310;
		--footer-fg: #ede4d3;
		--footer-soft: #b3aa9a;
	}
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 1rem; }
body {
	margin: 0;
	background: var(--paper);
	color: var(--ink);
	font-family: var(--sans);
	font-size: 1.0625rem;
	line-height: 1.6;
	font-stretch: 100%;
	overflow-x: hidden;
}
img, svg { max-width: 100%; }
a { color: var(--clay-text); text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 2px; }
.wrap { width: min(100% - 2rem, var(--width)); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 0; background: var(--paper-hi); color: var(--ink); padding: 0.6rem 1rem; z-index: 20; }
.skip:focus { left: 1rem; top: 0.5rem; }
.it { font-style: italic; }
h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }

.icon { width: 1.25em; height: 1.25em; flex: none; vertical-align: -0.25em; }

/* Tone classes set the colour of a block and its drawing. */
.tone-clay { --tone: var(--clay); --tone-tint: var(--clay-tint); --tone-text: var(--clay-text); }
.tone-moss { --tone: var(--moss); --tone-tint: var(--moss-tint); --tone-text: var(--moss-text); }
.tone-mustard { --tone: var(--mustard); --tone-tint: var(--mustard-tint); --tone-text: var(--ink); }

/* Risograph drawings: the colour layer sits a few pixels off the line layer. */
.illo { display: block; width: 100%; height: auto; overflow: visible; }
.illo-fill { mix-blend-mode: var(--riso-blend); transition: transform 0.35s ease; }

/* Label-maker tags: embossed letters on a strip of tape, cut at an angle. */
.tag {
	display: inline-flex;
	align-items: center;
	gap: 0.45em;
	padding: 0.42em 0.85em 0.38em 0.75em;
	background: var(--ink);
	color: var(--paper-hi);
	font-family: var(--sans);
	font-size: 0.78rem;
	font-weight: 700;
	font-stretch: 78%;
	line-height: 1;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	text-shadow: 0 1px 0 rgba(0, 0, 0, 0.35), 0 -1px 0 rgba(255, 255, 255, 0.12);
	clip-path: polygon(0.35em 0, 100% 0, calc(100% - 0.35em) 100%, 0 100%);
	transform: rotate(-1.5deg);
	white-space: nowrap;
}
.tag .icon { width: 1.15em; height: 1.15em; vertical-align: 0; }
.tag-nieuw { background: var(--clay); color: var(--on-strong); }
.tag-tweedehands, .tag-nakijken { background: var(--moss); color: var(--on-strong); }
.tag-wacht { background: var(--mustard); color: #22201c; text-shadow: 0 1px 0 rgba(255, 255, 255, 0.35); }
.tag-meteen, .tag-thuis, .tag-ink { background: var(--ink); color: var(--paper); }
.tag-nakijken { transform: rotate(1deg); }
.tag-wacht { transform: rotate(1.5deg); }

/* Buttons */
.btn {
	display: inline-flex;
	align-items: center;
	gap: 0.6rem;
	padding: 0.8rem 1.3rem 0.8rem 1.1rem;
	background: var(--ink);
	color: var(--paper);
	font-weight: 600;
	text-decoration: none;
	border-radius: 999px;
}
.btn:hover { background: var(--clay); color: var(--on-strong); }
.btn .icon { transition: transform 0.2s ease; }
.btn:hover .icon { transform: translateX(3px); }
.btn-ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 2px var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--paper); }

/* Hand-written notes next to drawings: italic serif, a little crooked, with an arrow. */
.hand-note {
	position: absolute;
	margin: 0;
	font-family: var(--serif);
	font-style: italic;
	font-size: 1.6rem;
	line-height: 1;
	color: var(--ink);
	transform: rotate(-6deg);
	white-space: nowrap;
}
.hand-note::after {
	content: "";
	position: absolute;
	width: 2.6rem;
	height: 1.9rem;
	right: 100%;
	top: 0.8em;
	margin-right: 0.15rem;
	background: currentColor;
	-webkit-mask: var(--m-arrow) center / contain no-repeat;
	mask: var(--m-arrow) center / contain no-repeat;
}

/* Tape strips for pinned-up prints */
.taped { position: relative; }
.taped::before, .taped::after {
	content: "";
	position: absolute;
	z-index: 2;
	width: 5.5rem;
	height: 1.6rem;
	background: var(--tape);
	clip-path: polygon(3% 0, 97% 6%, 100% 30%, 96% 55%, 100% 80%, 97% 100%, 4% 94%, 0 70%, 3% 45%, 0 20%);
}
.taped::before { top: -0.7rem; left: 1.2rem; transform: rotate(-8deg); }
.taped::after { top: -0.6rem; right: 1.4rem; transform: rotate(6deg); }

/* ---------- Header ---------- */
.site-header { padding-block: 1.1rem 0.6rem; }
.header-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.6rem 2rem; }
.logo { display: inline-flex; align-items: center; gap: 0.55rem; color: var(--ink); text-decoration: none; }
.logo-mark { width: 2.6rem; height: 2.6rem; flex: none; color: var(--ink); }
.logo-name { font-family: var(--serif); font-size: 1.85rem; line-height: 1; letter-spacing: -0.01em; white-space: nowrap; }
.logo-it { font-style: italic; color: var(--clay-text); }
.nav { display: flex; flex-wrap: wrap; gap: 0.2rem 1.4rem; list-style: none; margin: 0; padding: 0; font-size: 0.97rem; font-weight: 550; }
.nav a { position: relative; display: inline-flex; align-items: center; gap: 0.4rem; padding-block: 0.4rem; color: var(--ink); text-decoration: none; }
.nav .icon { color: var(--clay-text); }
.nav a::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: -0.1rem;
	height: 0.55rem;
	background: var(--clay);
	-webkit-mask: var(--m-squiggle) center / 100% 100% no-repeat;
	mask: var(--m-squiggle) center / 100% 100% no-repeat;
	opacity: 0;
}
.nav a:hover::after, .nav a[aria-current]::after { opacity: 1; }

/* ---------- Homepage: cover ---------- */
.cover {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 2.5rem;
	padding-block: 2rem 3.5rem;
	align-items: center;
}
.cover-issue { margin: 0 0 1.25rem; }
.cover-title {
	font-family: var(--serif);
	font-weight: 400;
	font-size: clamp(3.1rem, 9.5vw, 6.6rem);
	line-height: 0.9;
	letter-spacing: -0.025em;
	margin: 0 0 1.5rem;
}
.cover-it { font-style: italic; color: var(--clay-text); }
.circled { position: relative; display: inline-block; margin-inline: 0.06em 0.12em; color: var(--ink); }
.circled::after {
	content: "";
	position: absolute;
	inset: -0.06em -0.14em 0 -0.16em;
	background: var(--moss);
	-webkit-mask: var(--m-circle) center / 100% 100% no-repeat;
	mask: var(--m-circle) center / 100% 100% no-repeat;
	pointer-events: none;
}
.cover-lede { font-size: 1.2rem; line-height: 1.55; color: var(--ink-soft); max-width: 34rem; margin: 0; }
.cover-art { position: relative; }
.cover-plate {
	position: relative;
	background: var(--mustard);
	padding: 2.5rem 1.5rem 2.75rem;
	-webkit-mask: var(--m-torn) bottom / 4rem 0.8rem repeat-x, var(--m-solid) top / 100% calc(100% - 0.75rem) no-repeat;
	mask: var(--m-torn) bottom / 4rem 0.8rem repeat-x, var(--m-solid) top / 100% calc(100% - 0.75rem) no-repeat;
	background-image: radial-gradient(rgba(34, 32, 28, 0.12) 1px, transparent 1.4px);
	background-size: 7px 7px;
}
.cover-plate .illo { --riso-ink: #22201c; }
.cover-lines {
	position: relative;
	z-index: 1;
	list-style: none;
	margin: -2.5rem 0 0 auto;
	padding: 1.1rem 1.35rem 1rem;
	width: min(100%, 22rem);
	background: var(--paper-hi);
	transform: rotate(1.5deg);
	box-shadow: 0 1px 0 var(--rule);
}
.cover-lines::before {
	content: "";
	position: absolute;
	top: -0.75rem;
	left: 50%;
	width: 5rem;
	height: 1.5rem;
	margin-left: -2.5rem;
	background: var(--tape);
	transform: rotate(-4deg);
	clip-path: polygon(3% 0, 97% 6%, 100% 30%, 96% 55%, 100% 80%, 97% 100%, 4% 94%, 0 70%, 3% 45%, 0 20%);
}
.cover-lines li + li { border-top: 1px dashed var(--rule); }
.cover-lines a {
	display: flex;
	align-items: baseline;
	gap: 0.6rem;
	padding-block: 0.5rem;
	font-family: var(--serif);
	font-style: italic;
	font-size: 1.4rem;
	line-height: 1.15;
	color: var(--ink);
	text-decoration: none;
}
.cover-lines a:hover span { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
.cover-lines .icon { color: var(--clay-text); width: 1.05rem; height: 1.05rem; transform: translateY(0.12em); }

/* ---------- Homepage: legend (nieuw / tweedehands / wacht nog) ---------- */
.legend {
	display: grid;
	gap: 1.75rem 3rem;
	padding: 2.75rem clamp(1.25rem, 4vw, 3rem) 3rem;
	background: var(--paper-hi);
	-webkit-mask: var(--m-torn-top) top / 4rem 0.8rem repeat-x, var(--m-solid) bottom / 100% calc(100% - 0.75rem) no-repeat;
	mask: var(--m-torn-top) top / 4rem 0.8rem repeat-x, var(--m-solid) bottom / 100% calc(100% - 0.75rem) no-repeat;
}
.legend-title { font-family: var(--serif); font-weight: 400; font-size: clamp(2.2rem, 4.5vw, 3.1rem); line-height: 0.98; letter-spacing: -0.015em; margin: 0 0 0.9rem; }
.legend-title .it { color: var(--moss-text); }
.legend-intro { margin: 0 0 1.4rem; color: var(--ink-soft); max-width: 30rem; }
.legend-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.75rem; }
.legend-item { padding-top: 1.1rem; border-top: 2px solid var(--ink); }
.legend-item .tag { font-size: 0.95rem; }
.legend-item p { margin: 1rem 0 0; font-size: 1.05rem; }

/* ---------- Homepage: featured article ---------- */
.feature {
	display: grid;
	gap: 2rem 3.5rem;
	align-items: center;
	margin-block: 4rem;
	padding: clamp(1.75rem, 5vw, 3.5rem);
	background: var(--tone);
	color: var(--on-strong);
}
.feature-art {
	position: relative;
	background: var(--paper-hi);
	padding: 1.5rem 1.25rem 2.5rem;
	transform: rotate(-2deg);
	max-width: 30rem;
}
.feature-art .hand-note { right: 1.25rem; bottom: 0.6rem; font-size: 1.45rem; transform: rotate(-4deg); }
.feature-art .hand-note::after { display: none; }
.feature-kicker { display: inline-flex; align-items: center; gap: 0.45rem; margin: 0 0 0.75rem; font-weight: 600; }
.feature-title { font-family: var(--serif); font-weight: 400; font-size: clamp(2.3rem, 5vw, 3.6rem); line-height: 0.98; letter-spacing: -0.015em; margin: 0 0 1rem; }
.feature-desc { font-size: 1.12rem; margin: 0 0 1.75rem; max-width: 32rem; }
.feature .btn { background: var(--on-strong); color: var(--tone); }
.feature .btn:hover { background: var(--ink); color: var(--paper); }

/* ---------- Sections and the magazine grid ---------- */
.topic { padding-block: 2.5rem 1rem; }
.topic-head { display: grid; grid-template-columns: auto 1fr; gap: 0.2rem 1rem; align-items: center; margin-bottom: 2rem; max-width: 46rem; }
.topic-icon {
	display: grid;
	place-items: center;
	width: 3.25rem;
	height: 3.25rem;
	border-radius: 50%;
	background: var(--tone-tint);
	color: var(--ink);
}
.topic-icon .icon { width: 1.7rem; height: 1.7rem; }
.section-title { font-family: var(--serif); font-weight: 400; font-size: clamp(2.1rem, 4.5vw, 3rem); line-height: 1; letter-spacing: -0.015em; margin: 0; }
.section-title a { color: var(--ink); text-decoration: none; }
.section-title a:hover { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.12em; }
.topic-intro { grid-column: 2; margin: 0.35rem 0 0; color: var(--ink-soft); }

.post-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 2.5rem 2rem; grid-template-columns: minmax(0, 1fr); }
.post-item-link { display: flex; flex-direction: column; gap: 1rem; height: 100%; color: var(--ink); text-decoration: none; }
.post-item-art {
	display: grid;
	place-items: center;
	aspect-ratio: 4 / 3;
	padding: 8% 10%;
	background: var(--tone-tint);
}
.post-item-art .illo { max-height: 100%; }
/* Title, description and "lees verder" always stack in one column. */
.post-item-text { display: flex; flex-direction: column; gap: 0.45rem; min-width: 0; }
.post-item-cat { display: inline-flex; align-items: center; gap: 0.4rem; font-size: 0.88rem; font-weight: 600; color: var(--tone-text); }
.post-item-cat .icon { width: 1.1rem; height: 1.1rem; }
.post-item-title { font-family: var(--serif); font-size: 1.85rem; line-height: 1.02; letter-spacing: -0.01em; }
.post-item-desc { color: var(--ink-soft); font-size: 0.98rem; }
.post-item-more { display: inline-flex; align-items: center; gap: 0.45rem; margin-top: 0.2rem; font-size: 0.92rem; font-weight: 600; }
.post-item-more .icon { color: var(--clay-text); transition: transform 0.2s ease; }
.post-item-link:hover .post-item-title { text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 0.12em; }
.post-item-link:hover .post-item-more .icon { transform: translateX(4px); }
.post-item-link:hover .illo-fill { transform: translate(11px, 9px); }
/* Grouped lists (home sections, category pages) already name the category. */
.topic .post-item-cat { display: none; }
.empty { color: var(--ink-soft); }

/* ---------- Homepage: all sections ---------- */
.rubrieken { padding-block: 4rem 1rem; }
.rubrieken .section-title { margin-bottom: 1.5rem; }
.rubriek-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.25rem; }
.rubriek a {
	display: grid;
	grid-template-columns: auto 1fr;
	gap: 0.35rem 1.25rem;
	align-items: start;
	padding: 1.75rem 1.75rem 1.6rem;
	height: 100%;
	background: var(--tone);
	color: var(--on-strong);
	text-decoration: none;
}
.rubriek-icon {
	grid-row: span 3;
	display: grid;
	place-items: center;
	width: 4.25rem;
	height: 4.25rem;
	border-radius: 50%;
	border: 2px solid currentColor;
}
.rubriek-icon .icon { width: 2.2rem; height: 2.2rem; }
.rubriek-name { font-family: var(--serif); font-size: 2.2rem; line-height: 1; }
.rubriek-intro { font-size: 1rem; }
.rubriek-count { display: inline-flex; align-items: center; gap: 0.5rem; margin-top: 0.5rem; font-weight: 600; }
.rubriek a:hover .rubriek-name { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.12em; }

/* ---------- Category pages ---------- */
.category-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 1.5rem; align-items: end; padding-block: 2rem 2.5rem; }
.category-title { font-family: var(--serif); font-weight: 400; font-size: clamp(2.9rem, 8vw, 5.6rem); line-height: 0.92; letter-spacing: -0.025em; margin: 0 0 1rem; }
.category-lede { font-size: 1.2rem; color: var(--ink-soft); max-width: 36rem; margin: 0; }
.category-badge {
	position: relative;
	display: grid;
	place-items: center;
	width: clamp(5.5rem, 14vw, 9rem);
	aspect-ratio: 1;
	border-radius: 50%;
	background: var(--tone);
	color: var(--on-strong);
	transform: rotate(-8deg);
}
.category-badge .icon { width: 48%; height: 48%; }
.category-count {
	position: absolute;
	right: -0.4rem;
	top: -0.4rem;
	display: grid;
	place-items: center;
	width: 2.4rem;
	height: 2.4rem;
	border-radius: 50%;
	background: var(--ink);
	color: var(--paper);
	font-family: var(--serif);
	font-size: 1.4rem;
}

/* ---------- Article and page header ---------- */
.crumbs { font-size: 0.92rem; color: var(--ink-soft); margin-bottom: 1.25rem; }
.crumbs a { color: var(--ink-soft); }
.post-head { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2rem 3.5rem; align-items: center; padding-block: 1.75rem 2.5rem; }
.post-title { font-family: var(--serif); font-weight: 400; font-size: clamp(2.6rem, 6.4vw, 4.8rem); line-height: 0.95; letter-spacing: -0.022em; margin: 0 0 1.5rem; }
.post-lede { font-size: 1.2rem; color: var(--ink-soft); margin: 0; max-width: 34rem; }
.post-meta { display: flex; flex-wrap: wrap; gap: 0.5rem 1.4rem; margin: 0; font-size: 0.93rem; color: var(--ink-soft); }
.post-meta > span { display: inline-flex; align-items: center; gap: 0.4rem; }
.post-meta .icon { color: var(--tone-text); }
.post-art { position: relative; margin: 0; }
.post-plate {
	position: relative;
	padding: 2rem 1.5rem 2.25rem;
	background: var(--tone-tint);
	transform: rotate(1.2deg);
}
.post-plate::before, .post-plate::after {
	content: "";
	position: absolute;
	z-index: 2;
	width: 5rem;
	height: 1.5rem;
	background: var(--tape);
	clip-path: polygon(3% 0, 97% 6%, 100% 30%, 96% 55%, 100% 80%, 97% 100%, 4% 94%, 0 70%, 3% 45%, 0 20%);
}
.post-plate::before { top: -0.65rem; left: -1rem; transform: rotate(-32deg); }
.post-plate::after { bottom: -0.55rem; right: -1rem; transform: rotate(-28deg); }
.post-art .hand-note { left: 58%; bottom: -1.9rem; }

/* ---------- Article body ---------- */
.post-body { padding-bottom: 2rem; }
.post-body > * { max-width: var(--measure); }

.summary {
	position: relative;
	margin: 1.5rem 0 3rem;
	padding: 1.9rem 1.6rem 2.2rem;
	background: var(--paper-hi);
	transform: rotate(-0.5deg);
	-webkit-mask: var(--m-zigzag) bottom / 1rem 0.55rem repeat-x, var(--m-solid) top / 100% calc(100% - 0.5rem) no-repeat;
	mask: var(--m-zigzag) bottom / 1rem 0.55rem repeat-x, var(--m-solid) top / 100% calc(100% - 0.5rem) no-repeat;
}
.summary-label {
	display: inline-flex;
	align-items: center;
	gap: 0.45em;
	margin: 0 0 1rem;
	padding: 0.42em 0.85em 0.38em 0.75em;
	background: var(--ink);
	color: var(--paper);
	font-size: 0.8rem;
	font-weight: 700;
	font-stretch: 78%;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	line-height: 1;
	clip-path: polygon(0.35em 0, 100% 0, calc(100% - 0.35em) 100%, 0 100%);
}
.summary-label .icon { width: 1.15em; height: 1.15em; vertical-align: 0; }
.summary p { margin: 0; font-size: 1.12rem; line-height: 1.6; padding-top: 1rem; border-top: 2px dotted var(--rule); }

.prose { font-size: 1.0625rem; }
.prose > :first-child { margin-top: 0; }
.prose h2 {
	position: relative;
	font-family: var(--serif);
	font-weight: 400;
	font-size: clamp(2rem, 4.2vw, 2.6rem);
	line-height: 1.02;
	letter-spacing: -0.012em;
	margin: 3.25rem 0 1.4rem;
	padding-bottom: 0.7rem;
}
.prose h2::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: 0;
	width: 4.5rem;
	height: 0.5rem;
	background: var(--clay);
	-webkit-mask: var(--m-squiggle) center / 100% 100% no-repeat;
	mask: var(--m-squiggle) center / 100% 100% no-repeat;
}
.prose h3 { font-size: 1.2rem; font-weight: 650; line-height: 1.3; margin: 2rem 0 0.5rem; }
.prose p { margin: 0 0 1.1rem; }
.prose strong { font-weight: 650; }

/* Lists of items become checklists with hand-drawn boxes. */
.prose ul { list-style: none; margin: 0 0 1.4rem; padding: 0; }
.prose ul > li { position: relative; padding: 0.42rem 0 0.42rem 2.1rem; border-bottom: 1px dashed var(--rule); }
.prose ul > li:first-child { border-top: 1px dashed var(--rule); }
.prose ul > li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.55rem;
	width: 1.3rem;
	height: 1.3rem;
	background: var(--box-colour, var(--ink-soft));
	-webkit-mask: var(--m-box) center / contain no-repeat;
	mask: var(--m-box) center / contain no-repeat;
}
.prose ol { list-style: none; counter-reset: step; margin: 1.5rem 0; padding: 0; }
.prose ol > li { counter-increment: step; position: relative; padding: 0.2rem 0 1.1rem 3.6rem; min-height: 3rem; }
.prose ol > li::before {
	content: counter(step);
	position: absolute;
	left: 0;
	top: -0.55rem;
	font-family: var(--serif);
	font-style: italic;
	font-size: 3.4rem;
	line-height: 1;
	color: var(--clay-text);
}
.prose blockquote { margin: 1.5rem 0; padding: 0.25rem 0 0.25rem 1.25rem; border-left: 3px solid var(--moss); font-family: var(--serif); font-style: italic; font-size: 1.4rem; line-height: 1.3; }
.prose table { display: block; overflow-x: auto; border-collapse: collapse; margin: 1.5rem 0 2rem; font-size: 0.95rem; background: var(--paper-hi); }
.prose th, .prose td { padding: 0.6rem 0.9rem; text-align: left; border-bottom: 1px dashed var(--rule); }
.prose th { background: var(--ink); color: var(--paper); font-weight: 600; }
.prose hr { border: 0; height: 0.6rem; margin: 2.5rem 0; background: var(--rule); -webkit-mask: var(--m-squiggle) left / 8rem 100% no-repeat; mask: var(--m-squiggle) left / 8rem 100% no-repeat; }

/* Sections the article already labels as nieuw / tweedehands / wachten. */
.shelf { --box-colour: var(--shelf-colour); position: relative; margin-top: 3.25rem; }
.shelf > h2 { margin-top: 0.9rem; }
.shelf-tag { margin: 0; }
.shelf-tag .tag { font-size: 0.85rem; }
.shelf-tweedehands, .shelf-nakijken { --shelf-colour: var(--moss); }
.shelf-nieuw { --shelf-colour: var(--clay); }
.shelf-wacht { --shelf-colour: var(--mustard); }
.shelf-meteen, .shelf-thuis { --shelf-colour: var(--ink); }
.shelf-thuis ul > li::before { -webkit-mask-image: var(--m-cross); mask-image: var(--m-cross); }
.shelf > h2::after { background: var(--shelf-colour); }

/* Tip and let-op callouts around existing paragraphs. */
.callout { margin: 1.75rem 0; padding: 1.1rem 1.3rem 0.2rem; background: var(--mustard-tint); border-left: 4px solid var(--mustard); }
.callout-letop { background: var(--clay-tint); border-left-color: var(--clay); }
.callout a { color: var(--ink); }
.callout-label { display: flex; align-items: center; gap: 0.45rem; margin: 0 0 0.35rem !important; font-weight: 700; font-size: 0.95rem; }
.callout-label .icon { width: 1.35rem; height: 1.35rem; }

/* FAQ and sources */
.prose-faq { margin-top: 3.5rem; padding: 0.25rem 1.5rem 0.75rem; background: var(--paper-hi); }
.prose-faq h2 { margin-top: 1.5rem; }
.prose-faq h3 { position: relative; padding-left: 2.4rem; font-family: var(--serif); font-weight: 400; font-size: 1.6rem; line-height: 1.1; margin-top: 1.75rem; }
.prose-faq h3::before {
	content: "?";
	position: absolute;
	left: 0;
	top: -0.05em;
	display: grid;
	place-items: center;
	width: 1.7rem;
	height: 1.7rem;
	border-radius: 50%;
	background: var(--mustard);
	color: #22201c;
	font-size: 1.25rem;
	font-style: italic;
}
.prose-faq h3 + p { padding-left: 2.4rem; }
.prose-sources { font-size: 0.93rem; color: var(--ink-soft); }
.prose-sources h2 { font-size: 1.8rem; }
.prose-sources ul > li { padding-left: 1.6rem; border: 0 !important; }
.prose-sources ul > li::before { width: 1rem; height: 1rem; top: 0.6rem; background: var(--ink-soft); -webkit-mask-image: none; mask-image: none; border-radius: 50%; transform: scale(0.45); }

.page-updated { color: var(--ink-soft); font-size: 0.92rem; }

/* "In dit artikel": a small index card in the right margin on wide screens. */
.toc { display: none; }

/* ---------- Related ---------- */
.related { padding-block: 3rem 1rem; margin-top: 1rem; }
.related .section-title { margin-bottom: 1.75rem; }

/* ---------- 404 ---------- */
.not-found { display: grid; gap: 2.5rem; align-items: center; padding-block: 2rem 3rem; }
.not-found .cover-lede { margin-bottom: 1.75rem; }
.not-found-art { padding: 2.5rem 2rem; background: var(--tone-tint); transform: rotate(-1.5deg); }

/* ---------- Footer ---------- */
.site-footer {
	position: relative;
	margin-top: 5rem;
	padding-top: 1.2rem;
	background: var(--footer-bg);
	color: var(--footer-fg);
	-webkit-mask: var(--m-torn-top) top / 4rem 0.8rem repeat-x, var(--m-solid) bottom / 100% calc(100% - 0.75rem) no-repeat;
	mask: var(--m-torn-top) top / 4rem 0.8rem repeat-x, var(--m-solid) bottom / 100% calc(100% - 0.75rem) no-repeat;
}
.footer-inner { display: grid; gap: 1.5rem 3rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr)); padding-block: 2.5rem 2rem; font-size: 0.97rem; }
.footer-name { display: flex; align-items: center; gap: 0.5rem; margin: 0 0 0.75rem; }
.footer-name .logo-mark { color: var(--footer-fg); }
.footer-name .logo-it { color: var(--footer-fg); }
.footer-about p:not(.footer-name) { margin: 0; color: var(--footer-soft); max-width: 24rem; }
.footer-nav ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.35rem; }
.footer-nav a { color: var(--footer-fg); }
.site-footer :focus-visible { outline-color: var(--footer-fg); }
.feature :focus-visible, .rubriek :focus-visible { outline-color: var(--ink); }
.footer-small { grid-column: 1 / -1; color: var(--footer-soft); font-size: 0.87rem; margin: 0; padding-top: 1.25rem; border-top: 1px dashed rgba(237, 228, 211, 0.25); }

/* ---------- Wider screens ---------- */
@media (min-width: 46rem) {
	.post-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.rubriek-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.legend-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.feature { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); }
	.not-found { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
	.post-head { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
	.related-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.related-list .post-item-title { font-size: 1.55rem; }
}
@media (min-width: 62rem) {
	.cover { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 4rem; padding-top: 2.5rem; }
	.legend { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); align-items: start; }

	/* Magazine grid: a big lead story with the next ones stacked beside it as strips. */
	.mag-grid { grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 2.75rem 2.5rem; }
	.mag-grid > .post-item { grid-column: span 6; }
	/* The lead spans the side items' rows plus a flexible one, so the side items stay packed at the top. */
	.mag-grid:has(> .post-item:first-child:nth-last-child(n + 3)) { grid-template-rows: auto auto auto 1fr; }
	.mag-grid:has(> .post-item:first-child:nth-last-child(3)) { grid-template-rows: auto auto 1fr; }
	.mag-grid > .post-item:first-child:nth-last-child(n + 3) { grid-column: 1 / span 7; grid-row: 1 / span 4; }
	.mag-grid > .post-item:first-child:nth-last-child(3) { grid-row: 1 / span 3; }
	.mag-grid > .post-item:nth-child(n + 5) { grid-column: span 4; }
	.mag-grid > .post-item:nth-child(3n + 5) { grid-column: 1 / span 4; }
	.mag-grid > .post-item:first-child:nth-last-child(n + 3) .post-item-title { font-size: 2.7rem; }
	.mag-grid > .post-item:first-child:nth-last-child(n + 3) .post-item-art,
	.mag-grid > .post-item:first-child:nth-last-child(2) .post-item-art { aspect-ratio: 3 / 2; }
	.mag-grid > .post-item:first-child:nth-last-child(n + 3) .post-item-desc { font-size: 1.05rem; max-width: 36rem; }
	.mag-grid > .post-item:first-child:nth-last-child(n + 3) ~ .post-item:nth-child(-n + 4) { grid-column: 8 / span 5; }
	.mag-grid > .post-item:first-child:nth-last-child(n + 3) ~ .post-item:nth-child(-n + 4) .post-item-link { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 1.25rem; align-items: start; }
	.mag-grid > .post-item:first-child:nth-last-child(n + 3) ~ .post-item:nth-child(-n + 4) .post-item-art { padding: 10%; }
	.mag-grid > .post-item:first-child:nth-last-child(n + 3) ~ .post-item:nth-child(-n + 4) .post-item-title { font-size: 1.55rem; }
	.mag-grid > .post-item:first-child:nth-last-child(n + 3) ~ .post-item:nth-child(-n + 4) .post-item-desc { font-size: 0.93rem; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; line-clamp: 3; overflow: hidden; }
	/* Two items: one wide, one narrow, for an uneven page. */
	.mag-grid > .post-item:first-child:nth-last-child(2) { grid-column: span 7; }
	.mag-grid > .post-item:first-child:nth-last-child(2) + .post-item { grid-column: span 5; }
	.mag-grid > .post-item:first-child:nth-last-child(2) .post-item-title { font-size: 2.5rem; }
	/* The second home section mirrors the first. */
	.topic-2 .mag-grid > .post-item:first-child:nth-last-child(n + 3) { grid-column: 6 / span 7; }
	.topic-2 .mag-grid > .post-item:first-child:nth-last-child(n + 3) ~ .post-item:nth-child(-n + 4) { grid-column: 1 / span 5; }
	.topic-2 .mag-grid > .post-item:first-child:nth-last-child(2) { grid-column: 6 / span 7; grid-row: 1; }
	.topic-2 .mag-grid > .post-item:first-child:nth-last-child(2) + .post-item { grid-column: 1 / span 5; grid-row: 1; }

	.post-body { display: grid; grid-template-columns: 12rem minmax(0, var(--measure)) 1fr; column-gap: 3rem; }
	.post-body > * { grid-column: 2; }
	.post-head { padding-top: 2.25rem; }
	.toc {
		display: block;
		grid-column: 3;
		grid-row: 1 / span 2;
		align-self: start;
		position: sticky;
		top: 1.5rem;
		margin-top: 3.5rem;
		max-width: 17rem;
		padding: 1.1rem 1.2rem 1rem;
		background: var(--paper-hi);
		transform: rotate(1deg);
		font-size: 0.9rem;
	}
	.toc-title { margin: 0 0 0.6rem; font-family: var(--serif); font-style: italic; font-size: 1.45rem; line-height: 1; }
	.toc ol { list-style: none; margin: 0; padding: 0; counter-reset: toc; }
	.toc li { counter-increment: toc; display: grid; grid-template-columns: 1.6rem 1fr; padding: 0.3rem 0; border-top: 1px dashed var(--rule); }
	.toc li::before { content: counter(toc); font-family: var(--serif); font-style: italic; font-size: 1.1rem; line-height: 1.2; color: var(--clay-text); }
	.toc a { color: var(--ink); text-decoration: none; line-height: 1.35; }
	.toc a:hover { text-decoration: underline; }
	.toc li[class] a::after { content: ""; display: inline-block; width: 0.55rem; height: 0.55rem; margin-left: 0.4rem; border-radius: 50%; background: var(--dot, var(--ink)); vertical-align: 0.05em; }
	.toc-tweedehands, .toc-nakijken { --dot: var(--moss); }
	.toc-nieuw { --dot: var(--clay); }
	.toc-wacht { --dot: var(--mustard); }
	/* Label tags hang in the left margin, beside their heading. */
	.prose { position: relative; }
	.shelf-tag { position: absolute; right: calc(100% + 2rem); top: 1.6rem; }
	.shelf > h2 { margin-top: 0; }
	.shelf { margin-top: 3.25rem; }
	.shelf::before { content: ""; position: absolute; left: -1.5rem; top: 0.5rem; bottom: 0.5rem; width: 3px; background: var(--shelf-colour); }
}

@media (max-width: 45.99rem) {
	.mag-grid > .post-item + .post-item .post-item-link,
	.related-list .post-item-link { display: grid; grid-template-columns: 7.5rem minmax(0, 1fr); gap: 1rem; align-items: start; }
	.mag-grid > .post-item + .post-item .post-item-art,
	.related-list .post-item-art { padding: 10%; }
	.mag-grid > .post-item + .post-item .post-item-title,
	.related-list .post-item-title { font-size: 1.4rem; }
	.mag-grid > .post-item + .post-item .post-item-desc,
	.related-list .post-item-desc { font-size: 0.92rem; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; line-clamp: 3; overflow: hidden; }
	.mag-grid { gap: 2rem; }
}

@media (max-width: 30rem) {
	.logo-name { font-size: 1.6rem; }
	.logo-mark { width: 2.2rem; height: 2.2rem; }
	.nav { gap: 0.1rem 1rem; font-size: 0.92rem; }
	.post-item-title { font-size: 1.65rem; }
	.cover-lines { margin-top: -1.5rem; }
	.hand-note { font-size: 1.35rem; }
	.prose-faq { padding-inline: 1rem; }
}

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { transition: none !important; animation: none !important; }
}

@media print {
	.site-header nav, .site-footer, .related { display: none; }
	body { background: #fff; }
}
