/* ==========================================================================
   Retro computer magazine theme
   Think 1980s home-computer monthlies: chunky expanded type, heavy rules,
   a rainbow stripe, colour "boxouts" and stickers. Full palette, used with intent:
   ink for structure, red for headlines/kickers, teal for links, yellow for boxouts.
   ========================================================================== */

:root {
	/* Colour */
	--bg: oklch(1 0 0);
	--surface: oklch(0.965 0.008 175);
	--surface-strong: oklch(0.92 0.012 175);
	--ink: oklch(0.2 0.02 175);
	--muted: oklch(0.42 0.02 175);
	--red: oklch(0.57 0.21 25);
	--red-deep: oklch(0.5 0.19 25);
	--orange: oklch(0.72 0.17 55);
	--yellow: oklch(0.89 0.16 95);
	--yellow-soft: oklch(0.96 0.07 95);
	--teal: oklch(0.55 0.11 175);
	--teal-deep: oklch(0.45 0.1 175);
	--teal-panel: oklch(0.48 0.1 175);
	--blue: oklch(0.5 0.15 255);
	--greenbar: oklch(0.95 0.035 150);

	/* Type */
	--font-display: "Archivo", "Arial Black", "Helvetica Neue", sans-serif;
	--font-body: "Source Serif 4", "Iowan Old Style", Georgia, serif;
	--font-pixel: "Silkscreen", ui-monospace, monospace;
	--font-code: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

	--step--1: 0.875rem;
	--step-0: 1.1875rem;
	--step-1: 1.5rem;
	--step-2: clamp(1.6rem, 1.3rem + 1.2vw, 2.1rem);
	--step-3: clamp(2rem, 1.4rem + 2.6vw, 3.25rem);
	--step-4: clamp(2.4rem, 1.5rem + 4vw, 4.5rem);

	/* Space & layout */
	--gutter: clamp(1rem, 4vw, 2.5rem);
	--wrap: 78rem;
	--measure: 68ch;
	--rule: 3px solid var(--ink);
	--rule-heavy: 6px solid var(--ink);
	--shadow: 6px 6px 0 var(--ink);
	--shadow-sm: 3px 3px 0 var(--ink);

	/* Layers */
	--z-base: 1;
	--z-flash: 10;
	--z-skip: 100;

	--ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 1rem; }
body {
	margin: 0;
	background: var(--bg);
	color: var(--ink);
	font-family: var(--font-body);
	font-size: var(--step-0);
	line-height: 1.65;
	font-optical-sizing: auto;
	text-rendering: optimizeLegibility;
	overflow-x: clip;
}
img, picture, svg { max-width: 100%; display: block; }
img { height: auto; }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.05; margin: 0; text-wrap: balance; }
p { margin: 0; }
a { color: var(--teal-deep); text-decoration-thickness: 2px; text-underline-offset: 0.18em; }
a:hover { color: var(--red-deep); }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
main:focus { outline: none; }
::selection { background: var(--yellow); color: var(--ink); }

.visually-hidden {
	position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
	position: absolute; left: 1rem; top: -4rem; z-index: var(--z-skip);
	background: var(--yellow); color: var(--ink); padding: 0.6rem 1rem;
	font-family: var(--font-pixel); border: var(--rule); text-decoration: none;
}
.skip-link:focus { top: 1rem; }

/* Shared page width */
.masthead, .topbar, .cover, .contents, .pager, .listing, .post, .post-nav, .profile, .empty, .site-footer__inner, .site-footer__legal {
	width: min(100% - 2 * var(--gutter), var(--wrap));
	margin-inline: auto;
}

/* ---------- Rainbow stripes ---------- */
.stripes { display: flex; gap: 0; height: 100%; }
.stripes span { flex: 1; transform: skewX(-32deg); }
.stripes span:nth-child(1) { background: var(--red); }
.stripes span:nth-child(2) { background: var(--orange); }
.stripes span:nth-child(3) { background: var(--yellow); }
.stripes span:nth-child(4) { background: var(--teal); }
.stripes span:nth-child(5) { background: var(--blue); }

/* ---------- Header ---------- */
.site-header { background: var(--bg); }
.topbar {
	display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1.5rem;
	padding-block: 0.6rem;
	font-family: var(--font-pixel); font-size: 0.8125rem; line-height: 1.2;
}
.topbar-wrap { background: var(--ink); color: var(--bg); }
.topbar :focus-visible { outline-color: var(--yellow); }
.topbar__issue { display: flex; gap: 1rem; color: var(--yellow); }
.topbar__date { color: var(--bg); }
.topbar__nav { margin-inline-start: auto; }
.topbar__nav ul { display: flex; flex-wrap: wrap; gap: 0.25rem 1.25rem; list-style: none; margin: 0; padding: 0; }
.topbar__nav a { color: var(--bg); text-decoration: none; padding-block: 0.35rem; display: inline-block; }
.topbar__nav a:hover { color: var(--yellow); }
.topbar__nav a[aria-current="page"] { color: var(--yellow); box-shadow: inset 0 -3px 0 var(--yellow); }
.topbar__search { display: flex; }
.topbar__search input {
	width: 11rem; min-width: 0; padding: 0.4rem 0.6rem;
	font: 600 0.9375rem/1.2 var(--font-display);
	color: var(--ink); background: var(--bg); border: 2px solid var(--bg); border-radius: 0;
}
.topbar__search input::placeholder { color: var(--muted); opacity: 1; }
.topbar__search button {
	font: 0.8125rem/1 var(--font-pixel); padding: 0.45rem 0.7rem;
	background: var(--yellow); color: var(--ink); border: 2px solid var(--yellow); border-radius: 0; cursor: pointer;
}
.topbar__search button:hover { background: var(--bg); border-color: var(--bg); }

/* Masthead (the magazine nameplate) */
.masthead {
	position: relative;
	display: grid;
	grid-template-columns: 1fr auto;
	grid-template-areas: "title art" "tagline art";
	align-items: end;
	column-gap: 2rem;
	padding-block: 1.25rem 1rem;
	border-bottom: var(--rule-heavy);
	box-shadow: 0 6px 0 var(--bg), 0 9px 0 var(--ink); /* magazine double rule */
	margin-bottom: 9px;
}
.masthead__title {
	grid-area: title;
	font-family: var(--font-display);
	font-weight: 900; font-stretch: 125%;
	font-variation-settings: "wdth" 125;
	text-transform: uppercase;
	letter-spacing: -0.02em;
	font-size: clamp(1.6rem, 1rem + 2.6vw, 2.6rem);
	line-height: 0.9;
}
.masthead__title a { color: var(--ink); text-decoration: none; }
.masthead__accent { color: var(--red); }
.masthead__title a:hover .masthead__accent { color: var(--ink); }
.masthead__tagline {
	grid-area: tagline;
	margin-top: 0.4rem;
	font-family: var(--font-display); font-weight: 600; font-size: var(--step--1);
	color: var(--muted);
}
/* Arcade-cabinet art: asteroids and a ship, framed like the side of a 1980s coin-op */
.masthead__art {
	grid-area: art; width: 9rem; height: 3.5rem; align-self: center;
	border: var(--rule); padding: 3px; background: var(--orange); box-shadow: var(--shadow-sm);
}
.masthead__art svg { display: block; width: 100%; height: 100%; border: 3px solid var(--red); background: var(--ink); }
.masthead__art .a-space { fill: oklch(0.44 0.17 262); }
.masthead__art .a-deep { fill: oklch(0.3 0.14 265); }
.masthead__art .a-void { fill: var(--ink); }
.masthead__art .a-rock { fill: var(--yellow); }
.masthead__art .a-rock-shade { fill: oklch(0.75 0.15 78); }
.masthead__art .a-crater { fill: oklch(0.6 0.13 65); stroke: var(--ink); stroke-width: 1; vector-effect: non-scaling-stroke; }
.masthead__art .a-white { fill: oklch(0.99 0 0); }
.masthead__art .a-grey { fill: oklch(0.8 0.015 260); }
.masthead__art .a-red { fill: var(--red); }
.masthead__art .a-orange { fill: var(--orange); }
.masthead__art .a-glass { fill: oklch(0.32 0.12 262); }
.masthead__art .a-trail { fill: var(--yellow); opacity: 0.3; }
.masthead__art .a-trail-core { fill: oklch(0.99 0 0); opacity: 0.45; }
.masthead__art .a-line { fill: none; stroke: var(--ink); stroke-width: 2; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.masthead__art .a-thin { stroke-width: 1; }
.masthead__art .a-ring { stroke: var(--yellow); stroke-width: 1.5; }

.masthead--cover { padding-block: clamp(1.5rem, 4vw, 3rem) 1.5rem; }
.masthead--cover .masthead__title {
	font-size: clamp(2.6rem, 0.8rem + 9vw, 6rem);
	line-height: 0.86;
}
.masthead--cover .masthead__accent { display: block; }
.masthead--cover .masthead__tagline { font-size: clamp(1rem, 0.85rem + 0.6vw, 1.35rem); color: var(--ink); margin-top: 1rem; }
.masthead--cover .masthead__art { width: clamp(7rem, 18vw, 15rem); height: clamp(6rem, 15vw, 12rem); align-self: end; box-shadow: var(--shadow); }

/* Price flash: the starburst every cover had */
.masthead__flash {
	position: absolute; z-index: var(--z-flash);
	top: clamp(0.5rem, 2vw, 1.5rem); right: clamp(0rem, 14vw, 13rem);
	width: 7.5rem; aspect-ratio: 1;
	display: grid; place-content: center; text-align: center;
	background: var(--yellow); color: var(--ink);
	clip-path: polygon(50% 0%, 61% 13%, 77% 6%, 79% 23%, 95% 25%, 89% 40%, 100% 50%, 89% 60%, 95% 75%, 79% 77%, 77% 94%, 61% 87%, 50% 100%, 39% 87%, 23% 94%, 21% 77%, 5% 75%, 11% 60%, 0% 50%, 11% 40%, 5% 25%, 21% 23%, 23% 6%, 39% 13%);
	transform: rotate(12deg);
	animation: flash-in 700ms var(--ease-out) 400ms both;
}
.masthead__flash span:first-child { font: 900 1.5rem/1 var(--font-display); font-stretch: 125%; text-transform: uppercase; }
.masthead__flash span:last-child { font: 0.625rem/1.2 var(--font-pixel); }

/* ---------- Shared bits ---------- */
.button {
	display: inline-block;
	font: 800 0.95rem/1 var(--font-display); font-stretch: 110%; text-transform: uppercase; letter-spacing: 0.02em;
	color: var(--ink); background: var(--yellow);
	padding: 0.85rem 1.2rem; border: var(--rule); box-shadow: var(--shadow-sm);
	text-decoration: none;
	transition: transform 120ms var(--ease-out), box-shadow 120ms var(--ease-out);
}
.button:hover { color: var(--ink); transform: translate(-2px, -2px); box-shadow: 5px 5px 0 var(--ink); }
.button:active { transform: translate(3px, 3px); box-shadow: 0 0 0 var(--ink); }
.button--ghost { background: var(--bg); }
.button + .button { margin-left: 0.75rem; }

/* Tag stickers */
.stickers { display: flex; flex-wrap: wrap; gap: 0.6rem; list-style: none; margin: 0; padding: 0; }
.sticker {
	display: inline-block;
	font: 0.8125rem/1 var(--font-pixel);
	padding: 0.4rem 0.6rem 0.35rem;
	border: 2px solid var(--ink); box-shadow: var(--shadow-sm);
	text-decoration: none;
	transform: rotate(-1.5deg);
	transition: transform 160ms var(--ease-out);
}
li:nth-child(even) > .sticker { transform: rotate(1.25deg); }
.sticker:hover, li:nth-child(even) > .sticker:hover { transform: rotate(0) translateY(-2px); }
.sticker--0 { background: var(--yellow); color: var(--ink); }
.sticker--1 { background: var(--teal-panel); color: var(--bg); }
.sticker--2 { background: var(--red); color: var(--bg); }
.sticker--3 { background: var(--blue); color: var(--bg); }
.sticker:hover { color: inherit; }
.sticker--0:hover { color: var(--ink); }
.sticker--1:hover, .sticker--2:hover, .sticker--3:hover { color: var(--bg); }

/* Kicker: red block label. Used for cover story, post topic and page section only. */
.cover__label, .post__kicker, .page__kicker {
	display: inline-block;
	font: 0.8125rem/1 var(--font-pixel);
	background: var(--red); color: var(--bg);
	padding: 0.45rem 0.6rem 0.4rem;
}
.post__kicker a, .page__kicker a { color: inherit; text-decoration: none; }
.post__kicker a:hover, .page__kicker a:hover { text-decoration: underline; }

/* ---------- Home: cover story ---------- */
.cover {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
	grid-template-areas: "text image" "lines image";
	gap: 1.5rem clamp(1.5rem, 4vw, 3.5rem);
	padding-block: clamp(2rem, 5vw, 3.5rem);
	align-items: start;
}
.cover__text { grid-area: text; display: grid; gap: 1.1rem; justify-items: start; }
.cover__title {
	font-weight: 900; font-stretch: 110%; font-variation-settings: "wdth" 110;
	font-size: var(--step-4); line-height: 0.95; letter-spacing: -0.02em;
}
.cover__title a { color: var(--ink); text-decoration: none; }
.cover__title a:hover { color: var(--red); }
.cover__standfirst { font-size: clamp(1.15rem, 1rem + 0.5vw, 1.4rem); line-height: 1.45; max-width: 38ch; }
.cover__meta, .entry__meta, .post__byline {
	display: flex; flex-wrap: wrap; gap: 0.25rem 0;
	font: 0.8125rem/1.4 var(--font-pixel); color: var(--muted);
}
.cover__meta > * + *::before, .entry__meta > * + *::before, .post__byline > * + *::before {
	content: "·"; margin-inline: 0.6em; color: var(--red);
}
.cover__image {
	grid-area: image; display: block;
	border: 4px solid var(--ink); box-shadow: 10px 10px 0 var(--ink);
	background: var(--ink);
}
.cover__image img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; transition: transform 400ms var(--ease-out); }
.cover__image:hover img { transform: scale(1.02); }
.cover__image { overflow: hidden; }
.cover__lines {
	grid-area: lines;
	border: var(--rule); background: var(--yellow-soft);
	padding: 1rem 1.25rem 1.1rem;
}
.cover__lines-title { font: 0.8125rem/1 var(--font-pixel); color: var(--red-deep); margin-bottom: 0.6rem; }
.cover__lines ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.5rem; }
.cover__lines li { display: grid; grid-template-columns: 1.25rem 1fr; font: 700 1.05rem/1.25 var(--font-display); }
.cover__lines li::before { content: "▸"; color: var(--red); }
.cover__lines a { color: var(--ink); text-decoration: none; }
.cover__lines a:hover { text-decoration: underline; color: var(--ink); }

/* A cover story without an image: the whole block goes teal */
.cover--type-only {
	grid-template-columns: minmax(0, 1.6fr) minmax(16rem, 1fr);
	grid-template-areas: "text lines";
	background: var(--teal-panel); color: var(--bg);
	padding: clamp(1.5rem, 5vw, 3.5rem);
	margin-block: clamp(1.5rem, 4vw, 2.5rem);
	border: 4px solid var(--ink); box-shadow: 10px 10px 0 var(--ink);
	width: min(100% - 2 * var(--gutter) - 10px, var(--wrap));
}
.cover--type-only .cover__title a { color: var(--bg); }
.cover--type-only .cover__title a:hover { color: var(--yellow); }
.cover--type-only .cover__meta { color: var(--bg); }
.cover--type-only .cover__meta > * + *::before { color: var(--yellow); }
.cover--type-only .cover__lines { color: var(--ink); align-self: end; }
.cover__numeral {
	grid-area: lines; align-self: start; justify-self: end;
	font: 900 clamp(6rem, 3rem + 10vw, 13rem)/0.8 var(--font-display); font-stretch: 125%; font-variation-settings: "wdth" 125;
	letter-spacing: -0.04em;
	color: var(--teal-panel); -webkit-text-stroke: 3px var(--yellow); paint-order: stroke fill;
	text-shadow: 8px 8px 0 var(--ink);
}

/* ---------- Contents listing ---------- */
.section-head {
	display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0.5rem 1rem;
	border-top: var(--rule-heavy); padding-top: 0.9rem; margin-bottom: 0.5rem;
}
.section-head h2 { font-weight: 900; font-stretch: 125%; font-variation-settings: "wdth" 125; text-transform: uppercase; font-size: var(--step-2); letter-spacing: -0.01em; }
.section-head a { font: 0.8125rem/1 var(--font-pixel); }
.contents { padding-bottom: clamp(2rem, 5vw, 4rem); }
.contents__empty { padding-block: 1.5rem; color: var(--muted); }

.entry {
	display: grid;
	grid-template-columns: 5.5rem minmax(0, 1fr);
	gap: 0.5rem 1.5rem;
	padding-block: 1.6rem;
	border-bottom: 2px solid var(--ink);
}
.entry:last-child { border-bottom: 0; }
.entry--has-image { grid-template-columns: 5.5rem minmax(0, 1fr) clamp(10rem, 22vw, 16rem); }
.entry__number {
	font: 900 3.25rem/0.85 var(--font-display); font-stretch: 125%; font-variation-settings: "wdth" 125;
	color: var(--red); letter-spacing: -0.04em;
}
.entry:nth-child(4n + 2) .entry__number { color: var(--teal); }
.entry:nth-child(4n + 3) .entry__number { color: var(--blue); }
.entry:nth-child(4n + 4) .entry__number { color: var(--ink); }
.entry__body { display: grid; gap: 0.55rem; justify-items: start; }
.entry__title { font-weight: 800; font-size: var(--step-2); line-height: 1.08; letter-spacing: -0.01em; }
.entry__title a { color: var(--ink); text-decoration: none; background: linear-gradient(var(--yellow), var(--yellow)) 0 88% / 0 0.3em no-repeat; transition: background-size 250ms var(--ease-out); }
.entry__title a:hover { background-size: 100% 0.3em; }
.entry__description { max-width: 60ch; line-height: 1.55; }
.entry .stickers { margin-top: 0.35rem; }
.entry__image { display: block; border: 3px solid var(--ink); box-shadow: var(--shadow-sm); align-self: start; overflow: hidden; }
.entry__image img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }

/* ---------- Pager ---------- */
.pager {
	display: flex; justify-content: space-between; align-items: center; gap: 1rem;
	padding-block: 0 clamp(2rem, 5vw, 4rem);
	font: 0.8125rem/1 var(--font-pixel);
}
.pager a { padding: 0.7rem 1rem; border: var(--rule); box-shadow: var(--shadow-sm); color: var(--ink); text-decoration: none; background: var(--yellow); }
.pager a:hover { background: var(--bg); }

/* ---------- Generic pages & listings ---------- */
.listing { padding-block: clamp(2rem, 5vw, 3.5rem) clamp(3rem, 6vw, 5rem); }
.page__header, .post__header { display: grid; gap: 1rem; justify-items: start; margin-bottom: clamp(1.5rem, 4vw, 2.5rem); }
.page__title, .post__title, .profile__title {
	font-weight: 900; font-stretch: 110%; font-variation-settings: "wdth" 110;
	font-size: var(--step-4); line-height: 0.95; letter-spacing: -0.02em;
}
.page__standfirst, .post__standfirst, .profile__standfirst {
	font-size: clamp(1.2rem, 1.05rem + 0.6vw, 1.5rem); line-height: 1.4; max-width: 46ch; color: var(--ink);
}
.page { padding-block: clamp(2rem, 5vw, 3.5rem); width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }

/* Archive */
.archive-year { border-top: var(--rule-heavy); padding-top: 1rem; margin-top: 2.5rem; }
.archive-year__title {
	display: flex; align-items: baseline; gap: 1rem; flex-wrap: wrap;
	font-weight: 900; font-stretch: 125%; font-variation-settings: "wdth" 125;
	font-size: clamp(3rem, 2rem + 6vw, 6rem); line-height: 0.9;
	color: var(--ink);
	text-shadow: 6px 6px 0 var(--yellow);
}
.archive-year__title span { font: 0.8125rem/1 var(--font-pixel); color: var(--muted); text-shadow: none; }
.archive-month { font: 700 0.9375rem/1 var(--font-pixel); color: var(--red-deep); margin: 2rem 0 0.5rem; }
.archive-list { list-style: none; margin: 0; padding: 0; }
.archive-list li {
	display: grid; grid-template-columns: 3rem minmax(0, 1fr); align-items: baseline; gap: 1rem;
	padding-block: 0.65rem; border-bottom: 1px solid var(--surface-strong);
}
.archive-list time { font: 900 1.4rem/1 var(--font-display); font-stretch: 125%; color: var(--teal); }
.archive-list a { font: 700 clamp(1.1rem, 1rem + 0.5vw, 1.35rem)/1.25 var(--font-display); color: var(--ink); text-decoration: none; }
.archive-list a:hover { text-decoration: underline; text-decoration-color: var(--red); }

/* Tag index */
.tag-index { display: flex; flex-wrap: wrap; gap: 1rem 1.1rem; list-style: none; margin: 0; padding: 0; }
.tag-index .sticker { font-size: 1.05rem; padding: 0.6rem 0.8rem 0.5rem; }
.tag-index__count { display: inline-block; margin-left: 0.4rem; padding: 0.1rem 0.35rem; background: var(--ink); color: var(--bg); font-size: 0.8125rem; }
.listing > .contents__list { border-top: var(--rule-heavy); }

/* ---------- Post ---------- */
.post { padding-block: clamp(2rem, 5vw, 3.5rem) 0; }
.post__header { max-width: 60rem; }
.post__title { font-size: clamp(2.2rem, 1.4rem + 4vw, 4.75rem); }
.post__byline {
	color: var(--ink);
	border-block: var(--rule); padding-block: 0.7rem; margin-top: 0.4rem; width: 100%;
}
.post__byline a { color: inherit; }
.post__cover { margin: 0 0 clamp(2rem, 5vw, 3rem); border: 4px solid var(--ink); box-shadow: 10px 10px 0 var(--ink); background: var(--ink); }
.post__cover img { width: 100%; }
.post__cover figcaption { font: 0.8125rem/1.4 var(--font-pixel); color: var(--bg); padding: 0.6rem 0.8rem; }

.post__body {
	display: grid;
	grid-template-columns: minmax(0, var(--measure)) minmax(15rem, 20rem);
	grid-template-areas: "prose tldr" "faq tldr" "footer tldr";
	column-gap: clamp(2rem, 5vw, 4.5rem);
	align-items: start;
}
.post__body > .prose { grid-area: prose; }
.post__body > .faq { grid-area: faq; }
.post__body > .post__footer { grid-area: footer; }
.post__body > .tldr { grid-area: tldr; position: sticky; top: 1.5rem; }

/* Key points boxout */
.tldr { background: var(--yellow); border: var(--rule); box-shadow: var(--shadow); margin-bottom: 2rem; }
.tldr__title { font: 0.875rem/1 var(--font-pixel); background: var(--ink); color: var(--yellow); padding: 0.65rem 1rem 0.55rem; }
.tldr ul { list-style: none; margin: 0; padding: 1rem 1.1rem 1.15rem; display: grid; gap: 0.8rem; }
.tldr li { display: grid; grid-template-columns: 1.1rem 1fr; font: 600 1rem/1.4 var(--font-display); }
.tldr li::before { content: "▸"; color: var(--red-deep); }

/* Long-form prose */
.prose { max-width: var(--measure); }
.prose > * + * { margin-top: 1.25em; }
.prose p, .prose li { text-wrap: pretty; }
.post .prose > p:first-of-type::first-letter {
	float: left;
	font: 900 3.6em/0.8 var(--font-display); font-stretch: 125%;
	background: var(--red); color: var(--bg);
	padding: 0.12em 0.14em 0.08em; margin: 0.08em 0.14em 0 0;
}
.prose h2 {
	font-weight: 800; font-stretch: 110%; font-variation-settings: "wdth" 110;
	font-size: var(--step-2); letter-spacing: -0.01em;
	margin-top: 2.2em; padding-top: 0.6em; border-top: var(--rule);
}
.prose h3 { font-weight: 800; font-size: var(--step-1); margin-top: 1.8em; }
.prose h2 + *, .prose h3 + * { margin-top: 0.7em; }
.prose .header-anchor { color: inherit; text-decoration: none; }
.prose .header-anchor:hover::after { content: " #"; color: var(--red); }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose li + li { margin-top: 0.4em; }
.prose li::marker { color: var(--red); font-family: var(--font-display); font-weight: 800; }
.prose strong { font-weight: 700; }
.prose blockquote {
	margin: 2em 0; padding: 1.1em 0 1em;
	border-block: 4px solid var(--ink);
	font: italic 600 clamp(1.4rem, 1.2rem + 0.9vw, 1.85rem)/1.3 var(--font-body);
	color: var(--teal-deep);
	position: relative;
}
.prose blockquote::before {
	content: "“"; position: absolute; top: -0.42em; left: 0;
	font: 900 3.5rem/1 var(--font-display); color: var(--red); background: var(--bg); padding-right: 0.2em;
}
.prose blockquote p { margin: 0; }
.prose hr { border: 0; height: 12px; margin: 3em 0; background: linear-gradient(to bottom, var(--red) 0 20%, var(--orange) 20% 40%, var(--yellow) 40% 60%, var(--teal) 60% 80%, var(--blue) 80%); }
.prose img { border: 3px solid var(--ink); box-shadow: var(--shadow); background: var(--bg); }
.prose p:has(> picture:only-child), .prose p:has(> img:only-child) { margin-block: 2em; }
.prose figure { margin: 2em 0; }
.prose figcaption { font: 0.8125rem/1.4 var(--font-pixel); color: var(--muted); margin-top: 0.9rem; }
.prose table { border-collapse: collapse; width: 100%; font-size: 0.95em; }
.prose th, .prose td { border: 2px solid var(--ink); padding: 0.5em 0.7em; text-align: left; }
.prose th { background: var(--ink); color: var(--bg); font-family: var(--font-display); }
.prose :not(pre) > code {
	font-family: var(--font-code); font-size: 0.85em;
	background: var(--surface-strong); padding: 0.1em 0.35em; border-radius: 2px;
}

/* Code: a printout on continuous green-bar paper, holes down both edges */
.prose pre {
	--line: 1.6em;
	position: relative;
	margin: 2em 0;
	font: 0.875rem/var(--line) var(--font-code);
	color: var(--ink);
	padding: var(--line) 2.6rem;
	overflow-x: auto;
	tab-size: 2;
	border: 2px solid var(--ink);
	background:
		radial-gradient(circle, var(--surface-strong) 0 0.32rem, var(--muted) 0.33rem 0.38rem, transparent 0.4rem) left 0.55rem top 0 / 1.1rem var(--line) repeat-y,
		radial-gradient(circle, var(--surface-strong) 0 0.32rem, var(--muted) 0.33rem 0.38rem, transparent 0.4rem) right 0.55rem top 0 / 1.1rem var(--line) repeat-y,
		repeating-linear-gradient(var(--greenbar) 0 calc(var(--line) * 2), var(--bg) calc(var(--line) * 2) calc(var(--line) * 4)) 0 var(--line) / 100% 100%;
	box-shadow: var(--shadow);
}
.prose pre code { font: inherit; background: none; padding: 0; }
.token.comment, .token.prolog { color: var(--muted); font-style: italic; }
.token.keyword, .token.atrule, .token.important { color: var(--red-deep); font-weight: 600; }
.token.string, .token.attr-value, .token.char { color: var(--teal-deep); }
.token.number, .token.boolean, .token.function, .token.class-name { color: var(--blue); }
.token.property, .token.key, .token.tag, .token.selector { color: var(--red-deep); }
.token.punctuation, .token.operator { color: var(--ink); }

/* FAQ */
.faq { margin-top: 3rem; padding-top: 0.6rem; border-top: var(--rule-heavy); }
.faq > h2 { font-weight: 900; font-stretch: 125%; font-variation-settings: "wdth" 125; text-transform: uppercase; font-size: var(--step-2); margin-bottom: 1.25rem; }
.faq__item { display: grid; grid-template-columns: 2.5rem minmax(0, 1fr); column-gap: 0.75rem; padding-block: 1rem; border-bottom: 2px solid var(--surface-strong); }
.faq__item::before {
	content: "Q"; grid-row: 1 / span 2;
	width: 2.5rem; height: 2.5rem; display: grid; place-items: center;
	font: 900 1.3rem/1 var(--font-display); background: var(--teal-panel); color: var(--bg);
}
.faq__item h3 { font-weight: 800; font-size: 1.2rem; line-height: 1.3; align-self: center; }
.faq__item p { margin-top: 0.5rem; line-height: 1.6; }

/* Post footer */
.post__footer { margin-top: 3rem; display: grid; gap: 2rem; }
.author-box {
	display: grid; grid-template-columns: 7rem minmax(0, 1fr); gap: 1.25rem; align-items: start;
	padding: 1.25rem; border: var(--rule); background: var(--surface);
}
.author-box__photo, .author-box img { width: 7rem; aspect-ratio: 1; object-fit: cover; border: 3px solid var(--ink); }
.author-box__label { font: 0.75rem/1 var(--font-pixel); color: var(--red-deep); }
.author-box__name { font: 900 1.35rem/1.2 var(--font-display); font-stretch: 110%; margin: 0.35rem 0 0.4rem; }
.author-box__name a { color: var(--ink); text-decoration: none; }
.author-box__name a:hover { text-decoration: underline; }
.author-box p:last-child { font-size: 1rem; line-height: 1.55; }

.post-nav {
	display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: 1.25rem;
	padding-block: clamp(2.5rem, 6vw, 4rem);
}
.post-nav__link {
	display: grid; gap: 0.5rem; padding: 1.1rem 1.25rem;
	border: var(--rule); box-shadow: var(--shadow-sm); color: var(--ink); text-decoration: none;
	transition: transform 140ms var(--ease-out), box-shadow 140ms var(--ease-out), background-color 140ms;
}
.post-nav__link:hover { color: var(--ink); background: var(--yellow-soft); transform: translate(-2px, -2px); box-shadow: 5px 5px 0 var(--ink); }
.post-nav__link--newer { text-align: right; grid-column: -2; }
.post-nav__label { font: 0.75rem/1 var(--font-pixel); color: var(--red-deep); }
.post-nav__title { font: 800 1.2rem/1.2 var(--font-display); }

/* ---------- About / profile ---------- */
.profile {
	display: grid;
	grid-template-columns: minmax(16rem, 26rem) minmax(0, 1fr);
	grid-template-areas: "header header" "photo body" "facts body";
	grid-template-rows: auto auto 1fr;
	gap: 2rem clamp(2rem, 5vw, 4.5rem);
	padding-block: clamp(2rem, 5vw, 3.5rem) clamp(3rem, 6vw, 5rem);
	align-items: start;
}
.profile__header { grid-area: header; display: grid; gap: 1rem; justify-items: start; }
.profile__title { font-size: clamp(2.6rem, 1.4rem + 6vw, 6rem); font-stretch: 125%; font-variation-settings: "wdth" 125; text-transform: uppercase; line-height: 0.88; }
.profile__photo { grid-area: photo; margin: 0; position: relative; }
.profile__photo img { width: 100%; border: 4px solid var(--ink); box-shadow: 14px 14px 0 var(--teal); position: relative; }
.profile__body { grid-area: body; }
.profile__body > p:first-child { font-size: 1.3rem; line-height: 1.55; }
.books { list-style: none; padding: 0 !important; display: grid; gap: 1rem; }
.books li { display: grid; gap: 0.2rem; padding: 0.9rem 1rem; border: var(--rule); background: var(--surface); }
.books li + li { margin-top: 0; }
.books cite { font: 800 1.15rem/1.25 var(--font-display); font-style: normal; }
.books span { font-size: 1rem; color: var(--muted); }
.factfile { grid-area: facts; background: var(--ink); color: var(--bg); padding: 1.25rem 1.4rem 1.4rem; box-shadow: 8px 8px 0 var(--yellow); }
.factfile__title { font: 0.9375rem/1 var(--font-pixel); color: var(--yellow); padding-bottom: 0.8rem; border-bottom: 2px solid var(--yellow); }
.factfile dl { margin: 0; display: grid; }
.factfile dl > div { padding-block: 0.8rem; border-bottom: 1px solid oklch(1 0 0 / 0.2); }
.factfile dl > div:last-child { border-bottom: 0; padding-bottom: 0; }
.factfile dt { font: 0.75rem/1.2 var(--font-pixel); color: var(--yellow); }
.factfile dd { margin: 0.3rem 0 0; font: 600 1.05rem/1.35 var(--font-display); }
.factfile cite { font-style: normal; }
.factfile a { color: var(--bg); }
.factfile a:hover { color: var(--yellow); }
.factfile :focus-visible { outline-color: var(--yellow); }

/* ---------- Search (Pagefind UI) ---------- */
.search-ui {
	--pagefind-ui-scale: 1;
	--pagefind-ui-primary: var(--ink);
	--pagefind-ui-text: var(--ink);
	--pagefind-ui-background: var(--bg);
	--pagefind-ui-border: var(--ink);
	--pagefind-ui-tag: var(--yellow);
	--pagefind-ui-border-width: 3px;
	--pagefind-ui-border-radius: 0;
	--pagefind-ui-image-border-radius: 0;
	--pagefind-ui-font: var(--font-body);
	max-width: 56rem;
}
.search-ui .pagefind-ui__search-input { font-family: var(--font-display); font-weight: 700; box-shadow: var(--shadow); }
.search-ui .pagefind-ui__search-input::placeholder { color: var(--muted); opacity: 1; }
.search-ui .pagefind-ui__result-link { font-family: var(--font-display); font-weight: 800; color: var(--ink); }
.search-ui .pagefind-ui__result-link:hover { color: var(--red-deep); }
.search-ui mark { background: var(--yellow); color: var(--ink); }
.search-ui .pagefind-ui__filter-name, .search-ui .pagefind-ui__message, .search-ui .pagefind-ui__button { font-family: var(--font-pixel); }
.search-ui .pagefind-ui__button { box-shadow: var(--shadow-sm); }

/* ---------- Empty / error ---------- */
.empty { padding-block: 4rem; display: grid; gap: 1rem; }
.error-page__code { font: 700 clamp(1.5rem, 1rem + 3vw, 2.75rem)/1 var(--font-pixel); color: var(--red); margin-bottom: 1.5rem; }
.error-page .page__standfirst { margin-block: 1rem 2rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: var(--bg); margin-top: auto; }
.site-footer > .stripes { height: 1.5rem; display: grid; grid-template-columns: repeat(5, 1fr); }
.site-footer > .stripes span { transform: none; }
.site-footer__inner {
	display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2rem;
	padding-block: 2.5rem 2rem;
}
.site-footer__about { max-width: 30rem; display: grid; gap: 0.6rem; font-size: 1rem; }
.site-footer__title { font: 900 1.6rem/1 var(--font-display); font-stretch: 125%; text-transform: uppercase; }
.site-footer__title a { color: var(--bg); text-decoration: none; }
.site-footer__links { display: flex; gap: 3rem; }
.site-footer__links ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.5rem; }
.site-footer a { color: var(--bg); }
.site-footer a:hover { color: var(--yellow); }
.site-footer :focus-visible { outline-color: var(--yellow); }
.site-footer__links a { font: 0.8125rem/1.6 var(--font-pixel); text-decoration: none; }
.site-footer__legal { font: 0.75rem/1.5 var(--font-pixel); color: oklch(1 0 0 / 0.72); padding-block: 1rem 2rem; border-top: 1px solid oklch(1 0 0 / 0.2); }

/* ---------- Motion ---------- */
@keyframes ship-in { from { transform: translate(-40px, 30px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes flash-in { from { transform: rotate(-90deg) scale(0.4); opacity: 0; } to { transform: rotate(12deg) scale(1); opacity: 1; } }
.masthead--cover .masthead__ship { animation: ship-in 900ms var(--ease-out) 150ms both; }

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

/* ---------- Responsive ---------- */
@media (max-width: 64rem) {
	.post__body { grid-template-columns: minmax(0, 1fr); grid-template-areas: "tldr" "prose" "faq" "footer"; }
	.post__body > .tldr { position: static; max-width: var(--measure); }
	.masthead__flash { right: clamp(5rem, 22vw, 12rem); }
}
@media (max-width: 52rem) {
	.cover, .cover--type-only { grid-template-columns: minmax(0, 1fr); grid-template-areas: "image" "text" "lines"; }
	.cover--type-only { grid-template-areas: "text" "lines"; }
	.cover__numeral { display: none; }
	.profile { grid-template-columns: minmax(0, 1fr); grid-template-areas: "header" "photo" "body" "facts"; grid-template-rows: auto; }
	.profile__photo { max-width: 24rem; }
	.topbar__nav { margin-inline-start: 0; order: 3; width: 100%; }
	.topbar__search { margin-inline-start: auto; }
}
@media (max-width: 40rem) {
	.entry, .entry--has-image { grid-template-columns: 3.25rem minmax(0, 1fr); }
	.entry__number { font-size: 2.1rem; }
	.entry__image { grid-column: 1 / -1; grid-row: 1; }
	.entry__image img { aspect-ratio: 16 / 9; }
	.masthead { grid-template-columns: 1fr; grid-template-areas: "title" "tagline"; }
	.masthead__art { display: none; }
	.masthead--cover { grid-template-columns: 1fr auto; grid-template-areas: "title title" "tagline art"; }
	.masthead--cover .masthead__art { display: block; width: 6rem; height: 5rem; box-shadow: var(--shadow-sm); }
	.masthead__flash { display: none; }
	.topbar__issue .topbar__date { display: none; }
	.topbar__search input { width: 8.5rem; }
	.author-box { grid-template-columns: 4.5rem minmax(0, 1fr); padding: 1rem; }
	.author-box__photo, .author-box img { width: 4.5rem; }
	.prose pre { padding-inline: 2.2rem; font-size: 0.8125rem; }
	.button + .button { margin: 0.75rem 0 0; }
}
