/* Cadeaus onder de boom: "Wolwit", Nordic knitwear.
   Wool white, ice blue, cranberry and slate yarn. Caprasimo (soft and round, like a puffy jumper letter) for
   headings, Familjen Grotesk for text. Every drawing is a knitting chart (src/_lib/illustrations.js) set on a
   knitted patch with a running-stitch edge; Fair Isle bands and ribbed cuffs mark the edges of sections; ticks
   are cross stitches; the budget bands are stitch meters, one to five stitches.
   Files referenced from here (fonts, shapes) are not versioned: give a changed one a new name.
   Kerstlijstje rules kept from the plan ("Behaviour", e2e 13, 15, 16): [hidden] always hides, everything in the
   tool wraps, only [data-kl-printout] of the tool is printed, tap targets of at least 44 × 44 px, a visible
   :focus-visible ring. */

@font-face {
	font-family: "Caprasimo";
	src: url("/assets/fonts/caprasimo-latin-400-normal.woff2") format("woff2");
	font-weight: 400;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: "Familjen Grotesk";
	src: url("/assets/fonts/familjen-grotesk-latin-400-normal.woff2") format("woff2");
	font-weight: 400;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: "Familjen Grotesk";
	src: url("/assets/fonts/familjen-grotesk-latin-400-italic.woff2") format("woff2");
	font-weight: 400;
	font-style: italic;
	font-display: swap;
}
@font-face {
	font-family: "Familjen Grotesk";
	src: url("/assets/fonts/familjen-grotesk-latin-600-normal.woff2") format("woff2");
	font-weight: 600;
	font-style: normal;
	font-display: swap;
}

/* ---------- tokens ---------- */

:root {
	--display: "Caprasimo", "Cooper Black", Georgia, serif;
	--body: "Familjen Grotesk", "Segoe UI", system-ui, sans-serif;

	--page: #f5f6f3; /* wool white */
	--page-2: #e8ece9; /* wool in shade */
	--card: #ffffff;
	--ink: #26313d; /* slate yarn */
	--ink-2: #4b5966;
	--line: #26313d;
	--ice: #d4e6ef;
	--ice-2: #b9d4e2;
	--cran: #a3233c; /* cranberry */
	--cran-ink: #a3233c;
	--cran-deep: #7d1a2e;
	--rose: #f3dbe0;
	--on-cran: #ffffff;
	--stitch: rgb(163 35 60 / 0.55);
	--focus: #a3233c;
	--shadow: 0 18px 30px -20px rgb(38 49 61 / 0.55);
	--meter-off: #c9dbe5;
	--footer: #26313d;
	--footer-ink: #eef2f0;
	--rib-a: #bcd6e4;
	--rib-b: #a9c9da;
	--cat-bg: var(--ice);
	--cat-ink: var(--ink);
	--fairisle: url("/assets/shapes/fairisle-1.svg");
	--hartjes: url("/assets/shapes/hartjes-1.svg");

	--wrap: 1200px;
	--gutter: 24px;
	--radius: 16px;
	color-scheme: light dark;
}

/* Dark: a slate jumper. The patches stay wool, ice and cranberry, like patches sewn on dark knit. */
@media (prefers-color-scheme: dark) {
	:root {
		--page: #18202a;
		--page-2: #1f2934;
		--card: #222d39;
		--ink: #eef1ef;
		--ink-2: #b9c4cc;
		--line: #8ea2b2;
		--ice: #263747;
		--ice-2: #35506a;
		--cran-ink: #f2a7b5;
		--cran-deep: #f6bcc7;
		--rose: #3b2731;
		--stitch: rgb(242 167 181 / 0.5);
		--focus: #f2a7b5;
		--shadow: 0 18px 30px -18px rgb(0 0 0 / 0.7);
		--meter-off: #3d5468;
		--footer: #10161d;
		--footer-ink: #e3e9ec;
		--rib-a: #22313f;
		--rib-b: #2b3d4e;
		--fairisle: url("/assets/shapes/fairisle-donker-1.svg");
		--hartjes: url("/assets/shapes/hartjes-donker-1.svg");
	}
}

/* Each section has its own ground: cranberry rose for giving, ice for your wishlist, slate for the tree. */
[data-cat="cadeaus-geven"] { --cat-bg: var(--rose); }
[data-cat="je-verlanglijstje"] { --cat-bg: var(--ice); }
[data-cat="de-kerstboom"] { --cat-bg: #26313d; --cat-ink: #f5f6f3; }
@media (prefers-color-scheme: dark) {
	[data-cat="de-kerstboom"] { --cat-bg: #0f151c; }
}

/* ---------- base ---------- */

[hidden] { display: none !important; }

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

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

body {
	margin: 0;
	background: var(--page);
	color: var(--ink);
	font: 400 1.0625rem/1.6 var(--body);
	overflow-wrap: break-word;
}

img, svg { max-width: 100%; }

a { color: var(--cran-ink); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2.5px; }

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

h1, h2, h3 { line-height: 1.12; text-wrap: balance; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

.knit-defs { position: absolute; width: 0; height: 0; overflow: hidden; }

.icon { width: 1.2em; height: 1.2em; flex: none; }

.skip {
	position: absolute;
	left: 12px;
	top: -60px;
	z-index: 10;
	background: var(--ink);
	color: var(--page);
	padding: 0.6rem 1rem;
	border-radius: 10px;
	font-weight: 600;
}
.skip:focus { top: 12px; }

/* ---------- shared pieces ---------- */

/* A knitted patch: the drawing with rounded corners, a running-stitch edge and a soft shadow. */
.patch {
	position: relative;
	display: block;
	border-radius: 14px;
	overflow: hidden;
	box-shadow: var(--shadow);
	background: #f5f6f3;
}
.patch > svg { display: block; width: 100%; height: auto; }
.patch::after {
	content: "";
	position: absolute;
	inset: 8px;
	border: 2.5px dashed rgb(163 35 60 / 0.75);
	border-radius: 9px;
	pointer-events: none;
}
.patch--slate::after, .patch--cran::after { border-color: rgb(255 255 255 / 0.7); }
.patch--tilt { transform: rotate(-2deg); }

/* A woven clothing label: cranberry with a stitched inner edge. */
.woven {
	display: inline-block;
	background: var(--cran);
	color: var(--on-cran);
	font: 600 0.85rem/1.2 var(--body);
	padding: 0.4rem 0.95rem;
	border-radius: 4px;
	outline: 1.5px dashed rgb(255 255 255 / 0.75);
	outline-offset: -4px;
	box-shadow: 0 6px 12px -8px rgb(38 49 61 / 0.7);
}

/* A sewn-on label: the section of an article. */
.label { margin: 0 0 0.9rem; }
.label a, .label--plain {
	display: inline-flex;
	align-items: center;
	gap: 0.45rem;
	background: var(--card);
	color: var(--ink);
	padding: 0.35rem 0.9rem;
	border-radius: 10px;
	font-weight: 600;
	font-size: 0.95rem;
	text-decoration: none;
	outline: 1.5px dashed var(--stitch);
	outline-offset: -4px;
}
.label a { min-height: 40px; }
.label a:hover { text-decoration: underline; }
.label a:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.label .icon { color: var(--cran-ink); }

.fairisle {
	height: 44px;
	background: var(--fairisle) repeat-x 0 0 / auto 100%;
}

.button {
	display: inline-flex;
	align-items: center;
	gap: 0.55rem;
	min-height: 48px;
	padding: 0.7rem 1.25rem;
	border-radius: 12px;
	font: 600 1rem/1.2 var(--body);
	text-decoration: none;
	border: 2px solid transparent;
	cursor: pointer;
}
.button--cran {
	background: var(--cran);
	color: var(--on-cran);
	border-color: var(--cran);
	box-shadow: inset 0 0 0 3px var(--cran), inset 0 0 0 4.5px rgb(255 255 255 / 0.55);
}
.button--cran:hover { background: var(--cran-deep); border-color: var(--cran-deep); box-shadow: inset 0 0 0 3px var(--cran-deep), inset 0 0 0 4.5px rgb(255 255 255 / 0.55); color: #fff; }
.button--line { color: var(--ink); border-color: var(--ink); background: transparent; }
.button--line:hover { background: var(--card); }
.button--line .icon { color: var(--cran-ink); }

.section-title { font: 400 clamp(1.8rem, 3.4vw, 2.4rem)/1.1 var(--display); margin: 0 0 1.4rem; }

/* ---------- header and footer ---------- */

.site-header { background: var(--page); }
.site-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem 2rem;
	flex-wrap: wrap;
	padding-top: 14px;
	padding-bottom: 14px;
}
.logo { display: inline-flex; align-items: center; gap: 0.65rem; color: var(--ink); text-decoration: none; }
.logo-mark { width: 42px; height: 42px; flex: none; }
.logo__name { font: 400 1.55rem/1 var(--display); }
.logo:hover .logo__name { text-decoration: underline; text-decoration-thickness: 2px; }

.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.35rem 0.4rem; align-items: center; }
.site-nav__link {
	display: inline-flex;
	align-items: center;
	gap: 0.45rem;
	min-height: 44px;
	padding: 0.45rem 0.8rem;
	border-radius: 12px;
	color: var(--ink);
	font-weight: 600;
	text-decoration: none;
}
.site-nav__link .icon { color: var(--cran-ink); }
.site-nav__link:hover { background: var(--page-2); }
.site-nav__link[aria-current] { box-shadow: inset 0 -3px 0 #7eaac2; }
.site-nav__link--kl { background: var(--cran); color: var(--on-cran); outline: 1.5px dashed rgb(255 255 255 / 0.7); outline-offset: -5px; margin-left: 0.4rem; }
.site-nav__link--kl .icon { color: inherit; }
.site-nav__link--kl:hover { background: var(--cran-deep); color: #fff; }
.site-nav__link--kl[aria-current] { box-shadow: 0 0 0 3px #7eaac2; }
.site-nav__link--kl:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }

.site-footer { background: var(--footer); color: var(--footer-ink); }
.site-footer::before {
	content: "";
	display: block;
	height: 22px;
	background: repeating-linear-gradient(90deg, #3a4958 0 7px, #26313d 7px 9px, #3a4958 9px 12px, #1d2731 12px 14px);
}
.site-footer__inner { display: grid; grid-template-columns: 1.3fr 1fr; gap: 2rem; padding-top: 2.5rem; padding-bottom: 3rem; }
.site-footer__name { display: flex; align-items: center; gap: 0.6rem; font: 400 1.4rem/1.1 var(--display); margin: 0 0 0.6rem; }
.site-footer__about p:last-child { max-width: 46ch; margin: 0; color: #cdd6dc; }
.logo-mark--footer { width: 36px; height: 36px; background: #f5f6f3; border-radius: 8px; padding: 3px; }
.site-footer__nav ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.2rem 1.5rem; }
.site-footer__nav a { color: var(--footer-ink); display: inline-flex; align-items: center; min-height: 40px; text-decoration-color: #7eaac2; }
.site-footer :focus-visible { outline-color: #f2a7b5; }

/* ---------- homepage ---------- */

.hero { background: var(--ice); }
.hero::after, .page-hero::after, .post-hero::after {
	content: "";
	display: block;
	height: 22px;
	/* A ribbed cuff: knit and purl columns. */
	background: repeating-linear-gradient(90deg, rgb(38 49 61 / 0.09) 0 7px, rgb(38 49 61 / 0.2) 7px 9px, rgb(38 49 61 / 0.09) 9px 12px, var(--page) 12px 14px);
}
.hero__top {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 340px);
	gap: 40px 56px;
	align-items: center;
	padding-top: 40px;
	padding-bottom: 36px;
}
.hero__title { font: 400 clamp(2.7rem, 6vw, 5rem)/1 var(--display); margin: 0 0 0.3em; color: var(--ink); max-width: 11ch; }
.hero__lead { font-size: 1.25rem; line-height: 1.55; max-width: 44ch; margin: 0; }
.hero__patch { width: 100%; max-width: 340px; justify-self: end; transform: rotate(-2.5deg); margin-bottom: -96px; z-index: 1; }
.hero__tool { display: grid; grid-template-columns: minmax(0, 790px) minmax(0, 1fr); gap: 48px; align-items: start; padding-bottom: 60px; }
.hero__steps { list-style: none; margin: 120px 0 0; padding: 0; display: grid; gap: 1.1rem; counter-reset: step; position: sticky; top: 24px; }
.hero__steps li { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 14px; align-items: center; font-size: 1.05rem; line-height: 1.4; }
.hero__step-icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--card); color: var(--cran-ink); box-shadow: inset 0 0 0 2px var(--ice-2); }
.hero__step-icon .icon { width: 26px; height: 26px; }
.hero__step-icon .meter { width: 30px; height: 6px; -webkit-mask-size: 6px 6px; mask-size: 6px 6px; }
.hero__tool .kl__title { padding-right: 0; }
.hero .kl__woven { right: auto; left: 300px; top: 24px; transform: rotate(-2deg); }

.spotlight { padding: 72px 0 64px; }
.spotlight__inner { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.spotlight__art { margin: 0; }
.spotlight__art .patch { transform: rotate(1.8deg); }
.spotlight__title { font: 400 clamp(2rem, 3.8vw, 2.9rem)/1.08 var(--display); margin: 0 0 0.5em; }
.spotlight__text > p:not(.label) { font-size: 1.12rem; max-width: 52ch; }

.shelf { padding: 56px 0 64px; }
.shelf:nth-of-type(odd) { background: var(--page-2); }
.shelf__inner { display: grid; grid-template-columns: minmax(0, 360px) minmax(0, 1fr); gap: 44px; align-items: start; }
.shelf__patch { margin-bottom: 1.2rem; transform: rotate(-1.5deg); }
.shelf__title { font: 400 clamp(1.9rem, 3.4vw, 2.5rem)/1.08 var(--display); margin: 0 0 0.4em; }
.shelf__head p { margin: 0 0 1.1rem; }
.shelf__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.shelf__item a {
	display: grid;
	grid-template-columns: 92px minmax(0, 1fr);
	gap: 14px;
	align-items: center;
	height: 100%;
	padding: 10px 14px 10px 10px;
	border-radius: 14px;
	background: var(--card);
	color: var(--ink);
	text-decoration: none;
	box-shadow: 0 0 0 2px var(--line);
}
.shelf__list--one { grid-template-columns: minmax(0, 1fr); }
.shelf__list--one .shelf__item a { grid-template-columns: 200px minmax(0, 1fr); grid-template-rows: auto 1fr; gap: 0.3rem 22px; padding: 14px 22px 14px 14px; align-items: start; }
.shelf__list--one .shelf__thumb { grid-row: 1 / span 2; }
.shelf__list--one .shelf__name { font: 400 1.6rem/1.15 var(--display); margin-top: 0.4rem; }
.shelf__desc { color: var(--ink-2); }
.shelf__thumb { border-radius: 9px; box-shadow: none; }
.shelf__thumb::after { inset: 4px; border-width: 1.5px; border-radius: 6px; }
.shelf__name { font: 600 1.05rem/1.3 var(--body); }
.shelf__item a:hover .shelf__name { text-decoration: underline; text-decoration-color: var(--cran-ink); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.shelf__item a:hover { box-shadow: 0 0 0 2px var(--line), 0 10px 18px -12px rgb(38 49 61 / 0.6); }

/* ---------- page and section headers ---------- */

.page-hero, .post-hero { background: var(--cat-bg); color: var(--cat-ink); }
.page-hero__inner, .post-hero__inner {
	display: grid;
	grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
	gap: 48px;
	align-items: center;
	padding-top: 44px;
	padding-bottom: 56px;
}
.page-hero__title, .post-hero__title { font: 400 clamp(2.3rem, 4.6vw, 3.7rem)/1.05 var(--display); margin: 0 0 0.4em; }
.page-hero__intro, .post-hero__deck { font-size: 1.2rem; max-width: 46ch; margin: 0 0 1rem; }
.page-hero__art, .post-hero__art { margin: 0; position: relative; justify-self: center; width: 100%; max-width: 440px; }
.page-hero--tool { --cat-bg: var(--ice); }

.post-hero__art .woven { position: absolute; left: -12px; bottom: 28px; transform: rotate(-4deg); }

.meta { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.4rem 1.2rem; font-size: 0.95rem; }
.meta li { display: inline-flex; align-items: center; gap: 0.4rem; }
.meta .icon { color: var(--cran-ink); width: 1.1em; height: 1.1em; }
[data-cat="de-kerstboom"] .meta .icon { color: #f2a7b5; }
[data-cat="de-kerstboom"] .label a, [data-cat="de-kerstboom"] .label--plain { background: #f5f6f3; color: #26313d; outline-color: rgb(163 35 60 / 0.55); }
[data-cat="de-kerstboom"] .label .icon { color: #a3233c; }
[data-cat="de-kerstboom"] :focus-visible { outline-color: #f2a7b5; }

/* ---------- articles ---------- */

.post-layout, .page-layout { max-width: 820px; padding-bottom: 72px; }

/* In het kort: an ice-blue swatch with a band of knitted hearts. */
.kort {
	position: relative;
	margin: -34px 0 2.6rem;
	background: var(--ice);
	border-radius: var(--radius);
	box-shadow: 0 0 0 2px var(--line);
	overflow: hidden;
}
.kort::before { content: ""; display: block; height: 32px; background: var(--hartjes) repeat-x 0 0 / auto 100%; }
.kort__title { display: flex; align-items: center; gap: 0.5rem; font: 400 1.65rem/1.1 var(--display); color: var(--cran-deep); margin: 1.1rem 32px 0.5rem; }
.kort__title .icon { color: var(--cran-ink); }
.kort p { margin: 0 32px 1.6rem; font-size: 1.12rem; line-height: 1.6; }

.prose { font-size: 1.0625rem; line-height: 1.7; }
.prose > :first-child { margin-top: 0; }
.prose .lede { font-size: 1.25rem; line-height: 1.55; }
.prose h2 { font: 400 clamp(1.6rem, 3vw, 2rem)/1.15 var(--display); margin: 2.4rem 0 0.8rem; }
.prose h3 { font: 600 1.25rem/1.25 var(--body); margin: 1.8rem 0 0.5rem; }
.prose p, .prose ul, .prose ol { margin: 0 0 1.1rem; }
.prose strong { font-weight: 600; }

/* Bullets are single knit stitches: a V, the "vinkje" of a jumper. */
.prose ul { list-style: none; padding: 0; }
.prose ul > li { position: relative; padding-left: 1.9rem; margin-bottom: 0.55rem; }
.prose ul > li::before, .how__list li::before {
	content: "";
	position: absolute;
	left: 0.15rem;
	top: 0.38em;
	width: 1rem;
	height: 1rem;
	background: var(--cran-ink);
	-webkit-mask: url("/assets/shapes/steek-1.svg") center / contain no-repeat;
	mask: url("/assets/shapes/steek-1.svg") center / contain no-repeat;
}

/* Ideas by kind: an icon on a knitted button. */
.prose ul.kinds > li { padding-left: 3.1rem; min-height: 2.4rem; margin-bottom: 0.9rem; }
.prose ul.kinds > li::before { content: none; }
.kind__icon {
	position: absolute;
	left: 0;
	top: 0.05rem;
	display: grid;
	place-items: center;
	width: 2.3rem;
	height: 2.3rem;
	border-radius: 50%;
	background: var(--ice);
	color: var(--cran-ink);
	box-shadow: inset 0 0 0 1.5px var(--ice-2);
}
.kind__icon .icon { width: 1.25rem; height: 1.25rem; }
.kind--lekker .kind__icon, .kind--persoonlijk .kind__icon { background: var(--rose); box-shadow: inset 0 0 0 1.5px rgb(163 35 60 / 0.25); }

/* The budget bands: a stitch meter, one to five stitches. */
.meter {
	--n: 1;
	display: inline-block;
	flex: none;
	width: 50px;
	height: 10px;
	background: linear-gradient(90deg, var(--meter-on, var(--cran-ink)) 0 calc(var(--n) * 20%), var(--meter-off) 0);
	-webkit-mask: url("/assets/shapes/steek-1.svg") 0 0 / 10px 10px repeat-x;
	mask: url("/assets/shapes/steek-1.svg") 0 0 / 10px 10px repeat-x;
}
.meter--2 { --n: 2; }
.meter--3 { --n: 3; }
.meter--4 { --n: 4; }
.meter--5 { --n: 5; }
.meter > span { display: none; }
.prose .band-kop { display: flex; align-items: center; gap: 0.9rem; flex-wrap: wrap; padding-top: 1.6rem; border-top: 3px dotted var(--ice-2); }
.band-kop .meter { width: 90px; height: 18px; -webkit-mask-size: 18px 18px; mask-size: 18px 18px; }

/* Numbered steps: numbers on knitted squares. */
.prose ol.steps { list-style: none; padding: 0; counter-reset: step; }
.prose ol.steps > li { counter-increment: step; position: relative; padding-left: 3rem; margin-bottom: 0.9rem; min-height: 2.2rem; }
.prose ol.steps > li::before {
	content: counter(step);
	position: absolute;
	left: 0;
	top: 0;
	width: 2.1rem;
	height: 2.1rem;
	display: grid;
	place-items: center;
	border-radius: 8px;
	background: var(--cran);
	color: #fff;
	font: 400 1.1rem/1 var(--display);
	outline: 1.5px dashed rgb(255 255 255 / 0.7);
	outline-offset: -4px;
}

/* Callouts: a tip on ice, a warning on rose. */
.callout {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr);
	gap: 1rem;
	margin: 1.8rem 0;
	padding: 1.1rem 1.4rem;
	border-radius: 14px;
	background: var(--ice);
	box-shadow: inset 0 0 0 2px var(--ice-2);
}
.callout--letop { background: var(--rose); box-shadow: inset 0 0 0 2px rgb(163 35 60 / 0.3); }
.callout__icon { display: grid; place-items: center; width: 2.6rem; height: 2.6rem; border-radius: 50%; background: var(--card); color: var(--cran-ink); }
.callout__icon .icon { width: 1.4rem; height: 1.4rem; }
.callout__body > :last-child { margin-bottom: 0; }
.callout__body strong:first-child { color: var(--cran-deep); }

/* Tables: a slate header row and dotted rows, scrolling inside their box on a phone. */
.table-wrap { overflow-x: auto; margin: 1.6rem 0; border-radius: 14px; box-shadow: 0 0 0 2px var(--line); background: var(--card); }
.prose table { border-collapse: collapse; width: 100%; font-size: 0.98rem; line-height: 1.45; }
.prose th { background: #26313d; color: #f5f6f3; text-align: left; font-weight: 600; padding: 0.75rem 1rem; }
.prose td { padding: 0.7rem 1rem; border-top: 2px dotted var(--ice-2); vertical-align: top; }
.prose tbody tr:nth-child(even) td { background: color-mix(in srgb, var(--ice) 40%, transparent); }

.prose blockquote { margin: 1.6rem 0; padding: 1rem 1.4rem; border-radius: 14px; background: var(--card); box-shadow: 0 0 0 2px var(--line); }

.related { padding: 56px 0 72px; background: var(--page-2); }

/* The way to the Kerstlijstje, on a slate band under a dark Fair Isle border. */
.kl-band { background: #26313d; color: #f5f6f3; }
.kl-band::before { content: ""; display: block; height: 44px; background: url("/assets/shapes/fairisle-donker-1.svg") repeat-x 0 0 / auto 100%; }
.kl-band__inner { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 40px; align-items: center; padding-top: 44px; padding-bottom: 52px; }
.kl-band__patch { transform: rotate(-2deg); }
.kl-band__title { font: 400 clamp(1.7rem, 3vw, 2.2rem)/1.1 var(--display); margin: 0 0 0.5rem; }
.kl-band__text p { max-width: 56ch; margin: 0 0 1.1rem; }
.kl-band :focus-visible { outline-color: #f2a7b5; }
@media (prefers-color-scheme: dark) {
	.kl-band { background: #0f151c; }
}

/* ---------- cards (section pages, Lees ook) ---------- */

.cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px; }
.card {
	position: relative;
	display: flex;
	flex-direction: column;
	background: var(--card);
	border-radius: var(--radius);
	box-shadow: 0 0 0 2px var(--line);
	overflow: hidden;
}
.card__patch { border-radius: 0; box-shadow: none; }
.card__patch::after { inset: 9px; }
.card__title { font: 400 1.4rem/1.15 var(--display); margin: 1rem 22px 0.4rem; }
.card__title a { color: var(--ink); text-decoration: none; }
.card__title a::after { content: ""; position: absolute; inset: 0; border-radius: var(--radius); }
.card__title a:hover { text-decoration: underline; text-decoration-color: var(--cran-ink); }
.card__title a:focus-visible { outline: none; }
.card__title a:focus-visible::after { outline: 3px solid var(--focus); outline-offset: 3px; }
.card__text { margin: 0 22px 1.4rem; color: var(--ink-2); font-size: 0.98rem; }

.listing { padding: 24px 0 72px; }
/* On a section page the first article lies across the whole row. */
.cards--listing > .card:first-child { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); align-content: center; }
.cards--listing > .card:first-child .card__patch { grid-row: 1 / span 2; }
.cards--listing > .card:first-child .card__title { font-size: clamp(1.6rem, 3vw, 2.2rem); margin: auto 32px 0.5rem; padding-top: 1.4rem; }
.cards--listing > .card:first-child .card__text { margin: 0 32px auto; padding-bottom: 1.4rem; font-size: 1.08rem; }

/* ---------- other pages ---------- */

.page-layout { padding-top: 40px; }

.tool-layout { padding-top: 36px; padding-bottom: 72px; max-width: 900px; }
.how { margin-top: 48px; background: var(--card); border-radius: var(--radius); box-shadow: 0 0 0 2px var(--line); padding: 1.6rem 2rem 1.2rem; }
.how__title { font: 400 1.8rem/1.1 var(--display); margin: 0 0 1rem; }
.how__list { list-style: none; margin: 0; padding: 0; }
.how__list li { position: relative; padding-left: 1.9rem; margin-bottom: 0.7rem; }

.lost { padding: 56px 0 80px; }
.lost__inner { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.lost__art { margin: 0; }
.lost__links { list-style: none; margin: 1.4rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- the Kerstlijstje ---------- */

.kl {
	position: relative;
	background: var(--card);
	border-radius: 18px;
	box-shadow: var(--shadow), 0 0 0 1px rgb(38 49 61 / 0.08);
	padding: 30px 32px 28px;
	overflow-wrap: anywhere;
}
.kl::before {
	content: "";
	position: absolute;
	inset: 9px;
	border: 2px dashed var(--stitch);
	border-radius: 11px;
	pointer-events: none;
}
.kl input[type="text"] { overflow-wrap: anywhere; }
.kl__title { position: relative; font: 400 clamp(1.8rem, 3.2vw, 2.2rem)/1.1 var(--display); color: var(--cran-ink); margin: 0 0 0.8rem; padding-right: 9.5rem; }
.kl__intro { margin: 0 0 1rem; }
.kl__woven { position: absolute; top: 30px; right: -12px; transform: rotate(2deg); }

.kl__fallback-list { padding-left: 1.2rem; }
.kl__fallback-list li { margin-bottom: 0.3rem; }

/* Controls */
.kl label { font-weight: 600; font-size: 0.92rem; }
.kl input[type="text"], .kl select {
	display: block;
	width: 100%;
	min-height: 44px;
	min-width: 44px;
	padding: 0.5rem 0.75rem;
	border: 2px solid var(--line);
	border-radius: 10px;
	background-color: var(--card);
	color: var(--ink);
	font: 400 1rem/1.3 var(--body);
}
.kl select {
	appearance: none;
	-webkit-appearance: none;
	padding-right: 2.2rem;
	background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%);
	background-position: right 1.1rem center, right 0.75rem center;
	background-size: 0.35rem 0.35rem;
	background-repeat: no-repeat;
}
.kl input[type="text"]:disabled, .kl select:disabled { opacity: 0.55; }
.kl button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.45rem;
	min-height: 44px;
	min-width: 44px;
	padding: 0.55rem 1.05rem;
	border-radius: 12px;
	border: 2px solid var(--ink);
	background: transparent;
	color: var(--ink);
	font: 600 0.98rem/1.2 var(--body);
	cursor: pointer;
	text-align: center;
}
.kl button:hover { background: var(--page); }
.kl button:disabled { opacity: 0.5; cursor: not-allowed; }
.kl :focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }

/* The tally sits at the top, as "Hoe het werkt" says. */
.kl__overview {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.2rem 1.1rem;
	margin: 0 0 1.1rem;
	padding: 0.6rem 1rem;
	border-radius: 12px;
	background: var(--ice);
	font-size: 0.98rem;
}
.kl__overview p { margin: 0; }
.kl__count { font-weight: 600; display: inline-flex; align-items: center; gap: 0.5rem; }
.kl__count::before {
	content: "";
	flex: none;
	width: 14px;
	height: 14px;
	background: var(--cran-ink);
	-webkit-mask: url("/assets/shapes/steek-1.svg") center / contain no-repeat;
	mask: url("/assets/shapes/steek-1.svg") center / contain no-repeat;
}
.kl__total span { font-weight: 600; }
.kl__nobudget { color: var(--ink-2); }

/* Adding someone */
.kl__add {
	display: grid;
	grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) auto;
	gap: 0.4rem 0.75rem;
	align-items: end;
	padding: 1rem;
	border-radius: 14px;
	background: var(--page);
	box-shadow: inset 0 0 0 2px var(--page-2);
}
.kl__add p { margin: 0; }
.kl__field label { display: block; margin-bottom: 0.25rem; }
.kl__add button[type="submit"] { background: var(--ink); color: var(--card); border-color: var(--ink); box-shadow: inset 0 0 0 3px var(--ink), inset 0 0 0 4.5px var(--card); }
.kl__add button[type="submit"]:hover { background: var(--cran); border-color: var(--cran); color: #fff; box-shadow: inset 0 0 0 3px var(--cran), inset 0 0 0 4.5px rgb(255 255 255 / 0.6); }
.kl__full { grid-column: 1 / -1; color: var(--cran-ink); font-weight: 600; }

.kl__error:empty, .kl__status:empty { margin: 0; }
.kl__error { color: var(--cran-ink); font-weight: 600; margin: 0 0 0.8rem; }
.kl__nostorage, .kl__panel { margin: 0 0 1rem; padding: 0.9rem 1.1rem; border-radius: 12px; background: var(--rose); }
.kl__nostorage { font-weight: 600; }
.kl__panel p { margin: 0 0 0.6rem; }
.kl__panel p:first-child { font-weight: 600; }
.kl__panel-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0; }
.kl__panel-actions button:first-child { background: var(--cran); border-color: var(--cran); color: #fff; }

/* The people: one knitted row each. */
.kl__people { list-style: none; margin: 0.6rem 0 0; padding: 0; }
.kl-card {
	position: relative;
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 0.9rem;
	padding: 1.4rem 0 1rem;
	border-top: 3px solid var(--ice);
}
.kl-card > *, .kl-card__who > *, .kl-card__what > * { min-width: 0; margin: 0; }
.kl-card__kop { font: 400 1.6rem/1.15 var(--display); color: var(--ink); }
.kl-card__kop:focus-visible { outline-offset: 4px; }
.kl-card__who { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0.8rem 1rem; align-content: start; }
.kl-card__who .kl-card__field:last-child { grid-column: 1 / -1; }
.kl-card__what { display: grid; gap: 0.9rem; align-content: start; }
.kl-card__field label { display: block; margin-bottom: 0.25rem; color: var(--ink-2); }
.kl-card__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.5rem 1rem; }
.kl-card__foot p { margin: 0; }

.kl-card__group { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 0.45rem; min-width: 0; }
.kl-card__group legend { padding: 0; margin-bottom: 0.4rem; font-weight: 600; font-size: 0.92rem; color: var(--ink-2); }

.kl label:has(input[type="radio"]), .kl label:has(input[type="checkbox"]) { display: inline-flex; align-items: center; gap: 0.45em; min-height: 44px; min-width: 44px; }
.kl .kl-card__chip {
	padding: 0.3rem 0.85rem 0.3rem 0.6rem;
	border-radius: 999px;
	border: 2px solid var(--ice-2);
	background: var(--card);
	color: var(--ink);
	font-weight: 600;
	font-size: 0.93rem;
	line-height: 1.2;
	cursor: pointer;
}
.kl .kl-card__chip:hover { border-color: var(--ink-2); }
.kl input[type="radio"] {
	appearance: none;
	-webkit-appearance: none;
	flex: none;
	width: 16px;
	height: 16px;
	margin: 0;
	border-radius: 50%;
	border: 2px solid var(--ink-2);
	background: var(--card);
}
.kl input[type="radio"]:checked { border-color: #fff; background: radial-gradient(circle, #fff 0 3px, var(--cran) 3.5px); }
.kl input[type="radio"]:focus-visible { outline: none; }
.kl .kl-card__chip:has(input:checked) { background: var(--cran); border-color: var(--cran); color: #fff; --meter-on: #fff; --meter-off: rgb(255 255 255 / 0.35); }
.kl .kl-card__chip:has(input:focus-visible) { outline: 3px solid var(--focus); outline-offset: 2px; }
.kl-card__chip .meter { width: 40px; height: 8px; -webkit-mask-size: 8px 8px; mask-size: 8px 8px; }
.kl-card__chip-icon { width: 18px; height: 18px; color: var(--cran-ink); }
.kl-card__chip:has(input:checked) .kl-card__chip-icon { color: #fff; }

/* On a wide list, a person reads in two columns: who on the left, budget, direction and ideas on the right. */
.kl { container-type: inline-size; }
@container (min-width: 680px) {
	.kl-card { grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.4fr); grid-template-areas: "kop kop" "who what" "foot foot"; column-gap: 2rem; }
	.kl-card__kop { grid-area: kop; }
	.kl-card__who { grid-area: who; grid-template-columns: minmax(0, 1fr); }
	.kl-card__what { grid-area: what; }
	.kl-card__foot { grid-area: foot; }
}

/* Gekocht: a cross stitch in a knitted square. */
.kl .kl-card__gekocht { font-size: 0.98rem; padding-right: 0.6rem; cursor: pointer; }
.kl input[type="checkbox"] {
	appearance: none;
	-webkit-appearance: none;
	flex: none;
	width: 30px;
	height: 30px;
	margin: 0;
	border: 2.5px solid var(--ink);
	border-radius: 8px;
	background: var(--card);
}
/* The cross is drawn in CSS, so ticking loads nothing (e2e 12: no requests after load). */
.kl input[type="checkbox"]:checked {
	border-color: var(--cran-ink);
	background:
		linear-gradient(45deg, transparent calc(50% - 2.2px), var(--cran-ink) calc(50% - 2.2px) calc(50% + 2.2px), transparent calc(50% + 2.2px)) center / 19px 19px no-repeat,
		linear-gradient(-45deg, transparent calc(50% - 2.2px), var(--cran-ink) calc(50% - 2.2px) calc(50% + 2.2px), transparent calc(50% + 2.2px)) center / 19px 19px no-repeat,
		var(--rose);
}
.kl-card:has([data-kl-gekocht]:checked) .kl-card__kop { text-decoration: line-through; text-decoration-color: var(--cran-ink); text-decoration-thickness: 3px; }
.kl-card:has([data-kl-gekocht]:checked) { border-top-color: var(--rose); }

/* Idea pointers: knitted hearts. */
.kl-card__ideeen { padding: 0.75rem 1rem 0.5rem; border-radius: 12px; background: var(--page); }
.kl-card__ideeen-kop { display: flex; align-items: center; gap: 0.4rem; margin: 0 0 0.1rem; font-weight: 600; font-size: 0.92rem; color: var(--ink-2); }
.kl-card__ideeen-kop .icon { color: var(--cran-ink); width: 1.05em; height: 1.05em; }
.kl-card__terugval { margin: 0.3rem 0; font-size: 0.92rem; color: var(--ink-2); }
.kl-card__pointers { list-style: none; margin: 0; padding: 0; }
.kl-card__pointers li { display: flex; align-items: center; gap: 0.6rem; }
.kl-card__pointers li::before {
	content: "";
	flex: none;
	width: 14px;
	height: 12px;
	background: var(--cran-ink);
	-webkit-mask: url("/assets/shapes/hart-1.svg") center / contain no-repeat;
	mask: url("/assets/shapes/hart-1.svg") center / contain no-repeat;
}
.kl-card__pointers a { display: inline-flex; align-items: center; min-height: 44px; min-width: 44px; color: var(--ink); text-decoration-color: var(--cran-ink); }
.kl-card__pointers a:hover { color: var(--cran-ink); }

.kl-card__remove button { border-color: transparent; color: var(--cran-ink); text-decoration: underline; text-underline-offset: 3px; padding-inline: 0.7rem; }
.kl-card__remove button:hover { border-color: var(--cran-ink); background: transparent; }

/* Below the list; no buttons for an empty list. */
.kl__actions { display: flex; flex-wrap: wrap; gap: 0.6rem; margin: 1.2rem 0 0.4rem; padding-top: 1.2rem; border-top: 3px solid var(--ice); }
.kl__main:has(.kl__people:empty) .kl__actions { display: none; }
.kl__actions [data-kl-wipe] { margin-left: auto; border-color: transparent; color: var(--cran-ink); text-decoration: underline; text-underline-offset: 3px; }
.kl__actions [data-kl-wipe]:hover { border-color: var(--cran-ink); background: transparent; }
.kl__status { min-height: 1.5em; margin: 0.4rem 0; font-weight: 600; color: var(--cran-ink); }
.kl__export, .kl__printout { white-space: pre-wrap; font: inherit; }
.kl__export { margin: 0 0 0.8rem; padding: 0.8rem 1rem; border-radius: 10px; background: var(--page); border: 2px dashed var(--ice-2); }
.kl__storage-note { display: flex; gap: 0.6rem; margin: 0.6rem 0 0; font-size: 0.92rem; color: var(--ink-2); }
.kl__storage-note::before {
	content: "";
	flex: none;
	width: 16px;
	height: 14px;
	margin-top: 0.25em;
	background: var(--cran-ink);
	-webkit-mask: url("/assets/shapes/hart-1.svg") center / contain no-repeat;
	mask: url("/assets/shapes/hart-1.svg") center / contain no-repeat;
}

/* ---------- motion: one moment, the tree patch settling into place ---------- */

@media (prefers-reduced-motion: no-preference) {
	/* Not in the Kerstlijstje: its state changes show at once. */
	.button, .site-nav__link { transition: background-color 0.15s, border-color 0.15s, color 0.15s; }
	.hero__patch { animation: patch-in 0.9s cubic-bezier(0.2, 0.9, 0.3, 1.2) both; }
	@keyframes patch-in {
		from { transform: translateY(18px) rotate(-7deg); opacity: 0; }
		to { transform: rotate(-2.5deg); opacity: 1; }
	}
}

/* ---------- smaller screens ---------- */

@media (max-width: 1080px) {
	.hero__tool { grid-template-columns: minmax(0, 1fr); }
	.hero__steps { display: none; }
	.cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.shelf__list { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 860px) {
	:root { --gutter: 16px; }
	.site-header__inner { padding-top: 10px; padding-bottom: 8px; gap: 0.4rem; }
	.logo__name { font-size: 1.3rem; }
	.logo-mark { width: 36px; height: 36px; }
	/* The menu as a row of equal tabs, icon above the name. */
	.site-nav { width: 100%; }
	.site-nav ul { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 6px; }
	.site-nav__link { width: 100%; flex-direction: column; justify-content: center; gap: 0.15rem; min-height: 54px; padding: 0.35rem 0.3rem; font-size: 0.82rem; line-height: 1.15; text-align: center; background: var(--page-2); }
	.site-nav__link--kl { margin-left: 0; background: var(--cran); }
	.fairisle { height: 32px; }

	.hero__text { display: contents; }
	.hero__top { grid-template-columns: minmax(0, 1fr) 112px; gap: 0 14px; align-items: start; padding-top: 24px; padding-bottom: 22px; }
	.hero__title { grid-column: 1 / -1; font-size: clamp(2.4rem, 11vw, 3.2rem); }
	.hero__lead { font-size: 1.08rem; }
	.hero__patch { transform: rotate(3deg); margin: 4px 0 0; }
	.hero__tool { padding-bottom: 36px; }
	.hero .kl__woven { left: auto; right: 14px; top: -16px; }
	@media (prefers-reduced-motion: no-preference) {
		.hero__patch { animation: none; }
	}

	.spotlight { padding: 44px 0 40px; }
	.spotlight__inner, .shelf__inner, .page-hero__inner, .post-hero__inner, .lost__inner, .kl-band__inner { grid-template-columns: minmax(0, 1fr); gap: 28px; }
	.spotlight__art, .page-hero__art, .post-hero__art, .lost__art { max-width: 320px; }
	.post-hero__art, .page-hero__art { justify-self: start; margin-left: 12px; }
	.shelf { padding: 40px 0 44px; }
	.shelf__head { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 0 16px; align-items: start; }
	.shelf__patch { grid-row: 1 / span 3; margin: 6px 0 0; }
	.shelf__item a { grid-template-columns: 76px minmax(0, 1fr); }
	.shelf__list--one .shelf__item a { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto; padding: 12px 16px 16px 12px; }
	.shelf__list--one .shelf__thumb { grid-row: auto; max-width: 260px; }
	.shelf__list--one .shelf__name { font-size: 1.35rem; }
	.spotlight__art { max-width: 280px; }

	.page-hero__inner, .post-hero__inner { padding-top: 26px; padding-bottom: 40px; }
	.kort { margin-top: -26px; }
	.kort__title { margin: 1rem 20px 0.4rem; }
	.kort p { margin: 0 20px 1.3rem; }
	.callout { padding: 1rem; gap: 0.8rem; }

	.cards { grid-template-columns: minmax(0, 1fr); }
	.cards--listing > .card:first-child { display: flex; }
	.cards--listing > .card:first-child .card__title { margin: 1rem 22px 0.4rem; padding-top: 0; }
	.cards--listing > .card:first-child .card__text { margin: 0 22px 1.4rem; padding-bottom: 0; }
	.kl-band__inner { padding-top: 32px; padding-bottom: 40px; }
	.kl-band__patch { max-width: 200px; }
	.site-footer__inner { grid-template-columns: minmax(0, 1fr); }

	.kl { padding: 24px 20px 22px; border-radius: 16px; }
	.kl::before { inset: 7px; }
	.kl__title { padding-right: 0; }
	.kl__woven { right: 14px; top: -16px; transform: rotate(-2deg); }
	.kl__add { grid-template-columns: minmax(0, 1fr); padding: 0.8rem; }
	.kl__add-action button { width: 100%; }
	.kl-card__who { grid-template-columns: minmax(0, 1fr); }
	.kl__actions [data-kl-wipe] { margin-left: 0; }
	.kl-card__group { gap: 0.4rem; }
	.kl .kl-card__chip { padding: 0.3rem 0.7rem 0.3rem 0.5rem; font-size: 0.88rem; gap: 0.35em; }
	.kl-card__chip .meter { width: 30px; height: 6px; -webkit-mask-size: 6px 6px; mask-size: 6px 6px; }
	.page-hero--tool .page-hero__art { max-width: 230px; }
	.how { padding: 1.2rem 1.2rem 0.8rem; }
	.tool-layout { padding-top: 24px; }
}

/* ---------- print ---------- */

@media print {
	body { background: #fff; color: #000; }
	.site-header, .site-footer, .fairisle, .skip, .kl-band, .related, .knit-defs { display: none !important; }
	.page-hero, .post-hero, .hero { background: none; }
	.page-hero::after, .post-hero::after, .hero::after { content: none; }
	.patch { box-shadow: none; }
	/* A page with the Kerstlijstje prints only its printout: in main, everything that neither holds the tool nor
	   sits in it is hidden, and in the tool only [data-kl-printout] shows. */
	body:has([data-kl-root]) main :not([data-kl-root], [data-kl-root] *, :has([data-kl-root])) { display: none !important; }
	body:has([data-kl-root]) .hero__tool, body:has([data-kl-root]) .tool-layout { display: block; padding: 0; }
	.kl { box-shadow: none; padding: 0; background: none; }
	.kl::before { content: none; }
	.kl > :not(.kl__app), .kl__app > :not(.kl__printout) { display: none !important; }
	.kl [data-kl-printout].kl__printout { display: block !important; font: 12pt/1.5 var(--body); color: #000; }
}

/* Dark: the logo's slate tree sits on its own wool patch. */
@media (prefers-color-scheme: dark) {
	.site-header .logo-mark { background: #f5f6f3; border-radius: 8px; padding: 3px; }
}
