/* ==========================================================================
   Zweeden 2 — williamvanzweeden.nl
   Midnight sun: a deep violet-blue night, a low orange glow on the horizon.
   Literata (italic, light) tells the stories; Schibsted Grotesk does the work.
   ========================================================================== */

:root {
	--night: #0c0e17;
	--night-2: #10131e;
	--card: #151926;
	--line: #222739;
	--line-2: #30364f;
	--ink: #eeebf3;
	--soft: #cdcad9;
	--muted: #9a9cb2;
	--sun: #ffb37c;
	--sun-deep: #f0743a;
	--haze: #6b5bd6;

	--c-sun: #ff9a5c;
	--c-honey: #ffc21a;
	--c-violet: #9381ff;
	--c-teal: #2fd1b0;
	--c-green: #4fdc8c;
	--c-rose: #ff7aa2;
	--c-sky: #5aa8ff;

	--ui: "Schibsted Grotesk", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
	--read: "Literata", ui-serif, Georgia, serif;

	--g: clamp(1rem, 4vw, 2.75rem);
	--wide: 1240px;
	--measure: 700px;
	--header-h: 88px;

	color-scheme: dark;
}

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

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

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 1rem); }

body {
	margin: 0;
	background: var(--night);
	color: var(--ink);
	font-family: var(--read);
	font-size: 1.0625rem;
	line-height: 1.65;
	font-optical-sizing: auto;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, h4, h5, h6 { margin: 0; font-family: var(--ui); line-height: 1.15; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
figure { margin: 0; }

::selection { background: var(--sun); color: var(--night); }

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

.wrap { width: 100%; max-width: calc(var(--wide) + 2 * var(--g)); margin-inline: auto; padding-inline: var(--g); }
.measure { width: 100%; max-width: calc(var(--measure) + 2 * var(--g)); margin-inline: auto; padding-inline: var(--g); }

.visually-hidden, .screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; overflow: hidden;
	clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

.skip-link {
	position: absolute; left: 1rem; top: -100px; z-index: 100;
	padding: .75rem 1rem; border-radius: 8px;
	background: var(--ink); color: var(--night); font: 600 1rem var(--ui);
}
.skip-link:focus { top: 1rem; }

/* Buttons & links ------------------------------------------------------- */

.btn,
.wp-block-button__link,
input[type="submit"] {
	display: inline-flex; align-items: center; justify-content: center;
	min-height: 48px; padding: .8rem 1.4rem;
	border: 0; border-radius: 999px;
	background: var(--ink); color: var(--night);
	font: 600 1rem/1 var(--ui); text-decoration: none; white-space: nowrap;
	cursor: pointer;
	transition: background-color .2s ease, color .2s ease, box-shadow .2s ease;
}
.btn:hover, .wp-block-button__link:hover, input[type="submit"]:hover { background: var(--sun); color: var(--night); }
.btn--light { background: var(--ink); color: var(--night); }
.btn--ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line-2); }
.btn--ghost:hover { background: transparent; color: var(--sun); box-shadow: inset 0 0 0 1.5px var(--sun); }
.btn--sun { background: var(--sun); color: #1b0d03; }
.btn--sun:hover { background: var(--ink); color: var(--night); }

.link-strong {
	font: 600 1rem var(--ui); color: var(--ink);
	text-decoration: underline; text-decoration-color: var(--sun);
	text-decoration-thickness: 2px; text-underline-offset: .32em;
}
.link-strong:hover { color: var(--sun); }

.meta {
	display: flex; flex-wrap: wrap; gap: .25rem 1.25rem;
	font: 500 .9rem var(--ui); color: var(--muted);
}

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

.site-header {
	position: sticky; top: 0; z-index: 50;
	transition: background-color .25s ease, box-shadow .25s ease;
}
.site-header.is-scrolled,
.nav-open .site-header {
	background: rgba(12, 14, 23, .82);
	-webkit-backdrop-filter: blur(14px) saturate(1.2);
	backdrop-filter: blur(14px) saturate(1.2);
	box-shadow: 0 1px 0 var(--line);
}
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 0; } }

.home .site-header { position: fixed; left: 0; right: 0; }
.home.admin-bar .site-header { top: 32px; }

.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: var(--header-h); }

.brand { display: inline-flex; align-items: center; gap: .7rem; text-decoration: none; }
.brand__logo { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; }
.brand__name { font: 700 1.08rem var(--ui); letter-spacing: -.01em; }

.site-nav .menu, .site-nav .sub-menu { list-style: none; margin: 0; padding: 0; }
.site-nav a { display: block; font: 500 1rem var(--ui); text-decoration: none; color: var(--soft); }
.site-nav a:hover, .site-nav .current-menu-item > a, .site-nav .current_page_item > a, .site-nav .current-menu-ancestor > a { color: var(--ink); }

.nav-toggle { display: none; }

@media (min-width: 900px) {
	.site-nav .menu { display: flex; gap: .25rem; }
	.site-nav .menu > li { position: relative; }
	.site-nav .menu > li > a {
		padding: .55rem .85rem;
		text-decoration: underline; text-decoration-color: transparent;
		text-decoration-thickness: 2px; text-underline-offset: .5em;
		transition: color .2s ease, text-decoration-color .2s ease;
	}
	.site-nav .menu > .current-menu-item > a,
	.site-nav .menu > .current_page_item > a,
	.site-nav .menu > .current-menu-ancestor > a { text-decoration-color: var(--sun); }
	.site-nav .sub-menu {
		position: absolute; top: calc(100% + .35rem); left: .25rem; min-width: 15rem;
		padding: .5rem; border: 1px solid var(--line); border-radius: 14px;
		background: var(--card); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .8);
		opacity: 0; visibility: hidden; transform: translateY(-4px);
		transition: opacity .18s ease, transform .18s ease, visibility 0s linear .18s;
	}
	.site-nav .sub-menu::before { content: ""; position: absolute; inset: -.6rem 0 auto; height: .6rem; }
	.site-nav li:hover > .sub-menu, .site-nav li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
	.site-nav .sub-menu a { padding: .55rem .75rem; border-radius: 9px; }
	.site-nav .sub-menu a:hover { background: var(--night-2); color: var(--sun); }
}

@media (max-width: 899.98px) {
	.nav-toggle {
		display: inline-flex; align-items: center; gap: .6rem; min-height: 44px;
		padding: .5rem .25rem .5rem .75rem; border: 0; background: none; color: var(--ink);
		font: 600 .95rem var(--ui); cursor: pointer;
	}
	.nav-toggle__bars, .nav-toggle__bars::before, .nav-toggle__bars::after {
		display: block; width: 20px; height: 2px; border-radius: 2px; background: currentColor;
		transition: transform .2s ease, background-color .2s ease;
	}
	.nav-toggle__bars { position: relative; }
	.nav-toggle__bars::before, .nav-toggle__bars::after { content: ""; position: absolute; left: 0; }
	.nav-toggle__bars::before { top: -6px; }
	.nav-toggle__bars::after { top: 6px; }
	.nav-open .nav-toggle__bars { background: transparent; }
	.nav-open .nav-toggle__bars::before { transform: translateY(6px) rotate(45deg); }
	.nav-open .nav-toggle__bars::after { transform: translateY(-6px) rotate(-45deg); }

	.site-nav {
		display: none; position: absolute; left: 0; right: 0; top: 100%;
		max-height: calc(100dvh - var(--header-h)); overflow-y: auto;
		padding: .5rem var(--g) 2rem; background: var(--night);
		border-bottom: 1px solid var(--line);
	}
	.nav-open .site-nav { display: block; }
	.site-nav .menu > li { border-bottom: 1px solid var(--line); }
	.site-nav .menu > li > a { padding: 1.05rem 0; font: italic 300 1.9rem var(--read); color: var(--ink); }
	.site-nav .sub-menu { padding: 0 0 1rem 1rem; }
	.site-nav .sub-menu a { padding: .4rem 0; }
}

/* Hero ------------------------------------------------------------------ */

.hero {
	position: relative; isolation: isolate; overflow: hidden;
	display: grid; align-items: end;
	min-height: min(100svh, 940px);
}

.hero {
	/* Defaults (no JavaScript): early evening. sky.js sets these from the visitor's clock. */
	--sky-top: #10142f; --sky-mid: #261b40; --sky-bot: #5e2a3a;
	--horizon-color: #ff8648; --horizon: 1; --glow: .9; --stars: .06;
	--glow-color: #ff9a5c; --disc: #ff8a4c;
	--sun-x: 80%; --sun-y: 2%;
}
.hero__sky {
	position: absolute; inset: 0; z-index: -1; overflow: hidden;
	background:
		radial-gradient(55% 40% at 14% -8%, rgba(107, 91, 214, .22) 0%, transparent 70%),
		linear-gradient(180deg, var(--sky-top) 0%, var(--sky-mid) 58%, var(--sky-bot) 100%);
}
.hero__stars {
	position: absolute; inset: 0 0 25% 0;
	background: url(../img/stars.svg) 0 0 / 800px 500px repeat;
	opacity: var(--stars);
	-webkit-mask-image: linear-gradient(180deg, #000 30%, transparent);
	mask-image: linear-gradient(180deg, #000 30%, transparent);
}
.hero__horizon {
	position: absolute; left: 0; right: 0; bottom: 0; height: 55%;
	background: radial-gradient(55% 100% at var(--sun-x) 100%, var(--horizon-color) 0%, transparent 72%);
	opacity: calc(var(--horizon) * .55);
}
.hero__horizon::after {
	content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
	background: linear-gradient(90deg, transparent, var(--horizon-color) var(--sun-x), transparent);
	opacity: .7;
}
.hero__sun { position: absolute; left: var(--sun-x); bottom: var(--sun-y); width: 0; height: 0; }
.hero__glow {
	position: absolute; left: 0; top: 0; width: 95vmin; aspect-ratio: 1; transform: translate(-50%, -50%);
	border-radius: 50%;
	background: radial-gradient(circle, var(--glow-color) 0%, transparent 62%);
	opacity: calc(var(--glow) * .55); filter: blur(24px);
}
.hero__disc {
	position: absolute; left: 0; top: 0; width: clamp(54px, 8vmin, 104px); aspect-ratio: 1; transform: translate(-50%, -50%);
	border-radius: 50%;
	background: radial-gradient(circle at 50% 42%, #fffaf2 0%, var(--disc) 62%, var(--glow-color) 100%);
	box-shadow: 0 0 50px 12px color-mix(in srgb, var(--glow-color) 55%, transparent);
}
.hero__clock { margin-top: 2.5rem; font: 500 .85rem var(--ui); color: rgba(238, 235, 243, .55); }
.hero__inner { text-shadow: 0 1px 34px rgba(6, 8, 18, .45); }

.hero__inner { position: relative; padding-block: calc(var(--header-h) + 4rem) clamp(4rem, 9vw, 7rem); }

.hero__title {
	max-width: 13ch;
	font-family: var(--read); font-style: italic; font-weight: 300;
	font-size: clamp(3.3rem, 1.4rem + 8.6vw, 10rem);
	line-height: .92; letter-spacing: -.035em;
	font-variation-settings: "opsz" 72;
}
.hero__title .flip { display: inline-block; transform-origin: 50% 62%; animation: zw-flip 1.2s cubic-bezier(.7, 0, .2, 1) .6s both; }
@keyframes zw-flip { from { transform: perspective(900px) rotateX(180deg); } to { transform: perspective(900px) rotateX(0deg); } }

.hero__subtitle { margin-top: clamp(1.6rem, 1rem + 1.6vw, 2.6rem); font: 500 clamp(1.15rem, 1rem + .8vw, 1.6rem)/1.3 var(--ui); color: var(--sun); }
.hero__intro { margin-top: 1.4rem; max-width: 40ch; font-size: clamp(1.05rem, 1rem + .3vw, 1.2rem); color: var(--soft); }
.hero__actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2.25rem; }

@media (prefers-reduced-motion: reduce) {
	.hero__title .flip { animation: none; }
	*, *::before, *::after { transition-duration: 0s !important; }
}

/* Section heads --------------------------------------------------------- */

.sec-head {
	display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between;
	gap: .75rem 3rem; margin-bottom: clamp(1.5rem, 3vw, 2.25rem);
}
.sec-title { font-weight: 700; font-size: clamp(2rem, 1.4rem + 2vw, 3rem); line-height: 1; letter-spacing: -.035em; }
.sec-title--small { font-size: clamp(1.6rem, 1.3rem + 1vw, 2.1rem); }
.sec-intro { max-width: 40ch; font-size: 1.15rem; color: var(--muted); }
.sec-head--make { align-items: end; }

/* Latest story ---------------------------------------------------------- */

.lead {
	display: grid; gap: 2.25rem; align-items: center;
	padding-top: clamp(4.5rem, 9vw, 7.5rem);
}
@media (min-width: 900px) { .lead { grid-template-columns: 7fr 5fr; gap: 4rem; } }
.lead__media { display: block; overflow: hidden; border-radius: 18px; background: var(--card); aspect-ratio: 4 / 3; }
.lead__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2, .7, .2, 1); }
.lead__media:hover img { transform: scale(1.025); }
.lead__title {
	margin: 1rem 0 1.1rem;
	font-family: var(--read); font-style: italic; font-weight: 350;
	font-size: clamp(2.4rem, 1.5rem + 3vw, 4rem); line-height: 1; letter-spacing: -.03em;
}
.lead__title a { text-decoration: none; }
.lead__title a:hover { color: var(--sun); }
.lead__dek { max-width: 36ch; margin-bottom: 1.75rem; font-size: 1.18rem; line-height: 1.6; color: var(--soft); }

/* Story index ----------------------------------------------------------- */

.index { padding-block: clamp(4.5rem, 8vw, 6.5rem) clamp(4.5rem, 9vw, 7.5rem); }
.rows { list-style: none; margin: 0; padding: 0; border-bottom: 1px solid var(--line); }
.row__link {
	display: grid; grid-template-columns: 1fr; gap: .2rem;
	padding: 1.3rem 0; border-top: 1px solid var(--line);
	text-decoration: none;
}
.row__date, .row__cats { font: 500 .9rem/1.8 var(--ui); color: var(--muted); }
.row__title { font: 600 clamp(1.15rem, 1rem + .7vw, 1.55rem)/1.25 var(--ui); letter-spacing: -.02em; transition: color .2s ease; }
.row__link:hover .row__title { color: var(--sun); }
@media (min-width: 900px) {
	.row__link { grid-template-columns: 8.5rem 1fr 13rem; gap: 2rem; align-items: baseline; }
	.row__cats { text-align: right; }
}

/* Rich rows on the Stories page */
.row--rich .row__main { display: grid; gap: .45rem; }
.row__excerpt { font-size: 1.02rem; line-height: 1.55; color: var(--muted); max-width: 60ch; }
.row__thumb { display: none; }
@media (min-width: 900px) {
	.row--rich .row__link { grid-template-columns: 8.5rem 1fr 11rem 128px; align-items: start; padding: 1.75rem 0; }
	.row--rich .row__date, .row--rich .row__cats { padding-top: .2rem; }
	.row__thumb { display: block; width: 128px; aspect-ratio: 1; border-radius: 12px; overflow: hidden; background: var(--card); }
	.row__thumb img { width: 100%; height: 100%; object-fit: cover; }
}
.index--page { padding-top: 0; }

/* Things I make --------------------------------------------------------- */

.make {
	padding-block: clamp(4.5rem, 9vw, 7.5rem);
	background: linear-gradient(180deg, var(--night-2), var(--night));
	border-top: 1px solid var(--line);
}
.make--page { border-top: 0; background: none; padding-top: 0; }
.make--more { margin-top: clamp(3rem, 6vw, 5rem); }

.shelf { display: grid; gap: 1.25rem; }
@media (min-width: 760px) { .shelf { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1040px) { .shelf { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.shelf .tile--wide { grid-column: 1 / -1; }
.shelf--single { grid-template-columns: 1fr !important; }

.tile {
	--glow: var(--c-sun);
	position: relative; isolation: isolate; overflow: hidden;
	display: flex; flex-direction: column;
	min-height: 23rem; padding: clamp(1.5rem, 3vw, 2.25rem);
	border: 1px solid var(--line); border-radius: 22px;
	background: var(--card);
}
.tile::before {
	content: ""; position: absolute; z-index: -1;
	top: -45%; right: -25%; width: 85%; aspect-ratio: 1; border-radius: 50%;
	background: var(--glow); opacity: .2; filter: blur(70px);
	transition: opacity .35s ease;
}
.tile:hover::before { opacity: .3; }
.tile--sun { --glow: var(--c-sun); }
.tile--honey { --glow: var(--c-honey); }
.tile--violet { --glow: var(--c-violet); }
.tile--teal { --glow: var(--c-teal); }
.tile--green { --glow: var(--c-green); }
.tile--rose { --glow: var(--c-rose); }
.tile--sky { --glow: var(--c-sky); }

.tile__copy { display: flex; flex-direction: column; flex: 1; }
.tile__mark { display: block; width: 46px; height: 46px; margin-bottom: 3.25rem; color: var(--glow); }
.tile__mark svg { width: 46px; height: 46px; }
.tile__name { font-weight: 700; font-size: clamp(1.7rem, 1.3rem + 1.2vw, 2.25rem); line-height: 1; letter-spacing: -.03em; }
.tile__name a { text-decoration: none; }
.tile__line { margin-top: .9rem; max-width: 34ch; font-size: 1.05rem; line-height: 1.5; color: var(--muted); }
.tile__buy { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-start; gap: .75rem 1.25rem; margin-top: auto; padding-top: 2rem; }
.tile__price { font: 500 .95rem var(--ui); color: var(--soft); }
.tile__links { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; margin-top: 1.1rem; font: 500 .9rem var(--ui); }
.tile__links a { color: var(--muted); text-underline-offset: .3em; text-decoration-color: var(--line-2); }
.tile__links a:hover { color: var(--glow); text-decoration-color: currentColor; }

.tile--wide { display: grid; gap: 2rem; align-items: center; min-height: 0; }
@media (min-width: 900px) { .tile--wide { grid-template-columns: 1fr auto; padding: 3rem 3.5rem; } }
.tile--wide::before { top: -60%; right: -10%; width: 70%; opacity: .26; }
.tile--wide .tile__name { font-size: clamp(2.3rem, 1.5rem + 2.6vw, 3.75rem); }
.tile--wide .tile__line { font-size: clamp(1.1rem, 1rem + .4vw, 1.3rem); max-width: 30ch; color: var(--soft); }

.tile__mark--big { width: 160px; height: 160px; padding: 0; margin: 0; justify-self: center; }
.tile__mark--big svg { width: 160px; height: 160px; }

.shelf--compact { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)) !important; }
.shelf--compact .tile { min-height: 19rem; }

.ring { position: relative; width: min(250px, 62vw); aspect-ratio: 1; justify-self: center; }
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 9; }
.ring__track { stroke: rgba(255, 255, 255, .08); }
.ring__val { stroke: var(--glow, var(--c-green)); stroke-linecap: round; }
.ring span { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; font-family: var(--ui); }
.ring b { font-size: 4.4rem; font-weight: 700; line-height: 1; letter-spacing: -.04em; }
.ring small { font-size: .95rem; color: var(--muted); }

/* About strip ----------------------------------------------------------- */

.about-strip { display: grid; gap: 2.5rem; align-items: center; padding-block: clamp(4.5rem, 9vw, 7.5rem); }
@media (min-width: 900px) { .about-strip { grid-template-columns: 4fr 7fr; gap: 5rem; } }
.about-strip__photo { overflow: hidden; border-radius: 18px; aspect-ratio: 4 / 5; background: var(--card); }
.about-strip__photo img { width: 100%; height: 100%; object-fit: cover; }
.about-strip__text .sec-title { max-width: 16ch; }
.about-strip__text p { margin: 1.25rem 0 1.75rem; max-width: 46ch; font-size: 1.2rem; line-height: 1.65; color: var(--soft); }

/* Stay in the loop ------------------------------------------------------ */

.loop { padding-block: clamp(3.5rem, 7vw, 5rem); border-top: 1px solid var(--line); }
.loop__inner { display: grid; gap: 1.75rem; align-items: center; }
@media (min-width: 900px) { .loop__inner { grid-template-columns: 1fr 1.1fr; gap: 4rem; } }
.loop__title { font-weight: 700; font-size: clamp(1.9rem, 1.4rem + 1.8vw, 2.75rem); line-height: 1; letter-spacing: -.035em; }
.loop__text { margin-top: .7rem; font-size: 1.1rem; color: var(--muted); }
.loop__talk { margin-top: 1rem; font: 500 .98rem var(--ui); color: var(--muted); }
.loop__talk a { color: var(--sun); text-underline-offset: .3em; }

.subscribe {
	display: flex; gap: .5rem; padding: .4rem;
	border: 1px solid var(--line-2); border-radius: 999px; background: var(--card);
	transition: border-color .2s ease;
}
.subscribe:focus-within { border-color: var(--sun); }
.subscribe input { flex: 1; min-width: 0; padding: 0 1rem; border: 0; background: none; color: var(--ink); font: 1.05rem var(--read); outline: none; }
.subscribe input::placeholder { color: var(--muted); }
.subscribe-note { margin-top: .75rem; font: 500 .92rem var(--ui); color: var(--sun); }

/* Page heads ------------------------------------------------------------ */

.page-head { padding-block: calc(clamp(3rem, 7vw, 6rem)) clamp(2.5rem, 5vw, 4rem); }
.page-head__title {
	max-width: 16ch;
	font-family: var(--read); font-style: italic; font-weight: 300;
	font-size: clamp(3rem, 1.6rem + 5.4vw, 6.5rem); line-height: .95; letter-spacing: -.035em;
}
.page-head__intro { margin-top: 2rem; max-width: 44ch; font-size: clamp(1.15rem, 1rem + .5vw, 1.4rem); line-height: 1.5; color: var(--soft); }
.page-head__intro p { margin: 0; }

/* Story ----------------------------------------------------------------- */

.story__head { padding-block: clamp(3rem, 7vw, 5.5rem) clamp(2.25rem, 4vw, 3rem); }
.story__cats { font: 600 .92rem var(--ui); color: var(--sun); }
.story__cats a { text-decoration: none; }
.story__cats a:hover { text-decoration: underline; text-underline-offset: .25em; }
.story__title {
	margin-top: 1rem; max-width: 17ch;
	font-family: var(--read); font-style: italic; font-weight: 300;
	font-size: clamp(2.8rem, 1.5rem + 5vw, 6rem); line-height: .96; letter-spacing: -.035em;
}
.story__dek { margin-top: 1.4rem; max-width: 42ch; font-size: clamp(1.15rem, 1rem + .5vw, 1.4rem); line-height: 1.5; color: var(--soft); }
.story__head .meta { margin-top: 1.75rem; }

.story__figure img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 18px; }
.story__figure figcaption { margin-top: .75rem; font: .88rem var(--ui); color: var(--muted); }

/* Long-form text -------------------------------------------------------- */

.entry-content { padding-top: clamp(3rem, 6vw, 4.5rem); }
.page-content { padding-bottom: clamp(4rem, 8vw, 6rem); }
.entry-content--full { padding-inline: 0; }
.is-elementor .entry-content--full,
.site-main--canvas .entry-content { padding-top: 0; }

.measure.entry-content {
	font-size: clamp(1.08rem, 1rem + .3vw, 1.2rem); line-height: 1.78; color: var(--soft);
}
.entry-content > * + * { margin-top: 1.4em; }
.entry-content > :first-child { margin-top: 0; }
.entry-content strong { color: var(--ink); font-weight: 650; }

.entry-content h2 { margin-top: 2.3em; color: var(--ink); font-weight: 700; font-size: clamp(1.5rem, 1.25rem + 1vw, 2rem); letter-spacing: -.025em; }
.entry-content h3 { margin-top: 2em; color: var(--ink); font-weight: 700; font-size: 1.35rem; letter-spacing: -.015em; }
.entry-content h4 { margin-top: 1.8em; color: var(--ink); font-size: 1.1rem; }
.entry-content :is(h2, h3, h4) + * { margin-top: .65em; }

.entry-content a { color: var(--sun); text-decoration-thickness: 1px; text-underline-offset: .2em; }
.entry-content a:hover { text-decoration-thickness: 2px; }

.entry-content ul, .entry-content ol { padding-left: 1.3em; }
.entry-content li + li { margin-top: .4em; }
.entry-content li::marker { color: var(--sun); }

.entry-content blockquote,
.entry-content .wp-block-quote {
	margin-inline: 0; padding: .1em 0 .1em 1.4rem; border-left: 2px solid var(--sun);
	font-style: italic; font-weight: 350; font-size: 1.3em; line-height: 1.5; color: var(--ink);
}
.entry-content blockquote p + p { margin-top: .8em; }
.entry-content blockquote cite { display: block; margin-top: .8rem; font: normal 600 .85rem var(--ui); color: var(--muted); }

.entry-content img { border-radius: 14px; }
.entry-content figcaption, .entry-content .wp-element-caption { margin-top: .6rem; font: .88rem/1.5 var(--ui); color: var(--muted); }
.entry-content hr { height: 1px; margin-block: 3em; border: 0; background: var(--line); }
.entry-content code { padding: .1em .35em; border-radius: 6px; background: var(--card); font-size: .88em; }
.entry-content pre { overflow-x: auto; padding: 1.25rem 1.4rem; border: 1px solid var(--line); border-radius: 12px; background: var(--night-2); font-size: .9rem; }
.entry-content pre code { padding: 0; background: none; }
.entry-content table { width: 100%; border-collapse: collapse; font: .95rem/1.5 var(--ui); }
.entry-content th, .entry-content td { padding: .7rem .5rem; border-bottom: 1px solid var(--line); text-align: left; }

.measure > .alignwide { width: min(1100px, 100vw - 2 * var(--g)); max-width: none; margin-left: 50%; transform: translateX(-50%); }
.measure > .alignfull { width: 100vw; max-width: none; margin-left: 50%; transform: translateX(-50%); }
.measure > .alignfull img { border-radius: 0; }
.alignleft { float: left; margin: .3em 1.5em 1em 0; }
.alignright { float: right; margin: .3em 0 1em 1.5em; }
.aligncenter { margin-inline: auto; }

.entry-content .wp-block-media-text { gap: 2rem; }
.entry-content .wp-block-columns { gap: 2.5rem; }
.entry-content .has-large-font-size { font-size: clamp(1.3rem, 1.1rem + .8vw, 1.6rem) !important; line-height: 1.5; color: var(--ink); }

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

.story__foot { margin-top: clamp(3rem, 6vw, 4rem); }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0; padding: 0; list-style: none; }
.chips a { display: inline-block; padding: .35rem .85rem; border: 1px solid var(--line-2); border-radius: 999px; font: 500 .88rem/1.4 var(--ui); color: var(--soft); text-decoration: none; }
.chips a:hover { border-color: var(--sun); color: var(--sun); }

.author { display: grid; grid-template-columns: 64px 1fr; gap: 1.25rem; margin-top: 2.5rem; padding-top: 2rem; border-top: 1px solid var(--line); }
.author__avatar { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; }
.author__name { font: 700 1.1rem var(--ui); }
.author__bio { margin-top: .35rem; font-size: 1rem; line-height: 1.6; color: var(--muted); }

.led-to { padding-top: clamp(4rem, 8vw, 6rem); }
.led-to .sec-title { margin-bottom: 1.5rem; }
.index--after { padding-top: clamp(4rem, 8vw, 6rem); }

/* Product pages --------------------------------------------------------- */

.product-head { --glow: var(--c-sun); position: relative; isolation: isolate; overflow: hidden; border-bottom: 1px solid var(--line); }
.product-head::before {
	content: ""; position: absolute; z-index: -1;
	top: -40%; right: -10%; width: 70vw; max-width: 1000px; aspect-ratio: 1; border-radius: 50%;
	background: var(--glow); opacity: .2; filter: blur(110px);
}
.product-head--sun { --glow: var(--c-sun); }
.product-head--honey { --glow: var(--c-honey); }
.product-head--violet { --glow: var(--c-violet); }
.product-head--teal { --glow: var(--c-teal); }
.product-head--green { --glow: var(--c-green); }
.product-head--rose { --glow: var(--c-rose); }
.product-head--sky { --glow: var(--c-sky); }

.product-head__inner { display: grid; gap: 2.5rem; align-items: center; padding-block: clamp(3rem, 8vw, 6.5rem); }
@media (min-width: 900px) { .product-head__inner { grid-template-columns: 1fr auto; gap: 4rem; } }
.product-head__label { font: 600 .92rem var(--ui); color: var(--glow); }
.product-head__label a { text-decoration: none; }
.product-head__name { margin-top: .9rem; font-weight: 800; font-size: clamp(3rem, 1.6rem + 5.6vw, 7rem); line-height: .92; letter-spacing: -.045em; }
.product-head__line { margin-top: 1.4rem; max-width: 30ch; font-style: italic; font-weight: 350; font-size: clamp(1.25rem, 1rem + 1vw, 1.8rem); line-height: 1.35; color: var(--soft); }
.product-head__buy { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; margin-top: 2.25rem; }
.product-head__price { font: 600 1.05rem var(--ui); }
.product-head__story { margin-top: 1.25rem; font: 500 .98rem var(--ui); }
.product-head__story a { color: var(--muted); text-underline-offset: .3em; }
.product-head__story a:hover { color: var(--glow); }
.product-head__mark { display: block; width: clamp(140px, 22vw, 240px); color: var(--glow); justify-self: center; }
.product-head__mark svg { width: 100%; height: auto; }
.product-head .ring { width: min(280px, 64vw); }

.buy-band { --glow: var(--c-sun); }
.buy-band--honey { --glow: var(--c-honey); }
.buy-band--violet { --glow: var(--c-violet); }
.buy-band--teal { --glow: var(--c-teal); }
.buy-band--green { --glow: var(--c-green); }
.buy-band--rose { --glow: var(--c-rose); }
.buy-band--sky { --glow: var(--c-sky); }
.buy-band__inner {
	position: relative; isolation: isolate; overflow: hidden;
	display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem 3rem;
	padding-block: clamp(2rem, 4vw, 3rem);
	border: 1px solid var(--line); border-radius: 22px; background: var(--card);
	padding-inline: clamp(1.5rem, 4vw, 3rem);
}
.buy-band { max-width: calc(var(--wide) + 2 * var(--g)); margin-inline: auto; padding-inline: var(--g); }
.buy-band .wrap { max-width: none; }
.buy-band__inner::before { content: ""; position: absolute; z-index: -1; inset: -80% -10% auto auto; width: 60%; aspect-ratio: 1; border-radius: 50%; background: var(--glow); opacity: .22; filter: blur(80px); }
.buy-band__title { font-weight: 700; font-size: clamp(1.8rem, 1.3rem + 1.8vw, 2.6rem); letter-spacing: -.03em; }
.buy-band__action { display: flex; align-items: center; gap: 1.25rem; }
.buy-band__price { font: 600 1.05rem var(--ui); }

/* Forms (contact, comments, search) ------------------------------------- */

.letterbox { max-width: 34rem; }
.letterbox .field { margin: 0 0 1.25rem; }
.letterbox label, .comment-form label { display: block; margin-bottom: .45rem; font: 600 .92rem var(--ui); color: var(--ink); }
.letterbox input, .letterbox textarea,
.comment-form input:not([type="submit"]):not([type="checkbox"]), .comment-form textarea,
.search-form input[type="search"] {
	width: 100%; padding: .85rem 1rem;
	border: 1px solid var(--line-2); border-radius: 12px;
	background: var(--card); color: var(--ink); font: 1.02rem/1.5 var(--read);
	transition: border-color .15s ease;
}
.letterbox textarea { min-height: 10rem; resize: vertical; }
.letterbox input:focus, .letterbox textarea:focus, .comment-form :is(input, textarea):focus, .search-form input:focus { outline: none; border-color: var(--sun); }
.letterbox .hp { position: absolute; left: -9999px; }
.form-note { margin-bottom: 1.25rem; padding: .9rem 1rem; border-radius: 12px; font: .95rem var(--ui); background: var(--card); }
.form-note--ok { color: var(--c-green); }
.form-note--error { color: var(--c-rose); }
.search-form { display: flex; gap: .5rem; max-width: 34rem; }

.comments { padding-top: 3rem; }
.comment-list { list-style: none; margin: 0 0 3rem; padding: 0; }
.comment-list .comment { padding: 1.5rem 0; border-bottom: 1px solid var(--line); }
.comment-list .children { list-style: none; padding-left: 1.5rem; }

.pagination { margin-top: 3rem; }
.pagination .nav-links { display: flex; flex-wrap: wrap; gap: .4rem; font-family: var(--ui); }
.pagination .page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; height: 44px; padding: 0 .9rem; border-radius: 999px; font-weight: 600; text-decoration: none; color: var(--soft); }
.pagination a.page-numbers:hover { background: var(--card); color: var(--ink); }
.pagination .current { background: var(--ink); color: var(--night); }

.empty { padding-block: 2rem; color: var(--muted); }
.empty > * + * { margin-top: 1.5rem; }

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

.site-footer { border-top: 1px solid var(--line); }
.site-footer__inner {
	display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
	gap: 1rem 2rem; padding-block: 2.25rem 2.5rem;
	font: 500 .95rem var(--ui); color: var(--muted);
}
.site-footer__label { font: italic 400 1rem var(--read); }
.footer-menu { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; margin: 0; padding: 0; list-style: none; }
.footer-menu a { text-decoration: none; }
.footer-menu a:hover { color: var(--ink); }

/* Elementor on a dark site: point its global colours at the theme. ------ */

body[class*="elementor-kit-"] {
	--e-global-color-primary: var(--ink) !important;
	--e-global-color-secondary: var(--soft) !important;
	--e-global-color-text: var(--soft) !important;
	--e-global-color-accent: var(--sun) !important;
}
.entry-content--full .elementor-section.elementor-section-boxed > .elementor-container { max-width: var(--wide); }
.elementor-widget-text-editor { font-family: var(--read); }
.elementor-heading-title { font-family: var(--ui); letter-spacing: -.02em; }

@media (max-width: 899.98px) {
	.product-head__mark { order: -1; width: 72px; justify-self: start; }
	.product-head .ring { order: -1; width: 150px; justify-self: start; }
	.product-head .ring b { font-size: 2.6rem; }
	.product-head .ring small { font-size: .8rem; }
}
.hero .btn { text-shadow: none; }

/* Brand logo: show the whole mark, never crop it. */
.brand { gap: 1rem; }
.brand__logo { width: auto; height: 64px; max-width: 72px; margin-block: .5rem; border-radius: 0; object-fit: contain; }
@media (max-width: 600px) { .brand__logo { height: 52px; } }

/* Cookie bars from consent plugins: bring them into the night palette.
   Known plugins by name, plus any bar added straight to <body> with "cookie" in its id or class. */
:is(#cookie-notice, #cookie-law-info-bar, .cky-consent-container, .cky-consent-bar, #catapult-cookie-bar, .cc-window, #moove_gdpr_cookie_info_bar, #cookie-bar, .cookie-bar, .cookie-notice-container, #eu-cookie-law, #cookie-banner, .cookies-eu-banner, #wpgdprc-consent-bar, #cmplz-cookiebanner-container .cmplz-cookiebanner, .wpcc-container),
body > :is([id*="cookie" i], [class*="cookie-bar" i], [class*="cookie-notice" i], [class*="cookie-banner" i], [class*="cookie-consent" i]) {
	background: var(--card) !important;
	color: var(--soft) !important;
	border: 0 !important;
	border-top: 1px solid var(--line-2) !important;
	box-shadow: 0 -20px 40px -20px rgba(0, 0, 0, .6) !important;
	font: 500 .95rem/1.5 var(--ui) !important;
	text-align: left !important;
}
:is(#cookie-notice, #cookie-law-info-bar, .cky-consent-container, .cky-consent-bar, #catapult-cookie-bar, .cc-window, #moove_gdpr_cookie_info_bar, #cookie-bar, .cookie-bar, .cookie-notice-container, #eu-cookie-law, #cookie-banner, .cookies-eu-banner, #wpgdprc-consent-bar, #cmplz-cookiebanner-container .cmplz-cookiebanner, .wpcc-container),
body > :is([id*="cookie" i], [class*="cookie-bar" i], [class*="cookie-notice" i], [class*="cookie-banner" i], [class*="cookie-consent" i]) {
	& * { color: inherit !important; font-family: var(--ui) !important; background-color: transparent; }
	& a { color: var(--sun) !important; text-decoration: underline !important; text-underline-offset: .25em; font-weight: 600 !important; }
	& :is(a, button) { margin: .35rem 0 .35rem .9rem !important; vertical-align: middle; }
	& :is(a[class*="close" i], button[class*="close" i], [aria-label*="close" i], [aria-label*="sluit" i]) {
		color: var(--muted) !important; text-decoration: none !important; font-weight: 500 !important;
		background: transparent !important; padding: .25rem .5rem !important; min-height: 0 !important;
	}
	& :is(button, .button, [role="button"], a[class*="accept" i], a[class*="btn" i], a[id*="accept" i]) {
		display: inline-flex; align-items: center; min-height: 40px; padding: .55rem 1.1rem !important;
		border: 0 !important; border-radius: 999px !important;
		background: var(--ink) !important; color: var(--night) !important; text-decoration: none !important;
	}
}
