/* Soekilookie — het speelgoedboek, maar dan online. */

@font-face {
	font-family: "Bricolage Grotesque";
	src: url("/assets/fonts/bricolage-grotesque-latin-standard-normal.woff2") format("woff2-variations");
	font-weight: 200 800;
	font-stretch: 75% 100%;
	font-display: swap;
}
@font-face {
	font-family: "Literata";
	src: url("/assets/fonts/literata-latin-opsz-normal.woff2") format("woff2-variations");
	font-weight: 200 900;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: "Literata";
	src: url("/assets/fonts/literata-latin-opsz-italic.woff2") format("woff2-variations");
	font-weight: 200 900;
	font-style: italic;
	font-display: swap;
}
@font-face {
	font-family: "Gochi Hand";
	src: url("/assets/fonts/gochi-hand-latin-400-normal.woff2") format("woff2");
	font-weight: 400;
	font-display: swap;
}

:root {
	--paper: #ffffff;
	--paper-2: #f1f5fb;
	--paper-hi: #ffffff;
	--ink: #1b2a4a;
	--ink-soft: #4b5a7a;
	--line: #1b2a4a;
	--rule: #d5deeb;
	--link: #1d5bc9;
	--marker: #e0252e;

	--toy-red: #e8453c;
	--toy-yellow: #ffc928;
	--toy-blue: #3c7be8;
	--toy-green: #2fa866;
	--toy-orange: #f5862a;

	--tint-red: #fde4e1;
	--tint-yellow: #fff2c7;
	--tint-blue: #e0ebfd;
	--tint-green: #daf2e4;

	--font-display: "Bricolage Grotesque", "Arial Rounded MT Bold", system-ui, sans-serif;
	--font-text: "Literata", Georgia, "Times New Roman", serif;
	--font-hand: "Gochi Hand", "Comic Sans MS", cursive;

	--wrap: 1120px;
	--measure: 40rem;
	--radius: 16px;
	--gutter: clamp(16px, 4vw, 40px);

	color-scheme: light;
}

@media (prefers-color-scheme: dark) {
	:root {
		--paper: #121c33;
		--paper-2: #19264a;
		--paper-hi: #f3f6fc;
		--ink: #edf1f9;
		--ink-soft: #b3bed6;
		--line: #0e1628;
		--rule: #2d3b60;
		--link: #93b8ff;
		--marker: #ff5c61;

		--tint-red: #4a2a3a;
		--tint-yellow: #4a3f27;
		--tint-blue: #243d6b;
		--tint-green: #1f4a3d;

		color-scheme: dark;
	}
}

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

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

body {
	margin: 0;
	background: var(--paper);
	color: var(--ink);
	font-family: var(--font-text);
	font-size: 1.125rem;
	line-height: 1.65;
	font-optical-sizing: auto;
	text-rendering: optimizeLegibility;
}

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

a {
	color: var(--link);
	text-decoration-thickness: 1.5px;
	text-underline-offset: 3px;
}

a:hover {
	text-decoration-thickness: 2.5px;
}

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

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

.skip {
	position: absolute;
	left: 16px;
	top: -100px;
	z-index: 10;
	padding: 8px 14px;
	background: var(--ink);
	color: var(--paper);
	font-family: var(--font-display);
	font-weight: 700;
	border-radius: 8px;
}

.skip:focus {
	top: 12px;
}

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

.site-header {
	border-bottom: 2px solid var(--ink);
}

.header-inner {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: space-between;
	gap: 8px 32px;
	padding-block: 18px;
}

.wordmark {
	font-family: var(--font-display);
	font-weight: 800;
	font-stretch: 85%;
	font-size: 2rem;
	letter-spacing: -0.035em;
	line-height: 1;
	color: var(--ink);
	text-decoration: none;
}

.wordmark-small {
	font-size: 1.5rem;
	margin: 0 0 10px;
}

.nav {
	display: flex;
	flex-wrap: wrap;
	gap: 4px 22px;
	margin: 0;
	padding: 0;
	list-style: none;
	font-family: var(--font-display);
	font-weight: 600;
	font-size: 1.0625rem;
}

.nav a {
	color: var(--ink);
	text-decoration: none;
	padding-block: 4px;
}

.nav a:hover,
.nav a[aria-current] {
	text-decoration: underline;
	text-decoration-color: var(--marker);
	text-decoration-thickness: 3px;
	text-underline-offset: 6px;
}

/* ---------- Shared type ---------- */

.home-title,
.post-title,
.feature-title,
.section-title,
.prose h2,
.prose h3,
.related h2,
.section-col h3 {
	font-family: var(--font-display);
	font-weight: 800;
	font-stretch: 88%;
	letter-spacing: -0.02em;
	color: var(--ink);
	text-wrap: balance;
}

.home-title {
	font-size: clamp(2.5rem, 6.4vw, 4.75rem);
	line-height: 0.98;
	margin: 0 0 18px;
	max-width: 15ch;
}

.home-lede {
	max-width: 36rem;
	margin: 0;
	font-size: 1.25rem;
	line-height: 1.55;
	color: var(--ink-soft);
}

.section-title {
	font-size: 1.75rem;
	line-height: 1.15;
	margin: 0 0 24px;
}

.post-item-cat {
	display: block;
	font-family: var(--font-display);
	font-weight: 700;
	font-size: 0.9375rem;
	color: var(--marker);
}

.crumbs {
	font-family: var(--font-display);
	font-size: 0.9375rem;
	font-weight: 600;
	color: var(--ink-soft);
	margin-bottom: 18px;
}

.crumbs a {
	color: var(--ink-soft);
}

/* ---------- Home ---------- */

.home-intro {
	padding-top: clamp(40px, 7vw, 88px);
	padding-bottom: clamp(28px, 4vw, 48px);
}

.feature-card {
	display: grid;
	grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
	align-items: center;
	gap: clamp(24px, 5vw, 64px);
	color: inherit;
	text-decoration: none;
}

.feature-art {
	position: relative;
	display: grid;
	place-items: center;
	aspect-ratio: 4 / 3;
	padding: 12% 14%;
	border-radius: var(--radius);
}

.feature-art .illo {
	width: 100%;
	height: auto;
}

.marker-circle {
	position: absolute;
	inset: 6% 5%;
	width: 90%;
	height: 88%;
	overflow: visible;
	pointer-events: none;
}

.marker-circle path {
	fill: none;
	stroke: var(--marker);
	stroke-width: 5;
	stroke-linecap: round;
	vector-effect: non-scaling-stroke;
	stroke-dasharray: 1;
	stroke-dashoffset: 0;
}

.feature-art .marker-circle path {
	animation: draw-circle 900ms cubic-bezier(0.6, 0.05, 0.3, 1) 350ms both;
}

@keyframes draw-circle {
	from {
		stroke-dashoffset: 1;
	}
	to {
		stroke-dashoffset: 0;
	}
}

.marker-note {
	position: absolute;
	font-family: var(--font-hand);
	font-size: clamp(1.6rem, 3vw, 2.2rem);
	line-height: 1;
	color: var(--marker);
	transform: rotate(-9deg);
	white-space: nowrap;
}

.feature-art .marker-note {
	top: 3%;
	right: 4%;
	animation: note-in 300ms ease-out 1150ms both;
}

@keyframes note-in {
	from {
		opacity: 0;
	}
	to {
		opacity: 1;
	}
}

.feature-title {
	font-size: clamp(1.9rem, 3.6vw, 2.75rem);
	line-height: 1.05;
	margin: 8px 0 14px;
}

.feature-desc {
	display: block;
	color: var(--ink-soft);
	margin-bottom: 18px;
}

.feature-more {
	display: inline-block;
	font-family: var(--font-display);
	font-weight: 700;
	padding: 10px 20px;
	border: 2px solid var(--ink);
	border-radius: 999px;
	box-shadow: 3px 3px 0 var(--ink);
	background: var(--toy-yellow);
	color: #1b2a4a;
}

.feature-card:hover .feature-title {
	text-decoration: underline;
	text-decoration-thickness: 3px;
	text-underline-offset: 6px;
}

.feature-card:hover .feature-more {
	box-shadow: 1px 1px 0 var(--ink);
	transform: translate(2px, 2px);
}

.countdown {
	margin-block: clamp(40px, 6vw, 72px);
}

.countdown-line {
	margin: 0;
	padding: 18px 24px;
	border: 2px solid var(--ink);
	border-radius: var(--radius);
	background: var(--tint-yellow);
	font-family: var(--font-display);
	font-weight: 600;
	font-size: clamp(1.125rem, 2.2vw, 1.375rem);
	line-height: 1.4;
}

.countdown-line:empty {
	display: none;
}

.countdown-line strong {
	font-weight: 800;
	font-size: 1.6em;
	line-height: 1;
	vertical-align: -0.08em;
}

/* ---------- Post lists ---------- */

.latest {
	margin-bottom: clamp(48px, 7vw, 88px);
}

.post-list {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 36px 48px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.post-item-link {
	display: grid;
	grid-template-columns: 132px minmax(0, 1fr);
	gap: 20px;
	align-items: start;
	color: inherit;
	text-decoration: none;
}

.post-item-thumb {
	position: relative;
	display: grid;
	place-items: center;
	aspect-ratio: 1;
	padding: 8px;
	border-radius: 14px;
}

.post-item-title {
	display: block;
	font-family: var(--font-display);
	font-weight: 700;
	font-stretch: 92%;
	font-size: 1.3125rem;
	line-height: 1.2;
	letter-spacing: -0.01em;
	margin: 2px 0 6px;
	text-wrap: balance;
}

.post-item-desc {
	display: block;
	font-size: 1rem;
	line-height: 1.5;
	color: var(--ink-soft);
}

.post-item-date {
	display: block;
	margin-top: 6px;
	font-family: var(--font-display);
	font-size: 0.875rem;
	color: var(--ink-soft);
}

.post-item-link:hover .post-item-title,
.post-item-link:focus-visible .post-item-title {
	text-decoration: underline;
	text-decoration-color: var(--marker);
	text-decoration-thickness: 3px;
	text-underline-offset: 4px;
}

.post-item-link:hover .post-item-thumb .illo {
	transform: rotate(-4deg) scale(1.04);
}

.post-item-thumb .illo {
	transition: transform 200ms ease-out;
}

.empty {
	color: var(--ink-soft);
}

.tone-red { background: var(--tint-red); }
.tone-yellow { background: var(--tint-yellow); }
.tone-blue { background: var(--tint-blue); }
.tone-green { background: var(--tint-green); }

.illo-letter {
	font-family: var(--font-display);
	font-weight: 800;
	font-size: 44px;
	fill: var(--paper-hi);
	stroke: none;
}

/* ---------- Sections ---------- */

.sections {
	margin-bottom: clamp(40px, 6vw, 72px);
}

.sections > .section-title,
.related > h2 {
	padding-top: clamp(32px, 5vw, 48px);
	border-top: 2px solid var(--ink);
}

.section-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 32px 48px;
}

.section-col h3 {
	font-size: 1.375rem;
	margin: 0 0 6px;
}

.section-col h3 a {
	color: var(--ink);
}

.section-col p {
	margin: 0 0 12px;
	font-size: 1rem;
	color: var(--ink-soft);
}

.section-col ul {
	margin: 0;
	padding-left: 1.1em;
	font-size: 1rem;
	line-height: 1.45;
}

.section-col li + li {
	margin-top: 8px;
}

.category-head {
	padding-top: clamp(32px, 5vw, 64px);
	padding-bottom: clamp(28px, 4vw, 48px);
}

/* ---------- Post ---------- */

.post-header {
	max-width: calc(var(--measure) + 2 * var(--gutter));
	padding-top: clamp(32px, 5vw, 64px);
}

.post-title {
	font-size: clamp(2.1rem, 5vw, 3.4rem);
	line-height: 1.02;
	margin: 0 0 16px;
}

.post-lede {
	margin: 0 0 18px;
	font-size: 1.25rem;
	line-height: 1.5;
	color: var(--ink-soft);
}

.post-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 4px 18px;
	margin: 0;
	font-family: var(--font-display);
	font-size: 0.9375rem;
	color: var(--ink-soft);
}

.summary {
	margin-top: 24px;
	padding: 16px 20px 18px;
	border: 2px solid var(--ink);
	border-radius: 10px;
	background: var(--tint-blue);
}

.summary-label {
	margin: 0 0 4px;
	font-family: var(--font-display);
	font-weight: 800;
	font-stretch: 88%;
	font-size: 1.0625rem;
	letter-spacing: -0.01em;
}

.summary p {
	margin: 0;
	font-size: 1.0625rem;
	line-height: 1.55;
}

.post-figure {
	position: relative;
	width: auto;
	max-width: 880px;
	margin: 32px auto 8px;
	padding: 28px;
	border-radius: var(--radius);
	display: grid;
	place-items: center;
}

.post-figure .illo {
	width: min(320px, 70%);
	height: auto;
}

.post-figure .marker-note {
	right: 8%;
	top: 14%;
}

.prose {
	max-width: calc(var(--measure) + 2 * var(--gutter));
	margin-inline: auto;
	padding: 16px var(--gutter) 56px;
}

.page .prose {
	padding-inline: 0;
	margin-inline: 0;
}

.page {
	max-width: calc(var(--measure) + 2 * var(--gutter));
}

.page .post-header {
	padding-inline: 0;
}

.prose > * + * {
	margin-top: 1.1em;
}

.prose p,
.prose ul,
.prose ol {
	margin-block: 0;
}

.prose * + p,
.prose * + ul,
.prose * + ol {
	margin-top: 1.1em;
}

.prose h2 {
	font-size: 1.75rem;
	line-height: 1.15;
	margin: 2em 0 0;
}

.prose h3 {
	font-size: 1.3125rem;
	line-height: 1.25;
	font-weight: 700;
	margin: 1.6em 0 0;
}

.prose h2 + *,
.prose h3 + * {
	margin-top: 0.6em;
}

.prose li + li {
	margin-top: 0.4em;
}

.prose ul,
.prose ol {
	padding-left: 1.3em;
}

.prose li::marker {
	color: var(--marker);
	font-family: var(--font-display);
	font-weight: 700;
}

.prose strong {
	font-weight: 700;
}

.prose blockquote {
	margin-inline: 0;
	padding-left: 1.2em;
	border-left: 3px solid var(--toy-yellow);
	font-style: italic;
}

.prose table {
	width: 100%;
	border-collapse: collapse;
	font-size: 1rem;
	line-height: 1.45;
	display: block;
	overflow-x: auto;
}

.prose th,
.prose td {
	text-align: left;
	vertical-align: top;
	padding: 10px 12px;
	border-bottom: 1px solid var(--rule);
}

.prose th {
	font-family: var(--font-display);
	font-weight: 700;
	border-bottom: 2px solid var(--ink);
}

.prose aside {
	margin-block: 1.6em;
	padding: 16px 20px;
	border: 2px solid var(--ink);
	border-radius: 10px;
	font-size: 1.0625rem;
	line-height: 1.55;
}

.prose aside p + p {
	margin-top: 0.6em;
}

.prose aside.tip {
	background: var(--tint-yellow);
	box-shadow: 5px 5px 0 var(--ink);
}

.prose aside.let-op {
	background: var(--tint-red);
	box-shadow: 5px 5px 0 var(--marker);
}

.prose .disclosure,
.page-updated {
	margin-top: 2em;
	padding-top: 1em;
	border-top: 1px solid var(--rule);
	font-size: 0.9375rem;
	font-style: italic;
	color: var(--ink-soft);
}

.related {
	padding-bottom: 72px;
}

.related h2 {
	font-size: 1.75rem;
	margin: 0 0 24px;
}

.post-list-compact {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.post-list-compact .post-item-link {
	grid-template-columns: 1fr;
	gap: 14px;
}

.post-list-compact .post-item-thumb {
	aspect-ratio: 16 / 10;
	padding: 18px 28%;
}

.post-list-compact .post-item-desc {
	display: none;
}

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

.not-found {
	padding-block: clamp(40px, 7vw, 88px);
}

.not-found-hero {
	display: grid;
	grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
	align-items: center;
	gap: clamp(24px, 5vw, 64px);
	margin-bottom: clamp(48px, 7vw, 88px);
}

.not-found-text .home-lede {
	margin-bottom: 28px;
}

.not-found-art {
	position: relative;
	display: grid;
	place-items: center;
	aspect-ratio: 4 / 3;
	padding: 12% 18%;
	border-radius: var(--radius);
}

.not-found-art .illo {
	width: 100%;
	height: auto;
}

.not-found-art .marker-note {
	top: 8%;
	right: 7%;
}

a.feature-more {
	text-decoration: none;
}

a.feature-more:hover {
	box-shadow: 1px 1px 0 var(--ink);
	transform: translate(2px, 2px);
}

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

.site-footer {
	background: var(--paper-2);
	border-top: 2px solid var(--ink);
	font-size: 1rem;
}

.footer-inner {
	display: grid;
	grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
	gap: 24px 48px;
	padding-block: 40px;
}

.footer-about p {
	margin: 0;
	max-width: 34rem;
	color: var(--ink-soft);
}

.footer-about .wordmark {
	color: var(--ink);
}

.footer-nav ul {
	margin: 0;
	padding: 0;
	list-style: none;
	font-family: var(--font-display);
	font-weight: 600;
}

.footer-nav li + li {
	margin-top: 6px;
}

.footer-nav a {
	color: var(--ink);
}

.footer-small {
	grid-column: 1 / -1;
	margin: 0;
	font-family: var(--font-display);
	font-size: 0.875rem;
	color: var(--ink-soft);
}

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

@media (max-width: 860px) {
	.feature-card,
	.not-found-hero {
		grid-template-columns: 1fr;
	}

	.post-list,
	.post-list-compact,
	.section-grid {
		grid-template-columns: 1fr;
	}

	.post-list-compact .post-item-link {
		grid-template-columns: 96px minmax(0, 1fr);
	}

	.post-list-compact .post-item-thumb {
		aspect-ratio: 1;
		padding: 12px;
	}

	.footer-inner {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 520px) {
	body {
		font-size: 1.0625rem;
	}

	.post-item-link {
		grid-template-columns: 92px minmax(0, 1fr);
		gap: 16px;
	}

	.post-item-thumb {
		padding: 10px;
	}

	.post-figure {
		margin-inline: var(--gutter);
		padding: 20px;
	}

	.wordmark {
		font-size: 1.75rem;
	}
}

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