/*
Theme Name: Konekton Slider
Description: The theme of konekton.net: sky-blue zip tape and brass teeth on white.
Version: 1.0.1
License: GPL-2.0-or-later
Text Domain: konekton-slider
*/

/* ── Fonts, shipped with the theme (SIL Open Font License) ── */
@font-face {
	font-family: "Familjen Grotesk";
	src: url("assets/fonts/familjen-grotesk.woff2") format("woff2");
	font-weight: 400 700;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: "Petrona";
	src: url("assets/fonts/petrona.woff2") format("woff2");
	font-weight: 400 700;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: "Petrona";
	src: url("assets/fonts/petrona-italic.woff2") format("woff2");
	font-weight: 400 700;
	font-style: italic;
	font-display: swap;
}

/* ── Tokens ── */
:root {
	--sky: #0a86c8;        /* zip tape */
	--sky-deep: #066a9e;   /* links, tape that carries text */
	--tint: #e8f4fb;       /* tape tint panels */
	--brass: #b8913a;      /* teeth, snaps */
	--brass-deep: #7a5e1f; /* brass that has to be read */
	--ink: #1b2733;        /* graphite text and outlines */
	--muted: #5a6673;
	--snap: #d9dee3;       /* snap grey: lines, footer */
	--hem: #f3f6f8;        /* ad space */
	--paper: #ffffff;

	--head: "Familjen Grotesk", "Helvetica Neue", Arial, sans-serif;
	--body: "Petrona", Georgia, "Times New Roman", serif;

	--measure: 35rem;      /* about 66 characters of Petrona at 18px */
	--wide: 48rem;
	--page: 74rem;
	--gap: clamp(1.25rem, 4vw, 2.5rem);
	--radius: 16px;

	/* A closed zip, horizontal: interlocked brass teeth on sky tape. */
	--zip-closed:
		repeating-linear-gradient(90deg, var(--brass) 0 4px, transparent 4px 8px) 0 3px / 100% 6px no-repeat,
		repeating-linear-gradient(90deg, transparent 0 4px, var(--brass) 4px 8px) 0 5px / 100% 6px no-repeat,
		linear-gradient(var(--sky), var(--sky));
	/* The same zip, open: two rows of teeth on their own tapes, apart. */
	--zip-open:
		repeating-linear-gradient(90deg, var(--brass) 0 4px, transparent 4px 8px) 0 2px / 100% 4px no-repeat,
		repeating-linear-gradient(90deg, transparent 0 4px, var(--brass) 4px 8px) 0 8px / 100% 4px no-repeat,
		linear-gradient(var(--sky), var(--sky)) 0 0 / 100% 2px no-repeat,
		linear-gradient(var(--sky), var(--sky)) 0 12px / 100% 2px no-repeat;
	/* A closed zip, vertical: the joints of the chain. */
	--zip-down:
		repeating-linear-gradient(180deg, var(--brass) 0 4px, transparent 4px 8px) 3px 0 / 6px 100% no-repeat,
		repeating-linear-gradient(180deg, transparent 0 4px, var(--brass) 4px 8px) 5px 0 / 6px 100% no-repeat,
		linear-gradient(var(--sky), var(--sky));
}

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

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

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

img { max-width: 100%; height: auto; }

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

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

h1, h2, h3, h4 {
	font-family: var(--head);
	font-weight: 700;
	line-height: 1.15;
	letter-spacing: -0.01em;
	color: var(--ink);
	text-wrap: balance;
}

.kn-skip {
	position: absolute;
	left: 1rem;
	top: -4rem;
	z-index: 100;
	padding: 0.6rem 1rem;
	background: var(--ink);
	color: var(--paper);
	font-family: var(--head);
	font-weight: 600;
	border-radius: 999px;
}
.kn-skip:focus { top: 1rem; color: var(--paper); }

.kn-main { display: block; outline: none; padding-bottom: 4rem; }

/* ── Header: the logo, the tape menu and the zip that closes as you read ── */
.kn-top {
	position: sticky;
	top: 0;
	z-index: 50;
	background: var(--paper);
}
.kn-top__row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	max-width: var(--page);
	margin: 0 auto;
	padding: 0.9rem var(--gap) 0.8rem;
}
.kn-top__logo { display: block; line-height: 0; }
.kn-top__logo img { width: clamp(150px, 20vw, 196px); height: auto; }

.kn-tape__list {
	display: flex;
	gap: 0.25rem;
	margin: 0;
	padding: 0.3rem;
	list-style: none;
	background: var(--sky-deep);
	border-radius: 999px;
	box-shadow: inset 0 0 0 2px var(--sky-deep), inset 0 0 0 4px rgba(255, 255, 255, 0.18);
}
.kn-tape__list a {
	display: block;
	padding: 0.42rem 1.05rem;
	border-radius: 999px;
	color: var(--paper);
	font-family: var(--head);
	font-weight: 600;
	font-size: 1rem;
	line-height: 1.3;
	text-decoration: none;
}
.kn-tape__list a:hover { background: rgba(255, 255, 255, 0.16); color: var(--paper); }
.kn-tape__list .current-menu-item > a,
.kn-tape__list .current-menu-parent > a,
.kn-tape__list .current-post-parent > a,
.kn-tape__list .current-category-ancestor > a {
	background: var(--paper);
	color: var(--sky-deep);
}
.kn-tape__list a:focus-visible { outline-color: var(--paper); }

.kn-top__toggle { display: none; }

.kn-zip {
	--closed: 0;
	position: relative;
	height: 14px;
	background: var(--zip-open);
}
.kn-zip__closed {
	position: absolute;
	inset: 0 auto 0 0;
	width: calc(var(--closed) * 100%);
	background: var(--zip-closed);
}
.kn-zip__slider {
	position: absolute;
	top: -6px;
	left: calc(var(--closed) * (100% - 44px));
	width: 44px;
	height: 26px;
	background: url("assets/img/slider.svg") center / contain no-repeat;
}

/* ── Shared: the joint between two links of the chain ── */
.kn-joint {
	width: 14px;
	height: 2.75rem;
	margin: 0 auto;
	background: var(--zip-down);
	border-left: 2px solid var(--ink);
	border-right: 2px solid var(--ink);
}

/* ── Home ── */
.kn-hero {
	max-width: var(--page);
	margin: 0 auto;
	padding: clamp(2.5rem, 8vw, 6rem) var(--gap) 0;
	text-align: center;
}
.kn-hero__line {
	max-width: 16ch;
	margin: 0 auto;
	font-size: clamp(2.5rem, 7.2vw, 5.25rem);
	line-height: 1.02;
	letter-spacing: -0.025em;
}
.kn-hero__lead {
	max-width: 34rem;
	margin: 1.4rem auto 0;
	color: var(--muted);
	font-size: clamp(1.125rem, 2vw, 1.3rem);
}
.kn-hero__start {
	width: 44px;
	height: 26px;
	margin: 2.5rem auto 0;
	background: url("assets/img/slider.svg") center / contain no-repeat;
	transform: rotate(-90deg);
}
.kn-hero__start + * { margin-top: 0; }

.kn-chain {
	max-width: calc(64rem + 2 * var(--gap));
	margin: 0 auto;
	padding: 0 var(--gap);
}
.kn-chain > .kn-card:not(.kn-card--lead),
.kn-chain > .kn-link {
	max-width: 46rem;
	margin-left: auto;
	margin-right: auto;
}
.kn-hero + .kn-chain::before {
	content: "";
	display: block;
	width: 14px;
	height: 2.5rem;
	margin: 0 auto;
	background: var(--zip-down);
	border-left: 2px solid var(--ink);
	border-right: 2px solid var(--ink);
}
.kn-chain__title {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
}
.kn-chain--related { margin-top: 4rem; }
.kn-chain--related .kn-chain__title {
	position: static;
	width: auto;
	height: auto;
	overflow: visible;
	clip-path: none;
	margin: 0 0 1.25rem;
	font-size: 1.5rem;
	text-align: center;
}

/* A link of the chain: an outlined card with a stitched line inside it. */
.kn-card,
.kn-link {
	position: relative;
	background: var(--paper);
	border: 2px solid var(--ink);
	border-radius: var(--radius);
}
.kn-card::after,
.kn-link::after {
	content: "";
	position: absolute;
	inset: 7px;
	border: 1.5px dashed var(--snap);
	border-radius: calc(var(--radius) - 6px);
	pointer-events: none;
}
.kn-card {
	display: grid;
	grid-template-columns: minmax(0, 12rem) minmax(0, 1fr);
	gap: 1.5rem;
	align-items: center;
	padding: 1.5rem;
}
.kn-card--lead {
	grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
	gap: 2.5rem;
	padding: 2.25rem;
}
.kn-card--page { grid-template-columns: minmax(0, 1fr); }
.kn-card__figure {
	position: relative;
	z-index: 1;
	background: var(--tint);
	border-radius: 10px;
	line-height: 0;
	overflow: hidden;
}
.kn-card__drawing { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: contain; }
.kn-card__text { position: relative; z-index: 1; }
.kn-card__niche {
	display: inline-block;
	margin: 0 0 0.6rem;
	padding: 0.1rem 0.7rem;
	border-radius: 999px;
	background: var(--tint);
	color: var(--sky-deep);
	font-family: var(--head);
	font-weight: 600;
	font-size: 0.875rem;
}
.kn-card__title {
	margin: 0 0 0.6rem;
	font-size: clamp(1.25rem, 2.4vw, 1.5rem);
}
.kn-card--lead .kn-card__title { font-size: clamp(1.5rem, 3.4vw, 2.1rem); }
.kn-card__title a { color: var(--ink); text-decoration: none; }
.kn-card__title a::before { content: ""; position: absolute; inset: 0; z-index: 2; border-radius: var(--radius); }
.kn-card__title a:hover { color: var(--sky-deep); }
.kn-card:has(.kn-card__title a:focus-visible) { outline: 3px solid var(--sky-deep); outline-offset: 4px; }
.kn-card__title a:focus-visible { outline: none; }
.kn-card__excerpt { margin: 0 0 0.8rem; color: var(--ink); }
.kn-card__date {
	margin: 0;
	color: var(--muted);
	font-family: var(--head);
	font-size: 0.875rem;
	display: flex;
	flex-wrap: wrap;
	gap: 0 1rem;
}

.kn-link {
	padding: clamp(1.5rem, 4vw, 2.75rem);
}
.kn-link > * { position: relative; z-index: 1; }
.kn-link > :first-child { margin-top: 0; }
.kn-link > :last-child { margin-bottom: 0; }

/* ── Ad space: set apart from the content, on its own hem band ── */
.kn-adspace {
	max-width: var(--wide);
	margin: 3.5rem auto 0;
	padding: 0 var(--gap);
}
.kn-adspace--after { margin-top: 4rem; }
.zip-panel {
	position: relative;
	margin: 0;
	padding: 2.1rem 1rem 1rem;
	background: var(--hem);
	border-top: 2px dashed var(--snap);
	border-bottom: 2px dashed var(--snap);
	text-align: center;
}
.zip-panel iframe { display: block; margin: 0 auto; border: 0; max-width: 100%; }
.zip-tag {
	position: absolute;
	top: 0.5rem;
	left: 1rem;
	color: var(--muted);
	font-family: var(--head);
	font-size: 0.8125rem;
	font-weight: 600;
	line-height: 1.2;
}
.zip-tag::before {
	content: "";
	display: inline-block;
	width: 0.55rem;
	height: 0.55rem;
	margin-right: 0.4rem;
	border-radius: 50%;
	background: var(--brass);
	vertical-align: 0.05em;
}
.kn-prose .zip-panel { margin: 2.75rem 0; }

/* ── Article ── */
.kn-head {
	display: grid;
	grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
	gap: clamp(1.5rem, 4vw, 3.5rem);
	align-items: center;
	max-width: var(--page);
	margin: 0 auto;
	padding: clamp(2rem, 6vw, 4.5rem) var(--gap) clamp(2rem, 5vw, 3.5rem);
}
.kn-head--plain { grid-template-columns: minmax(0, 1fr); max-width: calc(var(--measure) + 2 * var(--gap)); }
.kn-head__niche { margin: 0 0 1rem; }
.kn-head__niche a {
	display: inline-block;
	padding: 0.18rem 0.85rem;
	border-radius: 999px;
	background: var(--sky-deep);
	color: var(--paper);
	font-family: var(--head);
	font-weight: 600;
	font-size: 0.9375rem;
	text-decoration: none;
}
.kn-head__niche a:hover { background: var(--ink); color: var(--paper); }
.kn-head__title {
	margin: 0;
	font-size: clamp(2rem, 4.6vw, 3.4rem);
	line-height: 1.06;
	letter-spacing: -0.02em;
}
.kn-head__excerpt {
	margin: 1.1rem 0 0;
	max-width: 34rem;
	font-size: clamp(1.15rem, 2vw, 1.3rem);
	line-height: 1.5;
	color: var(--muted);
}
.kn-head__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.75rem 1.75rem;
	margin-top: 1.75rem;
	padding-top: 1.25rem;
	border-top: 2px dashed var(--snap);
}
.kn-head__dates,
.kn-page__dates {
	display: flex;
	flex-wrap: wrap;
	gap: 0 1rem;
	margin: 0;
	color: var(--muted);
	font-family: var(--head);
	font-size: 0.9375rem;
}
.kn-head__figure {
	position: relative;
	padding: clamp(0.75rem, 2vw, 1.25rem);
	background: var(--tint);
	border-radius: 22px;
}
.kn-head__figure::after {
	content: "";
	position: absolute;
	inset: 9px;
	border: 1.5px dashed var(--sky);
	border-radius: 15px;
	pointer-events: none;
}
.kn-head__drawing { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: contain; }

.kn-byline { display: flex; align-items: center; gap: 0.75rem; }
.kn-byline__mark {
	width: 44px;
	height: 44px;
	padding: 5px;
	border: 2px solid var(--ink);
	border-radius: 12px;
	background: var(--paper);
}
.kn-byline__text { margin: 0; display: flex; flex-direction: column; line-height: 1.3; font-family: var(--head); }
.kn-byline__name { font-weight: 700; }
.kn-byline__role { color: var(--muted); font-size: 0.9375rem; }

/* The reading column and every block inside it. */
.kn-prose {
	max-width: calc(var(--measure) + 2 * var(--gap));
	margin: 0 auto;
	padding: 0 var(--gap);
}
.kn-link.kn-prose { padding: clamp(1.5rem, 4vw, 2.75rem); }
.kn-prose--article { padding-top: 0.5rem; }
.kn-prose > :first-child { margin-top: 0; }

.kn-prose p { margin: 0 0 1.15em; }
.kn-prose h2 {
	position: relative;
	margin: 2.6em 0 0.7em;
	padding-top: 1.1rem;
	font-size: clamp(1.55rem, 3vw, 1.95rem);
}
.kn-prose h2::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	width: 3.5rem;
	height: 10px;
	border-radius: 3px;
	background:
		repeating-linear-gradient(90deg, var(--brass) 0 3px, transparent 3px 6px) 0 2px / 100% 3px no-repeat,
		repeating-linear-gradient(90deg, transparent 0 3px, var(--brass) 3px 6px) 0 5px / 100% 3px no-repeat,
		var(--sky);
}
.kn-prose h3 { margin: 2em 0 0.5em; font-size: 1.3rem; }
.kn-prose strong { font-weight: 700; }
.kn-prose code {
	padding: 0.05em 0.35em;
	border-radius: 4px;
	background: var(--tint);
	font-family: var(--head);
	font-size: 0.95em;
	font-weight: 700;
}

/* Bullets are small four-hole buttons. */
.kn-prose ul { margin: 0 0 1.4em; padding: 0; list-style: none; }
.kn-prose ul > li {
	position: relative;
	margin: 0 0 0.55em;
	padding-left: 1.75rem;
}
.kn-prose ul > li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.38em;
	width: 1rem;
	height: 1rem;
	background: url("assets/img/button.svg") center / contain no-repeat;
}

/* Steps: numbered snaps joined by a stitched line. */
.kn-prose ol {
	margin: 1.6em 0 1.8em;
	padding: 0;
	list-style: none;
	counter-reset: step;
}
.kn-prose ol > li {
	position: relative;
	counter-increment: step;
	padding: 0 0 1.25em 3.4rem;
	min-height: 2.6rem;
}
.kn-prose ol > li::before {
	content: counter(step);
	position: absolute;
	left: 0;
	top: -0.1em;
	width: 2.3rem;
	height: 2.3rem;
	display: grid;
	place-items: center;
	border: 2px solid var(--ink);
	border-radius: 50%;
	background: var(--paper);
	box-shadow: inset 0 0 0 4px var(--paper), inset 0 0 0 6px var(--brass);
	font-family: var(--head);
	font-weight: 700;
	font-size: 1rem;
	z-index: 1;
}
.kn-prose ol > li:not(:last-child)::after {
	content: "";
	position: absolute;
	left: calc(1.15rem - 1px);
	top: 2.3rem;
	bottom: 0.1rem;
	border-left: 2px dashed var(--sky);
}
.kn-prose ol > li > :last-child { margin-bottom: 0; }

/* Figures sit a little wider than the column, on a stitched tape-tint panel. */
.kn-prose figure {
	position: relative;
	margin: 2.4em calc(-1 * max(0px, min(6.5rem, (100vw - var(--measure)) / 2 - var(--gap) - 1rem)));
	padding: clamp(1rem, 3vw, 1.75rem);
	background: var(--tint);
	border-radius: 20px;
}
.kn-prose figure::before {
	content: "";
	position: absolute;
	inset: 8px;
	border: 1.5px dashed var(--sky);
	border-radius: 14px;
	pointer-events: none;
}
.kn-prose figure img { display: block; margin: 0 auto; width: 100%; height: auto; }
.kn-prose figcaption {
	position: relative;
	margin: 1rem 0 0;
	padding-left: 1.4rem;
	color: var(--ink);
	font-family: var(--head);
	font-size: 0.9375rem;
	line-height: 1.5;
}
.kn-prose figcaption::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.3em;
	width: 0.8rem;
	height: 0.8rem;
	border-radius: 50%;
	background: var(--brass);
	box-shadow: inset 0 0 0 3px var(--brass), inset 0 0 0 4.5px var(--paper);
}
.kn-prose figure ol { margin: 1rem 0 0; font-family: var(--head); font-size: 0.9375rem; }
.kn-prose figure ol > li { padding-bottom: 0.6em; padding-left: 2.6rem; min-height: 1.9rem; }
.kn-prose figure ol > li::before { width: 1.8rem; height: 1.8rem; font-size: 0.875rem; box-shadow: none; background: var(--sky-deep); color: var(--paper); border-color: var(--sky-deep); }
.kn-prose figure ol > li:not(:last-child)::after { display: none; }

/* Tables: a tape header, stitched rows, their own scroll on a phone. */
.kn-table {
	margin: 2em calc(-1 * max(0px, min(6.5rem, (100vw - var(--measure)) / 2 - var(--gap) - 1rem)));
	border: 2px solid var(--ink);
	border-radius: 14px;
	overflow: hidden;
}
.kn-table__title {
	margin: 0 !important;
	padding: 0.85rem 1rem;
	border-bottom: 2px solid var(--ink);
	font-family: var(--head);
	font-weight: 700;
	font-size: 1rem;
	line-height: 1.4;
}
.kn-table__scroll { overflow-x: auto; }
.kn-table__scroll:focus-visible { outline-offset: -3px; }
.kn-prose table {
	width: 100%;
	min-width: 30rem;
	border-collapse: collapse;
	font-family: var(--head);
	font-size: 0.9688rem;
	line-height: 1.45;
}
.kn-prose caption {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
}
.kn-prose thead th {
	background: var(--sky-deep);
	color: var(--paper);
	font-weight: 700;
	text-align: left;
	padding: 0.7rem 1rem;
	vertical-align: bottom;
}
.kn-prose td,
.kn-prose tbody th {
	padding: 0.7rem 1rem;
	text-align: left;
	vertical-align: top;
	border-top: 1.5px dashed var(--snap);
}
.kn-prose tbody th { font-weight: 700; }
.kn-prose tbody tr:first-child > * { border-top: 0; }

/* Asides: a key point fastened along a vertical zip. */
.kn-prose aside {
	position: relative;
	margin: 2em 0;
	padding: 1.25rem 1.4rem 1.25rem 2.6rem;
	background: var(--tint);
	border-radius: 0 14px 14px 0;
}
.kn-prose aside::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0;
	bottom: 0;
	width: 14px;
	background: var(--zip-down);
}
.kn-prose aside > :last-child { margin-bottom: 0; }
.kn-prose aside p:first-child strong:first-child { font-family: var(--head); }

/* Questions and answers: each one a pull tab. */
.kn-prose details {
	margin: 0 0 0.85rem;
	border: 2px solid var(--ink);
	border-radius: 14px;
	background: var(--paper);
}
.kn-prose summary {
	position: relative;
	padding: 0.95rem 3.4rem 0.95rem 1.2rem;
	font-family: var(--head);
	font-weight: 700;
	font-size: 1.0625rem;
	line-height: 1.35;
	cursor: pointer;
	list-style: none;
}
.kn-prose summary::-webkit-details-marker { display: none; }
.kn-prose summary::after {
	content: "";
	position: absolute;
	right: 1.15rem;
	top: 50%;
	width: 14px;
	height: 26px;
	margin-top: -13px;
	border-radius: 4px 4px 7px 7px;
	background:
		radial-gradient(circle at 50% 72%, var(--paper) 0 2.6px, transparent 3px),
		var(--sky-deep);
	transition: transform 0.2s ease;
}
.kn-prose details[open] summary::after { transform: rotate(180deg); }
.kn-prose details > :not(summary) {
	margin: 0 1.2rem 1rem;
	padding-left: 1rem;
	border-left: 2px dashed var(--sky);
}
.kn-prose details[open] > summary { border-bottom: 1.5px dashed var(--snap); margin-bottom: 0.9rem; }

/* Terms: a short glossary with stitched definitions. */
.kn-prose dl { margin: 1.5em 0; }
.kn-prose dt { font-family: var(--head); font-weight: 700; margin-top: 0.9em; }
.kn-prose dd { margin: 0.2em 0 0; padding-left: 1rem; border-left: 2px dashed var(--brass); }

/* Takeaways: set in the heading face, after a pull tab. */
.kn-prose blockquote {
	position: relative;
	margin: 2.2em 0;
	padding: 0.2rem 0 0.2rem 3.4rem;
	font-family: var(--head);
	font-weight: 600;
	font-size: clamp(1.25rem, 2.6vw, 1.5rem);
	line-height: 1.35;
}
.kn-prose blockquote::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.2rem;
	width: 2.2rem;
	height: 1.3rem;
	background: url("assets/img/slider.svg") center / contain no-repeat;
	transform: rotate(90deg) translateX(0.4rem);
}
.kn-prose blockquote p { margin: 0; }

.kn-prose hr { border: 0; height: 14px; margin: 2.5em 0; background: var(--zip-closed); border-radius: 3px; }

/* ── Pages ── */
.kn-page__head {
	max-width: calc(var(--measure) + 2 * var(--gap));
	margin: 0 auto;
	padding: clamp(2.5rem, 7vw, 4.5rem) var(--gap) 1.75rem;
}
.kn-page__title { margin: 0; font-size: clamp(2rem, 5vw, 3rem); line-height: 1.08; }
.kn-page__lead { margin: 1rem 0 0; color: var(--muted); font-size: 1.2rem; line-height: 1.5; }
.kn-page__dates { margin-top: 1rem; }
.kn-page__stamp {
	max-width: calc(var(--measure) + 2 * var(--gap));
	margin: 0 auto 1.5rem;
	padding: 0 var(--gap);
}
.kn-page__stamp img {
	width: 96px;
	height: 96px;
	padding: 12px;
	border: 2px solid var(--ink);
	border-radius: 24px;
	background: var(--tint);
}
.kn-page--policy .kn-page__head { border-bottom: 0; }
.kn-page--policy .kn-prose h2 { font-size: 1.4rem; }
.kn-page--contact .kn-prose a[href^="mailto:"] {
	display: inline-block;
	padding: 0.35rem 1.1rem;
	border-radius: 999px;
	background: var(--sky-deep);
	color: var(--paper);
	font-family: var(--head);
	font-weight: 700;
	text-decoration: none;
}
.kn-page--contact .kn-prose a[href^="mailto:"]:hover { background: var(--ink); }

/* The measurement choice on the cookies page. */
.snap-choice {
	margin: 2em 0;
	padding: 1.25rem 1.4rem;
	border: 2px solid var(--ink);
	border-radius: 14px;
	background: var(--paper);
}
.snap-choice p { margin: 0 0 0.85rem; }
.snap-choice legend { font-family: var(--head); font-weight: 700; padding: 0 0.4rem; }
.snap-state:empty { display: none; }
.snap-state {
	font-family: var(--head);
	font-weight: 600;
	color: var(--sky-deep);
}
.snap-choice button,
.hem-band button {
	min-width: 8.5rem;
	margin: 0.25rem 0.5rem 0.25rem 0;
	padding: 0.6rem 1.2rem;
	border: 2px solid var(--ink);
	border-radius: 999px;
	background: var(--paper);
	color: var(--ink);
	font-family: var(--head);
	font-size: 1rem;
	font-weight: 700;
	line-height: 1.2;
	cursor: pointer;
}
.snap-choice button:hover,
.hem-band button:hover { background: var(--tint); }

/* The measurement banner, fixed to the bottom of the window, hemmed with a closed zip. */
.hem-band {
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 80;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 0.5rem 1rem;
	padding: 1.4rem var(--gap) 1rem;
	background: var(--paper);
	border-top: 2px solid var(--ink);
	font-size: 1rem;
	line-height: 1.5;
}
.hem-band::before {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	top: 0;
	height: 14px;
	background: var(--zip-closed);
}
.hem-band p { flex: 1 1 28rem; max-width: 46rem; margin: 0.35rem 0 0; }

/* ── Niche archive: the band of tape ── */
.kn-band {
	position: relative;
	margin: 0 0 3rem;
	background: var(--sky-deep);
	color: var(--paper);
}
.kn-band::before,
.kn-band::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	height: 6px;
	background: repeating-linear-gradient(90deg, var(--brass) 0 5px, transparent 5px 10px);
}
.kn-band::before { top: 6px; }
.kn-band::after { bottom: 6px; }
.kn-band__inner {
	max-width: var(--wide);
	margin: 0 auto;
	padding: clamp(2.5rem, 7vw, 4.5rem) var(--gap);
}
.kn-band__title { margin: 0; color: var(--paper); font-size: clamp(2.4rem, 6vw, 3.8rem); }
.kn-band__lead { margin: 0.9rem 0 0; max-width: 38rem; font-size: 1.2rem; line-height: 1.5; }
.kn-band__count { margin: 1rem 0 0; font-family: var(--head); font-weight: 600; font-size: 0.9375rem; }

.kn-pager {
	display: flex;
	justify-content: space-between;
	gap: 1rem;
	max-width: var(--wide);
	margin: 2.5rem auto 0;
	padding: 0 var(--gap);
}
.kn-pager__tab a {
	display: inline-block;
	padding: 0.55rem 1.2rem;
	border: 2px solid var(--ink);
	border-radius: 999px;
	font-family: var(--head);
	font-weight: 700;
	text-decoration: none;
	color: var(--ink);
}
.kn-pager__tab--older { margin-left: auto; }

/* ── Search and the missing page ── */
.kn-find { margin: 1.5rem 0 0; }
.kn-find__label { display: block; margin-bottom: 0.4rem; font-family: var(--head); font-weight: 600; }
.kn-find__strip {
	display: flex;
	max-width: 32rem;
	border: 2px solid var(--ink);
	border-radius: 999px;
	overflow: hidden;
	background: var(--paper);
}
.kn-find__strip:focus-within { outline: 3px solid var(--sky-deep); outline-offset: 3px; }
.kn-find__field {
	flex: 1;
	min-width: 0;
	padding: 0.65rem 1.1rem;
	border: 0;
	background: transparent;
	color: var(--ink);
	font-family: var(--body);
	font-size: 1.0625rem;
}
.kn-find__field:focus { outline: none; }
.kn-find__go {
	padding: 0.65rem 1.3rem;
	border: 0;
	background: var(--sky-deep);
	color: var(--paper);
	font-family: var(--head);
	font-weight: 700;
	font-size: 1rem;
	cursor: pointer;
}
.kn-find__go:hover { background: var(--ink); }
.kn-ways { display: flex; flex-wrap: wrap; gap: 0.6rem; margin: 1.5rem 0 0; padding: 0; list-style: none; }
.kn-ways a {
	display: inline-block;
	padding: 0.35rem 1rem;
	border-radius: 999px;
	background: var(--tint);
	font-family: var(--head);
	font-weight: 600;
	text-decoration: none;
}
.kn-prose--note { margin-top: 1rem; }
.kn-missing {
	max-width: calc(var(--measure) + 2 * var(--gap));
	margin: 0 auto;
	padding: clamp(2.5rem, 7vw, 4.5rem) var(--gap) 0;
}
.kn-missing__zip img { width: 200px; height: auto; margin-bottom: 1.5rem; }

/* ── Footer: the zip's bottom stop ── */
.kn-foot {
	margin-top: 5rem;
	background: var(--snap);
	color: var(--ink);
}
.kn-foot__zip {
	position: relative;
	height: 14px;
	background: var(--zip-closed);
}
.kn-foot__stop {
	position: absolute;
	right: clamp(1rem, 6vw, 4rem);
	top: -4px;
	width: 22px;
	height: 22px;
	border-radius: 4px;
	background: var(--brass);
	box-shadow: inset 0 0 0 2px var(--brass-deep);
}
.kn-foot__inner {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
	gap: 1.5rem 3rem;
	max-width: var(--page);
	margin: 0 auto;
	padding: 2.75rem var(--gap) 2.25rem;
}
.kn-foot__brand { display: flex; align-items: center; gap: 1rem; }
.kn-foot__brand img { width: 56px; height: 56px; padding: 6px; background: var(--paper); border-radius: 14px; }
.kn-foot__tagline { margin: 0; font-family: var(--head); font-weight: 700; font-size: 1.25rem; line-height: 1.25; }
.kn-foot__list {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem 1.4rem;
	margin: 0;
	padding: 0;
	list-style: none;
	font-family: var(--head);
	font-weight: 600;
}
.kn-foot__list a { color: var(--ink); text-decoration: none; }
.kn-foot__list a:hover { text-decoration: underline; }
.kn-foot__publisher {
	grid-column: 1 / -1;
	margin: 0;
	padding-top: 1.25rem;
	border-top: 1.5px dashed #b4bdc6;
	font-size: 1rem;
}
.kn-foot__publisher a { color: var(--ink); font-weight: 600; }
.kn-foot__year { display: block; margin-top: 0.3rem; color: #47525e; font-size: 0.9375rem; }

/* ── Narrow screens ── */
@media (max-width: 760px) {
	.kn-top__row { flex-wrap: wrap; padding-top: 0.7rem; padding-bottom: 0.6rem; }
	.kn-top__toggle {
		display: inline-flex;
		align-items: center;
		gap: 0.5rem;
		padding: 0.45rem 0.95rem 0.45rem 0.75rem;
		border: 2px solid var(--ink);
		border-radius: 999px;
		background: var(--paper);
		color: var(--ink);
		font-family: var(--head);
		font-weight: 700;
		font-size: 1rem;
		cursor: pointer;
	}
	.kn-top__pull {
		width: 10px;
		height: 18px;
		border-radius: 3px 3px 5px 5px;
		background: radial-gradient(circle at 50% 70%, var(--paper) 0 2px, transparent 2.4px), var(--sky-deep);
		transition: transform 0.2s ease;
	}
	.kn-top__toggle[aria-expanded="true"] .kn-top__pull { transform: rotate(180deg); }
	.kn-tape { display: none; flex-basis: 100%; }
	.kn-tape.is-open { display: block; }
	.kn-tape__list { flex-direction: column; border-radius: 18px; padding: 0.4rem; }
	.kn-tape__list a { padding: 0.6rem 1rem; }

	.kn-card,
	.kn-card--lead { grid-template-columns: minmax(0, 1fr); padding: 1.25rem; gap: 1.1rem; }
	.kn-head { grid-template-columns: minmax(0, 1fr); }
	.kn-head__figure { order: -1; }
	.kn-prose figure { margin-left: calc(-1 * var(--gap) + 0.5rem); margin-right: calc(-1 * var(--gap) + 0.5rem); padding: 0.85rem 0.6rem; }
	.kn-prose figure::before { inset: 5px; }
	.kn-table { margin-left: 0; margin-right: 0; }
	.kn-foot__inner { grid-template-columns: minmax(0, 1fr); }
	.hem-band { padding-top: 1.3rem; }
	.hem-band p { flex-basis: 100%; }
	.hem-band button { flex: 1 1 8rem; margin: 0; }
}

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

@media print {
	.kn-top, .kn-foot, .kn-adspace, .hem-band { display: none; }
}


@media screen {
	.hem-band {
		left: 0.5rem;
		right: 0.5rem;
		bottom: max(0.5rem, env(safe-area-inset-bottom));
		width: auto;
		max-width: 35rem;
		margin: 0 auto;
		transform: none;
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 0.5rem;
		padding: 0.75rem;
		border: 1px solid var(--snap);
		border-radius: 8px;
		background: var(--paper);
		color: var(--muted);
		box-shadow: none;
		font: 400 0.875rem/1.4 var(--head);
	}
	.hem-band::before,
	.hem-band::after { display: none; }
	.hem-band p {
		grid-column: 1 / -1;
		margin: 0;
		max-width: none;
		font: inherit;
	}
	.hem-band a {
		color: var(--sky-deep);
		font-weight: 400;
		white-space: normal;
		text-decoration: underline;
	}
	.hem-band button {
		min-width: 0;
		min-height: 44px;
		width: 100%;
		margin: 0;
		padding: 0.4rem 0.5rem;
		border: 1px solid var(--snap);
		border-radius: 8px;
		background: var(--paper);
		color: var(--muted);
		box-shadow: none;
		font: 500 0.875rem/1.25 var(--head);
		font-stretch: normal;
		letter-spacing: normal;
		text-transform: none;
		cursor: pointer;
	}
	.hem-band button:hover { background: var(--hem); }
	.hem-band :focus-visible { outline: 2px solid var(--sky-deep); outline-offset: 2px; }
	body:has(.hem-band) { padding-bottom: 10rem; }
}
@media screen and (max-width: 620px) {
	body:has(.hem-band) { padding-bottom: 12rem; }
}
