/* Hallmark · genre: editorial · theme: custom, by request (paper, ink and one rose accent; a sibling of backhaus.sg) · posture: restrained · hero: the desk model beside the tagline · nav: name, topics, search · footer: motto, links, colophon · job: read the posts · signature: the code-built model of a research desk, with the cat eyeing the magnifying glass */
/* Hallmark · pre-emit critique: P4 H4 E4 S5 R4 V4 · weakest: P, a personal blog argues post by post, not on its home page; the masthead model carries the voice instead */
/* Hallmark · waive 44c · the masthead ends at 696px of 900 · the post index starts on the first screen; a taller masthead would only push the writing down */
/* Hallmark · waive 49b · long post titles wrap at 320 · post titles like Trash Talk: A Pokemon GTS Challenge stay whole and wrap rather than cut off */
/* Hallmark · dismissed 40 · 1.14:1 on .feature-media, .row-thumb, .card-media and .post-hero img · the colour sits behind photographs while they load; no text is set on it */
/* Hallmark · dismissed 41 · --ink close to --code-bg · code blocks are dark on purpose, as on backhaus.sg; their text uses the code palette, not ink */
/* Hallmark · waive 78 · section heads at 26px under the 65px tagline · in an index the year heads are signposts, not headlines */
/* Hallmark · waive 59 · a 104px gap · the index separates its year groups with rules and type, a dense macrostructure */
/*
 * RoC Research
 * Paper, ink and one rose accent, set in Anybody (headlines) and Source Serif 4 (everything
 * else), with Martian Mono only for code. A sibling of backhaus.sg: same paper, ink, display
 * face and 2px rules. Labels are the text face a step smaller, in Title Case, never tracked caps.
 * The accent is a signal (link underlines, focus, reading progress), not a fill.
 * Checked against hallmark's sloplint and unslop's signs of slop.
 */

/* ---------- Faces (self-hosted, Latin and Latin Extended, variable) ---------- */

@font-face {
	font-family: "Anybody";
	src: url(../fonts/anybody-latin-wdth-normal.woff2) format("woff2");
	font-weight: 100 900;
	font-stretch: 50% 150%;
	font-display: swap;
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
	font-family: "Anybody";
	src: url(../fonts/anybody-latin-ext-wdth-normal.woff2) format("woff2");
	font-weight: 100 900;
	font-stretch: 50% 150%;
	font-display: swap;
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
	font-family: "Source Serif 4";
	src: url(../fonts/source-serif-4-latin-wght-normal.woff2) format("woff2");
	font-weight: 200 900;
	font-style: normal;
	font-display: swap;
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
	font-family: "Source Serif 4";
	src: url(../fonts/source-serif-4-latin-ext-wght-normal.woff2) format("woff2");
	font-weight: 200 900;
	font-style: normal;
	font-display: swap;
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
	font-family: "Source Serif 4";
	src: url(../fonts/source-serif-4-latin-wght-italic.woff2) format("woff2");
	font-weight: 200 900;
	font-style: italic;
	font-display: swap;
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
	font-family: "Source Serif 4";
	src: url(../fonts/source-serif-4-latin-ext-wght-italic.woff2) format("woff2");
	font-weight: 200 900;
	font-style: italic;
	font-display: swap;
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
	font-family: "Martian Mono";
	src: url(../fonts/martian-mono-latin-wdth-normal.woff2) format("woff2");
	font-weight: 100 800;
	font-stretch: 75% 112.5%;
	font-display: swap;
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
	font-family: "Martian Mono";
	src: url(../fonts/martian-mono-latin-ext-wdth-normal.woff2) format("woff2");
	font-weight: 100 800;
	font-stretch: 75% 112.5%;
	font-display: swap;
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ---------- Tokens ---------- */

:root {
	/* Paper and ink */
	--paper: #f3eee4;
	--paper-2: #e9e2d4;
	--paper-3: #faf7f1;
	--ink: #17150f;
	--ink-soft: #3b3730;
	--muted: #6b6458;
	--rule: rgb(23 21 15 / 0.14);
	--rule-strong: var(--ink);
	--accent: #c62f4d;
	--accent-bright: #e2475f;
	--accent-ink: #ab2743;
	--on-accent: #fff8f2;
	--mark: #ffd84d;
	--mark-ink: #17150f;
	--scrim: rgb(23 21 15 / 0.4);
	--lift: rgb(23 21 15 / 0.22);

	/* The ink band (footer) and the code panel stay dark in both themes */
	--band: #17150f;
	--band-2: #24211b;
	--band-ink: #efe9de;
	--band-soft: #cfc7b8;
	--band-muted: #a49c8e;
	--band-rule: rgb(239 233 222 / 0.16);
	--band-accent: #ff8ea1;
	--code-bg: #1c1a16;
	--code-bar: #24211c;
	--code-ink: #ece5d8;
	--code-muted: #a39b8d;
	--code-rule: rgb(236 229 216 / 0.12);
	--code-hover: rgb(236 229 216 / 0.08);
	--tok-comment: #8f887b;
	--tok-punct: #b9b1a3;
	--tok-keyword: #ff8197;
	--tok-string: #c4d98f;
	--tok-number: #f4b866;
	--tok-function: #f2d9a6;
	--tok-builtin: #92d1dc;
	--viewer: rgb(16 15 12 / 0.95);
	--print-paper: #fffdf8;
	--print-ink: #17150f;
	--print-rule: #8a8478;
	--print-well: #f2efe8;

	/* Type */
	--font-display: "Anybody", "Arial Black", "Helvetica Neue", Arial, sans-serif;
	--font-text: "Source Serif 4", "Iowan Old Style", Charter, Georgia, serif;
	--font-mono: "Martian Mono", ui-monospace, "SFMono-Regular", "Cascadia Mono", Menlo, Consolas, monospace;
	--text-xs: 0.8125rem;
	--text-sm: 0.9375rem;
	--text-base: 1.0625rem;
	--text-read: clamp(1.125rem, 1.05rem + 0.3vw, 1.1875rem);
	--text-lg: 1.3125rem;
	--text-xl: 1.625rem;
	--text-2xl: clamp(1.75rem, 1.3rem + 1.5vw, 2.25rem);
	--text-section: clamp(2rem, 1.2rem + 3vw, 3.25rem);
	--text-display: clamp(2.25rem, 1rem + 4.6vw, 4.5rem);
	--weight-text: 400;
	--weight-strong: 600;
	--weight-display: 800;

	/* Space, on a 4px scale */
	--space-3xs: 2px;
	--space-2xs: 4px;
	--space-xs: 8px;
	--space-sm: 12px;
	--space-md: 16px;
	--space-lg: 24px;
	--space-xl: 40px;
	--space-2xl: 64px;
	--space-3xl: 96px;
	--space-4xl: 144px;
	--flow: 1.1em;
	--flow-head: 2.2em;

	/* Layout */
	--wrap: 76rem;
	--text: 41rem;
	--gutter: clamp(16px, 3.4vw, 44px);
	--header-h: 60px;
	--bar: 0px;
	--rule-w: 2px;
	--radius: 2px;
	--ease: cubic-bezier(0.16, 1, 0.3, 1);
	--z-sticky: 200;
	--z-nav: 300;
	--z-pop: 400;

	color-scheme: light;
}

@media (prefers-color-scheme: dark) {
	:root:not([data-theme="light"]) {
		--paper: #13120f;
		--paper-2: #24211b;
		--paper-3: #1b1915;
		--ink: #efe9de;
		--ink-soft: #d2cabb;
		--muted: #a49c8e;
		--rule: rgb(239 233 222 / 0.15);
		--accent: #ef5d78;
		--accent-bright: #ff6f88;
		--accent-ink: #ff8ea1;
		--on-accent: #160d0f;
		--scrim: rgb(5 5 4 / 0.6);
		--band: #0b0a08;
		--code-bg: #0c0b09;
		--code-bar: #191713;
		color-scheme: dark;
	}
}
:root[data-theme="dark"] {
	--paper: #13120f;
	--paper-2: #24211b;
	--paper-3: #1b1915;
	--ink: #efe9de;
	--ink-soft: #d2cabb;
	--muted: #a49c8e;
	--rule: rgb(239 233 222 / 0.15);
	--accent: #ef5d78;
	--accent-bright: #ff6f88;
	--accent-ink: #ff8ea1;
	--on-accent: #160d0f;
	--scrim: rgb(5 5 4 / 0.6);
	--band: #0b0a08;
	--code-bg: #0c0b09;
	--code-bar: #191713;
	color-scheme: dark;
}

/* The WordPress toolbar (logged in) is fixed: 32px from 783px up, 46px below that, and it
   scrolls away under 601px. Sticky parts sit below it. */
@media (min-width: 601px) {
	html:has(> body.admin-bar) {
		--bar: 46px;
	}
}
@media (min-width: 783px) {
	html:has(> body.admin-bar) {
		--bar: 32px;
	}
}

/* ---------- Base ---------- */

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	-webkit-text-size-adjust: 100%;
	text-size-adjust: 100%;
	scroll-padding-top: calc(var(--header-h) + var(--bar) + var(--space-lg));
	background: var(--paper);
	overflow-x: clip;
	scrollbar-color: var(--muted) var(--paper);
}

@media (prefers-reduced-motion: no-preference) {
	html {
		scroll-behavior: smooth;
	}
}

body {
	margin: 0;
	background: var(--paper);
	color: var(--ink);
	caret-color: var(--accent);
	font-family: var(--font-text);
	font-size: var(--text-base);
	font-weight: var(--weight-text);
	line-height: 1.6;
	font-synthesis: none;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
	overflow-x: clip;
}

img,
svg,
video,
picture {
	max-width: 100%;
}

img {
	height: auto;
}

a {
	color: inherit;
}

p,
li,
figcaption,
dd {
	text-wrap: pretty;
}

::selection {
	background: var(--mark);
	color: var(--mark-ink);
}

:focus-visible {
	outline: 3px solid var(--accent-bright);
	outline-offset: 3px;
}

h1,
h2,
h3,
h4,
h5,
h6 {
	margin: 0;
	font-family: var(--font-display);
	font-weight: var(--weight-display);
	font-stretch: 110%;
	line-height: 1.05;
	letter-spacing: -0.02em;
	text-wrap: balance;
	overflow-wrap: break-word;
	min-width: 0;
}

p {
	margin: 0;
}

ul,
ol {
	margin: 0;
	padding: 0;
}

button {
	font: inherit;
	color: inherit;
}

.wrap {
	width: min(100% - 2 * var(--gutter), var(--wrap));
	margin-inline: auto;
}

.wrap-text {
	width: min(100% - 2 * var(--gutter), var(--text));
	margin-inline: auto;
}

.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
	border: 0;
}

.skip-link {
	position: absolute;
	top: var(--space-xs);
	left: var(--space-xs);
	z-index: var(--z-pop);
	padding: var(--space-sm) var(--space-md);
	background: var(--ink);
	color: var(--paper);
	transform: translateY(-200%);
}
.skip-link:focus {
	transform: none;
}

/* Quiet text: meta lines, labels, captions. The text face, a step smaller.
   Items are divided by a thin rule. Every item carries one on its left; the line is pulled left
   by that rule and its spacing and clipped just past the rule, so whichever item starts a line
   (the first, or one that wrapped on a phone) shows no stray rule or indent. The clip leaves room
   on every side for focus outlines. */
.meta {
	--meta-gap: min(var(--space-sm), calc((var(--gutter) - 2px) / 2));
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	row-gap: var(--space-2xs);
	margin-left: calc(-2 * var(--meta-gap) - 1px);
	/* 3px past the rule, not 1: a column edge on a half pixel otherwise leaves a sliver of it */
	clip-path: inset(-1em -1em -1em calc(var(--meta-gap) + 3px));
	color: var(--muted);
	font-size: var(--text-sm);
	line-height: 1.4;
	font-variant-numeric: lining-nums tabular-nums;
}
.meta > * {
	margin-left: var(--meta-gap);
	padding-left: var(--meta-gap);
	border-left: 1px solid var(--rule);
}
.meta a {
	text-decoration-color: var(--rule);
	text-underline-offset: 3px;
}
.meta a:hover {
	color: var(--ink);
	text-decoration-color: var(--accent-bright);
}

.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 48px;
	padding: var(--space-sm) var(--space-lg);
	border: var(--rule-w) solid var(--ink);
	border-radius: var(--radius);
	background: var(--ink);
	color: var(--paper);
	font-family: var(--font-text);
	font-size: var(--text-base);
	font-weight: var(--weight-strong);
	white-space: nowrap;
	text-decoration: none;
	cursor: pointer;
	transition: background-color 0.15s, border-color 0.15s, color 0.15s, transform 0.1s;
}
.btn:hover {
	background: var(--accent);
	border-color: var(--accent);
	color: var(--on-accent);
}
.btn:active {
	transform: translateY(1px);
}
.btn:disabled {
	opacity: 0.55;
	cursor: not-allowed;
}

.icon {
	width: 20px;
	height: 20px;
	flex: none;
}

.icon-btn {
	display: inline-grid;
	place-items: center;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 0;
	border-radius: var(--radius);
	background: transparent;
	color: var(--ink);
	cursor: pointer;
	text-decoration: none;
	transition: background-color 0.15s, color 0.15s;
}
.icon-btn:hover {
	background: var(--paper-2);
}
.icon-btn:active {
	background: var(--rule);
}

/* ---------- Header ---------- */

.site-header {
	position: sticky;
	top: var(--bar);
	z-index: var(--z-nav);
	background: var(--paper);
	border-bottom: var(--rule-w) solid var(--rule-strong);
}

.header-inner {
	display: flex;
	align-items: center;
	gap: var(--space-lg);
	height: var(--header-h);
}

.brand {
	flex: none;
	color: var(--ink);
	font-family: var(--font-display);
	font-size: 1.375rem;
	font-weight: var(--weight-display);
	font-stretch: 112%;
	letter-spacing: -0.02em;
	line-height: 1;
	text-decoration: none;
	white-space: nowrap;
}

.primary-nav {
	display: none;
	margin-left: auto;
}
.primary-nav .menu-list {
	display: flex;
	gap: var(--space-2xs);
	list-style: none;
}
.primary-nav a {
	display: block;
	padding: var(--space-xs) var(--space-sm);
	font-size: var(--text-sm);
	font-weight: var(--weight-strong);
	white-space: nowrap;
	text-decoration: none;
	border-radius: var(--radius);
	transition: background-color 0.15s;
}
.primary-nav a:hover {
	background: var(--paper-2);
}
.primary-nav a[aria-current="page"] {
	text-decoration: underline;
	text-decoration-color: var(--accent-bright);
	text-decoration-thickness: 2px;
	text-underline-offset: 6px;
}

.header-tools {
	display: flex;
	align-items: center;
	gap: var(--space-3xs);
	margin-left: auto;
}

.studio-link {
	display: none;
	margin-left: var(--space-xs);
	padding: var(--space-xs) 0 var(--space-xs) var(--space-md);
	border-left: 1px solid var(--rule);
	font-size: var(--text-sm);
	font-weight: var(--weight-strong);
	white-space: nowrap;
	text-decoration: none;
}
.studio-link:hover {
	color: var(--accent-ink);
}

.theme-toggle .show-dark {
	display: none;
}
:root[data-theme="dark"] .theme-toggle .show-dark {
	display: block;
}
:root[data-theme="dark"] .theme-toggle .show-light {
	display: none;
}
@media (prefers-color-scheme: dark) {
	:root:not([data-theme="light"]) .theme-toggle .show-dark {
		display: block;
	}
	:root:not([data-theme="light"]) .theme-toggle .show-light {
		display: none;
	}
}

@media (min-width: 64rem) {
	.primary-nav {
		display: block;
	}
	.primary-nav + .header-tools {
		margin-left: 0;
	}
	.studio-link {
		display: block;
	}
	.menu-btn {
		display: none;
	}
}

/* Reading progress: the header's bottom rule fills with rose as you read. */
.progress {
	position: absolute;
	left: 0;
	right: 0;
	bottom: calc(-1 * var(--rule-w));
	height: var(--rule-w);
	background: var(--accent-bright);
	transform: scaleX(var(--read, 0));
	transform-origin: 0 50%;
	pointer-events: none;
}

/* Popovers: search and the phone menu drop from under the header. */
.pop {
	position: fixed;
	inset: calc(var(--header-h) + var(--bar)) 0 auto 0;
	width: 100%;
	max-width: none;
	margin: 0;
	padding: var(--space-lg) 0 var(--space-xl);
	border: 0;
	border-bottom: var(--rule-w) solid var(--ink);
	background: var(--paper);
	color: var(--ink);
	box-shadow: 0 24px 48px -24px var(--lift);
}
.pop::backdrop {
	background: var(--scrim);
}
.pop-inner {
	display: flex;
	align-items: flex-start;
	gap: var(--space-md);
}
.pop-inner > :first-child {
	flex: 1;
	min-width: 0;
}
.pop-menu .menu-list {
	list-style: none;
}
.pop-menu .menu-list + .menu-list {
	margin-top: var(--space-lg);
	padding-top: var(--space-lg);
	border-top: 1px solid var(--rule);
}
.pop-menu .menu-list a {
	display: block;
	padding: var(--space-xs) 0;
	font-family: var(--font-display);
	font-size: var(--text-xl);
	font-weight: var(--weight-display);
	font-stretch: 108%;
	letter-spacing: -0.02em;
	text-decoration: none;
}
.pop-menu .menu-list a:hover {
	color: var(--accent-ink);
}
@media (prefers-reduced-motion: no-preference) {
	.pop:popover-open {
		animation: drop 0.25s var(--ease);
	}
}
@keyframes drop {
	from {
		opacity: 0;
		transform: translateY(-8px);
	}
}

/* ---------- Search form ---------- */

.search-form {
	display: flex;
	align-items: stretch;
	max-width: 36rem;
	border: var(--rule-w) solid var(--ink);
	border-radius: var(--radius);
	background: var(--paper-3);
}
.search-field {
	flex: 1;
	min-width: 0;
	min-height: 48px;
	padding: var(--space-sm) var(--space-md);
	border: 0;
	background: transparent;
	color: var(--ink);
	font-family: var(--font-text);
	font-size: var(--text-lg);
	outline: none;
}
.search-field::placeholder {
	color: var(--muted);
}
.search-field::-webkit-search-cancel-button {
	-webkit-appearance: none;
	appearance: none;
}
.search-form:focus-within {
	outline: 3px solid var(--accent-bright);
	outline-offset: 2px;
}
.search-submit {
	display: grid;
	place-items: center;
	width: 52px;
	border: 0;
	border-left: var(--rule-w) solid var(--ink);
	background: var(--ink);
	color: var(--paper);
	cursor: pointer;
	transition: background-color 0.15s, color 0.15s;
}
.search-submit:hover {
	background: var(--accent);
	color: var(--on-accent);
}
.search-submit:active {
	background: var(--accent-ink);
}

/* ---------- Section heads ---------- */

.section-title {
	font-size: var(--text-section);
	font-weight: var(--weight-display);
	font-stretch: 118%;
	letter-spacing: -0.035em;
	line-height: 0.98;
}

/* ---------- Home ---------- */

/* The desk model and the tagline. The name is already in the header and the footer, so the
   masthead shows the picture instead: model first on phones, words left of it from tablets up. */
.masthead {
	display: grid;
	gap: var(--space-lg);
	padding-block: var(--space-lg) var(--space-xl);
}
.masthead-art {
	margin: 0;
}
.masthead-art img {
	display: block;
	width: 100%;
	max-width: 40rem;
	height: auto;
	margin-inline: auto;
}
.masthead-title {
	max-width: 12em;
	font-size: clamp(2.5rem, 1rem + 3.4vw, 4.5rem);
	overflow-wrap: normal;
	font-weight: var(--weight-display);
	font-stretch: 118%;
	letter-spacing: -0.035em;
	line-height: 0.95;
	text-wrap: balance;
}
.masthead-intro {
	max-width: 34rem;
	margin-top: var(--space-lg);
	padding-top: var(--space-md);
	border-top: var(--rule-w) solid var(--ink);
	color: var(--ink-soft);
	font-size: var(--text-lg);
	line-height: 1.5;
}
@media (min-width: 64rem) {
	.masthead {
		grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
		align-items: center;
		gap: var(--space-xl);
		padding-block: var(--space-xl);
	}
	.masthead-art img {
		max-width: none;
	}
	.masthead-text {
		order: -1;
	}
}

.index {
	padding-top: var(--space-2xl);
	padding-bottom: var(--space-2xl);
}
@media (min-width: 48rem) {
	.index {
		padding-top: var(--space-3xl);
		padding-bottom: var(--space-3xl);
	}
}
.index-head {
	margin-bottom: var(--space-xl);
}
.home .index {
	padding-top: var(--space-xl);
}
@media (min-width: 48rem) {
	.home .index {
		padding-top: var(--space-2xl);
	}
}

/* The newest post, set large at the head of the index. */
.feature {
	display: grid;
	gap: var(--space-lg);
	padding-bottom: var(--space-2xl);
	border-bottom: var(--rule-w) solid var(--ink);
}
.feature-media {
	display: block;
	overflow: hidden;
	aspect-ratio: 3 / 2;
	border: var(--rule-w) solid var(--ink);
	background: var(--paper-2);
	color: var(--ink);
}
.feature-media picture,
.card-media picture,
.row-thumb picture,
.post-hero picture {
	display: contents;
}
.feature-media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.feature-body {
	display: flex;
	flex-direction: column;
	gap: var(--space-md);
}
.feature-title {
	font-size: clamp(2rem, 1rem + 2.6vw, 3.25rem);
	font-stretch: 112%;
	letter-spacing: -0.03em;
	line-height: 0.98;
}
.feature-title a,
.card-title a,
.row-title {
	text-decoration-line: underline;
	text-decoration-color: transparent;
	text-decoration-thickness: 2px;
	text-underline-offset: 0.12em;
	transition: text-decoration-color 0.2s, color 0.2s;
}
.feature:hover .feature-title a,
.card:hover .card-title a,
.row:hover .row-title,
.feature-title a:focus-visible,
.card-title a:focus-visible,
.row-title:focus-visible {
	text-decoration-color: var(--accent-bright);
}
.feature-dek {
	max-width: 36rem;
	color: var(--ink-soft);
	font-size: var(--text-lg);
	line-height: 1.5;
}
@media (min-width: 56rem) {
	.feature {
		grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
		align-items: center;
		gap: var(--space-xl);
	}
}

/* Index rows, grouped by year */
.year {
	display: grid;
	gap: 0 var(--space-xl);
	border-bottom: var(--rule-w) solid var(--ink);
}
.year-label {
	padding: var(--space-lg) 0 var(--space-xs);
	font-size: var(--text-xl);
	font-stretch: 112%;
	font-variant-numeric: lining-nums tabular-nums;
}
@media (min-width: 64rem) {
	.year {
		grid-template-columns: 9rem minmax(0, 1fr);
	}
	.year-label {
		position: sticky;
		top: calc(var(--header-h) + var(--bar) + var(--space-md));
		align-self: start;
		padding-top: var(--space-lg);
	}
}
.rows {
	list-style: none;
}
.row {
	position: relative;
	display: grid;
	grid-template-columns: 60px minmax(0, 1fr);
	grid-template-areas:
		"thumb main"
		"thumb meta";
	gap: var(--space-2xs) var(--space-md);
	padding: var(--space-md) 0;
	border-top: 1px solid var(--rule);
}
.rows > .row:first-child {
	border-top: 0;
}
.row-thumb {
	grid-area: thumb;
	width: 60px;
	height: 60px;
	overflow: hidden;
	border: var(--rule-w) solid var(--ink);
	background: var(--paper-2);
	color: var(--ink);
}
.row-thumb img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.row-main {
	grid-area: main;
	display: flex;
	flex-direction: column;
	gap: var(--space-2xs);
	min-width: 0;
}
.row-title {
	font-family: var(--font-display);
	font-size: 1.1875rem;
	font-weight: var(--weight-display);
	font-stretch: 106%;
	letter-spacing: -0.015em;
	line-height: 1.15;
	text-wrap: balance;
}
.row-title::after {
	content: "";
	position: absolute;
	inset: 0;
}
.row-dek {
	display: none;
	color: var(--ink-soft);
	font-size: var(--text-base);
	line-height: 1.45;
}
.row .meta {
	grid-area: meta;
}
.row .meta-topic {
	display: none;
}
@media (min-width: 48rem) {
	.row {
		grid-template-columns: 76px minmax(0, 1fr) 19rem;
		grid-template-areas: "thumb main meta";
		gap: 0 var(--space-lg);
		padding: var(--space-lg) 0;
	}
	.row-thumb {
		width: 76px;
		height: 76px;
	}
	.row-title {
		font-size: 1.375rem;
	}
	.row-dek {
		display: block;
	}
	/* Topic, date and length line up in columns down the index. */
	.row .meta {
		display: grid;
		grid-template-columns: minmax(0, 1fr) 6.5rem 3.5rem;
		gap: var(--space-sm);
		align-items: baseline;
		margin-left: 0;
		padding-top: var(--space-2xs);
		clip-path: none;
		text-align: right;
	}
	.row .meta > * {
		margin: 0;
		padding: 0;
		border: 0;
	}
	.row .meta-topic {
		display: block;
	}
}

/* Cards (related posts) */
.card {
	display: flex;
	flex-direction: column;
	gap: var(--space-md);
}
.card-media {
	display: block;
	overflow: hidden;
	aspect-ratio: 3 / 2;
	border: var(--rule-w) solid var(--ink);
	background: var(--paper-2);
	color: var(--ink);
}
.card-media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.card-body {
	display: flex;
	flex-direction: column;
	gap: var(--space-xs);
}
.card-title {
	font-size: 1.375rem;
	font-stretch: 106%;
	line-height: 1.12;
}
.card-dek {
	color: var(--ink-soft);
	font-size: var(--text-base);
	line-height: 1.5;
}
.card-grid {
	display: grid;
	gap: var(--space-xl) var(--space-lg);
}
@media (min-width: 44rem) {
	.card-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}
@media (min-width: 64rem) {
	.card-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

.about {
	padding-bottom: var(--space-2xl);
}

/* ---------- Author ---------- */

/* Phones: the photo sits beside the name and the bio and links take the full width, so the link
   row never strands its last item. Wider: the photo in its own column beside the text. */
.author-box {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr);
	grid-template-areas:
		"photo name"
		"bio bio"
		"links links";
	align-items: center;
	gap: var(--space-md);
	padding: var(--space-lg);
	border: var(--rule-w) solid var(--ink);
	border-radius: var(--radius);
	background: var(--paper-3);
}
.author-photo {
	grid-area: photo;
}
.author-text {
	display: contents;
}
.author-name {
	grid-area: name;
}
.author-bio {
	grid-area: bio;
}
.author-box .link-row {
	grid-area: links;
}
.author-photo img {
	display: block;
	width: 56px;
	height: 56px;
	border: var(--rule-w) solid var(--ink);
	border-radius: 50%;
	object-fit: cover;
}
@media (min-width: 40rem) {
	.author-box {
		grid-template-areas: "photo text";
		align-items: start;
		gap: var(--space-xl);
		padding: var(--space-xl);
	}
	.author-text {
		grid-area: text;
		display: flex;
		flex-direction: column;
		gap: var(--space-sm);
	}
	.author-photo img {
		width: 104px;
		height: 104px;
	}
}
.author-name {
	font-size: var(--text-xl);
	font-stretch: 112%;
	letter-spacing: -0.025em;
}
.author-name a {
	text-decoration: none;
}
.author-bio {
	max-width: 40rem;
	color: var(--ink-soft);
	font-size: var(--text-base);
	line-height: 1.6;
}
.author-bio a {
	color: var(--ink);
	text-decoration-color: var(--accent-bright);
	text-decoration-thickness: 2px;
	text-underline-offset: 0.2em;
}
.author-bio a:hover {
	color: var(--accent-ink);
}
.link-row {
	display: flex;
	flex-wrap: wrap;
	gap: var(--space-2xs) var(--space-md);
	list-style: none;
	font-size: var(--text-sm);
	font-weight: var(--weight-strong);
}
.link-row a {
	display: inline-block;
	padding: var(--space-2xs) 0;
	text-decoration: none;
}
.link-row a:hover {
	color: var(--accent-ink);
	text-decoration: underline;
	text-decoration-color: var(--accent-bright);
	text-decoration-thickness: 2px;
	text-underline-offset: 0.2em;
}

/* ---------- Archive, search and 404 heads ---------- */

.page-head {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: var(--space-md);
	padding-block: var(--space-xl) var(--space-xl);
	border-bottom: var(--rule-w) solid var(--ink);
}
.page-title {
	font-size: clamp(2.5rem, 1rem + 6vw, 6rem);
	font-stretch: 120%;
	letter-spacing: -0.04em;
	line-height: 0.9;
}
.page-dek {
	max-width: 40rem;
	color: var(--ink-soft);
	font-size: var(--text-lg);
	line-height: 1.5;
}
.page-head .search-form {
	width: 100%;
	margin-top: var(--space-xs);
}
.archive-page .index {
	padding-top: var(--space-md);
}
.archive-page .author-box {
	margin-top: var(--space-xl);
}
.empty {
	display: flex;
	flex-direction: column;
	gap: var(--space-md);
	padding-block: var(--space-xl);
	font-size: var(--text-lg);
}
.empty .menu-list {
	display: flex;
	flex-wrap: wrap;
	gap: var(--space-2xs) var(--space-lg);
	list-style: none;
	font-weight: var(--weight-strong);
}
.not-found .index-head {
	margin: var(--space-xl) 0 var(--space-md);
}

.crumbs ol {
	display: flex;
	flex-wrap: wrap;
	list-style: none;
	color: var(--muted);
	font-size: var(--text-sm);
}
.crumbs li + li::before {
	content: "/";
	margin: 0 var(--space-xs);
	color: var(--rule);
}
.crumbs a {
	text-decoration: none;
}
.crumbs a:hover {
	color: var(--ink);
	text-decoration: underline;
	text-decoration-color: var(--accent-bright);
}

/* Pagination */
.pagination {
	margin-top: var(--space-xl);
}
.pagination .nav-links {
	display: flex;
	flex-wrap: wrap;
	gap: var(--space-xs);
}
.pagination .page-numbers {
	display: inline-grid;
	place-items: center;
	min-width: 44px;
	height: 44px;
	padding: 0 var(--space-sm);
	border: var(--rule-w) solid var(--ink);
	border-radius: var(--radius);
	font-weight: var(--weight-strong);
	font-variant-numeric: tabular-nums;
	text-decoration: none;
}
.pagination .page-numbers.current,
.pagination a.page-numbers:hover {
	background: var(--ink);
	color: var(--paper);
}
.pagination .dots {
	border-color: transparent;
}

/* ---------- Single post ---------- */

.post-head {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: var(--space-lg);
	padding-block: var(--space-xl) var(--space-xl);
}
.post-title {
	max-width: 18em;
	font-size: var(--text-display);
	font-stretch: 112%;
	letter-spacing: -0.035em;
	line-height: 0.96;
}
.post-dek {
	max-width: 38rem;
	color: var(--ink-soft);
	font-size: clamp(var(--text-lg), 1rem + 1vw, var(--text-xl));
	line-height: 1.38;
	letter-spacing: -0.005em;
}
/* The rule sits on a wrapper: the meta line itself is shifted left (see .meta) */
.post-meta {
	width: 100%;
	padding-top: var(--space-md);
	border-top: var(--rule-w) solid var(--ink);
}
@media (min-width: 40rem) {
	.post-head .meta {
		font-size: var(--text-base);
	}
	.link-row {
		column-gap: var(--space-lg);
	}
}

.post-hero {
	width: min(100% - 2 * var(--gutter), var(--wrap));
	margin: 0 auto var(--space-2xl);
}
.post-hero img {
	display: block;
	width: 100%;
	max-height: min(78vh, 46rem);
	object-fit: cover;
	border: var(--rule-w) solid var(--ink);
	background: var(--paper-2);
	color: var(--ink);
}
.post-hero figcaption,
.entry figcaption,
.entry .wp-caption-text {
	margin-top: var(--space-xs);
	color: var(--muted);
	font-size: var(--text-sm);
	line-height: 1.45;
}

/* Layout: a rail (contents, share) on the left on wide screens, the text centred on the page. */
.post-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	width: min(100% - 2 * var(--gutter), var(--text));
	margin-inline: auto;
}
.post-rail {
	display: flex;
	flex-direction: column;
	gap: var(--space-xl);
	min-width: 0;
}
.share.share-rail {
	display: none;
}
@media (min-width: 75rem) {
	.post-layout {
		width: 100%;
		grid-template-columns: minmax(0, 1fr) var(--text) minmax(0, 1fr);
		column-gap: var(--space-2xl);
		padding-inline: var(--gutter);
	}
	.post-rail {
		grid-column: 1;
		justify-self: end;
		align-self: start;
		position: sticky;
		top: calc(var(--header-h) + var(--bar) + var(--space-lg));
		width: min(100%, 16rem);
		max-height: calc(100vh - var(--header-h) - var(--bar) - var(--space-2xl));
		overflow-y: auto;
		overscroll-behavior: contain;
		scrollbar-width: thin;
		padding-bottom: var(--space-md);
	}
	.entry {
		grid-column: 2;
	}
	.share.share-rail {
		display: flex;
	}
}

/* Contents */
.toc {
	margin-bottom: var(--space-xl);
	border: var(--rule-w) solid var(--ink);
	border-radius: var(--radius);
	background: var(--paper-3);
}
.toc summary {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: var(--space-md);
	min-height: 48px;
	padding: var(--space-sm) var(--space-md);
	cursor: pointer;
	list-style: none;
	font-weight: var(--weight-strong);
}
.toc summary::-webkit-details-marker {
	display: none;
}
.toc summary::after {
	content: "+";
	font-size: var(--text-lg);
	line-height: 1;
}
.toc details[open] summary::after {
	content: "\2212";
}
.toc-count {
	margin-left: auto;
	color: var(--muted);
	font-size: var(--text-sm);
	font-weight: var(--weight-text);
}
.toc ol {
	list-style: none;
	padding: 0 var(--space-md) var(--space-md);
}
.toc li a {
	display: block;
	padding: var(--space-xs) 0;
	border-top: 1px solid var(--rule);
	color: var(--ink-soft);
	font-size: var(--text-sm);
	line-height: 1.35;
	text-decoration: none;
	transition: color 0.15s;
}
.toc li a:hover {
	color: var(--ink);
}
.toc li a[aria-current="true"] {
	color: var(--ink);
	font-weight: var(--weight-strong);
}
@media (min-width: 75rem) {
	.toc {
		margin-bottom: 0;
		border: 0;
		background: transparent;
	}
	.toc summary {
		min-height: 0;
		padding: 0 0 var(--space-sm);
		cursor: default;
		border-bottom: var(--rule-w) solid var(--ink);
	}
	.toc summary::after {
		display: none;
	}
	.toc ol {
		padding: 0;
	}
	.toc li:first-child a {
		border-top: 0;
	}
	.toc li a[aria-current="true"] {
		box-shadow: inset 2px 0 0 var(--accent-bright);
		padding-left: var(--space-sm);
		margin-left: calc(-1 * var(--space-sm));
	}
}

/* Share: plain links, no third-party scripts */
.share {
	display: flex;
	flex-direction: column;
	gap: var(--space-xs);
}
.share-title {
	font-weight: var(--weight-strong);
}
.share-rail .share-title {
	padding-bottom: var(--space-sm);
	border-bottom: var(--rule-w) solid var(--ink);
}
.share ul {
	display: flex;
	flex-wrap: wrap;
	gap: var(--space-2xs) var(--space-lg);
	list-style: none;
	font-size: var(--text-sm);
}
.share-rail ul {
	flex-direction: column;
	gap: 0;
}
.share a,
.share button {
	display: inline-block;
	padding: var(--space-2xs) 0;
	border: 0;
	background: none;
	color: var(--ink-soft);
	font: inherit;
	text-decoration: none;
	cursor: pointer;
}
.share a:hover,
.share button:hover {
	color: var(--accent-ink);
	text-decoration: underline;
	text-decoration-color: var(--accent-bright);
	text-underline-offset: 0.2em;
}

/* ---------- The text ---------- */

.entry {
	min-width: 0;
	font-size: var(--text-read);
	line-height: 1.72;
	font-variant-numeric: oldstyle-nums proportional-nums;
	hanging-punctuation: first;
	overflow-wrap: break-word;
}
.entry > * + * {
	margin-top: var(--flow);
}
.entry p,
.entry ul,
.entry ol,
.entry blockquote {
	margin-block: 0;
}
.entry > * + p,
.entry > * + ul,
.entry > * + ol {
	margin-top: var(--flow);
}
.entry a {
	color: inherit;
	text-decoration-line: underline;
	text-decoration-color: var(--accent-bright);
	text-decoration-thickness: 2px;
	text-underline-offset: 0.2em;
	transition: color 0.15s, text-decoration-color 0.15s;
}
.entry a:hover {
	color: var(--accent-ink);
	text-decoration-color: currentColor;
}
.entry strong,
.entry b {
	font-weight: var(--weight-strong);
}
.entry h2,
.entry h3,
.entry h4,
.entry h5,
.entry h6 {
	position: relative;
	scroll-margin-top: calc(var(--header-h) + var(--bar) + var(--space-lg));
}
.entry h2 {
	margin-top: var(--flow-head);
	margin-bottom: -0.3em;
	padding-top: 0.8em;
	border-top: 1px solid var(--rule);
	font-size: var(--text-2xl);
	font-stretch: 112%;
	letter-spacing: -0.03em;
	line-height: 1.05;
}
.entry h3 {
	margin-top: 1.9em;
	margin-bottom: -0.45em;
	font-size: var(--text-lg);
	font-stretch: 108%;
	letter-spacing: -0.02em;
	line-height: 1.15;
}
.entry h4,
.entry h5,
.entry h6 {
	margin-top: 1.6em;
	margin-bottom: -0.55em;
	font-family: var(--font-text);
	font-size: 1em;
	font-weight: var(--weight-strong);
	font-stretch: normal;
	letter-spacing: 0;
	line-height: 1.4;
}
.entry > h2:first-child,
.entry > h3:first-child {
	margin-top: 0;
	border-top: 0;
	padding-top: 0;
}
.entry ul,
.entry ol {
	padding-left: 1.4em;
}
.entry li {
	padding-left: 0.2em;
}
.entry li + li {
	margin-top: 0.45em;
}
.entry li > ul,
.entry li > ol {
	margin-top: 0.45em;
}
.entry ul li::marker {
	color: var(--muted);
}
.entry ol li::marker {
	color: var(--muted);
	font-variant-numeric: lining-nums tabular-nums;
}
.entry blockquote {
	margin-inline: 0;
	padding-left: 1.2em;
	border-left: var(--rule-w) solid var(--ink);
	color: var(--ink-soft);
	font-size: 1.1em;
	font-style: italic;
	line-height: 1.55;
}
.entry blockquote p + p {
	margin-top: 0.75em;
}
.entry hr {
	height: 0;
	margin-block: 2.4em;
	border: 0;
	border-top: var(--rule-w) solid var(--ink);
}
.entry sup {
	line-height: 0;
	font-size: 0.7em;
}
.entry sup a {
	text-decoration: none;
	font-weight: var(--weight-strong);
	color: var(--accent-ink);
}
.entry del {
	color: var(--muted);
}
.entry mark {
	background: var(--mark);
	color: var(--mark-ink);
	padding: 0 0.15em;
}

/* Inline code */
.entry :not(pre) > code,
.comment-text :not(pre) > code {
	padding: 0.12em 0.36em 0.1em;
	border-radius: var(--radius);
	background: var(--paper-2);
	font-family: var(--font-mono);
	font-size: 0.78em;
	font-stretch: 87.5%;
	font-variant-numeric: normal;
	overflow-wrap: anywhere;
}

/* Code panels */
.code {
	margin-inline: calc(-1 * min(var(--gutter), 32px));
	border: var(--rule-w) solid var(--ink);
	border-radius: var(--radius);
	background: var(--code-bg);
	color: var(--code-ink);
	font-variant-numeric: normal;
}
:root[data-theme="dark"] .code {
	border-color: var(--rule);
}
@media (prefers-color-scheme: dark) {
	:root:not([data-theme="light"]) .code {
		border-color: var(--rule);
	}
}
@media (min-width: 48rem) {
	.code {
		margin-inline: -32px;
	}
}
.code-bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--space-md);
	min-height: 40px;
	padding: 0 var(--space-xs) 0 var(--space-md);
	background: var(--code-bar);
	border-bottom: 1px solid var(--code-rule);
}
.code-lang {
	color: var(--code-muted);
	font-family: var(--font-mono);
	font-size: var(--text-xs);
	font-stretch: 90%;
}
.code-copy {
	min-height: 32px;
	padding: 0 var(--space-sm);
	border: 1px solid var(--code-rule);
	border-radius: var(--radius);
	background: transparent;
	color: var(--code-ink);
	font-family: var(--font-text);
	font-size: var(--text-xs);
	cursor: pointer;
	transition: background-color 0.15s;
}
.code-copy:hover {
	background: var(--code-hover);
}
.code-copy:active {
	background: var(--code-rule);
}
.code pre {
	margin: 0;
	padding: var(--space-md) var(--space-md) var(--space-lg);
	overflow-x: auto;
	font-family: var(--font-mono);
	font-size: 0.8rem;
	font-stretch: 87.5%;
	line-height: 1.7;
	tab-size: 4;
	scrollbar-width: thin;
	scrollbar-color: var(--code-muted) transparent;
}
.code pre:focus-visible {
	outline-offset: -3px;
}
.code code {
	font: inherit;
	white-space: pre;
}

/* Prism tokens */
.token.comment,
.token.prolog,
.token.doctype,
.token.cdata {
	color: var(--tok-comment);
	font-style: italic;
}
.token.punctuation,
.token.operator {
	color: var(--tok-punct);
}
.token.keyword,
.token.boolean,
.token.important,
.token.atrule,
.token.selector,
.token.tag {
	color: var(--tok-keyword);
}
.token.string,
.token.char,
.token.attr-value,
.token.regex,
.token.inserted {
	color: var(--tok-string);
}
.token.number,
.token.constant,
.token.symbol,
.token.deleted {
	color: var(--tok-number);
}
.token.function,
.token.class-name {
	color: var(--tok-function);
}
.token.builtin,
.token.attr-name,
.token.property,
.token.variable {
	color: var(--tok-builtin);
}
.token.bold {
	font-weight: var(--weight-strong);
}
.token.italic {
	font-style: italic;
}

/* Images and captions (classic editor markup, with or without Imagify's <picture>) */
.entry img {
	display: block;
	max-width: 100%;
	height: auto;
	border: 1px solid var(--rule);
}
.entry picture {
	display: block;
	max-width: 100%;
}
.entry a:has(> img),
.entry a:has(> picture) {
	display: block;
	width: fit-content;
	max-width: 100%;
	text-decoration: none;
	cursor: zoom-in;
}
.entry .aligncenter,
.entry img.aligncenter,
.entry picture.aligncenter,
.entry a:has(> .aligncenter),
.entry p > img:only-child,
.entry p > a:only-child > img,
.entry p > a:only-child > picture,
.entry p > picture:only-child {
	margin-inline: auto;
}
.entry .wp-caption {
	display: table;
	max-width: 100%;
	margin-inline: auto;
}
.entry .wp-caption img,
.entry .wp-caption picture {
	margin: 0;
}
.entry .wp-caption-text {
	display: table-caption;
	caption-side: bottom;
}
.entry .alignnone {
	margin-inline: 0;
}
.rocnofull,
.entry img.rocnofull,
.entry picture.rocnofull img {
	width: 25rem;
	max-width: 100%;
}
@media (min-width: 40rem) {
	.entry .alignleft,
	.entry a:has(> .alignleft) {
		float: left;
		max-width: 48%;
		margin: 0.35em 1.5em 1em 0;
	}
	.entry .alignright,
	.entry a:has(> .alignright) {
		float: right;
		max-width: 48%;
		margin: 0.35em 0 1em 1.5em;
	}
	.entry a:has(> .alignleft) > .alignleft,
	.entry a:has(> .alignright) > .alignright {
		float: none;
		max-width: 100%;
		margin: 0;
	}
	.entry h2,
	.entry h3,
	.entry .code,
	.entry hr,
	.entry .table-wrap {
		clear: both;
	}
}
.entry::after {
	content: "";
	display: block;
	clear: both;
}

/* Tables and embeds */
.table-wrap {
	overflow-x: auto;
	border: var(--rule-w) solid var(--ink);
}
.entry table {
	width: 100%;
	border-collapse: collapse;
	font-size: var(--text-sm);
	line-height: 1.45;
	font-variant-numeric: lining-nums tabular-nums;
}
.entry th,
.entry td {
	padding: var(--space-sm) var(--space-md);
	border-bottom: 1px solid var(--rule);
	text-align: left;
	vertical-align: top;
}
.entry th {
	background: var(--paper-2);
	font-weight: var(--weight-strong);
}
.entry iframe,
.entry video,
.entry embed,
.entry object {
	display: block;
	max-width: 100%;
	margin-inline: auto;
}
.entry iframe[src*="youtube"],
.entry iframe[src*="vimeo"] {
	width: 100%;
	height: auto;
	aspect-ratio: 16 / 9;
}

/* Heading links, added by the script */
.h-anchor {
	position: absolute;
	right: 100%;
	bottom: 0.05em;
	display: grid;
	place-items: center;
	width: 28px;
	height: 28px;
	margin-right: var(--space-xs);
	color: var(--muted);
	opacity: 0;
	transition: opacity 0.15s;
}
.h-anchor .icon {
	width: 16px;
	height: 16px;
}
.entry :is(h2, h3):hover .h-anchor,
.h-anchor:focus-visible {
	opacity: 1;
}
.h-anchor:hover {
	color: var(--accent-ink);
}
@media (max-width: 47.99rem) {
	.h-anchor {
		display: none;
	}
}

.page-links {
	display: flex;
	gap: var(--space-xs);
	margin-top: var(--space-xl);
}

/* After the text */
.post-foot {
	display: flex;
	flex-direction: column;
	gap: var(--space-xl);
	margin-top: var(--space-2xl);
	padding-top: var(--space-xl);
	border-top: var(--rule-w) solid var(--ink);
}
.post-tags {
	color: var(--muted);
	font-size: var(--text-sm);
}
.post-tags a {
	color: var(--ink-soft);
	text-decoration-color: var(--rule);
	text-underline-offset: 0.2em;
}
.post-tags a:hover {
	color: var(--accent-ink);
	text-decoration-color: var(--accent-bright);
}
@media (min-width: 75rem) {
	.share.share-foot {
		display: none;
	}
}

.post-nav {
	display: grid;
	margin-top: var(--space-2xl);
	border-top: var(--rule-w) solid var(--ink);
	border-bottom: var(--rule-w) solid var(--ink);
}
@media (min-width: 48rem) {
	.post-nav {
		grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	}
	.post-nav-link.next {
		grid-column: 2;
		text-align: right;
		align-items: flex-end;
		border-left: var(--rule-w) solid var(--ink);
	}
}
.post-nav-link {
	display: flex;
	flex-direction: column;
	gap: var(--space-xs);
	padding: var(--space-lg) var(--space-lg);
	text-decoration: none;
	transition: background-color 0.2s, color 0.2s;
}
.post-nav-link + .post-nav-link {
	border-top: var(--rule-w) solid var(--ink);
}
@media (min-width: 48rem) {
	.post-nav-link + .post-nav-link {
		border-top: 0;
	}
}
.post-nav-dir {
	color: var(--muted);
	font-size: var(--text-sm);
}
.post-nav-title {
	font-family: var(--font-display);
	font-size: var(--text-xl);
	font-weight: var(--weight-display);
	font-stretch: 110%;
	letter-spacing: -0.025em;
	line-height: 1.08;
	text-wrap: balance;
}
.post-nav-link:hover {
	background: var(--ink);
	color: var(--paper);
}
.post-nav-link:hover .post-nav-dir {
	color: inherit;
}

.related {
	padding-top: var(--space-3xl);
}
.related .section-title {
	margin-bottom: var(--space-xl);
	font-size: var(--text-2xl);
}

/* ---------- Comments ---------- */

.comments {
	padding-top: var(--space-3xl);
	padding-bottom: var(--space-md);
}
.comments-title {
	padding-bottom: var(--space-md);
	border-bottom: var(--rule-w) solid var(--ink);
	font-size: var(--text-2xl);
	font-stretch: 115%;
	letter-spacing: -0.03em;
}
.comment-list {
	list-style: none;
}
.comment-list .children {
	list-style: none;
	margin-left: var(--space-lg);
	padding-left: var(--space-lg);
	border-left: var(--rule-w) solid var(--rule);
}
.comment-body {
	display: flex;
	flex-direction: column;
	gap: var(--space-sm);
	padding: var(--space-lg) 0;
	border-bottom: 1px solid var(--rule);
}
.comment-head {
	display: flex;
	align-items: center;
	gap: var(--space-sm);
}
.comment-head .avatar {
	width: 44px;
	height: 44px;
	border-radius: 50%;
	border: var(--rule-w) solid var(--ink);
}
.comment-author {
	font-weight: var(--weight-strong);
	line-height: 1.2;
}
.comment-author a {
	text-decoration: none;
}
.comment-author .is-author {
	color: var(--muted);
	font-weight: var(--weight-text);
}
.comment-date {
	color: var(--muted);
	font-size: var(--text-sm);
}
.comment-date a {
	text-decoration: none;
}
.comment-text {
	font-size: var(--text-base);
	line-height: 1.65;
	overflow-wrap: break-word;
}
.comment-text p + p {
	margin-top: 0.85em;
}
.comment-text a {
	text-decoration-color: var(--accent-bright);
	text-underline-offset: 0.2em;
}
.comment-pending {
	color: var(--accent-ink);
}
.comment-reply a {
	color: var(--accent-ink);
	font-size: var(--text-sm);
	font-weight: var(--weight-strong);
	text-decoration: none;
}
.comment-reply a:hover {
	text-decoration: underline;
}

.comment-respond {
	margin-top: var(--space-xl);
	padding: var(--space-lg);
	border: var(--rule-w) solid var(--ink);
	border-radius: var(--radius);
	background: var(--paper-3);
}
@media (min-width: 40rem) {
	.comment-respond {
		padding: var(--space-xl);
	}
}
.comment-list .comment-respond {
	margin: 0 0 var(--space-lg);
}
.comment-reply-title {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: var(--space-md);
	font-size: var(--text-xl);
	font-stretch: 112%;
	letter-spacing: -0.025em;
}
.comment-reply-title small a {
	font-family: var(--font-text);
	font-size: var(--text-sm);
	font-weight: var(--weight-strong);
	letter-spacing: 0;
	color: var(--accent-ink);
}
.comment-form {
	display: grid;
	gap: var(--space-md);
	margin-top: var(--space-md);
}
.comment-notes,
.logged-in-as {
	color: var(--muted);
	font-size: var(--text-sm);
}
.comment-form label {
	display: block;
	margin-bottom: var(--space-2xs);
	font-size: var(--text-sm);
	font-weight: var(--weight-strong);
}
.comment-form .required {
	color: var(--accent-ink);
}
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
	width: 100%;
	min-height: 48px;
	padding: var(--space-sm) var(--space-md);
	border: var(--rule-w) solid var(--ink);
	border-radius: var(--radius);
	background: var(--paper);
	color: var(--ink);
	font-family: var(--font-text);
	font-size: var(--text-base);
	line-height: 1.5;
}
.comment-form textarea {
	min-height: 9rem;
	resize: vertical;
}
.comment-form input:focus,
.comment-form textarea:focus {
	outline: 3px solid var(--accent-bright);
	outline-offset: 1px;
}
.comment-form .g-recaptcha,
.comment-form .h-captcha,
.comment-form .cf-turnstile {
	min-height: 72px;
}
.comment-form-cookies-consent,
.comment-subscription-form {
	display: flex;
	align-items: flex-start;
	gap: var(--space-xs);
	color: var(--ink-soft);
	font-size: var(--text-sm);
}
.comment-form-cookies-consent input,
.comment-subscription-form input {
	margin-top: var(--space-2xs);
	accent-color: var(--accent);
}
.comment-form-cookies-consent label,
.comment-subscription-form label {
	margin: 0;
	font-weight: var(--weight-text);
}
@media (min-width: 40rem) {
	.comment-form {
		grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	}
	.comment-form > * {
		grid-column: 1 / -1;
	}
	.comment-form-author {
		grid-column: 1 / 2 !important;
	}
	.comment-form-email {
		grid-column: 2 / 3 !important;
	}
}
.comments-closed {
	margin-top: var(--space-lg);
	color: var(--muted);
}

/* ---------- Footer: a change of paper ---------- */

.site-footer {
	--paper: var(--band);
	--paper-2: var(--band-2);
	--paper-3: var(--band-2);
	--ink: var(--band-ink);
	--ink-soft: var(--band-soft);
	--muted: var(--band-muted);
	--rule: var(--band-rule);
	--accent-ink: var(--band-accent);
	margin-top: var(--space-2xl);
	padding-block: var(--space-2xl) var(--space-xl);
	background: var(--paper);
	color: var(--ink);
}
:root[data-theme="dark"] .site-footer {
	border-top: var(--rule-w) solid var(--band-rule);
}
@media (prefers-color-scheme: dark) {
	:root:not([data-theme="light"]) .site-footer {
		border-top: var(--rule-w) solid var(--band-rule);
	}
}
.footer-main {
	display: grid;
	gap: var(--space-xl);
	padding-bottom: var(--space-xl);
	border-bottom: var(--rule-w) solid var(--ink);
}
.footer-name {
	font-family: var(--font-display);
	font-size: clamp(2.5rem, 1.4rem + 4vw, 4.5rem);
	font-weight: var(--weight-display);
	font-stretch: 122%;
	letter-spacing: -0.04em;
	line-height: 0.9;
}
.footer-blurb {
	max-width: 32rem;
	margin-top: var(--space-md);
	color: var(--ink-soft);
	font-size: var(--text-lg);
	line-height: 1.5;
}
.footer-blurb a {
	color: var(--ink);
	text-decoration-color: var(--accent-bright);
	text-decoration-thickness: 2px;
	text-underline-offset: 0.2em;
}
.footer-blurb a:hover {
	color: var(--accent-ink);
}
.footer-side {
	display: flex;
	flex-direction: column;
	gap: var(--space-lg);
}
.site-footer .search-form {
	background: transparent;
}
.site-footer .search-submit {
	color: var(--band);
}
@media (min-width: 56rem) {
	.footer-main {
		grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
		align-items: end;
	}
}
.footer-base {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: space-between;
	gap: var(--space-sm) var(--space-xl);
	padding-top: var(--space-lg);
	color: var(--muted);
	font-size: var(--text-sm);
}
.motto {
	font-style: italic;
	cursor: help;
}
.to-top {
	text-decoration: none;
}
.to-top:hover {
	color: var(--ink);
	text-decoration: underline;
}

/* ---------- Image viewer ---------- */

.lightbox {
	width: 100%;
	height: 100%;
	max-width: none;
	max-height: none;
	margin: 0;
	padding: var(--space-lg);
	border: 0;
	background: var(--viewer);
	color: var(--band-ink);
}
.lightbox[open] {
	display: grid;
	grid-template-rows: auto minmax(0, 1fr) auto;
	justify-items: center;
	gap: var(--space-sm);
}
.lightbox::backdrop {
	background: transparent;
}
.lightbox form {
	justify-self: end;
}
.lightbox-close {
	color: var(--band-ink);
	border: 1px solid var(--band-rule);
}
.lightbox-close:hover {
	background: var(--band-2);
}
.lightbox img {
	max-width: 100%;
	max-height: 100%;
	object-fit: contain;
	align-self: center;
}
.lightbox-caption {
	max-width: 50rem;
	color: var(--band-muted);
	font-size: var(--text-sm);
	text-align: center;
}

/* ---------- Motion and print ---------- */

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		transition-duration: 0.01ms !important;
		animation-duration: 0.01ms !important;
	}
}

@media print {
	:root {
		--paper: var(--print-paper);
		--ink: var(--print-ink);
		--code-bg: var(--print-well);
		--code-ink: var(--print-ink);
	}
	.site-header,
	.post-rail,
	.share,
	.post-nav,
	.related,
	.comments,
	.site-footer,
	.code-bar,
	.skip-link {
		display: none !important;
	}
	body {
		font-size: 11pt;
	}
	.post-layout {
		display: block;
		width: auto;
	}
	.entry a[href^="http"]::after {
		content: " (" attr(href) ")";
		font-size: 0.8em;
		word-break: break-all;
	}
	.code {
		margin: 0;
		border: 1px solid var(--print-rule);
	}
	.code code,
	.token {
		color: var(--print-ink) !important;
	}
	.code pre {
		white-space: pre-wrap;
	}
}
