/* Surpriseavond: pakjesavond for grown-ups, by lamplight.
   The evening (header, the tool band, the lootje, the footer) is cacao brown with a faint
   wrapping-paper pattern and a crinkled gold foil edge. Reading happens on pale marzipan paper.
   Shapes come from the table on 5 December: folded lootjes with a crease, gift tags on a string,
   wrapped presents with a ribbon, chocolate coins for ticks, a rubber stamp for the draw code.
   Type: Shrikhand (display, like the lettering on a chocolate letter's box), Karla (reading),
   Kalam (only for handwriting: names on lootjes, poems, small notes). */

/* ---------- Fonts (self-hosted, latin subset, OFL; licences next to the files) ---------- */

@font-face {
	font-family: "Shrikhand";
	src: url("/assets/fonts/shrikhand-latin-400-normal.woff2") format("woff2");
	font-weight: 400;
	font-style: normal;
	font-display: swap;
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
	font-family: "Karla";
	src: url("/assets/fonts/karla-latin-wght-normal.woff2") format("woff2-variations");
	font-weight: 200 800;
	font-style: normal;
	font-display: swap;
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
	font-family: "Karla";
	src: url("/assets/fonts/karla-latin-wght-italic.woff2") format("woff2-variations");
	font-weight: 200 800;
	font-style: italic;
	font-display: swap;
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
	font-family: "Kalam";
	src: url("/assets/fonts/kalam-latin-400-normal.woff2") format("woff2");
	font-weight: 400;
	font-style: normal;
	font-display: swap;
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
	font-family: "Kalam";
	src: url("/assets/fonts/kalam-latin-700-normal.woff2") format("woff2");
	font-weight: 700;
	font-style: normal;
	font-display: swap;
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- Tokens ---------- */

:root {
	--cacao: #3b2016;
	--cacao-diep: #24130c;
	--melk: #8a5434;
	--melk-licht: #b88563;
	--papier: #fcf3ee;
	--lootje: #fffcf7;
	--lootje-schaduw: #f3e7de;
	--naad: #e6d3c6;
	--goud: #e2b13c;
	--goud-licht: #f6dc8c;
	--goud-diep: #8a6212;
	--marsepein: #f2b5ad;
	--marsepein-licht: #fbe5e1;
	--framboos: #b0263e;
	--munt: #8fd3bd;
	--munt-licht: #def3eb;
	--munt-diep: #0b6653;
	--kraft: #d6a46b;
	--kraft-diep: #b98450;
	--inkt: #3b2016;
	--inkt-zacht: #6b4a3b;
	--avond-tekst: #fbeee2;
	--avond-zacht: #e9cfbb;
	--focus: #0b6653;

	--f-display: "Shrikhand", "Cooper Black", Georgia, serif;
	--f-body: "Karla", "Segoe UI", system-ui, -apple-system, sans-serif;
	--f-hand: "Kalam", "Segoe Print", "Bradley Hand", cursive;

	--wrap: 1180px;
	--gutter: clamp(16px, 4vw, 32px);
	--radius: 6px;
	--schaduw-lootje: 0 1px 0 var(--naad), 0 12px 28px rgba(59, 32, 22, 0.1);
}

/* ---------- Base ---------- */

*,
*::before,
*::after {
	box-sizing: border-box;
}
[hidden] {
	display: none !important;
}
html {
	-webkit-text-size-adjust: 100%;
	text-size-adjust: 100%;
}
body {
	margin: 0;
	background: var(--papier);
	color: var(--inkt);
	font-family: var(--f-body);
	font-size: 1.125rem;
	line-height: 1.6;
	overflow-wrap: break-word;
	-webkit-font-smoothing: antialiased;
}
img,
svg {
	max-width: 100%;
}
h1,
h2,
h3 {
	line-height: 1.15;
	margin: 0;
	text-wrap: balance;
}
p {
	margin: 0 0 1em;
}
a {
	color: inherit;
	text-decoration-color: var(--goud);
	text-decoration-thickness: 3px;
	text-underline-offset: 0.18em;
}
a:hover {
	color: var(--framboos);
	text-decoration-color: currentColor;
}
:focus-visible {
	outline: 3px solid var(--focus);
	outline-offset: 3px;
	border-radius: 3px;
}
.wrap {
	width: 100%;
	max-width: var(--wrap);
	margin: 0 auto;
	padding-inline: var(--gutter);
}
.skip {
	position: absolute;
	left: 12px;
	top: -100px;
	z-index: 10;
	padding: 10px 16px;
	background: var(--goud-licht);
	color: var(--cacao);
	font-weight: 700;
	border-radius: var(--radius);
}
.skip:focus {
	top: 12px;
}
.icon {
	width: 1.2em;
	height: 1.2em;
	flex: none;
	fill: none;
	stroke: currentColor;
	stroke-width: 2;
	stroke-linecap: round;
	stroke-linejoin: round;
	vertical-align: -0.2em;
}

/* Everything on the cacao evening background. */
.site-header,
.avond,
.tool-band,
.site-footer {
	--focus: var(--goud-licht);
	position: relative;
	background-color: var(--cacao);
	background-image: url("/assets/shapes/pakpapier-1.svg");
	background-size: 160px 160px;
	color: var(--avond-tekst);
}
/* The crinkled gold foil edge under a dark band. */
.foil-under::after,
.site-header::after,
.avond::after,
.tool-band::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: -14px;
	height: 18px;
	z-index: 2;
	background: url("/assets/shapes/folie-rand-1.svg") repeat-x;
	background-size: 96px 18px;
	pointer-events: none;
}
.tool-band::before,
.site-footer::before {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	top: -14px;
	height: 18px;
	z-index: 2;
	background: url("/assets/shapes/folie-rand-1.svg") repeat-x;
	background-size: 96px 18px;
	transform: scaleY(-1);
	pointer-events: none;
}
/* Header and evening band are one dark area on the tool pages. */
.is-home .site-header::after,
.is-tool .site-header::after,
.is-lootje .site-header::after {
	display: none;
}

/* ---------- Buttons ---------- */

.button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.55em;
	min-height: 48px;
	padding: 0.55em 1.3em;
	border: 2px solid var(--cacao);
	border-radius: 999px;
	background: var(--cacao);
	color: var(--avond-tekst);
	font-family: var(--f-body);
	font-size: 1.05rem;
	font-weight: 800;
	line-height: 1.2;
	text-decoration: none;
	cursor: pointer;
}
.button:hover {
	background: var(--framboos);
	border-color: var(--framboos);
	color: #fff;
}
.button-icon {
	width: 1.2em;
	height: 1.2em;
}
.button-ghost {
	background: transparent;
	color: var(--cacao);
}
.button-ghost:hover {
	background: var(--cacao);
	border-color: var(--cacao);
	color: var(--avond-tekst);
}
/* Gold foil, as on a chocolate letter. */
.button-gold,
.lootjes-trek {
	background: linear-gradient(115deg, #f7e09a 0%, #e2b13c 30%, #c99628 52%, #efcd6c 74%, #e2b13c 100%);
	border: 2px solid var(--goud-diep);
	color: var(--cacao);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55), 0 8px 18px rgba(20, 8, 2, 0.28);
}
.button-gold:hover,
.lootjes-trek:hover {
	background: linear-gradient(115deg, #fae8b3 0%, #ebc154 30%, #d6a535 52%, #f5d985 74%, #ebc154 100%);
	border-color: var(--goud-diep);
	color: var(--cacao);
}

/* ---------- Header ---------- */

.site-header {
	z-index: 3;
}
.header-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px 28px;
	padding-block: 14px;
	flex-wrap: wrap;
}
.logo {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	min-height: 48px;
	color: var(--avond-tekst);
	text-decoration: none;
}
.logo:hover {
	color: var(--goud-licht);
}
.logo-mark {
	width: 40px;
	height: 40px;
	flex: none;
}
.lm-depth {
	fill: var(--cacao-diep);
}
.lm-choc {
	fill: var(--melk);
}
.lm-foil {
	fill: var(--goud);
}
.logo-name {
	font-family: var(--f-display);
	font-size: 1.75rem;
	line-height: 1;
	padding-bottom: 4px;
}
.nav {
	display: flex;
	flex-wrap: wrap;
	gap: 4px 6px;
	margin: 0;
	padding: 0;
	list-style: none;
}
.nav a {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	min-height: 44px;
	padding: 0 12px;
	border-radius: 999px;
	color: var(--avond-tekst);
	font-weight: 700;
	font-size: 1rem;
	text-decoration: none;
}
.nav a:hover {
	background: rgba(246, 220, 140, 0.14);
	color: var(--goud-licht);
}
.nav a[aria-current] {
	box-shadow: inset 0 -3px 0 var(--goud);
	border-radius: 0;
}
.nav-icon {
	width: 1.15em;
	height: 1.15em;
}
.nav .nav-tool a {
	background: var(--goud);
	color: var(--cacao);
	padding: 0 16px;
}
.nav .nav-tool a:hover {
	background: var(--goud-licht);
	color: var(--cacao);
}
.nav .nav-tool a[aria-current] {
	border-radius: 999px;
	box-shadow: inset 0 0 0 2px var(--cacao), 0 0 0 2px var(--goud);
}

/* ---------- The evening band with the tool ---------- */

.avond {
	overflow-x: clip;
	background-image: radial-gradient(52% 60% at 16% 26%, rgba(246, 220, 140, 0.16), rgba(246, 220, 140, 0) 70%), url("/assets/shapes/pakpapier-1.svg");
	background-size: auto, 160px 160px;
	z-index: 1;
}
.avond-inner {
	display: grid;
	grid-template-columns: minmax(0, 5.2fr) minmax(0, 6.8fr);
	gap: 32px 56px;
	align-items: start;
	padding-block: 40px 76px;
}
.avond-text {
	position: sticky;
	top: 24px;
	padding-top: 12px;
}
.avond-title {
	font-family: var(--f-display);
	font-weight: 400;
	font-size: clamp(2.4rem, 3.7vw, 3.5rem);
	line-height: 1.04;
	color: var(--goud-licht);
	/* The depth of a cast chocolate letter. */
	text-shadow: 0.05em 0.06em 0 var(--cacao-diep);
	margin-bottom: 0.4em;
}
.avond-lede {
	font-size: 1.22rem;
	line-height: 1.55;
	color: var(--avond-tekst);
	max-width: 32ch;
}
.avond-art {
	display: block;
	width: min(300px, 80%);
	margin-top: 12px;
}
.avond .illo .glow,
.tool-band .illo .glow {
	fill: rgba(246, 220, 140, 0.13);
}
.avond .illo .shadow,
.tool-band .illo .shadow {
	fill: rgba(0, 0, 0, 0.3);
}

/* The organiser's card: a sheet of paper you write the names on. */
.hoed-kaart {
	--focus: var(--munt-diep);
	background: var(--lootje);
	color: var(--inkt);
	border-radius: 8px;
	padding: clamp(18px, 3vw, 32px);
	box-shadow: 0 2px 0 #d8c1b0, 0 26px 60px rgba(10, 4, 1, 0.45);
}
.lootjes-noscript {
	margin: 0;
	padding: 16px 18px;
	border-radius: var(--radius);
	background: var(--marsepein-licht);
	color: var(--inkt);
	font-weight: 700;
}
.lootjes {
	display: grid;
	gap: 22px;
}
.lootjes fieldset {
	margin: 0;
	padding: 20px 0 0;
	border: 0;
	border-top: 2px dashed var(--naad);
	min-width: 0;
}
.lootjes legend,
.lootjes-namen > label {
	display: block;
	padding: 0;
	margin-bottom: 10px;
	font-weight: 800;
	font-size: 1.18rem;
	line-height: 1.3;
	color: var(--cacao);
}
.lootjes fieldset legend {
	float: left;
	width: 100%;
}
.lootjes fieldset legend + * {
	clear: both;
}
.lootjes-hint {
	display: block;
	margin-top: 2px;
	margin-left: 42px;
	font-weight: 400;
	font-size: 0.98rem;
	color: var(--inkt-zacht);
}
.lootjes-stap {
	display: inline-grid;
	place-items: center;
	width: 32px;
	height: 32px;
	margin-right: 10px;
	border-radius: 50%;
	background: var(--goud);
	color: var(--cacao);
	font-family: var(--f-display);
	font-weight: 400;
	font-size: 1rem;
	line-height: 1;
	vertical-align: 2px;
}
.lootjes-veld {
	display: grid;
	gap: 6px;
	min-width: 0;
}
.lootjes-veld > label {
	font-weight: 700;
	font-size: 1rem;
}
.lootjes input,
.lootjes select,
.lootjes textarea {
	width: 100%;
	min-height: 48px;
	padding: 10px 12px;
	border: 2px solid #c8a993;
	border-radius: var(--radius);
	background: #fff;
	color: var(--inkt);
	font: inherit;
	font-size: 1.05rem;
	line-height: 1.4;
}
.lootjes input::placeholder,
.lootjes textarea::placeholder {
	color: #8b6a5a;
}
.lootjes input:hover,
.lootjes select:hover,
.lootjes textarea:hover {
	border-color: var(--melk);
}
.lootjes [aria-invalid="true"] {
	border-color: var(--framboos);
	box-shadow: 0 0 0 2px var(--marsepein);
}
/* The names: handwriting on lined paper, one slip per line. */
.lootjes textarea[data-lootjes="names"] {
	--regel: 2.25rem;
	min-height: calc(var(--regel) * 7 + 4px);
	padding: 0 14px 0 52px;
	font-family: var(--f-hand);
	font-size: 1.35rem;
	line-height: var(--regel);
	background-color: #fffdf9;
	background-image:
		linear-gradient(90deg, transparent 38px, var(--marsepein) 38px, var(--marsepein) 40px, transparent 40px),
		repeating-linear-gradient(to bottom, transparent 0, transparent calc(var(--regel) - 1px), #ead5c5 calc(var(--regel) - 1px), #ead5c5 var(--regel));
	background-attachment: local;
	resize: vertical;
}
.lootjes textarea[data-lootjes="note"] {
	min-height: 84px;
	resize: vertical;
}
.lootjes-teller {
	justify-self: end;
	font-size: 0.9rem;
	color: var(--inkt-zacht);
	font-variant-numeric: tabular-nums;
}

/* Exclusions: two names tied with a ribbon. */
.lootjes-uitzonderingen ul {
	margin: 0 0 12px;
	padding: 0;
	list-style: none;
	display: grid;
	gap: 10px;
}
.lootjes-uitzonderingen li {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto;
	align-items: center;
	gap: 8px;
	padding: 10px;
	border-radius: 8px;
	background: var(--marsepein-licht);
	background-image: linear-gradient(to bottom, transparent calc(50% - 2px), var(--marsepein) calc(50% - 2px), var(--marsepein) calc(50% + 2px), transparent calc(50% + 2px));
}
.lootjes-uitzonderingen li > span {
	display: grid;
	place-items: center;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: var(--framboos);
	color: #fff;
	font-family: var(--f-hand);
	font-weight: 700;
	font-size: 1.05rem;
}
.lootjes select {
	appearance: none;
	-webkit-appearance: none;
	padding-right: 34px;
	background-image: linear-gradient(45deg, transparent 50%, var(--cacao) 50%), linear-gradient(135deg, var(--cacao) 50%, transparent 50%);
	background-position: calc(100% - 18px) 52%, calc(100% - 12px) 52%;
	background-size: 6px 6px, 6px 6px;
	background-repeat: no-repeat;
	text-overflow: ellipsis;
}
.lootjes-uitzonderingen [data-lootjes="remove-exclusion"] {
	min-height: 44px;
	padding: 0 12px;
	border: 2px solid transparent;
	border-radius: 999px;
	background: var(--marsepein-licht);
	color: var(--framboos);
	font: inherit;
	font-weight: 700;
	font-size: 0.98rem;
	text-decoration: underline;
	text-decoration-thickness: 2px;
	text-underline-offset: 3px;
	cursor: pointer;
}
.lootjes-uitzonderingen [data-lootjes="remove-exclusion"]:hover {
	background: #fff;
	text-decoration: none;
}
.lootjes-knop {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 46px;
	padding: 0 18px 0 14px;
	border: 2px dashed var(--melk-licht);
	border-radius: 999px;
	background: transparent;
	color: var(--cacao);
	font: inherit;
	font-weight: 700;
	font-size: 1rem;
	cursor: pointer;
}
.lootjes-knop::before {
	content: "";
	width: 20px;
	height: 20px;
	background: currentColor;
	-webkit-mask: url("/assets/shapes/icoon-plus-1.svg") center / contain no-repeat;
	mask: url("/assets/shapes/icoon-plus-1.svg") center / contain no-repeat;
}
.lootjes-knop:hover {
	border-style: solid;
	border-color: var(--cacao);
	background: var(--lootje-schaduw);
}

.lootjes-extra-velden {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: 14px 16px;
}
.lootjes-notitie {
	grid-column: 1 / -1;
}

.lootjes-fout {
	margin: 0;
	padding: 12px 16px 12px 16px;
	border-left: 6px solid var(--framboos);
	border-radius: var(--radius);
	background: var(--marsepein-licht);
	color: #8f1a30;
	font-weight: 700;
}

.lootjes-trek {
	width: 100%;
	min-height: 66px;
	padding: 10px 20px;
	border-radius: 12px;
	font-family: var(--f-display);
	font-weight: 400;
	font-size: clamp(1.45rem, 3vw, 1.8rem);
	line-height: 1.1;
	cursor: pointer;
}
.lootjes-trek::before {
	content: "";
	display: inline-block;
	width: 1em;
	height: 1em;
	margin-right: 0.4em;
	vertical-align: -0.1em;
	background: currentColor;
	-webkit-mask: url("/assets/shapes/icoon-hoed-1.svg") center / contain no-repeat;
	mask: url("/assets/shapes/icoon-hoed-1.svg") center / contain no-repeat;
}
.lootjes-trek:active {
	transform: translateY(1px);
}

/* The result: the code as a rubber stamp, one folded lootje per person. */
.lootjes-resultaat {
	padding-top: 24px;
	border-top: 2px dashed var(--naad);
}
.lootjes-resultaat h2 {
	font-family: var(--f-display);
	font-weight: 400;
	font-size: clamp(1.6rem, 3.4vw, 2rem);
	color: var(--cacao);
	margin-bottom: 12px;
}
.lootjes-resultaat h2:focus {
	outline: none;
}
.lootjes-resultaat h2:focus-visible {
	outline: 3px solid var(--focus);
}
.stempel {
	display: inline-block;
	padding: 0.05em 0.4em 0.1em;
	border: 5px double currentColor;
	border-radius: 6px;
	color: var(--framboos);
	font-family: var(--f-body);
	font-weight: 800;
	font-size: 0.9em;
	letter-spacing: 0.06em;
	line-height: 1.2;
	white-space: nowrap;
	transform: rotate(-4deg);
	-webkit-mask: url("/assets/shapes/stempel-korrel-1.svg") center / 100% 100% no-repeat;
	mask: url("/assets/shapes/stempel-korrel-1.svg") center / 100% 100% no-repeat;
}
.lootjes-status {
	font-weight: 700;
}
.lootjes-waarschuwing {
	padding: 12px 16px;
	border-left: 6px solid var(--framboos);
	border-radius: var(--radius);
	background: var(--marsepein-licht);
}
.lootjes-instructie {
	color: var(--inkt-zacht);
}
.lootjes-links {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
	gap: 16px;
	margin: 18px 0 20px;
	padding: 0;
	list-style: none;
}
.lootjes-links li {
	position: relative;
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: 10px 8px;
	padding: 14px 14px 14px;
	border: 1px solid var(--naad);
	border-radius: 4px;
	background-color: #fffdf9;
	background-image: linear-gradient(to bottom, transparent calc(50% - 1px), rgba(59, 32, 22, 0.1) calc(50% - 1px), rgba(59, 32, 22, 0.1) 50%, rgba(59, 32, 22, 0.035) 50%);
	box-shadow: 0 6px 14px rgba(59, 32, 22, 0.08);
}
.lootjes-links li:nth-child(odd) {
	transform: rotate(-0.6deg);
}
.lootjes-links li:nth-child(even) {
	transform: rotate(0.5deg);
}
.lootjes-links [data-lootjes="link-name"] {
	grid-column: 1 / -1;
	padding-right: 84px;
	font-family: var(--f-hand);
	font-weight: 700;
	font-size: 1.5rem;
	line-height: 1.2;
	overflow-wrap: anywhere;
}
.lootjes-links a[data-lootjes="whatsapp"],
.lootjes-links button[data-lootjes="copy"] {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	min-height: 46px;
	padding: 0 10px;
	border-radius: 999px;
	font: inherit;
	font-weight: 800;
	font-size: 0.98rem;
	text-decoration: none;
	cursor: pointer;
}
.lootjes-links a[data-lootjes="whatsapp"] {
	border: 2px solid var(--munt-diep);
	background: var(--munt-diep);
	color: #fff;
}
.lootjes-links a[data-lootjes="whatsapp"]:hover {
	background: #084a3c;
	border-color: #084a3c;
	color: #fff;
}
.lootjes-links button[data-lootjes="copy"] {
	border: 2px solid var(--cacao);
	background: transparent;
	color: var(--cacao);
}
.lootjes-links button[data-lootjes="copy"]:hover {
	background: var(--cacao);
	color: var(--avond-tekst);
}
.lootjes-links a[data-lootjes="whatsapp"]::before,
.lootjes-links button[data-lootjes="copy"]::before,
.lootjes-kopieer-alles::before {
	content: "";
	width: 18px;
	height: 18px;
	flex: none;
	background: currentColor;
	-webkit-mask: url("/assets/shapes/icoon-bericht-1.svg") center / contain no-repeat;
	mask: url("/assets/shapes/icoon-bericht-1.svg") center / contain no-repeat;
}
.lootjes-links button[data-lootjes="copy"]::before,
.lootjes-kopieer-alles::before {
	-webkit-mask-image: url("/assets/shapes/icoon-kopie-1.svg");
	mask-image: url("/assets/shapes/icoon-kopie-1.svg");
}
.lootjes-links [data-lootjes="sent"] {
	position: absolute;
	top: 10px;
	right: 10px;
	padding: 0 6px;
	border: 3px double var(--munt-diep);
	border-radius: 5px;
	color: var(--munt-diep);
	font-weight: 800;
	font-size: 0.85rem;
	line-height: 1.5;
	transform: rotate(6deg);
	-webkit-mask: url("/assets/shapes/stempel-korrel-1.svg") center / 100% 100% no-repeat;
	mask: url("/assets/shapes/stempel-korrel-1.svg") center / 100% 100% no-repeat;
}
.lootjes-links input[data-lootjes="link-field"] {
	grid-column: 1 / -1;
	min-height: 44px;
	font-size: 0.9rem;
}
.lootjes-alles {
	display: grid;
	justify-items: start;
	gap: 8px;
}
.lootjes-kopieer-alles {
	border: 2px solid var(--cacao);
	background: var(--cacao);
	color: var(--avond-tekst);
	padding: 0 20px 0 16px;
	min-height: 50px;
}
.lootjes-kopieer-alles:hover {
	background: var(--framboos);
	border-color: var(--framboos);
	color: #fff;
}
.lootjes-alles-status {
	margin: 0;
	font-weight: 700;
	color: var(--munt-diep);
}
.lootjes-alles-status:empty {
	display: none;
}
.lootjes textarea[data-lootjes="copy-all-field"] {
	width: 100%;
	min-height: 8rem;
	font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
	font-size: 0.85rem;
	line-height: 1.5;
	white-space: pre;
}

/* ---------- How the tool works: three slips on the table ---------- */

.lootjes-uitleg {
	padding-block: 72px 56px;
}
.uitleg-grid {
	display: grid;
	grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr) minmax(0, 1fr);
	gap: 24px;
	align-items: start;
}
.uitleg-slip {
	padding: 24px 24px 22px;
	border-radius: 4px;
	background-color: var(--lootje);
	background-image: linear-gradient(to bottom, transparent calc(50% - 1px), rgba(59, 32, 22, 0.08) calc(50% - 1px), rgba(59, 32, 22, 0.08) 50%, rgba(59, 32, 22, 0.025) 50%);
	box-shadow: var(--schaduw-lootje);
	font-size: 1.03rem;
}
.uitleg-hoe {
	transform: rotate(-0.7deg);
}
.uitleg-code {
	transform: rotate(0.6deg);
	margin-top: 18px;
}
.uitleg-niet {
	transform: rotate(-0.4deg);
	margin-top: 6px;
}
.uitleg-slip p:last-child,
.uitleg-slip ul:last-child {
	margin-bottom: 0;
}
.uitleg-kop {
	margin-bottom: 0.55em;
	color: var(--cacao);
}
h2.uitleg-kop {
	font-family: var(--f-display);
	font-weight: 400;
	font-size: clamp(1.6rem, 2.6vw, 2rem);
	line-height: 1.1;
}
h3.uitleg-kop {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 1.22rem;
	font-weight: 800;
}
.uitleg-icon {
	width: 30px;
	height: 30px;
	padding: 4px;
	border-radius: 50%;
	background: var(--goud-licht);
}
.uitleg-niet ul {
	margin: 0;
	padding: 0;
	list-style: none;
	display: grid;
	gap: 10px;
}
.uitleg-niet li {
	position: relative;
	padding-left: 22px;
}
.uitleg-niet li::before {
	content: "";
	position: absolute;
	left: 2px;
	top: 0.62em;
	width: 11px;
	height: 3px;
	border-radius: 2px;
	background: var(--framboos);
}
.uitleg-meer {
	margin: 32px 0 0;
	font-size: 1.08rem;
	text-align: center;
}

/* ---------- Gift tags around drawings ---------- */

.post-art,
.feature-art,
.not-found-art {
	position: relative;
	margin: 0;
	display: block;
	filter: drop-shadow(0 14px 20px rgba(59, 32, 22, 0.16));
}
.tag-frame {
	position: relative;
	display: block;
	padding: 17% 7% 7%;
	background: var(--lootje);
	clip-path: polygon(22% 0, 78% 0, 100% 13%, 100% 100%, 0 100%, 0 13%);
}
.tag-frame::before {
	content: "";
	position: absolute;
	top: 5%;
	left: 50%;
	width: 8%;
	aspect-ratio: 1;
	transform: translateX(-50%);
	border-radius: 50%;
	background: var(--papier);
	box-shadow: inset 0 0 0 3px var(--goud);
}
.tag-frame .illo {
	display: block;
	width: 100%;
	height: auto;
}
/* The string the tag hangs from. */
.post-art::before,
.feature-art::before,
.not-found-art::before {
	content: "";
	position: absolute;
	left: 50%;
	top: -46px;
	width: 3px;
	height: 58px;
	border-radius: 2px;
	background: var(--framboos);
	transform: rotate(-8deg);
	transform-origin: bottom center;
	z-index: 1;
}
.art-note {
	position: absolute;
	right: -6px;
	bottom: 18px;
	display: inline-block;
	max-width: 80%;
	padding: 4px 14px 6px;
	background: var(--goud-licht);
	color: var(--cacao);
	font-family: var(--f-hand);
	font-size: 1.1rem;
	line-height: 1.25;
	transform: rotate(-4deg);
	box-shadow: 0 4px 10px rgba(59, 32, 22, 0.15);
}

/* ---------- Drawings ---------- */

.illo {
	--a: var(--goud);
	--a-zacht: #f9e7b6;
	overflow: visible;
}
.illo.accent-marsepein {
	--a: var(--marsepein);
	--a-zacht: #fbdcd6;
}
.illo.accent-munt {
	--a: var(--munt);
	--a-zacht: #d3efe4;
}
.illo .glow {
	fill: var(--a-zacht);
}
.illo .shadow {
	fill: rgba(59, 32, 22, 0.13);
}
.illo .o,
.illo .t {
	stroke: var(--cacao);
	stroke-linejoin: round;
	stroke-linecap: round;
}
.illo .o {
	stroke-width: 3;
}
.illo .t {
	stroke-width: 2;
}
.illo .nf {
	fill: none;
}
.illo .hl {
	fill: none;
	stroke: #fff6e6;
	stroke-width: 3;
	stroke-linecap: round;
	opacity: 0.55;
}
.illo .ws {
	stroke: #fff;
	stroke-width: 3;
	stroke-linecap: round;
	stroke-linejoin: round;
}
.illo .tick {
	stroke: var(--framboos);
	stroke-width: 3.2;
	stroke-linecap: round;
	stroke-linejoin: round;
}
.illo .pine {
	stroke: var(--munt-diep);
	stroke-width: 3;
	stroke-linecap: round;
}
.illo .gd-line {
	stroke: var(--goud-diep);
	stroke-width: 1.6;
	stroke-linecap: round;
	opacity: 0.6;
}
.illo .p {
	fill: var(--lootje);
}
.illo .ps {
	fill: #f0e1d5;
}
.illo .pf {
	fill: var(--lootje);
}
.illo .g {
	fill: var(--goud);
}
.illo .gd {
	fill: #b48420;
}
.illo .m {
	fill: var(--marsepein);
}
.illo .r {
	fill: var(--framboos);
}
.illo .n {
	fill: var(--munt);
}
.illo .nd {
	fill: var(--munt-diep);
}
.illo .c {
	fill: var(--cacao);
}
.illo .cl {
	fill: var(--melk);
}
.illo .cd {
	fill: var(--cacao-diep);
}
.illo .k {
	fill: var(--kraft);
}
.illo .kd {
	fill: var(--kraft-diep);
}
.illo .a {
	fill: var(--a);
}
/* On the dark band the ink line turns to cream, so the hat stands out against cacao. */
.avond .illo .o,
.avond .illo .t,
.tool-band .illo .o,
.tool-band .illo .t {
	stroke: #1a0c06;
}

/* ---------- Homepage: featured article ---------- */

.feature-band {
	padding-block: 40px 64px;
}
.feature {
	display: grid;
	grid-template-columns: minmax(0, 4fr) minmax(0, 6fr);
	gap: 40px 64px;
	align-items: center;
}
.feature-art {
	width: min(100%, 380px);
	justify-self: center;
	margin-top: 40px;
}
.tag-frame-big {
	padding: 16% 8% 8%;
}
.feature-cat {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 12px;
	padding: 4px 14px 4px 10px;
	border-radius: 999px;
	background: var(--goud-licht);
	font-weight: 800;
	font-size: 0.98rem;
}
.feature-title {
	font-family: var(--f-display);
	font-weight: 400;
	font-size: clamp(1.9rem, 3.6vw, 2.8rem);
	line-height: 1.08;
	color: var(--cacao);
	margin-bottom: 0.5em;
}
.feature-desc {
	font-size: 1.15rem;
	max-width: 52ch;
	margin-bottom: 1.4em;
}

/* ---------- Section titles ---------- */

.section-title {
	font-family: var(--f-display);
	font-weight: 400;
	font-size: clamp(1.8rem, 3.4vw, 2.5rem);
	line-height: 1.1;
	color: var(--cacao);
	margin-bottom: 28px;
}

/* ---------- Homepage: categories as wrapped presents ---------- */

.cats {
	padding-block: 24px 56px;
}
.cat-gifts {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 28px;
	margin: 0;
	padding: 0;
	list-style: none;
}
.cat-gift {
	--pak: var(--goud);
	--lint: var(--framboos);
}
.cat-gift.cat-marsepein {
	--pak: var(--marsepein);
	--lint: var(--goud);
}
.cat-gift.cat-munt {
	--pak: var(--munt);
	--lint: var(--cacao);
}
.cat-gift a {
	display: flex;
	flex-direction: column;
	height: 100%;
	border-radius: 10px;
	overflow: hidden;
	background: var(--lootje);
	color: var(--inkt);
	text-decoration: none;
	box-shadow: var(--schaduw-lootje);
	transition: transform 0.18s ease;
}
.cat-gift a:hover {
	transform: translateY(-4px) rotate(-0.6deg);
	color: var(--inkt);
}
.cat-gift-art {
	display: grid;
	place-items: center;
	padding: 22px 0;
	background:
		linear-gradient(90deg, transparent calc(50% - 11px), var(--lint) calc(50% - 11px), var(--lint) calc(50% + 11px), transparent calc(50% + 11px)),
		linear-gradient(0deg, transparent calc(50% - 11px), var(--lint) calc(50% - 11px), var(--lint) calc(50% + 11px), transparent calc(50% + 11px)),
		var(--pak);
}
.cat-gift-art .illo {
	width: 62%;
	height: auto;
	border-radius: 50%;
	background: var(--lootje);
	box-shadow: 0 0 0 6px var(--lootje), 0 0 0 9px var(--lint);
}
.cat-gift-name {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 20px 22px 6px;
	font-family: var(--f-display);
	font-size: 1.55rem;
	line-height: 1.15;
	color: var(--cacao);
}
.cat-gift-icon {
	width: 26px;
	height: 26px;
}
.cat-gift-intro {
	padding: 0 22px 10px;
	font-size: 1.02rem;
	color: var(--inkt-zacht);
}
.cat-gift-count {
	margin-top: auto;
	padding: 10px 22px 20px;
	font-weight: 800;
	text-decoration: underline;
	text-decoration-color: var(--goud);
	text-decoration-thickness: 3px;
	text-underline-offset: 0.18em;
}

/* ---------- Article cards: lootjes with a dog-ear ---------- */

.all {
	padding-block: 24px 72px;
}
.cards {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
	gap: 24px;
	margin: 0;
	padding: 0;
	list-style: none;
}
.card-link {
	position: relative;
	display: flex;
	flex-direction: column;
	height: 100%;
	border-radius: var(--radius);
	background: var(--lootje);
	color: var(--inkt);
	text-decoration: none;
	box-shadow: var(--schaduw-lootje);
	transition: transform 0.18s ease;
}
.card-link::after {
	content: "";
	position: absolute;
	top: 0;
	right: 0;
	width: 26px;
	height: 26px;
	background: linear-gradient(225deg, var(--papier) 50%, var(--naad) 50%);
	border-bottom-left-radius: 4px;
	box-shadow: -2px 2px 3px rgba(59, 32, 22, 0.08);
}
.card-link:hover {
	transform: translateY(-4px);
	color: var(--inkt);
}
.card-link:hover .card-title {
	text-decoration: underline;
	text-decoration-color: var(--goud);
	text-decoration-thickness: 3px;
	text-underline-offset: 0.18em;
}
.card-art {
	display: block;
	padding: 18px 18px 0;
}
.card-art .illo {
	display: block;
	width: 62%;
	height: auto;
	margin: 0 auto;
}
.card-body {
	display: flex;
	flex-direction: column;
	gap: 6px;
	padding: 12px 20px 22px;
}
.card-cat {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-weight: 700;
	font-size: 0.92rem;
	color: var(--melk);
}
.card-cat-icon {
	width: 18px;
	height: 18px;
}
.card-title {
	font-weight: 800;
	font-size: 1.18rem;
	line-height: 1.25;
	color: var(--cacao);
}
.card-desc {
	font-size: 0.98rem;
	line-height: 1.5;
	color: var(--inkt-zacht);
}
.cards-related {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}
.cards-list {
	grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}
.empty {
	font-family: var(--f-hand);
	font-size: 1.3rem;
}

/* ---------- Article and page header ---------- */

.post-hero {
	background: var(--marsepein-licht);
	padding-block: 56px 48px;
}
.post-hero .wrap,
.post-body {
	max-width: 1080px;
}
.post-hero-inner {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 290px);
	gap: 32px 56px;
	align-items: center;
}
.crumbs {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 2px 8px;
	margin-bottom: 18px;
	font-weight: 700;
	font-size: 0.98rem;
}
.crumbs a {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	min-height: 44px;
	color: var(--melk);
	text-decoration-thickness: 2px;
}
.crumb-icon {
	width: 18px;
	height: 18px;
}
.crumb-sep {
	color: var(--melk-licht);
}
.post-title {
	font-family: var(--f-display);
	font-weight: 400;
	font-size: clamp(1.8rem, 4.4vw, 3.4rem);
	/* Long Dutch compounds ("sinterklaasgedicht") break at a syllable with a hyphen, not mid-letter. */
	-webkit-hyphens: auto;
	hyphens: auto;
	line-height: 1.08;
	color: var(--cacao);
	text-shadow: 0.045em 0.05em 0 var(--goud-licht);
	margin-bottom: 0.5em;
}
.post-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 22px;
	margin: 0;
	padding: 0;
	list-style: none;
	font-size: 0.98rem;
	color: var(--inkt-zacht);
}
.post-meta li {
	display: inline-flex;
	align-items: center;
	gap: 8px;
}
.post-meta .icon {
	color: var(--melk);
}
.post-art {
	width: 100%;
	max-width: 290px;
	justify-self: center;
	margin-top: 36px;
}
.cat-lede {
	font-size: 1.2rem;
	max-width: 50ch;
}
.cat-count {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin: 0;
	font-weight: 800;
}
.cat-count-icon {
	width: 22px;
	height: 22px;
}

/* ---------- Article body ---------- */

.post-body {
	margin: 0 auto;
	padding: 48px var(--gutter) 72px;
	display: grid;
	grid-template-columns: minmax(0, 700px) minmax(0, 1fr);
	gap: 0 56px;
	align-items: start;
}
.post-body .prose {
	grid-column: 1;
	grid-row: 1 / span 2;
}
/* "In het kort": a folded lootje that stays in view beside the article. */
.summary {
	grid-column: 2;
	grid-row: 1 / span 2;
	align-self: start;
	position: sticky;
	top: 24px;
	padding: 22px 22px 20px;
	border-radius: 4px;
	background-color: var(--lootje);
	background-image: linear-gradient(to bottom, transparent calc(50% - 1px), rgba(59, 32, 22, 0.08) calc(50% - 1px), rgba(59, 32, 22, 0.08) 50%, rgba(59, 32, 22, 0.025) 50%);
	box-shadow: var(--schaduw-lootje);
	transform: rotate(1deg);
	font-size: 1.02rem;
	line-height: 1.55;
}
.summary::before {
	/* A chocolate coin in gold foil pins the lootje down. */
	content: "";
	position: absolute;
	top: -11px;
	left: 50%;
	width: 24px;
	height: 24px;
	transform: translateX(-50%);
	border-radius: 50%;
	background: radial-gradient(circle at 35% 30%, #fbeaa9 0 18%, var(--goud) 45%, #b8861f 100%);
	box-shadow: 0 0 0 2px #9c7016, 0 3px 6px rgba(59, 32, 22, 0.25);
}
.summary-title {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 10px;
	font-family: var(--f-hand);
	font-weight: 700;
	font-size: 1.55rem;
	color: var(--framboos);
}
.summary-icon {
	width: 26px;
	height: 26px;
}
.summary p {
	margin: 0;
}

.prose {
	font-size: 1.1875rem;
	line-height: 1.68;
}
.prose > * + h2,
.prose > section,
.prose > section + * {
	margin-top: 2.2em;
}
.prose h2 {
	font-family: var(--f-display);
	font-weight: 400;
	font-size: clamp(1.6rem, 3vw, 2rem);
	line-height: 1.15;
	color: var(--cacao);
	margin-bottom: 0.55em;
	scroll-margin-top: 24px;
}
.prose h3 {
	font-weight: 800;
	font-size: 1.28rem;
	color: var(--cacao);
	margin: 1.6em 0 0.4em;
	scroll-margin-top: 24px;
}
.prose h2 + h3 {
	margin-top: 0.6em;
}
.prose .lede {
	font-size: 1.32rem;
	line-height: 1.55;
	font-weight: 500;
	color: var(--cacao);
}
.prose ul,
.prose ol {
	margin: 0 0 1.1em;
	padding-left: 0;
	list-style: none;
}
.prose li {
	position: relative;
	margin-bottom: 0.45em;
	padding-left: 30px;
}
/* Bullets: a pepernoot. */
.prose ul > li::before {
	content: "";
	position: absolute;
	left: 6px;
	top: 0.55em;
	width: 11px;
	height: 11px;
	border-radius: 50%;
	background: var(--kraft-diep);
	box-shadow: inset -2px -2px 0 rgba(59, 32, 22, 0.25);
}
/* Numbered steps: each number on a small slip. */
.prose ol.steps {
	counter-reset: stap;
}
.prose ol.steps > li {
	counter-increment: stap;
	padding-left: 46px;
	margin-bottom: 0.7em;
}
.prose ol.steps > li::before {
	content: counter(stap);
	position: absolute;
	left: 0;
	top: 0.05em;
	display: grid;
	place-items: center;
	width: 32px;
	height: 32px;
	border-radius: 4px;
	background: var(--goud-licht);
	color: var(--cacao);
	font-family: var(--f-display);
	font-size: 1rem;
	line-height: 1;
	transform: rotate(-4deg);
	box-shadow: 0 2px 0 var(--goud);
}
.prose strong {
	font-weight: 800;
}
.prose .lead-in strong {
	color: var(--cacao);
}

/* Tip and let-op. */
.callout {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr);
	gap: 14px;
	align-items: start;
	margin: 1.6em 0;
	padding: 18px 20px;
	border-radius: 10px;
	font-size: 1.08rem;
	line-height: 1.6;
}
.callout-text p:last-child {
	margin-bottom: 0;
}
.callout-icon {
	width: 40px;
	height: 40px;
	padding: 8px;
	border-radius: 50%;
	color: #fff;
}
.callout-tip {
	background: var(--munt-licht);
	box-shadow: inset 0 0 0 2px var(--munt);
}
.callout-tip .callout-icon {
	background: var(--munt-diep);
}
.callout-let-op {
	background: var(--marsepein-licht);
	box-shadow: inset 0 0 0 2px var(--marsepein);
}
.callout-let-op .callout-icon {
	background: var(--framboos);
}

/* Checklist: a slab of chocolate with gold coins. */
.panel-check {
	--focus: var(--goud-licht);
	padding: 28px clamp(20px, 4vw, 36px) 24px;
	border-radius: 14px;
	background-color: var(--cacao);
	background-image: url("/assets/shapes/pakpapier-1.svg");
	background-size: 160px 160px;
	color: var(--avond-tekst);
}
.panel-check h2 {
	display: flex;
	align-items: center;
	gap: 12px;
	color: var(--goud-licht);
}
.h2-icon {
	width: 36px;
	height: 36px;
	padding: 6px;
	border-radius: 50%;
	flex: none;
}
.panel-check .h2-icon {
	background: var(--goud);
	color: var(--cacao);
	stroke-width: 3;
}
.prose .checklist {
	margin: 0;
	display: grid;
	gap: 0;
}
.prose .checklist li {
	display: flex;
	gap: 14px;
	align-items: flex-start;
	margin: 0;
	padding: 10px 0;
	border-top: 1px dashed rgba(246, 220, 140, 0.28);
}
.prose .checklist li:first-child {
	border-top: 0;
}
.prose .checklist li::before {
	content: none;
}
.coin {
	display: grid;
	place-items: center;
	flex: none;
	width: 30px;
	height: 30px;
	margin-top: 1px;
	border-radius: 50%;
	background: radial-gradient(circle at 35% 30%, #fbeaa9 0 18%, var(--goud) 45%, #b8861f 100%);
	box-shadow: 0 0 0 2px #9c7016, inset 0 0 0 3px rgba(255, 246, 214, 0.45);
	color: var(--cacao);
}
.coin .icon {
	width: 18px;
	height: 18px;
	stroke-width: 3;
}

/* Veelgestelde vragen: folded slips. */
.faq h2,
.sources h2 {
	display: flex;
	align-items: center;
	gap: 12px;
}
.faq .h2-icon {
	background: var(--marsepein);
	color: var(--cacao);
}
.faq-list {
	display: grid;
	gap: 16px;
}
.faq-item {
	padding: 18px 22px 6px;
	border-radius: 4px;
	background: var(--lootje);
	box-shadow: var(--schaduw-lootje);
	font-size: 1.08rem;
}
.faq-item:nth-child(odd) {
	transform: rotate(-0.3deg);
}
.faq-item:nth-child(even) {
	transform: rotate(0.3deg);
}
.prose .faq-item h3 {
	margin: 0 0 0.35em;
	font-size: 1.18rem;
}

/* Bronnen. */
.sources {
	padding-top: 24px;
	border-top: 2px dashed var(--naad);
	font-size: 1rem;
	line-height: 1.55;
	color: var(--inkt-zacht);
}
.prose .sources h2 {
	font-size: 1.4rem;
}
.sources .h2-icon {
	width: 30px;
	height: 30px;
	padding: 4px;
	background: var(--lootje-schaduw);
	color: var(--cacao);
}
.prose .source-list li::before {
	background: var(--melk-licht);
	width: 8px;
	height: 8px;
	top: 0.6em;
}

/* Example poems: handwritten on a lined slip. */
.poem {
	position: relative;
	margin: 0.6em 0 1.8em;
	padding: 22px 28px 18px 56px;
	max-width: 36em;
	border-radius: 4px;
	background-color: #fffdf8;
	background-image:
		linear-gradient(90deg, transparent 38px, var(--marsepein) 38px, var(--marsepein) 40px, transparent 40px),
		repeating-linear-gradient(to bottom, transparent 0, transparent calc(2.1rem - 1px), #ecdacb calc(2.1rem - 1px), #ecdacb 2.1rem);
	background-position: 0 22px;
	box-shadow: var(--schaduw-lootje);
	font-family: var(--f-hand);
	font-size: 1.3rem;
	line-height: 2.1rem;
	color: var(--cacao);
	transform: rotate(-0.8deg);
}
.poem p {
	margin: 0 0 2.1rem;
}
.poem p:last-child {
	margin-bottom: 0;
}
.poem .poem-sign {
	text-align: right;
	font-weight: 700;
	color: var(--framboos);
}

/* Tables (none yet; ready for them). */
.table-wrap {
	overflow-x: auto;
	margin: 1.4em 0;
}
.table-wrap table {
	width: 100%;
	border-collapse: collapse;
	font-size: 1rem;
	background: var(--lootje);
}
.table-wrap th,
.table-wrap td {
	padding: 10px 12px;
	text-align: left;
	border-bottom: 1px dashed var(--naad);
}
.table-wrap th {
	background: var(--cacao);
	color: var(--avond-tekst);
}

.page-updated {
	font-size: 0.98rem;
	color: var(--inkt-zacht);
}
.prose-page {
	grid-column: 1;
}

/* ---------- Tool band under articles ---------- */

.tool-band {
	padding-block: 40px;
	margin-top: 14px;
}
.tool-band-inner {
	display: grid;
	grid-template-columns: 120px minmax(0, 1fr) auto;
	gap: 16px 32px;
	align-items: center;
}
.tool-band-art .illo {
	display: block;
	width: 120px;
	height: auto;
}
.tool-band-title {
	font-family: var(--f-display);
	font-weight: 400;
	font-size: clamp(1.5rem, 3vw, 2rem);
	color: var(--goud-licht);
	margin-bottom: 0.25em;
}
.tool-band-text p {
	margin: 0;
	color: var(--avond-tekst);
	max-width: 52ch;
}

/* ---------- Lees ook ---------- */

.related {
	padding-block: 64px 72px;
}

/* ---------- 404 ---------- */

.not-found {
	padding-block: 72px 32px;
}
.not-found-inner {
	display: grid;
	grid-template-columns: minmax(0, 340px) minmax(0, 1fr);
	gap: 32px 64px;
	align-items: center;
}
.not-found-art {
	margin-top: 40px;
}
.not-found-lede {
	font-size: 1.2rem;
	max-width: 46ch;
}
.not-found-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}

/* ---------- Participant page: unfolding your own lootje ---------- */

.avond-lootje {
	min-height: 78vh;
	background-image: radial-gradient(48% 46% at 50% 34%, rgba(246, 220, 140, 0.2), rgba(246, 220, 140, 0) 72%), url("/assets/shapes/pakpapier-1.svg");
	background-size: auto, 160px 160px;
}
.lootje-wrap {
	max-width: 640px;
	padding-block: 48px 80px;
}
.avond-lootje .lootjes-noscript {
	margin-bottom: 20px;
}
.lootje-slip {
	--focus: var(--munt-diep);
	position: relative;
	padding: clamp(26px, 6vw, 44px) clamp(20px, 5vw, 40px) clamp(22px, 5vw, 34px);
	border-radius: 4px;
	background-color: var(--lootje);
	background-image: linear-gradient(to bottom, transparent calc(50% - 1px), rgba(59, 32, 22, 0.12) calc(50% - 1px), rgba(59, 32, 22, 0.12) 50%, rgba(59, 32, 22, 0.035) 50%);
	color: var(--inkt);
	box-shadow: 0 2px 0 #d8c1b0, 0 30px 60px rgba(10, 4, 1, 0.5);
	transform-origin: 50% 0;
	animation: ontvouwen 0.9s cubic-bezier(0.2, 0.75, 0.25, 1) both;
}
@keyframes ontvouwen {
	from {
		transform: perspective(1100px) rotateX(-82deg);
		opacity: 0.2;
	}
	to {
		transform: none;
		opacity: 1;
	}
}
.lootje-hoed {
	position: absolute;
	top: -34px;
	right: -18px;
	width: 120px;
	transform: rotate(8deg);
	pointer-events: none;
}
.lootje-hoed .illo .glow {
	fill: none;
}
.lootje-kop {
	font-weight: 400;
	line-height: 1.2;
	margin-bottom: 26px;
}
.lootje-hoi {
	display: block;
	font-weight: 700;
	font-size: 1.25rem;
	color: var(--inkt-zacht);
}
.lootje-zin {
	display: block;
	font-size: 1.45rem;
	font-weight: 600;
	color: var(--cacao);
}
.lootje-zin strong {
	display: block;
	margin: 0.08em 0 0.12em;
	font-family: var(--f-hand);
	font-weight: 700;
	font-size: clamp(2.7rem, 10vw, 4.4rem);
	line-height: 1.15;
	color: var(--cacao);
	overflow-wrap: anywhere;
	text-decoration: underline wavy var(--goud);
	text-decoration-thickness: 3px;
	text-underline-offset: 0.22em;
	text-decoration-skip-ink: none;
}
.lootje-details {
	display: grid;
	margin: 0;
	border-top: 2px dashed var(--naad);
}
.lootje-details > div {
	display: grid;
	grid-template-columns: minmax(0, 11rem) minmax(0, 1fr);
	gap: 4px 16px;
	align-items: baseline;
	padding: 12px 0;
	border-bottom: 2px dashed var(--naad);
}
.lootje-details dt {
	font-weight: 700;
	font-size: 1rem;
	color: var(--inkt-zacht);
}
.lootje-details dd {
	margin: 0;
	font-family: var(--f-hand);
	font-size: 1.35rem;
	line-height: 1.4;
	overflow-wrap: anywhere;
}
.lootje-details .lootje-notitie {
	white-space: pre-line;
}
.lootje-details .lootje-code {
	align-items: center;
	border-bottom: 0;
	padding-top: 18px;
}
.lootje-details dd.stempel {
	justify-self: start;
	font-family: var(--f-body);
	font-size: 1.5rem;
	animation: stempelen 0.35s 0.75s cubic-bezier(0.3, 1.6, 0.5, 1) both;
}
@keyframes stempelen {
	from {
		transform: scale(1.7) rotate(-4deg);
		opacity: 0;
	}
	to {
		transform: rotate(-4deg);
		opacity: 1;
	}
}
.lootje-na {
	margin-top: 36px;
	color: var(--avond-tekst);
	font-size: 1.08rem;
}
.lootje-wens {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr);
	gap: 14px;
	align-items: start;
	margin-top: 24px;
	padding: 18px 20px;
	border-radius: 10px;
	background: var(--goud-licht);
	color: var(--cacao);
	--focus: var(--munt-diep);
	font-weight: 600;
}
.lootje-wens a {
	color: var(--cacao);
	text-decoration-color: var(--framboos);
	font-weight: 800;
}
.lootje-wens a:hover {
	color: var(--framboos);
}
.lootje-wens-icon {
	width: 40px;
	height: 40px;
	padding: 7px;
	border-radius: 50%;
	background: var(--cacao);
	color: var(--goud-licht);
}
.lootje-slip-fout {
	text-align: center;
	background-image: none;
}
.lootje-fout-art {
	display: block;
	width: 160px;
	margin: 0 auto 8px;
}
.lootje-slip-fout .lootje-kop {
	font-family: var(--f-display);
	font-size: clamp(1.7rem, 5vw, 2.3rem);
	color: var(--cacao);
	margin-bottom: 14px;
}
.lootje-slip-fout p {
	margin: 0;
	font-size: 1.15rem;
}

/* ---------- Footer ---------- */

.site-footer {
	background-color: var(--cacao-diep);
	margin-top: 14px;
	padding-block: 56px 40px;
	font-size: 1rem;
}
.is-post .site-footer,
.is-page .site-footer,
.is-category .site-footer {
	margin-top: 0;
}
.footer-inner {
	display: grid;
	grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
	gap: 32px 56px;
}
.footer-name {
	display: flex;
	align-items: center;
	gap: 10px;
	font-family: var(--f-display);
	font-size: 1.6rem;
	color: var(--goud-licht);
	margin-bottom: 0.4em;
}
.logo-mark-footer {
	width: 36px;
	height: 36px;
}
.footer-about p {
	max-width: 46ch;
	color: var(--avond-zacht);
}
.footer-small {
	font-size: 0.95rem;
}
.footer-nav ul {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0 24px;
	margin: 0;
	padding: 0;
	list-style: none;
}
.footer-nav a {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	color: var(--avond-tekst);
	font-weight: 700;
}
.footer-nav a:hover {
	color: var(--goud-licht);
}

/* Sections that follow a dark band leave room for its foil edge. */
.tool-band + .related {
	padding-top: 72px;
}

/* ---------- Responsive ---------- */

@media (max-width: 1000px) {
	.post-body {
		grid-template-columns: minmax(0, 1fr);
		max-width: 760px;
	}
	.summary {
		position: relative;
		top: auto;
		grid-column: 1;
		grid-row: 1;
		align-self: auto;
		margin-bottom: 36px;
		transform: rotate(-0.6deg);
	}
	.post-body .prose {
		grid-column: 1;
		grid-row: 2;
	}
	.uitleg-grid {
		grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	}
	.uitleg-hoe {
		grid-column: 1 / -1;
	}
	.uitleg-code {
		margin-top: 0;
	}
}

@media (max-width: 860px) {
	.avond-inner {
		grid-template-columns: minmax(0, 1fr);
		padding-block: 28px 64px;
	}
	.avond-text {
		position: relative;
		top: auto;
		display: grid;
		grid-template-columns: minmax(0, 1fr) 120px;
		gap: 0 12px;
		align-items: end;
		padding-top: 0;
	}
	.avond-title {
		grid-column: 1 / -1;
	}
	.avond-lede {
		margin-bottom: 0;
	}
	.avond-art {
		width: 120px;
		margin: 0;
	}
	.feature,
	.not-found-inner,
	.footer-inner {
		grid-template-columns: minmax(0, 1fr);
	}
	.feature-art {
		width: min(78%, 320px);
	}
	.cat-gifts {
		grid-template-columns: minmax(0, 1fr);
		max-width: 520px;
	}
	.post-hero-inner {
		grid-template-columns: minmax(0, 1fr) 150px;
		gap: 16px 20px;
		align-items: start;
	}
	.post-art {
		margin-top: 44px;
	}
	.art-note {
		display: none;
	}
	.tool-band-inner {
		grid-template-columns: 84px minmax(0, 1fr);
	}
	.tool-band-art .illo {
		width: 84px;
	}
	.tool-band .button {
		grid-column: 1 / -1;
		justify-self: start;
	}
	.not-found-art {
		width: min(70%, 260px);
		justify-self: center;
	}
}

@media (max-width: 600px) {
	body {
		font-size: 1.0625rem;
	}
	.header-inner {
		padding-block: 10px 12px;
		gap: 6px;
	}
	.logo-name {
		font-size: 1.5rem;
	}
	.logo-mark {
		width: 34px;
		height: 34px;
	}
	.main-nav {
		width: 100%;
	}
	.nav {
		gap: 2px 0;
	}
	.nav a {
		padding: 0 6px;
		font-size: 0.9rem;
	}
	.nav .nav-tool a {
		padding: 0 12px;
	}
	.post-title {
		font-size: 1.75rem;
	}
	.cards-related {
		grid-template-columns: minmax(0, 1fr);
	}
	.avond-text {
		grid-template-columns: minmax(0, 1fr) 92px;
	}
	.avond-art {
		width: 92px;
	}
	.avond-lede {
		font-size: 1.08rem;
	}
	.lootjes-hint {
		margin-left: 0;
	}
	.lootjes-extra-velden {
		grid-template-columns: minmax(0, 1fr);
	}
	.lootjes-uitzonderingen li {
		grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
		background-image: none;
	}
	.lootjes-uitzonderingen li > span {
		width: 32px;
		height: 32px;
		font-size: 0.95rem;
	}
	.lootjes-uitzonderingen [data-lootjes="remove-exclusion"] {
		grid-column: 1 / -1;
		justify-self: end;
	}
	.lootjes select {
		font-size: 1rem;
		padding-left: 8px;
		padding-right: 26px;
		background-position: calc(100% - 14px) 52%, calc(100% - 8px) 52%;
	}
	.lootjes-links {
		grid-template-columns: minmax(0, 1fr);
	}
	.uitleg-grid {
		grid-template-columns: minmax(0, 1fr);
	}
	.uitleg-slip {
		transform: none;
	}
	.lootjes-uitleg {
		padding-block: 56px 40px;
	}
	.uitleg-meer {
		text-align: left;
	}
	.post-hero {
		padding-block: 28px 32px;
	}
	.post-hero-inner {
		grid-template-columns: minmax(0, 1fr) 80px;
		gap: 12px 16px;
	}
	.post-art {
		margin-top: 52px;
	}
	.post-art::before {
		top: -34px;
		height: 42px;
	}
	.prose {
		font-size: 1.09rem;
	}
	.prose .lede {
		font-size: 1.2rem;
	}
	.poem {
		padding: 18px 16px 14px 46px;
		font-size: 1.15rem;
		background-image:
			linear-gradient(90deg, transparent 30px, var(--marsepein) 30px, var(--marsepein) 32px, transparent 32px),
			repeating-linear-gradient(to bottom, transparent 0, transparent calc(2.1rem - 1px), #ecdacb calc(2.1rem - 1px), #ecdacb 2.1rem);
		background-position: 0 18px;
	}
	.callout {
		grid-template-columns: minmax(0, 1fr);
		gap: 8px;
		padding: 16px;
	}
	.lootje-details > div {
		grid-template-columns: minmax(0, 1fr);
	}
	.lootje-hoed {
		width: 80px;
		top: -26px;
		right: 0;
	}
	.footer-nav ul {
		grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	}
}

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