/* ==========================================================================
   Birkebøg – "Blåmalet"
   Koboltblå på hvid glasur. Bricolage Grotesque + Atkinson Hyperlegible Next.
   ========================================================================== */

@font-face {
	font-family: "Bricolage";
	src: url("../fonts/bricolage-grotesque-latin-opsz-normal.woff2") format("woff2-variations");
	font-weight: 200 800;
	font-style: normal;
	font-display: swap;
}
/* Atkinson har streget nul (0 ligner Ø på dansk) – tal hentes derfor fra Bricolage. */
@font-face {
	font-family: "BB Tal";
	src: url("../fonts/bricolage-grotesque-latin-opsz-normal.woff2") format("woff2-variations");
	font-weight: 200 800;
	font-display: swap;
	unicode-range: U+0030-0039;
}
@font-face {
	font-family: "Atkinson Next";
	src: url("../fonts/atkinson-hyperlegible-next-latin-400-normal.woff2") format("woff2");
	font-weight: 400;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: "Atkinson Next";
	src: url("../fonts/atkinson-hyperlegible-next-latin-400-italic.woff2") format("woff2");
	font-weight: 400;
	font-style: italic;
	font-display: swap;
}
@font-face {
	font-family: "Atkinson Next";
	src: url("../fonts/atkinson-hyperlegible-next-latin-700-normal.woff2") format("woff2");
	font-weight: 700;
	font-style: normal;
	font-display: swap;
}

:root {
	/* Glasur */
	--glaze: #f4f7fc;
	--glaze-2: #e8eef9;
	--line: #c5d2ee;
	/* Kobolt */
	--cobalt: #1d3c9a;
	--cobalt-deep: #132a6e;
	--cobalt-night: #0d1d4d;
	--ink: #0e1d4a;
	--ink-2: #3a4a72;
	--on-cobalt: #f4f7fc;
	--on-cobalt-2: #cad7f6;
	--brush: rgb(29 60 154 / 0.3);
	--yolk: #f4c542;

	--font-display: "Bricolage", "Atkinson Next", system-ui, sans-serif;
	--font-body: "BB Tal", "Atkinson Next", system-ui, -apple-system, "Segoe UI", sans-serif;

	--step--1: 1rem;
	--step-0: 1.1875rem;   /* 19px brødtekst */
	--step-1: 1.375rem;
	--step-2: clamp(1.6rem, 1.2rem + 1.4vw, 2.1rem);
	--step-3: clamp(2rem, 1.3rem + 2.6vw, 3rem);
	--step-4: clamp(2.6rem, 1.4rem + 4.6vw, 5.25rem);

	--space-1: 0.5rem;
	--space-2: 0.75rem;
	--space-3: 1rem;
	--space-4: 1.5rem;
	--space-5: 2.25rem;
	--space-6: 3.5rem;
	--space-7: clamp(4rem, 3rem + 5vw, 7.5rem);

	--radius: 14px;
	--radius-tile: 9px;
	--shadow-plate: 0 1px 2px rgb(13 29 77 / 0.08), 0 18px 40px -18px rgb(13 29 77 / 0.45);
	--shadow-paper: 0 1px 1px rgb(13 29 77 / 0.06), 0 10px 24px -12px rgb(13 29 77 / 0.35);
	--ease-out: cubic-bezier(0.16, 1, 0.3, 1);

	--rim: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='18' viewBox='0 0 56 18'%3E%3Cpath d='M0 7c7-6 14-6 21 0s14 6 21 0 10-5 14-3' fill='none' stroke='%231d3c9a' stroke-width='1.9' stroke-linecap='round'/%3E%3Ccircle cx='21' cy='14.5' r='1.6' fill='%231d3c9a'/%3E%3Ccircle cx='42' cy='1.8' r='1.1' fill='%231d3c9a'/%3E%3C/svg%3E");
	--rim-light: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='18' viewBox='0 0 56 18'%3E%3Cpath d='M0 7c7-6 14-6 21 0s14 6 21 0 10-5 14-3' fill='none' stroke='%23cad7f6' stroke-width='1.9' stroke-linecap='round'/%3E%3Ccircle cx='21' cy='14.5' r='1.6' fill='%23cad7f6'/%3E%3Ccircle cx='42' cy='1.8' r='1.1' fill='%23cad7f6'/%3E%3C/svg%3E");

	color-scheme: light;
	accent-color: var(--cobalt);
}

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

html {
	-webkit-text-size-adjust: 100%;
	text-size-adjust: 100%;
	scroll-behavior: smooth;
	scrollbar-color: var(--cobalt) var(--glaze-2);
}

body {
	margin: 0;
	background: var(--glaze);
	color: var(--ink);
	font-family: var(--font-body);
	font-size: var(--step-0);
	line-height: 1.6;
	caret-color: var(--cobalt);
	-webkit-font-smoothing: antialiased;
	font-variant-numeric: tabular-nums;
}

::selection { background: var(--cobalt); color: var(--on-cobalt); }
.on-cobalt ::selection { background: var(--on-cobalt); color: var(--cobalt); }

h1, h2, h3, h4 {
	font-family: var(--font-display);
	font-optical-sizing: auto;
	line-height: 1.08;
	letter-spacing: -0.02em;
	margin: 0 0 var(--space-3);
	text-wrap: balance;
	font-weight: 700;
}

p { margin: 0 0 var(--space-3); text-wrap: pretty; }
img { max-width: 100%; height: auto; display: block; }

a {
	color: var(--cobalt);
	text-decoration-thickness: 0.08em;
	text-underline-offset: 0.2em;
}
a:hover { color: var(--cobalt-deep); text-decoration-thickness: 0.14em; }
.on-cobalt a { color: var(--on-cobalt); }

:focus { outline: none; }
:focus-visible {
	outline: 3px solid var(--cobalt);
	outline-offset: 3px;
	border-radius: 6px;
}
.on-cobalt :focus-visible { outline-color: var(--yolk); }

kbd {
	font-family: var(--font-body);
	font-size: 0.85em;
	padding: 0.05em 0.45em;
	border-radius: 6px;
	border: 1px solid var(--line);
	background: #fff;
	box-shadow: 0 1px 0 var(--line);
}

.wrap {
	width: min(100% - 2rem, 76rem);
	margin-inline: auto;
}

.visually-hidden {
	position: absolute !important;
	width: 1px; height: 1px;
	padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0 0 0 0);
	white-space: nowrap; border: 0;
}

.skip-link {
	position: absolute;
	left: 1rem; top: -4rem;
	z-index: 100;
	background: var(--cobalt);
	color: var(--on-cobalt);
	padding: 0.75rem 1.25rem;
	border-radius: var(--radius);
	font-weight: 700;
	transition: top 0.2s var(--ease-out);
}
.skip-link:focus { top: 1rem; color: var(--on-cobalt); }

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

/* ---------- Penselkant ---------- */
.rim {
	height: 18px;
	background: var(--rim) repeat-x left center / 56px 18px;
	opacity: 0.9;
}
.rim--light { background-image: var(--rim-light); }

/* ---------- Header ---------- */
.site-header { padding-block: var(--space-4); position: relative; z-index: 20; }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); }

.brand {
	display: inline-flex;
	align-items: center;
	gap: 0.7rem;
	text-decoration: none;
	color: var(--ink);
}
.brand:hover { color: var(--ink); }
.brand__tile {
	display: grid;
	place-items: center;
	width: 2.6rem; height: 2.6rem;
	border-radius: 11px;
	background: var(--cobalt);
	color: var(--on-cobalt);
	font-family: var(--font-display);
	font-weight: 700;
	font-size: 1.6rem;
	line-height: 1;
	padding-bottom: 0.12em;
	box-shadow: inset 0 0 0 2px rgb(255 255 255 / 0.18);
}
.brand__name {
	font-family: var(--font-display);
	font-weight: 700;
	font-size: 1.55rem;
	letter-spacing: -0.02em;
}
.on-cobalt .brand, .on-cobalt .brand:hover { color: var(--on-cobalt); }
.on-cobalt .brand__tile { background: var(--on-cobalt); color: var(--cobalt); }

.site-nav__list {
	display: flex;
	gap: 0.25rem;
	list-style: none;
	margin: 0; padding: 0;
}
.site-nav__list a {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	padding: 0.4rem 0.9rem;
	border-radius: 10px;
	color: var(--ink);
	text-decoration: none;
	font-weight: 700;
}
.site-nav__list a:hover { background: var(--glaze-2); color: var(--cobalt); }
.site-nav__list .current-menu-item > a,
.site-nav__list .current_page_item > a,
.site-nav__list a[aria-current="page"] {
	color: var(--cobalt);
	text-decoration: underline;
	text-decoration-thickness: 2px;
	text-underline-offset: 0.35em;
}

.nav-toggle {
	display: none;
	align-items: center;
	gap: 0.5rem;
	min-height: 48px;
	padding: 0.5rem 1rem;
	border: 1.5px solid var(--line);
	border-radius: 12px;
	background: #fff;
	color: var(--ink);
	font: 700 var(--step--1) / 1 var(--font-body);
	cursor: pointer;
}
.nav-toggle__close { display: none; }

@media (max-width: 48rem) {
	.nav-toggle { display: inline-flex; }
	.site-nav {
		display: none;
		position: absolute;
		left: 1rem; right: 1rem;
		top: calc(100% - 0.25rem);
		background: #fff;
		border-radius: var(--radius);
		box-shadow: var(--shadow-plate);
		padding: var(--space-2);
	}
	.nav-open .site-nav { display: block; }
	.nav-open .nav-toggle__open { display: none; }
	.nav-open .nav-toggle__close { display: inline; }
	.site-nav__list { flex-direction: column; }
	.site-nav__list a { width: 100%; min-height: 52px; font-size: var(--step-1); }
}

/* ---------- Knapper ---------- */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.55rem;
	min-height: 52px;
	padding: 0.7rem 1.35rem;
	border-radius: var(--radius);
	border: 0;
	font: 700 var(--step-0) / 1.15 var(--font-body);
	text-decoration: none;
	cursor: pointer;
	transition: background-color 0.18s var(--ease-out), color 0.18s var(--ease-out), box-shadow 0.18s var(--ease-out), transform 0.18s var(--ease-out);
}
.btn:active { transform: translateY(1px); }
.btn--lg { min-height: 58px; padding-inline: 1.6rem; }

.btn--primary { background: var(--cobalt); color: var(--on-cobalt); box-shadow: 0 6px 16px -8px rgb(13 29 77 / 0.6); }
.btn--primary:hover { background: var(--cobalt-deep); color: var(--on-cobalt); text-decoration: none; }

.btn--quiet { background: transparent; color: var(--cobalt); box-shadow: inset 0 0 0 2px var(--line); }
.btn--quiet:hover { background: #fff; color: var(--cobalt-deep); box-shadow: inset 0 0 0 2px var(--cobalt); text-decoration: none; }

.btn--ghost {
	background: rgb(255 255 255 / 0.1);
	color: var(--on-cobalt);
	box-shadow: inset 0 0 0 1.5px rgb(255 255 255 / 0.35);
	min-height: 48px;
	font-size: var(--step--1);
}
.btn--ghost:hover { background: rgb(255 255 255 / 0.18); color: #fff; }

.btn--light { background: var(--on-cobalt); color: var(--cobalt); }
.btn--light:hover { background: #fff; color: var(--cobalt-deep); }

.btn__meta { font-weight: 400; opacity: 0.8; font-size: 0.85em; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: 0.55; cursor: not-allowed; }

.linklike {
	background: none; border: 0; padding: 0;
	font: inherit; color: inherit;
	text-decoration: underline;
	text-decoration-thickness: 0.08em;
	text-underline-offset: 0.2em;
	cursor: pointer;
	min-height: 44px;
}

/* ---------- Hero ---------- */
.hero { padding-block: var(--space-5) var(--space-7); }
.hero__inner {
	display: grid;
	grid-template-columns: minmax(0, 5fr) minmax(0, 6.2fr);
	gap: clamp(2rem, 4vw, 4.5rem);
	align-items: center;
}
.hero__title {
	font-size: var(--step-4);
	letter-spacing: -0.035em;
	line-height: 0.98;
	color: var(--cobalt-night);
	margin-bottom: var(--space-4);
}
.hero__lead { font-size: var(--step-1); color: var(--ink-2); max-width: 34ch; margin-bottom: var(--space-5); }
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.hero__actions--center { justify-content: center; }

@media (max-width: 60rem) {
	.hero__inner { grid-template-columns: 1fr; gap: var(--space-4); }
	.hero__copy { display: contents; }
	.hero__title { order: 1; margin-bottom: 0; }
	.hero .puzzle { order: 2; }
	.hero__lead { order: 3; max-width: 44ch; margin-bottom: 0; }
	.hero__actions { order: 4; }
}

/* ---------- Ordsøgning ---------- */
.puzzle {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 13.5rem;
	background: var(--cobalt);
	color: var(--on-cobalt);
	border-radius: 28px;
	box-shadow: var(--shadow-plate), inset 0 0 0 6px rgb(255 255 255 / 0.07);
	padding: clamp(1rem, 2.4vw, 1.75rem);
	gap: clamp(1rem, 2vw, 1.75rem);
	position: relative;
	isolation: isolate;
}
.puzzle::before { /* malet kant – som en tallerkenrand */
	content: "";
	position: absolute;
	inset: 10px;
	border-radius: 20px;
	border: 1.5px solid rgb(202 215 246 / 0.28);
	pointer-events: none;
	z-index: -1;
}
.puzzle__head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: var(--space-3); flex-wrap: wrap; }
.puzzle__title { display: flex; flex-direction: column; gap: 0.1rem; margin: 0; }
.puzzle__label { font-family: var(--font-body); font-size: var(--step--1); font-weight: 400; letter-spacing: 0; color: var(--on-cobalt-2); }
.puzzle__theme { font-size: var(--step-2); }
.puzzle__count { margin: 0; color: var(--on-cobalt-2); font-size: var(--step--1); }
.puzzle__help { margin: var(--space-3) 0 0; font-size: 1rem; color: var(--on-cobalt-2); }
.puzzle__help kbd { color: var(--ink); }
.puzzle__noscript { background: var(--on-cobalt); color: var(--ink); padding: 1rem; border-radius: var(--radius); }
.puzzle__noscript a { color: var(--cobalt); }

.puzzle__board {
	position: relative;
	touch-action: none;
	user-select: none;
	-webkit-user-select: none;
	-webkit-touch-callout: none;
}
.grid {
	container-type: inline-size;
	display: grid;
	grid-template-rows: repeat(var(--n, 10), 1fr);
	gap: clamp(2px, 0.5vw, 5px);
	aspect-ratio: 1;
}
.grid__row { display: grid; grid-template-columns: repeat(var(--n, 10), 1fr); gap: inherit; }
.grid__cell {
	display: grid;
	place-items: center;
	background: var(--glaze);
	color: var(--cobalt-night);
	border-radius: var(--radius-tile);
	box-shadow: inset 0 -2px 0 rgb(29 60 154 / 0.12), inset 0 0 0 1px rgb(255 255 255 / 0.9);
	font-family: var(--font-display);
	font-weight: 650;
	font-size: calc(100cqi / var(--n, 10) * 0.52);
	line-height: 1;
	cursor: pointer;
	aspect-ratio: 1;
	transition: background-color 0.2s var(--ease-out);
}
.grid__cell:hover { background: #fff; }
.grid__cell:focus-visible { outline: 3px solid var(--yolk); outline-offset: 1px; border-radius: var(--radius-tile); position: relative; z-index: 2; }
.grid__cell.is-anchor { background: var(--yolk); }
.grid__cell.is-hint { animation: hint 2.4s var(--ease-out); }
@keyframes hint {
	0%, 60% { background: var(--yolk); box-shadow: 0 0 0 4px var(--yolk); }
	100% { background: var(--glaze); box-shadow: inset 0 -2px 0 rgb(29 60 154 / 0.12); }
}
.grid.is-miss .grid__cell { animation: miss 0.45s var(--ease-out); }
@keyframes miss { 0% { background: var(--glaze-2); } 100% { background: var(--glaze); } }

.grid__ink {
	position: absolute;
	inset: 0;
	width: 100%; height: 100%;
	pointer-events: none;
	overflow: visible;
}
.stroke { stroke-linecap: round; fill: none; }
.stroke--live { stroke: rgb(244 197 66 / 0); stroke-width: 0.8; transition: stroke 0.12s; }
.stroke--live.is-on { stroke: rgb(244 197 66 / 0.55); }
.stroke--found {
	stroke: var(--brush);
	stroke-width: 0.78;
	stroke-dasharray: var(--len) 999;
	stroke-dashoffset: var(--len);
	animation: brush 0.55s var(--ease-out) forwards;
}
@keyframes brush { to { stroke-dashoffset: 0; } }

.puzzle__side { display: flex; flex-direction: column; }
.puzzle__listhead { font-size: var(--step-1); margin-bottom: var(--space-2); }
.puzzle__words {
	list-style: none;
	margin: 0 0 var(--space-4);
	padding: 0;
	display: grid;
	gap: 0.35rem;
	font-family: var(--font-display);
	font-weight: 600;
	font-size: 1.15rem;
	letter-spacing: 0.04em;
}
.puzzle__words li { position: relative; width: fit-content; transition: color 0.3s var(--ease-out); }
.puzzle__words li::after {
	content: "";
	position: absolute;
	left: -0.15em; right: -0.15em; top: 52%;
	height: 0.16em;
	border-radius: 1em;
	background: var(--yolk);
	transform: scaleX(0);
	transform-origin: left;
	transition: transform 0.45s var(--ease-out);
}
.puzzle__words li.is-found { color: var(--on-cobalt-2); }
.puzzle__words li.is-found::after { transform: scaleX(1); }
.puzzle__actions { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: auto; }
.puzzle__done { margin: var(--space-3) 0 0; font-weight: 700; }

@media (max-width: 40rem) {
	.puzzle { grid-template-columns: 1fr; border-radius: 22px; padding: 0.85rem; }
	.puzzle::before { inset: 6px; border-radius: 17px; }
	.puzzle__words { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.puzzle__actions .btn { flex: 1; }
}
@media (min-width: 40.01rem) and (max-width: 60rem) {
	.puzzle { grid-template-columns: minmax(0, 1fr) 12rem; }
}

/* ---------- Bånd (koboltflade) ---------- */
.on-cobalt { background: var(--cobalt); color: var(--on-cobalt); }
.band { padding-block: var(--space-7); margin-top: -1px; }
.band__inner {
	display: grid;
	grid-template-columns: minmax(12rem, 20rem) minmax(0, 1fr);
	gap: clamp(2rem, 6vw, 6rem);
	align-items: center;
}
.band__cover { display: block; text-decoration: none; transform: rotate(-3deg); transition: transform 0.5s var(--ease-out); }
.band__cover:hover { transform: rotate(-1deg) translateY(-4px); }
.band__title { font-size: var(--step-3); letter-spacing: -0.03em; }
.band__lead { font-size: var(--step-1); color: var(--on-cobalt-2); max-width: 44ch; }
@media (max-width: 48rem) {
	.band__inner { grid-template-columns: 1fr; }
	.band__cover { max-width: 14rem; }
}

/* ---------- Omslag (tegnet) ---------- */
.cover {
	--c-bg: var(--cobalt);
	--c-fg: var(--on-cobalt);
	--c-tile: rgb(255 255 255 / 0.12);
	position: relative;
	display: flex;
	flex-direction: column;
	aspect-ratio: 2 / 3;
	padding: 9% 9% 10%;
	background: var(--c-bg);
	color: var(--c-fg);
	border-radius: 6px 12px 12px 6px;
	box-shadow: var(--shadow-paper), inset 5px 0 0 rgb(0 0 0 / 0.14), inset 0 0 0 6px var(--glaze), inset 0 0 0 7.5px var(--c-bg), inset 0 0 0 9px rgb(255 255 255 / 0.4);
	overflow: hidden;
}
.cover--nat { --c-bg: var(--cobalt-night); }
.cover--is { --c-bg: #dbe5fa; --c-fg: var(--cobalt-night); --c-tile: rgb(29 60 154 / 0.1); }
.cover__publisher { font-size: 0.8rem; letter-spacing: 0.02em; opacity: 0.85; }
.cover__grid {
	margin-block: auto;
	display: grid;
	grid-template-columns: repeat(5, 1fr);
	gap: 5px;
	container-type: inline-size;
}
.cover__grid span {
	display: grid;
	place-items: center;
	aspect-ratio: 1;
	border-radius: 5px;
	background: var(--c-tile);
	font-family: var(--font-display);
	font-weight: 700;
	font-size: 11cqi;
	line-height: 1;
}
.cover__title { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.1rem, 2.2vw, 1.55rem); line-height: 1.05; letter-spacing: -0.02em; text-wrap: balance; }
.cover__badge {
	position: absolute;
	top: 9%; right: -2.4rem;
	transform: rotate(35deg);
	background: var(--yolk);
	color: var(--cobalt-night);
	font-weight: 700;
	font-size: 0.72rem;
	padding: 0.3rem 2.6rem;
}
.cover__img { border-radius: 6px 12px 12px 6px; box-shadow: var(--shadow-paper); aspect-ratio: 2/3; object-fit: cover; width: 100%; }

/* ---------- Sektioner ---------- */
.section { padding-block: var(--space-7); }
.section--tight { padding-top: 0; }
.section__head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--space-4); align-items: end; margin-bottom: var(--space-6); }
.section__title { font-size: var(--step-3); letter-spacing: -0.03em; margin: 0; color: var(--cobalt-night); }
.section__lead { margin: 0; color: var(--ink-2); font-size: var(--step-1); max-width: 40ch; }
@media (max-width: 48rem) { .section__head { grid-template-columns: 1fr; } }

/* ---------- Gratis PDF'er ---------- */
.freebies {
	list-style: none;
	margin: 0; padding: 0;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
	gap: clamp(2rem, 4vw, 3.5rem);
}
.freebie { display: flex; flex-direction: column; gap: var(--space-4); }
.freebie__thumb {
	width: 100%;
	aspect-ratio: 1 / 1.414;
	object-fit: cover;
	background: #fff;
	border-radius: 4px;
	box-shadow: var(--shadow-paper);
	transition: transform 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out);
}
.freebie:nth-child(2) .freebie__thumb { transform: rotate(1.2deg); }
.freebie:nth-child(3) .freebie__thumb { transform: rotate(-0.8deg); }
.freebie:hover .freebie__thumb { transform: translateY(-4px) rotate(0); }
.freebie__body { display: flex; flex-direction: column; align-items: flex-start; flex: 1; }
.freebie__body p { color: var(--ink-2); }
.freebie__body .btn { margin-top: auto; }
@media (max-width: 34rem) {
	.freebie { display: grid; grid-template-columns: 7.5rem minmax(0, 1fr); gap: var(--space-3); align-items: start; }
	.freebie__body .btn { margin-top: var(--space-2); }
}
.freebie__title { font-size: var(--step-2); margin-bottom: var(--space-2); }
.freebie__nr { display: block; font-family: var(--font-body); font-weight: 400; font-size: var(--step--1); color: var(--ink-2); letter-spacing: 0; margin-bottom: 0.25rem; }

/* ---------- Om (forsiden) ---------- */
.about {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
	gap: var(--space-5);
	align-items: baseline;
	padding-top: var(--space-6);
	border-top: 1.5px solid var(--line);
}
.about__title { font-size: var(--step-2); margin: 0; color: var(--cobalt-night); }
.about__text { margin: 0; font-size: var(--step-1); color: var(--ink-2); max-width: 46ch; }
@media (max-width: 48rem) { .about { grid-template-columns: 1fr; } }

/* ---------- Sider ---------- */
.site-main .page { padding-block: var(--space-5) var(--space-7); }
.site-main .page--narrow { max-width: 46rem; }
.site-main .page--center { text-align: center; max-width: 44rem; }
.site-main .page--center .page__lead { margin-inline: auto; }
.page__head { margin-bottom: var(--space-6); max-width: 50rem; }
.page__title { font-size: var(--step-4); letter-spacing: -0.035em; line-height: 1; color: var(--cobalt-night); }
.page__lead { font-size: var(--step-1); color: var(--ink-2); max-width: 46ch; }
.page__meta { color: var(--ink-2); }

.prose { max-width: 68ch; }
.prose > * + * { margin-top: var(--space-3); }
.prose h2 { font-size: var(--step-2); margin-top: var(--space-6); color: var(--cobalt-night); }
.prose h3 { font-size: var(--step-1); margin-top: var(--space-5); }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: 0.35em; }
.prose li::marker { color: var(--cobalt); }
.prose blockquote { margin-inline: 0; padding-left: var(--space-4); border-left: 1.5px solid var(--cobalt); color: var(--ink-2); }
.prose table { border-collapse: collapse; width: 100%; font-size: var(--step--1); }
.prose th, .prose td { text-align: left; padding: 0.6rem 0.75rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { color: var(--cobalt-night); }

.empty { font-size: var(--step-1); color: var(--ink-2); }
.notice-inline { padding: 1rem 1.25rem; border-radius: var(--radius); background: var(--yolk); color: var(--cobalt-night); }

.postlist { list-style: none; margin: 0; padding: 0; max-width: 46rem; }
.postlist__item { padding-block: var(--space-4); border-bottom: 1px solid var(--line); }
.postlist__date { color: var(--ink-2); font-size: var(--step--1); }
.postlist__title { font-size: var(--step-2); margin-block: 0.25rem 0.5rem; }
.postlist__title a { text-decoration: none; color: var(--cobalt-night); }
.postlist__title a:hover { color: var(--cobalt); text-decoration: underline; }
.nav-links { display: flex; gap: 1rem; margin-top: var(--space-5); }

/* ---------- Bøger ---------- */
.books {
	list-style: none;
	margin: 0; padding: 0;
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(13rem, 1fr));
	gap: clamp(2rem, 4vw, 3rem);
}
.book__link { display: flex; text-decoration: none; flex-direction: column; gap: 0.6rem; text-decoration: none; color: var(--ink); }
.book__cover { display: block; transition: transform 0.4s var(--ease-out); }
.book__link:hover .book__cover { transform: translateY(-5px) rotate(-1deg); }
.book__title { font-family: var(--font-display); font-weight: 700; font-size: var(--step-1); line-height: 1.15; margin-top: 0.4rem; }
.book__link:hover .book__title { color: var(--cobalt); text-decoration: underline; text-underline-offset: 0.2em; }
.book__status { font-size: var(--step--1); color: var(--ink-2); }
.book__status--udgivet { color: var(--cobalt); font-weight: 700; }

.bookpage { display: grid; grid-template-columns: minmax(12rem, 22rem) minmax(0, 1fr); gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.bookpage__cover { position: sticky; top: 1.5rem; }
.bookpage__crumb { margin-bottom: var(--space-2); }
@media (max-width: 48rem) {
	.bookpage { grid-template-columns: 1fr; }
	.bookpage__cover { position: static; max-width: 15rem; }
}

.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr)); gap: var(--space-3) var(--space-4); margin: var(--space-5) 0; padding-block: var(--space-4); border-block: 1px solid var(--line); }
.facts dt { font-size: var(--step--1); color: var(--ink-2); }
.facts dd { margin: 0; font-weight: 700; }

.notify {
	background: var(--cobalt);
	color: var(--on-cobalt);
	border-radius: 22px;
	padding: clamp(1.25rem, 3vw, 2rem);
	margin-block: var(--space-4);
	box-shadow: var(--shadow-plate);
}
.notify--wide { margin-top: var(--space-7); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: var(--space-2) var(--space-5); align-items: start; }
.notify--wide > .notify__title, .notify--wide > p { grid-column: 1; }
.notify--wide > .bbs-form, .notify--wide > .bbs-msg { grid-column: 2; grid-row: 1 / span 2; }
.notify__title { font-size: var(--step-2); }
.notify p { color: var(--on-cobalt-2); }
.notify a { color: var(--on-cobalt); }
@media (max-width: 48rem) {
	.notify--wide { grid-template-columns: 1fr; }
	.notify--wide > .bbs-form, .notify--wide > .bbs-msg { grid-column: 1; grid-row: auto; }
}

/* ---------- 404 ---------- */
.notfound__tiles { display: flex; justify-content: center; gap: 0.6rem; margin-bottom: var(--space-5); }
.notfound__tiles span {
	display: grid; place-items: center;
	width: 4.5rem; height: 4.5rem;
	border-radius: 14px;
	background: var(--cobalt);
	color: var(--on-cobalt);
	font: 700 2.4rem / 1 var(--font-display);
	box-shadow: var(--shadow-paper);
}
.notfound__tiles span:nth-child(2) { background: var(--yolk); color: var(--cobalt-night); transform: rotate(6deg); }

/* ---------- Formularer (nyhedsbrev + Contact Form 7) ---------- */
.bbs-form { display: grid; gap: var(--space-2); max-width: 36rem; }
.bbs-form__row { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.bbs-form label, .wpcf7 label { font-weight: 700; display: block; }
.bbs-form input[type="email"],
.bbs-form input[type="text"],
.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 textarea {
	width: 100%;
	min-height: 56px;
	padding: 0.8rem 1rem;
	border-radius: var(--radius);
	border: 2px solid var(--line);
	background: #fff;
	color: var(--ink);
	font: 400 var(--step-0) / 1.4 var(--font-body);
	transition: border-color 0.15s var(--ease-out), box-shadow 0.15s var(--ease-out);
}
.bbs-form input[type="email"] { flex: 1 1 15rem; width: auto; }
.bbs-form input::placeholder, .wpcf7 ::placeholder { color: #5d6b8f; }
.bbs-form input:focus-visible, .wpcf7 input:focus-visible, .wpcf7 textarea:focus-visible {
	outline: none;
	border-color: var(--cobalt);
	box-shadow: 0 0 0 4px rgb(29 60 154 / 0.2);
	border-radius: var(--radius);
}
.on-cobalt .bbs-form input[type="email"], .notify .bbs-form input[type="email"] { border-color: transparent; }
.on-cobalt .bbs-form input:focus-visible, .notify .bbs-form input:focus-visible { box-shadow: 0 0 0 4px var(--yolk); }
.bbs-form .btn { flex: 0 0 auto; }
.on-cobalt .bbs-form .btn--primary, .notify .bbs-form .btn--primary { background: var(--yolk); color: var(--cobalt-night); box-shadow: none; }
.on-cobalt .bbs-form .btn--primary:hover, .notify .bbs-form .btn--primary:hover { background: #ffd65c; }
.bbs-form__consent { font-size: 1rem; line-height: 1.5; margin: 0; color: var(--ink-2); }
.on-cobalt .bbs-form__consent, .notify .bbs-form__consent { color: var(--on-cobalt-2); }
.bbs-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

.bbs-msg { padding: 1rem 1.25rem; border-radius: var(--radius); font-weight: 700; max-width: 36rem; }
.bbs-msg--ok { background: #e3f3e8; color: #0d4a24; }
.bbs-msg--err { background: #fde8e6; color: #7a1a10; }
.on-cobalt .bbs-msg--ok, .notify .bbs-msg--ok { background: var(--on-cobalt); color: var(--cobalt-night); }

.formcard { background: #fff; border-radius: 22px; padding: clamp(1.25rem, 3vw, 2.25rem); box-shadow: var(--shadow-paper); margin-top: var(--space-5); }
.wpcf7 form > p { margin-bottom: var(--space-4); }
.wpcf7 textarea { min-height: 10rem; resize: vertical; }
.wpcf7-acceptance .wpcf7-list-item { margin: 0; display: flex; gap: 0.6rem; align-items: flex-start; font-weight: 400; }
.wpcf7-acceptance input { width: 1.4rem; height: 1.4rem; margin-top: 0.15rem; flex: none; }
.wpcf7-acceptance label { font-weight: 400; display: flex; gap: 0.6rem; }
.wpcf7 input[type="submit"] {
	min-height: 56px; padding: 0.7rem 1.6rem;
	border: 0; border-radius: var(--radius);
	background: var(--cobalt); color: var(--on-cobalt);
	font: 700 var(--step-0) / 1 var(--font-body);
	cursor: pointer;
}
.wpcf7 input[type="submit"]:hover { background: var(--cobalt-deep); }
.wpcf7 input[type="submit"]:disabled { opacity: 0.55; cursor: not-allowed; }
.wpcf7-not-valid-tip { color: #9b1c10; font-size: 1rem; font-weight: 700; margin-top: 0.35rem; }
.wpcf7 form .wpcf7-response-output { margin: var(--space-4) 0 0; padding: 1rem 1.25rem; border-radius: var(--radius); border: 0; background: var(--glaze-2); font-weight: 700; }
.wpcf7 form.sent .wpcf7-response-output { background: #e3f3e8; color: #0d4a24; }
.wpcf7 form.invalid .wpcf7-response-output, .wpcf7 form.failed .wpcf7-response-output { background: #fde8e6; color: #7a1a10; }

/* ---------- Footer ---------- */
.site-footer { background: var(--cobalt-deep); padding-bottom: var(--space-5); }
.site-footer .rim { background-color: var(--cobalt-deep); margin-bottom: var(--space-6); transform: translateY(-9px); }
.site-footer__inner { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: var(--space-5); }
.site-footer__brand p { color: var(--on-cobalt-2); margin-top: var(--space-3); max-width: 30ch; }
.site-footer__nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-4); }
.site-footer__nav ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.1rem; align-content: start; }
.site-footer__nav a, .site-footer__nav .linklike { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; color: var(--on-cobalt); }
.site-footer__nav a:hover, .site-footer__nav .linklike:hover { text-decoration: underline; }
.site-footer__legal { margin-top: var(--space-6); padding-top: var(--space-4); border-top: 1px solid rgb(202 215 246 / 0.2); color: var(--on-cobalt-2); font-size: var(--step--1); }
.site-footer__legal p { margin: 0; }
@media (max-width: 48rem) { .site-footer__inner { grid-template-columns: 1fr; } }

/* ---------- WordPress-klasser ---------- */
.alignleft { float: left; margin: 0 1.5rem 1rem 0; }
.alignright { float: right; margin: 0 0 1rem 1.5rem; }
.aligncenter { margin-inline: auto; }
.wp-caption-text, figcaption { font-size: var(--step--1); color: var(--ink-2); margin-top: 0.5rem; }

/* ---------- Bevægelse ---------- */
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
	}
	.stroke--found { stroke-dashoffset: 0; }
}

@media print {
	.site-header, .site-footer, .puzzle__actions, .bbs-form { display: none; }
	body { background: #fff; }
}

/* Samtykke-afkrydsning i nyhedsbrevsformularen */
.bbs-check { display: flex; gap: 0.6rem; align-items: flex-start; font-weight: 400 !important; cursor: pointer; margin-bottom: 0.35rem; }
.bbs-check input { width: 1.4rem; height: 1.4rem; margin-top: 0.1rem; flex: none; accent-color: var(--cobalt); }
.on-cobalt .bbs-check input, .notify .bbs-check input { accent-color: var(--yolk); }

/* Tabeller i tekstsider stables på små skærme (ingen vandret scroll) */
.prose .wp-block-table { margin: var(--space-4) 0; }
@media (max-width: 40rem) {
	.prose table, .prose tbody, .prose tr, .prose td { display: block; width: 100%; }
	.prose thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
	.prose tr { padding-block: var(--space-2); border-bottom: 1px solid var(--line); }
	.prose td { border: 0; padding: 0.15rem 0; }
	.prose td:first-child { font-weight: 700; color: var(--cobalt-night); }
}
