@font-face { font-family: "Geologica"; src: url("../fonts/geologica-variable.woff2") format("woff2"); font-weight: 100 900; 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: "Geologica"; src: url("../fonts/geologica-variable-latin-ext.woff2") format("woff2"); font-weight: 100 900; 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: "Fjord One"; src: url("../fonts/fjord-one.woff2") format("woff2"); font-weight: 400; 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: "JetBrains Mono"; src: url("../fonts/jetbrains-mono-variable.woff2") format("woff2"); font-weight: 100 800; font-display: swap; }

:root {
	--font-body: "Geologica", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
	--font-display: "Fjord One", "Iowan Old Style", Georgia, serif;
	--font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

	--background: #0b0706;
	--surface: rgba(255, 228, 220, 0.045);
	--surface-strong: rgba(255, 228, 220, 0.075);
	--surface-hover: rgba(255, 228, 220, 0.09);
	--text: #f6ece8;
	--text-soft: #bba9a3;
	--text-faint: #7f6c66;
	--accent: #ff5a3c;
	--accent-strong: #ff7d61;
	--accent-soft: rgba(255, 90, 60, 0.14);
	--yellow: #ffc900;
	--code-background: #140d0c;
	--header-background: rgba(11, 7, 6, 0.72);
	--backdrop-opacity: 0.95;
	--grain-opacity: 0.07;
	--shadow: 0 24px 60px -28px rgba(0, 0, 0, 0.8);

	--radius: 18px;
	--radius-small: 12px;
	--width: 1120px;
	--prose-width: 68ch;
	--gutter: clamp(16px, 4vw, 40px);
	--ease: cubic-bezier(0.22, 1, 0.36, 1);
	color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 96px; scroll-behavior: smooth; }

body {
	position: relative;
	overflow-x: clip;
	margin: 0;
	min-height: 100vh;
	display: flex;
	flex-direction: column;
	background: var(--background);
	color: var(--text);
	font-family: var(--font-body);
	font-size: 16.5px;
	font-weight: 320;
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	transition: background-color 0.4s ease, color 0.4s ease;
}

main { flex: 1; }

strong, b { font-weight: 600; }

a { color: inherit; text-decoration: none; }

img, video { max-width: 100%; height: auto; }

::selection { background: var(--accent); color: #fff; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.skip-link { position: absolute; left: -9999px; top: 8px; background: var(--accent); color: #fff; padding: 8px 14px; border-radius: 999px; z-index: 100; }
.skip-link:focus { left: 8px; }

.container { width: 100%; max-width: var(--width); margin: 0 auto; padding: 0 var(--gutter); }

.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Backdrop */

.backdrop {
	--backdrop-width: calc(max(100vw, 1100px) + 80px);
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: calc(var(--backdrop-width) * 2 / 3);
	z-index: -2;
	pointer-events: none;
	overflow: hidden;
}
.backdrop::before {
	content: "";
	position: absolute;
	top: -40px;
	left: 50%;
	width: var(--backdrop-width);
	margin-left: calc(var(--backdrop-width) / -2);
	aspect-ratio: 3 / 2;
	background: var(--backdrop-image) center top / cover no-repeat;
	opacity: var(--backdrop-opacity);
	-webkit-mask-image: linear-gradient(to bottom, #000 0%, rgba(0, 0, 0, 0.85) 45%, transparent 96%);
	mask-image: linear-gradient(to bottom, #000 0%, rgba(0, 0, 0, 0.85) 45%, transparent 96%);
	animation: fade-in 1.6s ease both;
}
@keyframes backdrop-blur { to { filter: blur(22px) brightness(0.62); } }
@keyframes backdrop-parallax { to { translate: 0 -125vh; } }
@supports (animation-timeline: scroll()) {
	.backdrop::before {
		animation: fade-in 1.6s ease both, backdrop-blur linear both;
		animation-timeline: auto, scroll(root);
		animation-range: normal, 0 120vh;
	}
	@media (prefers-reduced-motion: no-preference) {
		.backdrop { position: fixed; bottom: 0; height: auto; }
		.backdrop::before {
			animation: fade-in 1.6s ease both, backdrop-blur linear both, backdrop-parallax linear both;
			animation-timeline: auto, scroll(root), scroll(root);
			animation-range: normal, 0 120vh, 0 400vh;
		}
	}
}

.grain {
	position: fixed;
	inset: 0;
	z-index: -1;
	pointer-events: none;
	opacity: var(--grain-opacity);
	background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='noise'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 1.4 -0.2'/></filter><rect width='100%25' height='100%25' filter='url(%23noise)'/></svg>");
}

/* Header */

.site-header {
	position: sticky;
	top: 0;
	z-index: 40;
}
.site-header::before {
	content: "";
	position: absolute;
	inset: 0 0 -44px 0;
	z-index: -1;
	pointer-events: none;
	background: linear-gradient(to bottom, var(--background) 0%, var(--background) 30%, color-mix(in srgb, var(--background) 70%, transparent) 62%, transparent 100%);
	opacity: 0.75;
	transition: opacity 0.4s ease;
}
.site-header.scrolled::before { opacity: 1; }
.header-inner { display: flex; align-items: center; gap: 24px; height: 76px; }

.logo { display: inline-flex; align-items: center; white-space: nowrap; }
.wordmark { font-family: var(--font-body); font-weight: 600; font-size: 18px; letter-spacing: -0.02em; }
.wordmark-name { color: var(--text); }
.wordmark-rest { color: var(--text-faint); transition: color 0.3s ease; }
.wordmark-semicolon { color: var(--yellow); }
.logo:hover .wordmark-rest { color: var(--text-soft); }

.site-nav { display: flex; align-items: center; gap: 2px; margin-left: auto; }
.site-nav a {
	position: relative;
	font-size: 14.5px;
	font-weight: 420;
	color: var(--text-soft);
	padding: 8px 13px;
	border-radius: 999px;
	transition: color 0.25s ease, background-color 0.25s ease;
}
.site-nav a::after {
	content: "";
	position: absolute;
	left: 13px;
	right: 13px;
	bottom: 4px;
	height: 2px;
	border-radius: 2px;
	background: var(--accent);
	transform: scaleX(0);
	transition: transform 0.35s var(--ease);
}
.site-nav a:hover { color: var(--text); }
.site-nav a:hover::after, .site-nav a[aria-current="page"]::after { transform: scaleX(1); }
.site-nav a[aria-current="page"] { color: var(--text); }
.site-nav a.nav-subscribe { background: var(--accent-soft); color: var(--accent-strong); margin-left: 6px; }
.site-nav a.nav-subscribe::after { display: none; }
.site-nav a.nav-subscribe:hover { background: var(--accent); color: #fff; }

@media (max-width: 760px) {
	.header-inner { height: auto; flex-wrap: wrap; gap: 6px 12px; padding-top: 14px; padding-bottom: 8px; }
	.site-nav { order: 3; width: calc(100% + 2 * var(--gutter)); margin: 0 calc(-1 * var(--gutter)); padding: 0 calc(var(--gutter) - 10px); overflow-x: auto; scrollbar-width: none; }
	.site-nav::-webkit-scrollbar { display: none; }
}

/* Type */

h1, h2, h3, h4 { line-height: 1.2; margin: 0; font-weight: 520; letter-spacing: -0.015em; }

.display { font-family: var(--font-display); font-weight: 400; letter-spacing: -0.01em; line-height: 1.04; }
.display em { font-style: normal; color: var(--accent); }

.eyebrow { font-size: 12.5px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-faint); }

.lead { font-size: clamp(17px, 2vw, 20px); color: var(--text-soft); line-height: 1.6; max-width: 60ch; font-weight: 300; }
.lead p { margin: 0 0 12px; }
.lead a { color: var(--text); background: linear-gradient(var(--accent), var(--accent)) 0 100% / 100% 2px no-repeat; transition: background-size 0.3s var(--ease), color 0.2s ease; }
.lead a:hover { color: var(--accent-strong); background-size: 100% 100%; background-image: linear-gradient(var(--accent-soft), var(--accent-soft)); }

.muted { color: var(--text-faint); }

/* Buttons and forms */

.button {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 13px 22px;
	border: 0;
	border-radius: 999px;
	background: var(--text);
	color: var(--background);
	font: 520 14.5px/1 var(--font-body);
	cursor: pointer;
	transition: transform 0.35s var(--ease), background-color 0.25s ease, color 0.25s ease, box-shadow 0.35s ease;
}
.button:hover { background: var(--accent); color: #fff; transform: translateY(-2px); box-shadow: 0 14px 30px -14px var(--accent); }
.button:active { transform: translateY(0) scale(0.98); }
.button.ghost { background: var(--surface-strong); color: var(--text); }
.button.ghost:hover { background: var(--surface-hover); color: var(--text); box-shadow: none; }
.button.small { padding: 8px 14px; font-size: 13px; }
.button svg { width: 15px; height: 15px; }

.arrow-link { font-weight: 500; font-size: 14.5px; color: var(--text-soft); white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; transition: color 0.2s ease; }
.arrow-link::after { content: "→"; transition: transform 0.35s var(--ease); }
.arrow-link:hover { color: var(--accent-strong); }
.arrow-link:hover::after { transform: translateX(4px); }

input[type="email"], input[type="text"] {
	font: inherit;
	color: var(--text);
	background: var(--surface-strong);
	border: 0;
	border-radius: 999px;
	padding: 13px 20px;
	min-width: 0;
	transition: background-color 0.25s ease, box-shadow 0.25s ease;
}
input[type="email"]::placeholder, input[type="text"]::placeholder { color: var(--text-faint); }
input[type="email"]:focus, input[type="text"]:focus { outline: none; background: var(--surface-hover); box-shadow: 0 0 0 4px var(--accent-soft); }

.subscribe-form { display: flex; gap: 8px; flex-wrap: wrap; max-width: 480px; }
.subscribe-form input[type="email"] { flex: 1 1 220px; }
.subscribe-form .honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

.notice { padding: 13px 18px; border-radius: var(--radius-small); background: var(--surface-strong); margin: 16px 0; font-size: 15px; animation: rise 0.6s var(--ease) both; }
.notice.good { background: rgba(70, 190, 120, 0.14); }
.notice.bad { background: rgba(230, 70, 60, 0.16); }

/* Sections */

.section { padding: clamp(52px, 8vw, 104px) 0; }
.section + .section { padding-top: 0; }

.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 28px; }
.section-head h2 { font-size: clamp(26px, 3.2vw, 34px); }
.section-head h2.display { font-size: clamp(32px, 4.2vw, 46px); }

.page-head { padding: clamp(56px, 10vw, 112px) 0 clamp(28px, 4vw, 44px); }
.page-head h1 { font-size: clamp(46px, 8vw, 86px); }
.page-head .lead { margin-top: 18px; }

/* Hero */

.hero { padding: clamp(72px, 14vw, 168px) 0 clamp(48px, 7vw, 88px); }
.hero h1 { font-size: clamp(58px, 11vw, 132px); margin: 18px 0 26px; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 0.7fr); gap: clamp(28px, 5vw, 72px); align-items: center; }

.hero-logo {
	justify-self: end;
	width: min(100%, 320px);
	animation: zoom-in 1.2s var(--ease) 0.3s both;
}
.hero-logo img { display: block; width: 100%; height: auto; }
@media (max-width: 820px) {
	.hero-grid { grid-template-columns: 1fr; }
	.hero-logo { justify-self: start; width: 120px; grid-row: 1; }
}

.social-row { display: flex; flex-wrap: wrap; gap: 6px 20px; margin-top: 30px; font-size: 14px; }
.social-row a { color: var(--text-faint); transition: color 0.2s ease; }
.social-row a:hover { color: var(--text); }

/* Cards */

.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 22px; }
.project-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); gap: 20px; }

.card {
	position: relative;
	display: flex;
	flex-direction: column;
	border-radius: var(--radius);
	background: var(--surface);
	overflow: hidden;
	transition: transform 0.5s var(--ease), background-color 0.3s ease, box-shadow 0.5s var(--ease);
}
.card .media { aspect-ratio: 16 / 9; overflow: hidden; background: var(--surface-strong); }
.card .media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.9s var(--ease); }
.card .body { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 7px; flex: 1; }
.card h3 { font-size: 20px; font-weight: 560; }
.card .tagline { color: var(--text-soft); margin: 0; }
.card .kind { font-size: 12px; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent-strong); }
.card header { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.card .year { font-size: 13px; color: var(--text-faint); font-variant-numeric: tabular-nums; }
.card .description { font-size: 15px; color: var(--text-soft); }
.card .description p { margin: 6px 0; }
.card .card-link::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.card.clickable { cursor: pointer; }
.card.clickable:hover { transform: translateY(-4px); background: var(--surface-hover); box-shadow: var(--shadow); }
.card.clickable:hover .media img { transform: scale(1.045); }
.card.clickable:hover h3 { color: var(--accent-strong); }
.card h3 { transition: color 0.25s ease; }
.feature-card h3 { font-size: 24px; }

.link-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 12px; position: relative; z-index: 2; }
.chip {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 6px 13px;
	border-radius: 999px;
	background: var(--surface-strong);
	font-size: 13px;
	font-weight: 450;
	color: var(--text-soft);
	transition: background-color 0.25s ease, color 0.25s ease, transform 0.3s var(--ease);
}
a.chip:hover { background: var(--accent); color: #fff; transform: translateY(-1px); }
.chip.active { background: var(--text); color: var(--background); }
.chip .count { color: var(--text-faint); font-variant-numeric: tabular-nums; }
.chip.active .count, a.chip:hover .count { color: inherit; opacity: 0.7; }

/* Post lists */

.post-list { list-style: none; margin: 0 -14px; padding: 0; display: grid; gap: 2px; }
.post-list a {
	display: grid;
	grid-template-columns: 110px 1fr auto;
	gap: 4px 24px;
	align-items: baseline;
	padding: 15px 14px;
	border-radius: var(--radius-small);
	transition: background-color 0.25s ease, transform 0.4s var(--ease);
}
.post-list a:hover { background: var(--surface); transform: translateX(4px); }
.post-list time { font-size: 13.5px; color: var(--text-faint); font-variant-numeric: tabular-nums; }
.post-list .title { font-weight: 480; font-size: 17.5px; letter-spacing: -0.01em; transition: color 0.2s ease; }
.post-list a:hover .title { color: var(--accent-strong); }
.post-list .summary { grid-column: 2 / 3; color: var(--text-soft); font-size: 15px; line-height: 1.5; }
.post-list .category { font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-faint); }
@media (max-width: 640px) {
	.post-list a { grid-template-columns: 1fr auto; }
	.post-list time { grid-column: 1 / 2; }
	.post-list .category { grid-column: 2 / 3; grid-row: 1; }
	.post-list .title, .post-list .summary { grid-column: 1 / -1; }
}

.year-group { display: grid; grid-template-columns: 120px 1fr; gap: 0 24px; margin-bottom: 44px; }
.year-group h2 { font-family: var(--font-display); font-weight: 400; font-size: 32px; color: var(--text-faint); line-height: 1; padding-top: 14px; }
.year-group .post-list a { grid-template-columns: 74px 1fr auto; }
@media (max-width: 760px) {
	.year-group { grid-template-columns: 1fr; }
	.year-group h2 { padding: 0 0 10px; }
}

.filter-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 40px; }

/* Art */

.art-strip { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.art-strip a { display: block; aspect-ratio: 1; overflow: hidden; border-radius: var(--radius-small); background: var(--surface); }
.art-strip img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.8s var(--ease), filter 0.4s ease; }
.art-strip a:hover img { transform: scale(1.07); filter: brightness(1.08); }
@media (max-width: 760px) { .art-strip { grid-template-columns: repeat(3, 1fr); } .art-strip a:nth-child(n+7) { display: none; } }

.gallery { columns: 3 300px; column-gap: 16px; }
.gallery figure { margin: 0 0 16px; break-inside: avoid; }
.gallery button { display: block; width: 100%; padding: 0; border: 0; background: var(--surface); border-radius: var(--radius-small); overflow: hidden; cursor: zoom-in; }
.gallery img { display: block; width: 100%; height: auto; transition: transform 0.8s var(--ease), filter 0.4s ease; }
.gallery button:hover img { transform: scale(1.035); filter: brightness(1.06); }
.gallery figcaption { font-size: 13px; color: var(--text-faint); padding: 7px 4px 0; }

.lightbox {
	position: fixed;
	inset: 0;
	z-index: 100;
	background: rgba(8, 5, 4, 0.94);
	display: none;
	align-items: center;
	justify-content: center;
	padding: 56px 72px 72px;
	color: #f6ece8;
}
.lightbox.open { display: flex; animation: fade-in 0.3s ease both; }
.lightbox.open img { animation: zoom-in 0.45s var(--ease) both; }
.lightbox img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 10px; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6); }
.lightbox .caption { position: absolute; left: 0; right: 0; bottom: 22px; text-align: center; font-size: 14px; color: #b9a8a2; padding: 0 72px; }
.lightbox .caption strong { color: #f6ece8; font-weight: 520; }
.lightbox button {
	position: absolute;
	border: 0;
	background: rgba(255, 236, 230, 0.08);
	color: #f6ece8;
	width: 46px;
	height: 46px;
	border-radius: 999px;
	cursor: pointer;
	font-size: 20px;
	display: grid;
	place-items: center;
	transition: background-color 0.2s ease, transform 0.3s var(--ease);
}
.lightbox button:hover { background: rgba(255, 236, 230, 0.18); transform: scale(1.08); }
.lightbox .close { top: 16px; right: 16px; }
.lightbox .previous { left: 16px; top: 50%; margin-top: -23px; }
.lightbox .next { right: 16px; top: 50%; margin-top: -23px; }
@media (max-width: 640px) {
	.lightbox { padding: 56px 8px 84px; }
	.lightbox .previous, .lightbox .next { top: auto; bottom: 16px; margin-top: 0; }
	.lightbox .caption { bottom: 76px; padding: 0 16px; }
}

/* Projects page */

.project-group { margin-bottom: clamp(52px, 7vw, 88px); }
.project-group > h2 { font-family: var(--font-display); font-weight: 400; font-size: clamp(30px, 4vw, 40px); margin-bottom: 22px; }

/* Newsletter band */

.newsletter-band {
	border-radius: calc(var(--radius) + 8px);
	background:
		radial-gradient(700px 260px at 100% 0%, var(--accent-soft), transparent 70%),
		var(--surface);
	padding: clamp(30px, 5vw, 60px);
	display: grid;
	grid-template-columns: 1.1fr 1fr;
	gap: 28px;
	align-items: center;
}
.newsletter-band h2 { font-family: var(--font-display); font-weight: 400; font-size: clamp(32px, 4.4vw, 50px); line-height: 1.06; }
.newsletter-band p { color: var(--text-soft); margin: 12px 0 0; }
@media (max-width: 820px) { .newsletter-band { grid-template-columns: 1fr; } }

/* Article */

.article-head { max-width: 880px; margin: 0 auto; padding: clamp(48px, 9vw, 96px) 0 30px; text-align: center; }
.article-head h1 { font-size: clamp(38px, 6.2vw, 68px); margin: 16px 0 0; text-wrap: balance; }
.article-head .summary { color: var(--text-soft); font-size: clamp(17px, 2vw, 20px); margin: 18px auto 0; max-width: 60ch; text-wrap: pretty; font-weight: 300; }
.article-meta { display: flex; justify-content: center; flex-wrap: wrap; gap: 4px 16px; font-size: 13.5px; color: var(--text-faint); }
.article-meta a { color: var(--accent-strong); transition: color 0.2s ease; }
.article-meta a:hover { color: var(--text); }

.article-cover { max-width: 1040px; margin: 8px auto 0; }
.article-cover img { width: 100%; border-radius: var(--radius); display: block; box-shadow: var(--shadow); }

.draft-banner { background: var(--accent); color: #fff; text-align: center; padding: 9px; font-size: 14px; font-weight: 520; }
.draft-banner a { text-decoration: underline; }

.edit-link {
	position: fixed;
	right: 20px;
	bottom: 20px;
	z-index: 50;
	padding: 10px 16px;
	border-radius: 999px;
	background: var(--text);
	color: var(--background);
	font-size: 13.5px;
	font-weight: 520;
	box-shadow: var(--shadow);
	transition: transform 0.35s var(--ease), background-color 0.25s ease, color 0.25s ease;
	animation: rise 0.6s var(--ease) 0.6s both;
}
.edit-link:hover { background: var(--accent); color: #fff; transform: translateY(-2px); }

.prose { max-width: var(--prose-width); margin: 0 auto; font-size: 18px; line-height: 1.75; color: var(--text); font-weight: 310; }
.prose > * + * { margin-top: 1.15em; }
.prose p, .prose ul, .prose ol, .prose blockquote, .prose pre, .prose table, .prose figure { margin-bottom: 0; }
.prose h2 { font-family: var(--font-display); font-weight: 400; font-size: 1.75em; margin-top: 1.9em; line-height: 1.2; letter-spacing: -0.005em; }
.prose h3 { font-size: 1.25em; margin-top: 1.8em; font-weight: 560; }
.prose h4 { font-size: 1.05em; margin-top: 1.6em; font-weight: 560; }
.prose h2 + *, .prose h3 + *, .prose h4 + * { margin-top: 0.6em; }
.prose a {
	color: var(--text);
	background: linear-gradient(var(--accent), var(--accent)) 0 100% / 100% 1.5px no-repeat;
	padding-bottom: 1px;
	transition: background-size 0.35s var(--ease), color 0.2s ease;
}
.prose a:hover { color: var(--text); background-image: linear-gradient(var(--accent-soft), var(--accent-soft)); background-size: 100% 100%; }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose li + li { margin-top: 0.35em; }
.prose li::marker { color: var(--accent); }
.prose blockquote { margin-left: 0; margin-right: 0; padding: 18px 22px; border-radius: var(--radius-small); background: var(--surface); color: var(--text-soft); }
.prose blockquote > :first-child { margin-top: 0; }
.prose hr { border: 0; margin: 2.6em 0; text-align: center; height: auto; }
.prose hr::after { content: "· · ·"; color: var(--text-faint); letter-spacing: 0.7em; font-size: 1.2em; }
.prose img, .prose video { display: block; margin-left: auto; margin-right: auto; border-radius: var(--radius-small); }
.prose img.portrait { width: min(260px, 60%); margin: 0 0 1.4em; border-radius: 24px; box-shadow: var(--shadow); }
.prose p > img:only-child { margin: 0.4em auto; }
.prose figure { margin-left: 0; margin-right: 0; }
.prose figcaption { font-size: 14px; color: var(--text-faint); text-align: center; margin-top: 8px; }
.prose table { border-collapse: separate; border-spacing: 0; width: 100%; font-size: 15.5px; display: block; overflow-x: auto; border-radius: var(--radius-small); background: var(--surface); }
.prose th, .prose td { padding: 10px 14px; text-align: left; }
.prose th { font-weight: 560; background: var(--surface-strong); }
.prose thead:not(:has(th:not(:empty))) { display: none; }
.prose tr:nth-child(even) td { background: var(--surface); }
.prose :not(pre) > code { font-family: var(--font-mono); font-size: 0.84em; background: var(--surface-strong); color: var(--text); padding: 0.14em 0.42em; border-radius: 6px; }
.prose pre, .prose .chroma {
	position: relative;
	font-family: var(--font-mono);
	font-size: 14px;
	line-height: 1.6;
	background: var(--code-background) !important;
	color: #e6edf3;
	padding: 20px 22px;
	border-radius: var(--radius-small);
	overflow-x: auto;
	tab-size: 4;
}
.prose pre code { font-family: inherit; font-size: inherit; background: none; padding: 0; color: inherit; }
.prose .copy-code {
	position: absolute;
	top: 10px;
	right: 10px;
	font: 500 11.5px var(--font-body);
	color: #b9a8a2;
	background: rgba(255, 236, 230, 0.08);
	border: 0;
	border-radius: 999px;
	padding: 5px 11px;
	cursor: pointer;
	opacity: 0;
	transition: opacity 0.2s ease, background-color 0.2s ease;
}
.prose pre:hover .copy-code, .prose .copy-code:focus { opacity: 1; }
.prose .copy-code:hover { background: var(--accent); color: #fff; }
.prose .footnotes { font-size: 15px; color: var(--text-soft); margin-top: 3em; }
.prose .footnotes hr { margin: 1.5em 0; }
.prose iframe { width: 100%; border: 0; border-radius: var(--radius-small); }
.prose .math.display { display: block; overflow-x: auto; overflow-y: hidden; padding: 4px 0; }
.prose.poem { font-family: var(--font-display); font-size: 1.3em; line-height: 1.6; font-weight: 400; }

.wide { max-width: 1040px; margin-left: auto; margin-right: auto; }

.embed {
	display: grid;
	place-items: center;
	min-height: 160px;
	border-radius: var(--radius-small);
	background: var(--surface);
	text-align: center;
	padding: 22px;
	gap: 10px;
}
.embed.video { aspect-ratio: 16 / 9; }
.embed p { margin: 0; color: var(--text-faint); font-size: 14px; }
.embed.loaded { padding: 0; background: none; display: block; animation: fade-in 0.5s ease both; }
.embed.loaded iframe { display: block; width: 100%; height: 100%; min-height: 160px; border-radius: var(--radius-small); }

.article-footer { max-width: var(--prose-width); margin: 72px auto 0; }
.article-footer .newsletter-band { grid-template-columns: 1fr; }

.more-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 14px; }
.more-card { display: block; border-radius: var(--radius); padding: 18px 20px; background: var(--surface); transition: background-color 0.25s ease, transform 0.45s var(--ease); }
.more-card:hover { background: var(--surface-hover); transform: translateY(-3px); }
.more-card time { font-size: 13px; color: var(--text-faint); }
.more-card h3 { font-size: 17px; margin-top: 6px; font-weight: 520; transition: color 0.2s ease; }
.more-card:hover h3 { color: var(--accent-strong); }

/* Music player */

.music { display: grid; gap: clamp(18px, 3vw, 28px); }
.album { border-radius: calc(var(--radius) + 6px); background: var(--surface); padding: clamp(18px, 3vw, 28px); animation: rise 0.7s var(--ease) both; }
.album-head { display: grid; grid-template-columns: clamp(108px, 20vw, 196px) minmax(0, 1fr); align-items: end; gap: clamp(18px, 3vw, 30px); margin-bottom: 18px; }
.album-head.plain { display: block; margin-bottom: 8px; }
.album-cover { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: var(--radius-small); box-shadow: var(--shadow); background: var(--surface-strong); }
.album-kind { margin: 0 0 6px; font-size: 13px; color: var(--text-faint); }
.album-head h2 { margin: 0; font-family: var(--font-display); font-weight: 400; font-size: clamp(26px, 3.6vw, 38px); line-height: 1.1; }
.album-head.plain h2 { font-size: clamp(22px, 3vw, 28px); padding: 2px 12px 0; }
.album-description { margin: 10px 0 0; color: var(--text-soft); max-width: 60ch; }
.album-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.album-play, .share-button {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 9px 16px 9px 12px;
	border: 0;
	border-radius: 999px;
	background: var(--accent);
	color: #fff;
	font: 520 14px var(--font-body);
	cursor: pointer;
	transition: transform 0.35s var(--ease), box-shadow 0.35s ease;
}
.album-play:hover { transform: translateY(-1px); box-shadow: 0 12px 26px -12px var(--accent); }
.album-play svg, .share-button svg { width: 16px; height: 16px; fill: currentColor; }
.share-button { padding-left: 14px; background: var(--surface-strong); color: var(--text); }
.share-button:hover { transform: translateY(-1px); background: var(--surface-hover); box-shadow: none; }
svg.icon-link { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.album-head h2 a { color: inherit; transition: color 0.2s ease; }
.album-head h2 a:hover { color: var(--accent-strong); }
.album-head h1 { margin: 0; font-family: var(--font-display); font-weight: 400; font-size: clamp(34px, 5.4vw, 58px); line-height: 1.05; }
.album-kind a { color: var(--text-soft); text-decoration: underline; text-underline-offset: 3px; }
.album-kind a:hover { color: var(--accent-strong); }
.album-single .album-head { grid-template-columns: clamp(128px, 30vw, 280px) minmax(0, 1fr); margin-bottom: 0; }
.music-back { display: inline-block; margin: clamp(36px, 7vw, 76px) 0 22px; color: var(--text-soft); font-size: 14.5px; transition: color 0.2s ease; }
.music-back:hover { color: var(--accent-strong); }
.toast {
	position: fixed;
	left: 50%;
	bottom: 124px;
	z-index: 60;
	padding: 10px 18px;
	border-radius: 999px;
	background: var(--text);
	color: var(--background);
	font-size: 14px;
	font-weight: 520;
	box-shadow: var(--shadow);
	pointer-events: none;
	opacity: 0;
	translate: -50% 10px;
	transition: opacity 0.25s ease, translate 0.35s var(--ease);
}
.toast.shown { opacity: 1; translate: -50% 0; }

.player {
	position: sticky;
	bottom: 14px;
	z-index: 40;
	display: grid;
	grid-template-columns: 56px minmax(0, 1fr) auto minmax(200px, 32%);
	grid-template-areas: "art info controls progress";
	align-items: center;
	gap: 12px 18px;
	padding: 12px 18px 12px 12px;
	border-radius: calc(var(--radius) + 6px);
	background: color-mix(in srgb, var(--background) 84%, transparent);
	-webkit-backdrop-filter: blur(18px) saturate(1.3);
	backdrop-filter: blur(18px) saturate(1.3);
	box-shadow: var(--shadow), inset 0 0 0 100vmax var(--surface);
}
.player-art { grid-area: art; width: 56px; height: 56px; padding: 0; border: 0; border-radius: var(--radius-small); overflow: hidden; background: var(--surface-strong); cursor: pointer; }
.player-art img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.4s var(--ease); }
.player-art:hover img { transform: scale(1.06); }
.player-info { grid-area: info; min-width: 0; display: grid; }
.player-title { font-family: var(--font-display); font-size: 21px; line-height: 1.25; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.player-meta { color: var(--text-faint); font-size: 13.5px; min-height: 1.4em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.player-controls { grid-area: controls; display: flex; align-items: center; gap: 8px; }
.player-play {
	width: 50px;
	height: 50px;
	flex-shrink: 0;
	border: 0;
	border-radius: 999px;
	background: var(--accent);
	color: #fff;
	display: grid;
	place-items: center;
	cursor: pointer;
	transition: transform 0.35s var(--ease), box-shadow 0.35s ease;
}
.player-play:hover { transform: scale(1.06); box-shadow: 0 14px 30px -12px var(--accent); }
.player-play svg { width: 22px; height: 22px; fill: currentColor; }
.player-play .icon-pause { display: none; }
.music.playing .player-play .icon-play { display: none; }
.music.playing .player-play .icon-pause { display: block; }
.player-skip {
	width: 40px;
	height: 40px;
	border: 0;
	border-radius: 999px;
	background: var(--surface-strong);
	color: var(--text-soft);
	display: grid;
	place-items: center;
	cursor: pointer;
	transition: background-color 0.2s ease, color 0.2s ease;
}
.player-skip:hover { background: var(--surface-hover); color: var(--text); }
.player-skip svg { width: 17px; height: 17px; fill: currentColor; }
.player-progress { grid-area: progress; display: grid; grid-template-columns: 3.2em 1fr 3.2em; align-items: center; gap: 10px; font-size: 12.5px; color: var(--text-faint); font-variant-numeric: tabular-nums; }
.player-progress span:last-child { text-align: right; }
.player-progress input[type="range"] {
	-webkit-appearance: none;
	appearance: none;
	width: 100%;
	height: 6px;
	margin: 0;
	border-radius: 999px;
	background: linear-gradient(var(--accent), var(--accent)) 0 0 / var(--progress, 0%) 100% no-repeat, var(--surface-strong);
	cursor: pointer;
}
.player-progress input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 14px; height: 14px; border-radius: 999px; background: var(--text); transition: transform 0.2s ease; }
.player-progress input[type="range"]::-moz-range-thumb { width: 14px; height: 14px; border: 0; border-radius: 999px; background: var(--text); }
.player-progress input[type="range"]::-moz-range-track { background: transparent; }
.player-progress input[type="range"]:hover::-webkit-slider-thumb { transform: scale(1.25); }
body:has(.player) .edit-link { top: 132px; bottom: auto; }

.tracklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.tracklist[hidden] { display: none; }
.track {
	width: 100%;
	display: grid;
	grid-template-columns: 34px minmax(0, 1fr) auto;
	align-items: center;
	gap: 14px;
	padding: 10px 12px;
	border: 0;
	border-radius: var(--radius-small);
	background: transparent;
	color: var(--text);
	font: inherit;
	text-align: left;
	cursor: pointer;
	transition: background-color 0.2s ease;
}
.track.with-art { grid-template-columns: 42px minmax(0, 1fr) auto; padding: 7px 12px 7px 7px; }
.track-item { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; border-radius: var(--radius-small); transition: background-color 0.2s ease; }
.track-item:hover { background: var(--surface-strong); }
.track-item:has(.track.current) { background: var(--accent-soft); }
.track-share { width: 36px; height: 36px; margin-right: 6px; padding: 0; border: 0; border-radius: 999px; background: transparent; color: var(--text-faint); display: grid; place-items: center; cursor: pointer; opacity: 0.5; transition: opacity 0.2s ease, background-color 0.2s ease, color 0.2s ease; }
.track-share svg { width: 16px; height: 16px; }
.track-item:hover .track-share, .track-share:focus-visible { opacity: 1; }
.track-share:hover { background: var(--surface-hover); color: var(--text); }
@media (hover: none) { .track-share { opacity: 1; } }
.track-number, .track-bars, .track-art { grid-column: 1; grid-row: 1; }
.track-number { color: var(--text-faint); font-size: 13px; font-variant-numeric: tabular-nums; }
.track-art { width: 42px; height: 42px; border-radius: 8px; object-fit: cover; background: var(--surface-strong); transition: filter 0.3s ease; }
.track-bars { display: none; align-items: flex-end; gap: 3px; height: 15px; }
.track.with-art .track-bars { justify-self: center; z-index: 1; }
.track.current .track-number { display: none; }
.track.current .track-bars { display: inline-flex; }
.track.current .track-art { filter: brightness(0.4); }
.track-bars i { display: block; width: 3px; height: 45%; border-radius: 2px; background: var(--accent); }
.track.with-art .track-bars i { background: #fff; }
.music.playing .track.current .track-bars i { animation: equalizer 0.9s ease-in-out infinite; }
.music.playing .track.current .track-bars i:nth-child(2) { animation-delay: -0.3s; }
.music.playing .track.current .track-bars i:nth-child(3) { animation-delay: -0.6s; }
@keyframes equalizer { 0%, 100% { height: 30%; } 50% { height: 100%; } }
.track-text { grid-column: 2; display: grid; min-width: 0; }
.track-title { font-weight: 470; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.track.current .track-title { color: var(--accent-strong); }
.track-meta { font-size: 13px; color: var(--text-faint); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.track-duration { grid-column: 3; color: var(--text-faint); font-size: 13px; font-variant-numeric: tabular-nums; }
.music-notes { margin: 48px 0 0; }
@media (max-width: 820px) {
	.player { grid-template-columns: 52px minmax(0, 1fr) auto; grid-template-areas: "art info controls" "progress progress progress"; padding: 12px 14px 10px 12px; }
	.player-art { width: 52px; height: 52px; }
	.player-title { font-size: 19px; }
}
@media (max-width: 480px) {
	.album-head { grid-template-columns: 96px minmax(0, 1fr); align-items: center; }
	.album-actions { margin-top: 12px; }
	.album-single .album-head { grid-template-columns: 1fr; }
	.album-single .album-cover { width: min(240px, 72%); }
	.player-skip { display: none; }
	.player-play { width: 46px; height: 46px; }
}

/* Footer */

.site-footer { margin-top: clamp(72px, 10vw, 128px); padding: 44px 0 52px; font-size: 14px; color: var(--text-faint); }
.footer-inner { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; align-items: flex-start; }
.footer-inner p { margin: 12px 0 0; }
.footer-inner nav { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.footer-inner nav a { color: var(--text-soft); transition: color 0.2s ease; }
.footer-inner nav a:hover { color: var(--accent-strong); }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; margin-top: 30px; }

/* Messages and lists */

.message-page { max-width: 580px; margin: 0 auto; padding: clamp(80px, 14vw, 168px) 0; text-align: center; }
.message-page h1 { font-size: clamp(42px, 7vw, 62px); }
.message-page p { color: var(--text-soft); font-size: 18px; }
.message-page form { margin-top: 24px; }

.issue-list { list-style: none; padding: 0; margin: 0 -14px; display: grid; gap: 2px; }
.issue-list a { display: flex; justify-content: space-between; gap: 16px; padding: 14px; border-radius: var(--radius-small); transition: background-color 0.25s ease, transform 0.4s var(--ease); }
.issue-list a:hover { background: var(--surface); transform: translateX(4px); }
.issue-list time { font-size: 13.5px; color: var(--text-faint); white-space: nowrap; }

/* Motion */

@keyframes rise {
	from { opacity: 0; translate: 0 18px; }
	to { opacity: 1; translate: 0 0; }
}
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes zoom-in { from { opacity: 0; scale: 0.94; } to { opacity: 1; scale: 1; } }
@keyframes title-in {
	from { opacity: 0; translate: 0 0.35em; clip-path: inset(0 0 100% 0); }
	to { opacity: 1; translate: 0 0; clip-path: inset(0 0 -20% 0); }
}

.site-header { animation: fade-in 0.8s ease both; }
.hero .eyebrow, .page-head .eyebrow, .article-meta { animation: rise 0.8s var(--ease) 0.05s both; }
.hero h1, .page-head h1, .article-head h1, .message-page h1 { animation: title-in 1s var(--ease) 0.12s both; }
.hero .lead, .page-head .lead, .article-head .summary { animation: rise 0.9s var(--ease) 0.28s both; }
.hero .actions, .filter-row { animation: rise 0.9s var(--ease) 0.4s both; }
.hero .social-row { animation: rise 0.9s var(--ease) 0.5s both; }
.article-cover, .prose { animation: rise 1s var(--ease) 0.35s both; }

@supports (animation-timeline: view()) {
	.section-head, .feature-grid > *, .project-grid > *, .post-list li, .art-strip a, .gallery figure, .newsletter-band, .more-grid > *, .year-group h2, .issue-list li {
		animation: rise linear both;
		animation-timeline: view();
		animation-range: entry 0% entry 70%;
	}
	.art-strip a:nth-child(2n), .project-grid > *:nth-child(2n), .gallery figure:nth-child(3n+2) { animation-range: entry 8% entry 78%; }
}

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
	@supports (animation-timeline: scroll()) {
		.backdrop::before { animation: backdrop-blur linear both !important; animation-timeline: scroll(root) !important; animation-range: 0 120vh !important; }
	}
}
