/* Kleinkindtijd: Delft-blue tiles on glaze white. Light only, on purpose (see base.njk). */

@font-face {
	font-family: "Atkinson Next";
	src: url("/assets/fonts/atkinson-next-latin-wght-normal.woff2") format("woff2");
	font-weight: 200 800;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: "Atkinson Next";
	src: url("/assets/fonts/atkinson-next-latin-wght-italic.woff2") format("woff2");
	font-weight: 200 800;
	font-style: italic;
	font-display: swap;
}
@font-face {
	font-family: "Young Serif";
	src: url("/assets/fonts/young-serif-latin-400-normal.woff2") format("woff2");
	font-weight: 400;
	font-style: normal;
	font-display: swap;
}

:root {
	color-scheme: only light;
	/* glaze and grout */
	--glaze: #fbf8f1;
	--glaze-deep: #f3eee2;
	--tile: #fffdf8;
	--grout: #e4dccb;
	--edge: #d8cfbc;
	/* Delft cobalt */
	--cobalt: #1f3f8f;
	--cobalt-deep: #172f6e;
	--ink: #14224a;
	--ink-soft: #3b4a6b;
	--wash: #c9d5ee;
	--wash2: #8ea4d6;
	--wash-bg: #e9eef8;
	/* two small warm accents */
	--apricot: #f3b27c;
	--apricot-tint: #fcebda;
	--apricot-ink: #8a4a16;
	--apricot-orn: #d9813f;
	--leaf: #2f6b3a;
	--leaf-tint: #e6f0e2;
	--leaf-orn: #3e7d4b;

	--serif: "Young Serif", "Georgia", serif;
	--sans: "Atkinson Next", "Verdana", system-ui, sans-serif;
	--wrap: 74rem;
	--measure: 42rem;
	--gutter: clamp(1rem, 4vw, 2rem);
	--radius: 6px;
	/* Corner quarter-dots of a tile, as backgrounds; tiles laid together complete the dot. */
	--corner-size: 11px;
	--corners: radial-gradient(circle at 0 0, var(--corner) 0 var(--corner-size), transparent calc(var(--corner-size) + 1px)),
		radial-gradient(circle at 100% 0, var(--corner) 0 var(--corner-size), transparent calc(var(--corner-size) + 1px)),
		radial-gradient(circle at 0 100%, var(--corner) 0 var(--corner-size), transparent calc(var(--corner-size) + 1px)),
		radial-gradient(circle at 100% 100%, var(--corner) 0 var(--corner-size), transparent calc(var(--corner-size) + 1px));
	--corner: var(--cobalt);
}

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

html {
	font-size: 100%;
	-webkit-text-size-adjust: 100%;
	text-size-adjust: 100%;
	scroll-padding-top: 1rem;
}

body {
	margin: 0;
	background: var(--glaze);
	color: var(--ink);
	font-family: var(--sans);
	font-size: 1.25rem;
	line-height: 1.6;
	font-weight: 400;
	overflow-x: hidden;
}

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

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

h1,
h2,
h3 {
	font-family: var(--serif);
	font-weight: 400;
	line-height: 1.18;
	color: var(--cobalt-deep);
	margin: 0;
	text-wrap: balance;
}

p {
	margin: 0 0 1em;
}

a {
	color: var(--cobalt);
	text-decoration: underline;
	text-decoration-thickness: 2px;
	text-underline-offset: 0.18em;
}
a:hover {
	color: var(--ink);
	text-decoration-thickness: 3px;
}

:focus-visible {
	outline: 3px solid var(--ink);
	outline-offset: 3px;
	box-shadow: 0 0 0 7px var(--apricot);
	border-radius: 3px;
}

strong {
	font-weight: 700;
}

.wrap {
	width: min(100% - 2 * var(--gutter), var(--wrap));
	margin-inline: auto;
}

.skip {
	position: absolute;
	left: 1rem;
	top: -4rem;
	z-index: 10;
	background: var(--cobalt);
	color: var(--tile);
	padding: 0.75rem 1.25rem;
	font-weight: 700;
	border-radius: var(--radius);
}
.skip:focus {
	top: 1rem;
	color: var(--tile);
}

/* ---------- icons and drawings ---------- */

.icon {
	width: 1.2em;
	height: 1.2em;
	flex: none;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.9;
	stroke-linecap: round;
	stroke-linejoin: round;
}
.icon .ic-dot {
	fill: currentColor;
}

.illo {
	width: 100%;
	height: auto;
	aspect-ratio: 1;
}
.illo .b,
.illo .bt,
.illo .bk {
	fill: none;
	stroke: var(--cobalt);
	stroke-linecap: round;
	stroke-linejoin: round;
}
.illo .b {
	stroke-width: 3;
}
.illo .bt {
	stroke-width: 1.9;
}
.illo .bk {
	stroke-width: 5;
}
.illo .w {
	fill: var(--wash);
}
.illo .w2 {
	fill: var(--wash2);
}
.illo .g {
	fill: var(--tile);
}
.illo .f {
	fill: var(--cobalt);
}
.illo .scene {
	filter: url(#kwast);
}
.tile-face {
	fill: var(--tile);
	stroke: var(--edge);
	stroke-width: 2;
}
.ring {
	fill: none;
	stroke: var(--cobalt);
	stroke-width: 2.6;
}
.ring-in {
	fill: none;
	stroke: var(--cobalt);
	stroke-width: 1.1;
}
.cn {
	fill: var(--orn);
}
.cn-l {
	fill: none;
	stroke: var(--orn);
	stroke-width: 1.6;
	stroke-linecap: round;
}
.cn-w {
	fill: var(--wash);
}
.accent-kobalt {
	--orn: var(--cobalt);
}
.accent-abrikoos {
	--orn: var(--apricot-orn);
}
.accent-blad {
	--orn: var(--leaf-orn);
}

/* logo mark */
.logo-mark {
	width: 3.5rem;
	height: 3.5rem;
	flex: none;
}
.lm-face {
	fill: var(--tile);
	stroke: var(--cobalt);
	stroke-width: 2.5;
}
.lm-c,
.lm-ink {
	fill: var(--cobalt);
}
.lm-ring {
	fill: none;
	stroke: var(--cobalt);
	stroke-width: 1.6;
}
.lm-line {
	fill: none;
	stroke: var(--cobalt);
	stroke-width: 2.6;
	stroke-linecap: round;
}

/* a row of small tiles, used as a divider */
.tile-row {
	height: 28px;
	background: url("/assets/shapes/tegelrand-kobalt.svg") repeat-x 0 0 / 28px 28px;
}
.tile-row-footer {
	background-image: url("/assets/shapes/tegelrand-glazuur.svg");
}

/* ---------- header ---------- */

.site-header {
	background: var(--glaze);
}
.header-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem 2rem;
	padding-block: 1rem;
	flex-wrap: wrap;
}
.logo {
	display: inline-flex;
	align-items: center;
	gap: 0.85rem;
	text-decoration: none;
	color: var(--cobalt-deep);
	min-height: 48px;
}
.logo-text {
	display: flex;
	flex-direction: column;
	line-height: 1.1;
}
.logo-name {
	font-family: var(--serif);
	font-size: 2rem;
	color: var(--cobalt-deep);
}
.logo-sub {
	font-size: 1.125rem;
	color: var(--ink-soft);
}
.logo:hover .logo-name {
	text-decoration: underline;
	text-decoration-thickness: 2px;
}

.nav {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
}
.nav a {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	min-height: 52px;
	padding: 0.5rem 1rem;
	border: 2px solid transparent;
	border-radius: var(--radius);
	color: var(--cobalt-deep);
	font-weight: 700;
	font-size: 1.1875rem;
	text-decoration: underline;
	text-decoration-color: var(--wash2);
	text-decoration-thickness: 2px;
}
.nav a:hover {
	background: var(--wash-bg);
	text-decoration-color: currentColor;
}
.nav a[aria-current] {
	background: var(--wash-bg);
	border-color: var(--cobalt);
	text-decoration: none;
}
.nav-icon {
	width: 1.45em;
	height: 1.45em;
}

/* ---------- buttons, chips, badges ---------- */

.button {
	display: inline-flex;
	align-items: center;
	gap: 0.6rem;
	min-height: 58px;
	padding: 0.75rem 1.5rem;
	background: var(--cobalt);
	color: var(--tile);
	border-radius: var(--radius);
	box-shadow: inset 0 0 0 3px var(--cobalt), inset 0 0 0 5px var(--wash2);
	font-weight: 700;
	font-size: 1.25rem;
	text-decoration: none;
}
.button:hover {
	background: var(--cobalt-deep);
	box-shadow: inset 0 0 0 3px var(--cobalt-deep), inset 0 0 0 5px var(--tile);
	color: var(--tile);
}
.button-icon {
	width: 1.3em;
	height: 1.3em;
	stroke-width: 2.4;
}

.chip {
	display: inline-flex;
	align-items: center;
	gap: 0.55rem;
	min-height: 52px;
	padding: 0.5rem 1.1rem;
	background: var(--tile);
	border: 2px solid var(--cobalt);
	border-radius: var(--radius);
	color: var(--cobalt-deep);
	font-weight: 700;
	text-decoration: none;
}
.chip:hover {
	background: var(--wash-bg);
	color: var(--ink);
}
.chip-icon {
	width: 1.35em;
	height: 1.35em;
}

.badge {
	display: inline-flex;
	align-items: center;
	gap: 0.45rem;
	margin: 0 0 1rem;
	padding: 0.25rem 0.85rem;
	background: var(--apricot);
	color: var(--ink);
	font-weight: 700;
	font-size: 1.125rem;
	border-radius: 4px;
}
.badge-icon {
	width: 1.1em;
	height: 1.1em;
}

/* ---------- section titles ---------- */

.section-title {
	font-size: clamp(1.75rem, 1.35rem + 1.3vw, 2.35rem);
	margin-bottom: 0.6rem;
	display: flex;
	align-items: center;
	gap: 0.6rem;
}
.section-title::before {
	content: "";
	flex: none;
	width: 56px;
	height: 28px;
	background: url("/assets/shapes/tegelrand-kobalt.svg") repeat-x 0 0 / 28px 28px;
}
.section-title .title-icon {
	display: none;
}
.section-lede {
	max-width: 44rem;
	margin-bottom: 1.75rem;
}

/* ---------- home: hero ---------- */

.hero {
	padding-block: clamp(1.5rem, 4vw, 3.5rem) clamp(2rem, 5vw, 4rem);
}
.hero-inner {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
	gap: clamp(1.5rem, 4vw, 4rem);
	align-items: center;
}
.hero-title {
	font-size: clamp(2.15rem, 1.4rem + 2.4vw, 3.25rem);
	line-height: 1.1;
	margin-bottom: 1.25rem;
}
.hero-lede {
	font-size: clamp(1.25rem, 1.15rem + 0.4vw, 1.45rem);
	max-width: 32rem;
	color: var(--ink);
}
.hero-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem 1.5rem;
	align-items: center;
	margin-top: 1.75rem;
}

.tile-wall {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 5px;
	padding: 5px;
	background: var(--grout);
	border: 2px solid var(--edge);
	border-radius: 4px;
}
.wall-tile .illo .tile-face {
	stroke: none;
}
@media (prefers-reduced-motion: no-preference) {
	.wall-tile {
		animation: tile-in 0.5s ease-out both;
	}
	.wall-tile:nth-child(2) { animation-delay: 0.08s; }
	.wall-tile:nth-child(3) { animation-delay: 0.16s; }
	.wall-tile:nth-child(4) { animation-delay: 0.24s; }
	.wall-tile:nth-child(5) { animation-delay: 0.32s; }
	.wall-tile:nth-child(6) { animation-delay: 0.4s; }
}
@keyframes tile-in {
	from {
		opacity: 0;
		transform: translateY(8px);
	}
}

/* ---------- home: featured ---------- */

.feature-band {
	background: var(--wash-bg);
	border-block: 3px solid var(--cobalt);
	padding-block: clamp(2rem, 5vw, 3.5rem);
}
.feature {
	display: grid;
	grid-template-columns: minmax(0, 22rem) minmax(0, 1fr);
	gap: clamp(1.5rem, 4vw, 3.5rem);
	align-items: center;
}
.feature-art {
	display: block;
	text-decoration: none;
}
.feature-title {
	font-size: clamp(1.8rem, 1.3rem + 1.6vw, 2.6rem);
	margin-bottom: 1rem;
}
.feature-desc {
	font-size: 1.3125rem;
	max-width: 40rem;
	margin-bottom: 1.5rem;
}

/* the tile frame around a single big tile, and the banderol with a note */
.tile-frame {
	display: block;
	padding: 9px;
	background: var(--grout);
	border: 3px solid var(--cobalt);
	border-radius: var(--radius);
}
.tile-frame .illo .tile-face {
	stroke: none;
}
.banderol {
	display: block;
	width: fit-content;
	white-space: nowrap;
	margin: -1.1rem 0 0;
	position: relative;
	left: 50%;
	transform: translateX(-50%);
	padding: 0.3rem 2rem 0.4rem;
	background: var(--tile);
	color: var(--cobalt-deep);
	font-family: var(--serif);
	font-size: 1.1875rem;
	line-height: 1.3;
	text-align: center;
	border-block: 2px solid var(--cobalt);
	clip-path: polygon(0 0, 100% 0, calc(100% - 14px) 50%, 100% 100%, 0 100%, 14px 50%);
	box-shadow: inset 2px 0 0 var(--cobalt), inset -2px 0 0 var(--cobalt);
}

/* ---------- Cadeautegels ---------- */

.tegels-band {
	padding-block: clamp(2.5rem, 6vw, 4.5rem);
}
.tegels {
	list-style: none;
	margin: 0;
	padding: 6px;
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 6px;
	background: var(--grout);
	border: 2px solid var(--edge);
	border-radius: 4px;
}
.tegel {
	display: flex;
}
.tegel-link {
	--corner-size: 12px;
	flex: 1;
	display: grid;
	grid-template-columns: 6.5rem minmax(0, 1fr);
	gap: 1rem;
	align-items: start;
	padding: 1.5rem 1.4rem;
	background: var(--corners), var(--tile);
	color: var(--ink);
	text-decoration: none;
	border-radius: 2px;
}
.tegel-link:hover {
	background: var(--corners), var(--wash-bg);
	color: var(--ink);
}
.tegel-link:hover .tegel-age {
	text-decoration: underline;
	text-decoration-thickness: 2px;
}
.tegel-art .illo .tile-face {
	fill: transparent;
	stroke: none;
}
.tegel-art .cn,
.tegel-art .cn-w,
.tegel-art .cn-l {
	display: none;
}
.tegel-text {
	display: flex;
	flex-direction: column;
	gap: 0.4rem;
}
.tegel-age {
	font-family: var(--serif);
	font-size: 1.75rem;
	line-height: 1.15;
	color: var(--cobalt-deep);
}
.tegel-soort {
	font-size: 1.1875rem;
	line-height: 1.45;
}
.tegel-letop {
	display: flex;
	gap: 0.5rem;
	align-items: flex-start;
	margin-top: 0.35rem;
	padding: 0.5rem 0.65rem;
	background: var(--apricot-tint);
	border-left: 4px solid var(--apricot-ink);
	font-size: 1.1875rem;
	line-height: 1.4;
}
.tegel-icon {
	color: var(--apricot-ink);
	margin-top: 0.1em;
}

/* in the article, the tiles sit in the narrower column */
.tegels-intro {
	margin: 2.5rem 0 1rem;
}
.tegels-title {
	font-size: 1.6rem;
	margin-bottom: 0.9rem;
}
.post-body .tegels-intro {
	width: min(100vw - 2 * var(--gutter), 68rem);
	margin-left: 50%;
	transform: translateX(-50%);
}
.post-body .tegel-link {
	grid-template-columns: 5rem minmax(0, 1fr);
	padding: 1.15rem 1.1rem;
	gap: 0.85rem;
}
.post-body .tegel-age {
	font-size: 1.5rem;
}

/* small round vignettes without the tile around them */
.illo.mini .tile-face {
	fill: transparent;
	stroke: none;
}
.illo.mini .cn,
.illo.mini .cn-w,
.illo.mini .cn-l {
	display: none;
}
.prose .age-h2 {
	display: flex;
	align-items: center;
	gap: 0.9rem;
}
.prose .age-h2::before {
	display: none;
}
.h2-tile {
	flex: none;
	width: 4.75rem;
	padding: 4px;
	background: var(--tile);
	border: 2px solid var(--edge);
	border-radius: 3px;
}

/* ---------- home: categories ---------- */

.cats {
	padding-block: clamp(1rem, 3vw, 2rem) clamp(2.5rem, 6vw, 4rem);
}
.cat-tiles {
	list-style: none;
	margin: 1.25rem 0 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 1.5rem;
}
.cat-tile a {
	display: flex;
	flex-direction: column;
	height: 100%;
	padding: 1.25rem 1.25rem 1.5rem;
	background: var(--tile);
	border: 2px solid var(--cobalt);
	border-radius: var(--radius);
	box-shadow: 0 0 0 4px var(--glaze), 0 0 0 6px var(--wash2);
	color: var(--ink);
	text-decoration: none;
}
.cat-tile a:hover {
	background: var(--wash-bg);
}
.cat-tile-art {
	display: block;
	width: min(100%, 15rem);
	margin: 0 auto 1rem;
}
.cat-tile-name {
	display: flex;
	align-items: center;
	gap: 0.55rem;
	font-family: var(--serif);
	font-size: 1.75rem;
	color: var(--cobalt-deep);
	margin-bottom: 0.4rem;
}
.cat-tile a:hover .cat-tile-name {
	text-decoration: underline;
	text-decoration-thickness: 2px;
}
.cat-tile-icon {
	width: 1.05em;
	height: 1.05em;
	stroke-width: 1.7;
}
.cat-tile-intro {
	flex: 1;
	margin-bottom: 1rem;
}
.cat-tile-count {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	font-weight: 700;
	color: var(--cobalt);
	text-decoration: underline;
	text-decoration-thickness: 2px;
	text-underline-offset: 0.18em;
}

/* ---------- article cards ---------- */

.all {
	padding-block: 1rem clamp(3rem, 6vw, 4.5rem);
}
.cards {
	list-style: none;
	margin: 1.25rem 0 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 20rem), 1fr));
	gap: 1.5rem;
}
.card {
	display: flex;
}
@media (min-width: 72rem) {
	.cards-four {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
	.cards-four .card-title {
		font-size: 1.35rem;
	}
}
.card-link {
	flex: 1;
	display: flex;
	flex-direction: column;
	background: var(--tile);
	border: 2px solid var(--edge);
	border-radius: var(--radius);
	color: var(--ink);
	text-decoration: none;
	overflow: hidden;
}
.card-link:hover {
	border-color: var(--cobalt);
}
.card-link:hover .card-title {
	text-decoration: underline;
	text-decoration-thickness: 2px;
}
.card-art {
	display: block;
	padding: 1.25rem 1.25rem 0.5rem;
	background: linear-gradient(var(--glaze-deep), var(--glaze-deep)) top / 100% 62% no-repeat;
}
.card-art .illo {
	width: min(100%, 13.5rem);
	margin-inline: auto;
	border: 2px solid var(--edge);
	border-radius: 3px;
}
.card-body {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
	padding: 0.75rem 1.4rem 1.4rem;
	flex: 1;
}
.card-cat {
	display: inline-flex;
	align-items: center;
	gap: 0.45rem;
	font-size: 1.125rem;
	color: var(--ink-soft);
	font-weight: 700;
}
.card-cat-icon {
	color: var(--cobalt);
}
.card-title {
	font-family: var(--serif);
	font-size: 1.45rem;
	line-height: 1.22;
	color: var(--cobalt-deep);
}
.card-desc {
	font-size: 1.1875rem;
	line-height: 1.5;
	flex: 1;
}
.card-more {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	font-weight: 700;
	color: var(--cobalt);
	text-decoration: underline;
	text-decoration-thickness: 2px;
	text-underline-offset: 0.18em;
}
.card-arrow {
	stroke-width: 2.4;
}
.empty {
	font-size: 1.25rem;
}

/* ---------- article and page header ---------- */

.post-hero {
	padding-block: clamp(1.25rem, 3vw, 2.5rem) clamp(1.5rem, 4vw, 3rem);
	border-bottom: 3px solid var(--cobalt);
	background: linear-gradient(var(--glaze), var(--glaze-deep));
}
.post-hero-inner {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 19rem);
	gap: clamp(1.5rem, 4vw, 4rem);
	align-items: center;
}
.post-art {
	margin: 0;
}
.crumbs {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.25rem 0.6rem;
	margin-bottom: 1rem;
	font-size: 1.125rem;
}
.crumbs a {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	min-height: 44px;
	font-weight: 700;
}
.crumb-icon {
	width: 1.15em;
	height: 1.15em;
}
.crumb-sep {
	color: var(--ink-soft);
	font-size: 1.3rem;
}
.post-title {
	font-size: clamp(2.05rem, 1.35rem + 2.5vw, 3.15rem);
	line-height: 1.12;
	margin-bottom: 1.25rem;
}
.title-cat-icon {
	display: inline-block;
	vertical-align: -0.08em;
	width: 0.9em;
	height: 0.9em;
	margin-right: 0.35em;
	stroke-width: 1.6;
}
.post-meta {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem 1.5rem;
	font-size: 1.125rem;
	color: var(--ink-soft);
}
.post-meta li {
	display: inline-flex;
	align-items: center;
	gap: 0.45rem;
}
.post-meta .icon {
	color: var(--cobalt);
}
.cat-lede {
	font-size: 1.3125rem;
	max-width: 38rem;
}
.cat-count {
	font-weight: 700;
	color: var(--ink-soft);
	margin: 0;
}

/* ---------- article body ---------- */

.post-body {
	width: min(100% - 2 * var(--gutter), var(--measure));
	margin: clamp(1.75rem, 4vw, 3rem) auto clamp(3rem, 6vw, 5rem);
}

.summary {
	--corner-size: 13px;
	padding: 1.5rem 1.75rem 1.4rem;
	background: var(--corners), var(--wash-bg);
	border: 3px solid var(--cobalt);
	border-radius: 4px;
	box-shadow: 0 0 0 5px var(--tile), 0 0 0 7px var(--wash2);
	margin: 0 7px;
}
.summary-title {
	display: flex;
	align-items: center;
	gap: 0.6rem;
	font-size: 1.55rem;
	margin-bottom: 0.6rem;
}
.summary-icon {
	color: var(--cobalt);
	stroke-width: 1.8;
}
.summary p {
	font-size: 1.3125rem;
	line-height: 1.55;
	margin: 0;
}

.prose {
	margin-top: 2.5rem;
}
.prose-page {
	margin-top: 0;
}
.prose > .lede {
	font-size: 1.375rem;
	line-height: 1.55;
}
.prose h2 {
	font-size: clamp(1.65rem, 1.4rem + 0.8vw, 2rem);
	margin: 2.6em 0 0.6em;
}
.prose h2::before {
	content: "";
	display: block;
	width: 84px;
	height: 28px;
	margin-bottom: 0.7rem;
	background: url("/assets/shapes/tegelrand-kobalt.svg") repeat-x 0 0 / 28px 28px;
}
.prose h3 {
	font-size: 1.4rem;
	margin: 1.8em 0 0.5em;
}
.prose ul,
.prose ol {
	padding-left: 1.4em;
	margin: 0 0 1.25em;
}
.prose ul {
	list-style: square;
}
.prose li {
	margin-bottom: 0.55em;
	padding-left: 0.2em;
}
.prose li::marker {
	color: var(--cobalt);
	font-size: 1.1em;
}
.prose em {
	font-style: italic;
}
.prose .lead-in {
	padding-left: 1rem;
	border-left: 5px solid var(--wash2);
}

/* panels: checklists and warnings, drawn as framed tiles */
.panel {
	--corner-size: 12px;
	margin: 2.6em 0;
	padding: 1.4rem 1.6rem 0.6rem;
	border: 3px solid var(--cobalt);
	border-radius: 4px;
}
.panel h2 {
	margin-top: 0;
}
.panel h2 .h2-icon {
	display: inline-block;
	vertical-align: -0.1em;
	margin-right: 0.45rem;
}
.panel-check {
	background: var(--corners), var(--tile);
}
.panel-warn {
	--corner: var(--apricot-orn);
	background: var(--corners), var(--apricot-tint);
	border-color: var(--apricot-ink);
}
.panel-warn h2 .h2-icon {
	color: var(--apricot-ink);
	width: 1.05em;
	height: 1.05em;
	stroke-width: 2;
}
.panel-warn h2::before {
	background-image: url("/assets/shapes/tegelrand-abrikoos.svg");
}

.prose .checklist,
.prose .nope-list {
	list-style: none;
	padding: 0 !important;
}
.checklist li,
.nope-list li {
	display: flex;
	gap: 0.85rem;
	align-items: flex-start;
	padding: 0;
	margin-bottom: 0.85em;
}
.tick {
	flex: none;
	display: grid;
	place-items: center;
	width: 1.6rem;
	height: 1.6rem;
	margin-top: 0.1rem;
	border: 2px solid var(--cobalt);
	border-radius: 3px;
	background: var(--wash-bg);
	color: var(--cobalt);
}
.tick .icon {
	width: 1.15rem;
	height: 1.15rem;
	stroke-width: 3;
}
.tick-no {
	border-color: var(--apricot-ink);
	background: var(--tile);
	color: var(--apricot-ink);
}

/* callouts */
.callout {
	display: flex;
	gap: 0.9rem;
	align-items: flex-start;
	margin: 1.5em 0;
	padding: 1rem 1.25rem;
	border-radius: 4px;
}
.callout-text {
	margin: 0;
}
.callout-icon {
	width: 1.75rem;
	height: 1.75rem;
	margin-top: 0.1rem;
	stroke-width: 2;
}
.callout-warn {
	background: var(--apricot-tint);
	border: 2px solid var(--apricot-ink);
	border-left-width: 8px;
}
.callout-warn .callout-icon {
	color: var(--apricot-ink);
}
.callout-tip {
	background: var(--leaf-tint);
	border: 2px solid var(--leaf);
	border-left-width: 8px;
}
.callout-tip .callout-icon {
	color: var(--leaf);
}
.panel .callout {
	background: var(--tile);
}

/* poems */
.poem {
	--corner-size: 10px;
	margin: 1.75em 0;
	padding: 1.6rem 1.9rem;
	background: var(--corners), var(--tile);
	border: 2px solid var(--cobalt);
	border-radius: 4px;
	box-shadow: 0 0 0 5px var(--glaze), 0 0 0 7px var(--wash2);
	font-family: var(--serif);
	font-size: 1.3125rem;
	line-height: 1.6;
	color: var(--cobalt-deep);
}
.poem p {
	margin: 0;
}

/* tables */
.table-wrap {
	margin: 1.75em 0;
	overflow-x: auto;
	border: 2px solid var(--cobalt);
	border-radius: 4px;
}
.prose table {
	width: 100%;
	border-collapse: collapse;
	font-size: 1.1875rem;
	line-height: 1.45;
	background: var(--tile);
}
.prose th {
	background: var(--cobalt);
	color: var(--tile);
	text-align: left;
	font-weight: 700;
	padding: 0.75rem 1rem;
	vertical-align: bottom;
}
.prose td {
	padding: 0.75rem 1rem;
	border-top: 1.5px solid var(--edge);
	vertical-align: top;
}
.prose tbody tr:nth-child(even) td {
	background: var(--wash-bg);
}
.prose td.row-head,
.prose td:first-child {
	font-weight: 700;
}

/* sources */
.sources {
	margin-top: 3.5rem;
	padding-top: 0.5rem;
	border-top: 3px double var(--edge);
}
.sources h2 {
	font-size: 1.4rem;
	margin-top: 1rem;
}
.sources h2::before {
	display: none;
}
.prose .source-list {
	list-style: none;
	padding: 0 !important;
	font-size: 1.1875rem;
	line-height: 1.5;
	color: var(--ink-soft);
}
.source-list li {
	position: relative;
	padding-left: 1.6rem;
	margin-bottom: 0.7em;
}
.source-list li::before {
	content: "";
	position: absolute;
	left: 0.1rem;
	top: 0.55em;
	width: 0.6rem;
	height: 0.6rem;
	border: 2px solid var(--wash2);
	border-radius: 1px;
}
.source-list a {
	overflow-wrap: anywhere;
}

/* ---------- related ---------- */

.related {
	background: var(--glaze-deep);
	border-top: 3px solid var(--cobalt);
	padding-block: clamp(2.5rem, 5vw, 3.5rem) clamp(3rem, 6vw, 4.5rem);
}

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

.not-found {
	padding-block: clamp(2rem, 5vw, 4rem);
	border-bottom: 3px solid var(--cobalt);
	background: linear-gradient(var(--glaze), var(--glaze-deep));
}
.not-found-inner {
	display: grid;
	grid-template-columns: minmax(0, 18rem) minmax(0, 1fr);
	gap: clamp(1.5rem, 4vw, 4rem);
	align-items: center;
}
.not-found-art {
	margin: 0;
}
.not-found .hero-lede {
	margin-bottom: 1.5rem;
}

.page-updated {
	color: var(--ink-soft);
	font-size: 1.125rem;
	margin-top: 2rem;
}

/* ---------- footer ---------- */

.site-footer {
	background: var(--cobalt-deep);
	color: var(--tile);
}
.site-footer a {
	color: var(--tile);
}
.site-footer a:hover {
	color: var(--wash);
}
.site-footer :focus-visible {
	outline-color: var(--tile);
}
.footer-inner {
	display: grid;
	grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
	gap: 1.5rem 3rem;
	padding-block: 2.5rem 2rem;
}
.footer-name {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	font-family: var(--serif);
	font-size: 1.75rem;
	margin-bottom: 0.75rem;
}
.logo-mark-footer {
	width: 3rem;
	height: 3rem;
}
.footer-nav ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0.25rem 1.5rem;
}
.footer-nav a {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	font-weight: 700;
}
.footer-small {
	grid-column: 1 / -1;
	font-size: 1.125rem;
	margin: 0;
	padding-top: 1rem;
	border-top: 1px solid var(--wash2);
}

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

@media (max-width: 64rem) {
	.tegels {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
	.cat-tiles {
		grid-template-columns: minmax(0, 1fr);
	}
	.cat-tile a {
		display: grid;
		grid-template-columns: 9rem minmax(0, 1fr);
		grid-template-rows: auto 1fr auto;
		column-gap: 1.25rem;
	}
	.cat-tile-art {
		grid-row: 1 / 4;
		width: 100%;
		margin: 0;
	}
}

@media (max-width: 52rem) {
	.hero-inner,
	.feature,
	.post-hero-inner,
	.not-found-inner {
		grid-template-columns: minmax(0, 1fr);
	}
	.tile-wall {
		max-width: 30rem;
	}
	.feature-art,
	.not-found-art {
		max-width: 17rem;
	}
	.post-art {
		max-width: 13rem;
		order: -1;
	}
	.post-hero-inner {
		gap: 1.25rem;
	}
	.footer-inner {
		grid-template-columns: minmax(0, 1fr);
	}
}

@media (max-width: 40rem) {
	.header-inner {
		flex-direction: column;
		align-items: stretch;
		gap: 0.75rem;
	}
	.logo-name {
		font-size: 1.75rem;
	}
	.nav li {
		flex: 1 1 auto;
	}
	.nav a {
		width: 100%;
		gap: 0.4rem;
		border-color: var(--edge);
		background: var(--tile);
		padding-inline: 0.65rem;
		font-size: 1.125rem;
	}
	.nav-icon {
		width: 1.3em;
		height: 1.3em;
	}
	.banderol {
		padding-inline: 1.4rem;
		font-size: 1.125rem;
	}
	.tegels {
		grid-template-columns: minmax(0, 1fr);
	}
	/* in the article the tiles are a compact way into the sections, which repeat the facts */
	.post-body .tegels {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
	.post-body .tegel-link {
		grid-template-columns: 3.5rem minmax(0, 1fr) !important;
		align-items: center;
		padding: 0.9rem 0.8rem !important;
		gap: 0.6rem;
	}
	.post-body .tegel-soort,
	.post-body .tegel-letop {
		display: none;
	}
	.post-body .tegel-age {
		font-size: 1.3rem;
	}
	.tegel-link,
	.post-body .tegel-link {
		grid-template-columns: 5rem minmax(0, 1fr);
		padding: 1.2rem 1.1rem;
	}
	.cat-tile a {
		grid-template-columns: 6.5rem minmax(0, 1fr);
		padding: 1rem;
	}
	.cat-tile a {
		grid-template-rows: auto;
		align-items: center;
	}
	.cat-tile-art {
		grid-row: auto;
	}
	.cat-tile-intro,
	.cat-tile-count {
		grid-column: 1 / -1;
		margin-top: 0.75rem;
	}
	.cat-tile-intro {
		margin-bottom: 0.25rem;
	}
	.post-art {
		max-width: 12.5rem;
	}
	.panel {
		padding: 1.2rem 1.1rem 0.4rem;
	}
	.summary {
		padding: 1.25rem 1.2rem;
	}
	.poem {
		padding: 1.25rem 1.2rem;
		font-size: 1.2rem;
	}
	/* tables with three or more columns stack into one block per row */
	.table-stack {
		border: 0;
		overflow: visible;
	}
	.table-stack table,
	.table-stack tbody,
	.table-stack tr,
	.table-stack td {
		display: block;
		width: 100%;
	}
	.table-stack thead {
		position: absolute;
		width: 1px;
		height: 1px;
		overflow: hidden;
		clip-path: inset(50%);
	}
	.table-stack table {
		background: none;
	}
	.table-stack tr {
		margin-bottom: 1rem;
		background: var(--tile);
		border: 2px solid var(--cobalt);
		border-radius: 4px;
		overflow: hidden;
	}
	.table-stack td {
		border-top: 1.5px solid var(--edge);
		padding: 0.6rem 0.9rem;
		background: none !important;
	}
	.table-stack td:first-child {
		border-top: 0;
		background: var(--wash-bg) !important;
		font-family: var(--serif);
		font-weight: 400;
		font-size: 1.3rem;
		color: var(--cobalt-deep);
	}
	.table-stack td[data-label]::before {
		content: attr(data-label);
		display: block;
		font-weight: 700;
		font-family: var(--sans);
		font-size: 1.125rem;
		color: var(--ink-soft);
	}
	.table-stack td:first-child[data-label]::before {
		display: none;
	}
}

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

@media print {
	.site-header .nav,
	.tile-row,
	.related,
	.site-footer {
		display: none;
	}
}
