/*
	NØIR, a redesign built on Hyperspace by HTML5 UP
	html5up.net | @ajlkn
	Hyperspace is free for personal and commercial use under the CCA 3.0 license (html5up.net/license)
*/

/*
	Fonts, latin subsets, both SIL OFL 1.1 (licenses next to the files in fonts/).
	Instrument Sans carries the name, titles and reading text; its width axis
	lets titles run a touch narrow. IBM Plex Mono is for the parts that are
	records rather than prose: the wordmark blank, nav, dates, counts, metadata.
*/

	@font-face {
		font-family: 'Instrument Sans';
		font-style: normal;
		font-weight: 400 700;
		font-stretch: 75% 100%;
		font-display: swap;
		src: url(../fonts/instrument-sans-latin.woff2) format('woff2');
	}

	@font-face {
		font-family: 'Instrument Sans';
		font-style: italic;
		font-weight: 400 700;
		font-stretch: 75% 100%;
		font-display: swap;
		src: url(../fonts/instrument-sans-latin-italic.woff2) format('woff2');
	}

	@font-face {
		font-family: 'IBM Plex Mono';
		font-style: normal;
		font-weight: 400;
		font-display: swap;
		src: url(../fonts/ibm-plex-mono-latin-400.woff2) format('woff2');
	}

	@font-face {
		font-family: 'IBM Plex Mono';
		font-style: normal;
		font-weight: 500;
		font-display: swap;
		src: url(../fonts/ibm-plex-mono-latin-500.woff2) format('woff2');
	}

/* Tokens */

	:root {
		/* Layered greys: sidebar darkest, page a step lighter, rows lighter still. */
		--ink-0: #090a0c;
		--ink-1: #0e1012;
		--ink-2: #14171a;
		--ink-3: #1b1e22;
		--line: #21252a;

		--text: #e7e9ec;
		--muted: #a3a9b2;
		--dim: #868d97;

		--accent-1: #49fcd4;
		--accent-1-rgb: 73, 252, 212;

		/* The spine pattern (see #sidebar::after), drawn from its solid end. */
		--spine:
			rgba(var(--accent-1-rgb), 1.0) 0.0% 10.0%,
			rgba(var(--accent-1-rgb), 0.994) 10.0% 10.556%,
			rgba(var(--accent-1-rgb), 0.983) 10.556% 11.111%,
			rgba(var(--accent-1-rgb), 0.972) 11.111% 11.667%,
			rgba(var(--accent-1-rgb), 0) 11.667% 12.222%,
			rgba(var(--accent-1-rgb), 0.95) 12.222% 12.778%,
			rgba(var(--accent-1-rgb), 0.939) 12.778% 13.333%,
			rgba(var(--accent-1-rgb), 0.928) 13.333% 13.889%,
			rgba(var(--accent-1-rgb), 0.917) 13.889% 14.444%,
			rgba(var(--accent-1-rgb), 0.906) 14.444% 15.0%,
			rgba(var(--accent-1-rgb), 0) 15.0% 15.556%,
			rgba(var(--accent-1-rgb), 0.883) 15.556% 16.111%,
			rgba(var(--accent-1-rgb), 0.872) 16.111% 16.667%,
			rgba(var(--accent-1-rgb), 0.861) 16.667% 17.222%,
			rgba(var(--accent-1-rgb), 0) 17.222% 18.333%,
			rgba(var(--accent-1-rgb), 0.828) 18.333% 18.889%,
			rgba(var(--accent-1-rgb), 0.817) 18.889% 19.444%,
			rgba(var(--accent-1-rgb), 0) 19.444% 21.667%,
			rgba(var(--accent-1-rgb), 0.788) 21.667% 22.222%,
			rgba(var(--accent-1-rgb), 0) 22.222% 25.556%,
			rgba(var(--accent-1-rgb), 0.764) 25.556% 26.111%,
			rgba(var(--accent-1-rgb), 0) 26.111% 31.667%,
			rgba(var(--accent-1-rgb), 0.725) 31.667% 32.222%,
			rgba(var(--accent-1-rgb), 0) 32.222% 41.667%,
			rgba(var(--accent-1-rgb), 0.663) 41.667% 42.222%,
			rgba(var(--accent-1-rgb), 0) 42.222% 57.222%,
			rgba(var(--accent-1-rgb), 0.566) 57.222% 57.778%,
			rgba(var(--accent-1-rgb), 0) 57.778% 82.222%,
			rgba(var(--accent-1-rgb), 0.409) 82.222% 82.778%,
			rgba(var(--accent-1-rgb), 0) 82.778% 100.0%;
		/* The spine's gaps as a mask: opaque only where --spine is empty, so the
		   hairline never shows through a (partly transparent) segment. */
		--spine-gaps:
			transparent 0.0% 11.667%,
			#000 11.667% 12.222%,
			transparent 12.222% 15.0%,
			#000 15.0% 15.556%,
			transparent 15.556% 17.222%,
			#000 17.222% 18.333%,
			transparent 18.333% 19.444%,
			#000 19.444% 21.667%,
			transparent 21.667% 22.222%,
			#000 22.222% 25.556%,
			transparent 25.556% 26.111%,
			#000 26.111% 31.667%,
			transparent 31.667% 32.222%,
			#000 32.222% 41.667%,
			transparent 41.667% 42.222%,
			#000 42.222% 57.222%,
			transparent 57.222% 57.778%,
			#000 57.778% 82.222%,
			transparent 82.222% 82.778%,
			#000 82.778% 100.0%;
		/* Quiet mint rule between the sidebar, masthead and panel. */
		--hairline: rgba(var(--accent-1-rgb), .3);
		--accent-2: #ff4fa6;
		--accent-2-rgb: 255, 79, 166;

		--font: 'Instrument Sans', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
		--mono: 'IBM Plex Mono', ui-monospace, 'SF Mono', Menlo, monospace;
		/* A share of the window, not rem, so zooming out does not shrink it. */
		--side-w: 20vw;
		--ease: cubic-bezier(.2, .7, .2, 1);
		--progress: 0;
	}

/* Base */

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

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

	body {
		margin: 0;
		min-height: 100vh;
		background-color: var(--ink-1);
		color: var(--text);
		font-family: var(--font);
		font-size: 1rem;
		line-height: 1.6;
		font-kerning: normal;
		-webkit-font-smoothing: antialiased;
		-moz-osx-font-smoothing: grayscale;
	}

	a {
		color: inherit;
	}

	img {
		max-width: 100%;
	}

	h1, h2, h3 {
		margin: 0;
		font-weight: 600;
		font-stretch: 92%;
		line-height: 1.16;
		letter-spacing: -.01em;
		text-wrap: balance;
	}

	::selection {
		background: rgba(var(--accent-2-rgb), .35);
		color: #fff;
	}

	:focus {
		outline: none;
	}

	:focus-visible {
		outline: 2px solid var(--accent-1);
		outline-offset: 3px;
		border-radius: 3px;
		box-shadow: 0 0 0 6px rgba(var(--accent-2-rgb), .28);
	}

	/* Focus targets that aren't controls (the skip link's #main) get focus
	   programmatically; ringing the whole page there is noise. */
	[tabindex="-1"]:focus {
		outline: none;
		box-shadow: none;
	}

	.sr {
		position: absolute !important;
		width: 1px;
		height: 1px;
		overflow: hidden;
		clip-path: inset(50%);
		white-space: nowrap;
	}

	.skip {
		position: fixed;
		left: 1rem;
		top: -4rem;
		z-index: 30001;
		padding: .6rem 1rem;
		background: var(--ink-3);
		border-radius: 4px;
		text-decoration: none;
	}

		.skip:focus-visible {
			top: 1rem;
		}

/* Wordmark: NØIR :____ with a sans name and a mono blank, like a prompt waiting
   for input. The blank is as wide as its widest word, and each word is centered on it. */

	/* "NØIR : word": the font's own space is too narrow to read as a gap, so
	   the colon gets the same explicit gap on both sides. */
	.wordmark .wm-colon {
		margin: 0 .3em;
	}

	.wordmark {
		display: inline-flex;
		align-items: baseline;
		color: var(--text);
		font-weight: 700;
		font-stretch: 88%;
		letter-spacing: -.005em;
		text-decoration: none;
		white-space: nowrap;
	}

		/* As wide as the longest word it can show (set inline), so nothing beside
		   it shifts as words change. */
		.wm-blank {
			display: inline-grid;
			font-family: var(--mono);
			font-size: .86em;
			font-weight: 500;
			font-stretch: normal;
			letter-spacing: -.01em;
		}

			/* Two stacked slots; main.js swaps which one is current. Each word carries
			   its own underline, exactly its width, so the underline types in and
			   lifts out with the word. */
			.wm-slot {
				grid-area: 1 / 1;
				justify-self: start;
				padding-bottom: .06em;
				color: var(--accent-2);
				background: linear-gradient(var(--accent-1), var(--accent-1)) left bottom / 100% 2px no-repeat;
			}

			/* Home's first state: a bare four-character blank, the ____. */
			.wm-slot.is-blank {
				width: 4ch;
			}

			/* One transition every time: the leaving word lifts up and fades (.3s), the
			   arriving word types in one letter per step (.45s, after .12s). A leaving
			   word is re-clipped once invisible so it can type in next time; an
			   arriving word is reset in place while still clipped. Transitions sit on
			   the destination state, so each rule describes how a word gets there. */

			/* Leaving (and idle): lift and fade. */
			.wm-slot {
				clip-path: inset(0 100% 0 0);
				transform: translateY(-.55em);
				opacity: 0;
				transition: transform .3s var(--ease), opacity .2s ease, clip-path 0s linear .3s;
			}

			/* Arriving: type in. --n is the word's letter count. */
			.wm-slot.is-current {
				clip-path: inset(0 0 0 0);
				transform: none;
				opacity: 1;
				transition: clip-path .45s steps(var(--n, 8), end) .12s, transform 0s, opacity 0s;
			}

/* Long unbroken words and pasted URLs wrap instead of widening the page. */

	h1, h2, h3,
	.prose,
	.ledger .row-body,
	#sidebar .recent a {
		overflow-wrap: anywhere;
	}

/* Sidebar (wide screens) */

	#sidebar {
		position: fixed;
		top: 0;
		left: 0;
		z-index: 10000;
		width: var(--side-w);
		height: 100vh;
		height: 100dvh;
		background: var(--ink-0);
	}

		/* Hairline on the panel's left edge, where the masthead's rule starts. The
		   spine below is centered on it and paints over it, so it shows only in
		   the spine's gaps. Overflow stays visible so both can straddle the edge. */
		#sidebar::before {
			content: '';
			position: absolute;
			top: 0;
			right: -1px;
			bottom: 0;
			width: 1px;
			background: var(--hairline);
			-webkit-mask-image: linear-gradient(0deg, var(--spine-gaps));
			mask-image: linear-gradient(0deg, var(--spine-gaps));
			pointer-events: none;
		}

		/* The spine: a 5px mint bar along the sidebar edge that rises from the
		   bottom in square blocks (1/180 of the height, 5px on a 900px screen).
		   Measured up from the bottom: runs shrink by reverse Fibonacci (13, 8, 5,
		   3, 2, 1 blocks), then continue as single drips; the black gaps are half
		   Fibonacci, rounded down (0, 1, 1, 2, 4, 6, 10, 17, ...). Strength is full
		   for the bottom 10%, 80% by 20% up, and 30% at the top. */
		#sidebar::after {
			content: '';
			position: absolute;
			top: 0;
			right: -3px;
			bottom: 0;
			width: 5px;
			background: linear-gradient(0deg, var(--spine));
			pointer-events: none;
		}

		#sidebar > .inner {
			position: relative;
			width: var(--side-w);
			height: 100%;
			overflow-y: auto;
			overscroll-behavior: contain;
			scrollbar-width: none;
			padding: 2.5rem 2rem 2rem;
			text-align: center;
		}

		.portrait {
			position: relative;
			display: block;
			width: 6.5rem; /* sidebar size; .page-portrait overrides */
			margin: 0 auto;
			padding: 4px;
			background: var(--ink-2);
			border: 1px solid var(--line);
			border-radius: 50%;
			line-height: 0;
		}

			/* A circle that frames the whole seated figure: the image is cropped to
			   center it left to right, and object-position picks the window from
			   just above the cap to just below the feet. */
			.portrait img {
				display: block;
				width: 100%;
				height: auto;
				aspect-ratio: 1;
				object-fit: cover;
				object-position: 50% 67%;
				border-radius: 50%;
				filter: grayscale(1) contrast(1.05);
			}

			/* Hidden detail: the portrait takes a duotone tint on hover. */
			.portrait::after {
				content: '';
				position: absolute;
				inset: 4px;
				border-radius: 50%;
				background: linear-gradient(160deg, var(--accent-1), var(--accent-2));
				mix-blend-mode: color;
				opacity: 0;
				transition: opacity .5s ease;
			}

			.portrait:hover::after {
				opacity: .9;
			}

			.portrait:hover {
				border-color: rgba(var(--accent-2-rgb), .5);
				box-shadow: 0 0 24px -6px rgba(var(--accent-1-rgb), .35);
			}

		#sidebar nav {
			margin-top: 2rem;
		}

		#sidebar ul {
			list-style: none;
			margin: 0;
			padding: 0;
		}

		#sidebar .nav a {
			display: block;
			padding: .4rem 0;
			color: var(--muted);
			font-family: var(--mono);
			font-size: .9375rem;
			font-weight: 500;
			text-decoration: none;
			transition: color .2s ease;
		}

			#sidebar .nav a:hover,
			#sidebar .nav a[aria-current],
			#sidebar .nav a.is-section {
				color: var(--text);
			}

		#sidebar .recent {
			margin-top: 2.25rem;
		}

			#sidebar .recent h2 {
				margin-bottom: .5rem;
				color: var(--dim);
				font-family: var(--mono);
				font-size: .75rem;
				font-weight: 400;
				font-stretch: normal;
				letter-spacing: 0;
			}

			#sidebar .recent a {
				display: block;
				padding: .4rem 0;
				color: var(--muted);
				font-size: .9375rem;
				line-height: 1.35;
				text-decoration: none;
				transition: color .2s ease;
			}

				#sidebar .recent a:hover,
				#sidebar .recent a[aria-current] {
					color: var(--text);
				}

/* The current page: a magenta box around its label. Negative margins keep the
   text where it would be without the box. */

	.nav a[aria-current] .label,
	#sidebar .recent a[aria-current] .label {
		display: inline-block;
		margin: -.2em -.45em;
		padding: .2em .45em;
		border: 1px solid var(--accent-2);
		border-radius: 0;
	}

/* The traveling marker (sidebar and narrow header) */

	.marker {
		position: absolute;
		top: 0;
		left: 0;
		width: 0;
		height: 2px;
		border-radius: 2px;
		opacity: 0;
		pointer-events: none;
		transition: transform .45s var(--ease), width .45s var(--ease), opacity .3s ease;
		view-transition-name: nav-marker;
	}

		/* The current item is boxed instead, so the marker only shows while you
		   point at another item. */
		.marker.is-ready.is-preview {
			opacity: 1;
		}

		.marker .fill {
			position: absolute;
			inset: 0;
			border-radius: inherit;
			background: var(--accent-2);
			transform-origin: left center;
			transform: scaleX(var(--fill, 1));
			transition: transform .2s linear, background-color .2s ease;
		}

			.marker.is-preview .fill {
				background: var(--accent-1);
			}


/* Reading-progress line (post pages) */

	#progress {
		position: fixed;
		top: 0;
		left: 0;
		right: 0;
		z-index: 20000;
		height: 2px;
		background: var(--accent-2);
		transform-origin: left center;
		transform: scaleX(var(--progress));
		box-shadow: 0 0 12px rgba(var(--accent-2-rgb), .5);
		pointer-events: none;
	}

/* Header (narrow screens; Hyperspace's mobile header pattern) */

	#header {
		display: none;
	}

/* Wrapper */

	#wrapper {
		position: relative;
		margin-left: var(--side-w);
		min-height: 100vh;
		padding: 2.75rem 3.5rem 0;
	}

/* Masthead: wordmark and tagline on one line */

	.masthead {
		display: flex;
		flex-wrap: wrap;
		align-items: baseline;
		gap: .25rem 1.25rem;
		margin-bottom: 2rem;
	}

		.masthead .wordmark {
			font-size: 1.625rem;
			view-transition-name: wordmark;
		}

		.masthead .tagline {
			margin: 0;
			color: var(--muted);
			font-size: 1rem;
		}

		.column .masthead {
			margin-bottom: 2.75rem;
		}

	/* Desktop: the masthead stays pinned atop the main panel. The wrapper's top
	   padding moves onto the masthead so its background reaches the viewport
	   top once pinned. The padding is rebalanced (1.125rem top, 1.625rem
	   bottom) so the wordmark sits between the top edge and the rule. */
	@media screen and (min-width: 961px) {

		html {
			scroll-padding-top: 7.5rem;
			/* No rubber-band at the top: it would drag the pinned masthead down with
			   the page. Desktop only, so phones keep pull-to-refresh. */
			overscroll-behavior-y: none;
		}

		#wrapper {
			padding-top: 0;
		}

		.masthead {
			position: sticky;
			top: 0;
			z-index: 100;
			/* Bleed into #wrapper's side gutters so wide shadows (the post photo's)
			   can't show beside the bar as content scrolls under it; the hairline
			   below then runs from the sidebar edge to the window edge. */
			margin-left: -3.5rem;
			margin-right: -3.5rem;
			/* Padding balances the wordmark vertically between the top edge and the
			   rule below (the wrapper's old 2.75rem top padding is now split). */
			padding: 1.125rem 3.5rem 1.625rem;
			background: var(--ink-1);
			border-bottom: 1px solid var(--hairline);
		}

	}


/* Ledger: the dense list of posts */

	.ledger {
		list-style: none;
		margin: 0;
		padding: 0;
		display: grid;
		gap: 2px;
	}

		.ledger .row {
			position: relative;
			display: grid;
			grid-template-columns: 7.25rem 1fr;
			gap: 1rem;
			padding: 1.05rem 1.35rem 1.1rem;
			background: var(--ink-2);
			border-radius: 2px;
			isolation: isolate;
			transition: background-color .25s ease, box-shadow .35s ease;
		}

			.ledger .row:first-child {
				border-top-left-radius: 6px;
				border-top-right-radius: 6px;
			}

			.ledger .row:last-child {
				border-bottom-left-radius: 6px;
				border-bottom-right-radius: 6px;
			}

			/* Hover glow in mint. */
			.ledger .row::before {
				content: '';
				position: absolute;
				inset: 0;
				z-index: -1;
				border-radius: inherit;
				background:
					linear-gradient(90deg, rgba(var(--accent-1-rgb), .12), transparent 98%);
				opacity: 0;
				transition: opacity .3s ease;
			}

			.ledger .row::after {
				content: '';
				position: absolute;
				left: 0;
				top: 0;
				bottom: 0;
				width: 2px;
				background: var(--accent-1);
				transform: scaleY(0);
				transform-origin: center top;
				transition: transform .35s var(--ease);
			}

			.ledger .row:hover,
			.ledger .row:focus-within {
				background: var(--ink-3);
				box-shadow: -8px 0 32px -12px rgba(var(--accent-1-rgb), .45);
			}

				.ledger .row:hover::before,
				.ledger .row:focus-within::before {
					opacity: 1;
				}

				.ledger .row:hover::after,
				.ledger .row:focus-within::after {
					transform: scaleY(1);
				}

			.ledger time {
				padding-top: .3rem;
				color: var(--muted);
				font-family: var(--mono);
				font-size: .8125rem;
				font-weight: 400;
				letter-spacing: 0;
				font-variant-numeric: tabular-nums;
				white-space: nowrap;
			}

			.ledger h2, .ledger h3 {
				text-wrap: pretty;
				font-size: 1.1875rem;
				font-weight: 600;
				line-height: 1.3;
				letter-spacing: -.01em;
			}

				.ledger .row-body {
					min-width: 0;
				}

				.ledger .row-body a {
					text-decoration: none;
				}

					/* The whole row is the link target. */
					.ledger .row-body a::after {
						content: '';
						position: absolute;
						inset: 0;
						z-index: 1;
						border-radius: inherit;
					}

					.ledger .row-body a:focus-visible {
						outline: none;
						box-shadow: none;
					}

						.ledger .row-body a:focus-visible::after {
							outline: 2px solid var(--accent-1);
							outline-offset: -2px;
						}

			.ledger p {
				margin: .2rem 0 0;
				overflow: hidden;
				color: var(--muted);
				font-size: .9375rem;
				line-height: 1.5;
				white-space: nowrap;
				text-overflow: ellipsis;
			}

		.ledger.dense .row {
			grid-template-columns: 4.5rem 1fr;
			padding: .7rem 1.25rem;
		}

			.ledger.dense time {
				padding-top: .2rem;
			}

			.ledger.dense h3 {
				font-size: 1.0625rem;
				font-weight: 500;
			}

/* Archive */

	.page-title {
		font-size: 2.25rem;
		font-weight: 650;
		font-stretch: 88%;
		letter-spacing: -.015em;
	}

	.lede {
		margin: .4rem 0 2.25rem;
		color: var(--muted);
		font-family: var(--mono);
		font-size: .875rem;
	}

	.year + .year {
		margin-top: 2.25rem;
	}

		.year > h2 {
			margin: 0 0 .75rem;
			color: var(--muted);
			font-family: var(--mono);
			font-size: .9375rem;
			font-weight: 500;
			font-stretch: normal;
			letter-spacing: 0;
			font-variant-numeric: tabular-nums;
		}

/* Pager and post nav */

	.pager, .post-nav {
		display: grid;
		grid-template-columns: 1fr 1fr;
		gap: 2px;
		margin-top: 2.5rem;
	}

		.glow {
			position: relative;
			display: block;
			padding: 1rem 1.25rem;
			background: var(--ink-2);
			border-radius: 6px;
			color: var(--text);
			text-decoration: none;
			isolation: isolate;
			transition: background-color .25s ease, box-shadow .35s ease;
		}

			.glow::before {
				content: '';
				position: absolute;
				inset: 0;
				z-index: -1;
				border-radius: inherit;
				background: linear-gradient(90deg, rgba(var(--accent-1-rgb), .13), transparent);
				opacity: 0;
				transition: opacity .3s ease;
			}

			.glow:hover {
				background: var(--ink-3);
				box-shadow: 0 10px 36px -16px rgba(var(--accent-1-rgb), .45);
			}

				.glow:hover::before {
					opacity: 1;
				}

		.pager .glow[rel="next"],
		.post-nav .newer {
			grid-column: 2;
			text-align: right;
		}

		.pager .glow,
		.post-nav .glow .dir {
			font-family: var(--mono);
			font-size: .875rem;
			font-weight: 500;
		}

		.post-nav .glow .dir {
			display: block;
			color: var(--muted);
		}

		.post-nav .glow .t {
			display: block;
			margin-top: .15rem;
			font-size: 1.0625rem;
			font-weight: 600;
			font-stretch: 92%;
			line-height: 1.35;
		}

/* Post */

	.post-head h1 {
		font-size: clamp(2rem, 1.35rem + 1.9vw, 2.875rem);
		font-weight: 650;
		font-stretch: 86%;
		line-height: 1.06;
		letter-spacing: -.02em;
	}

	.post-date {
		margin: .75rem 0 0;
		color: var(--muted);
		font-family: var(--mono);
		font-size: .875rem;
	}

	.post-rotation {
		margin: .25rem 0 0;
		color: var(--muted);
		font-family: var(--mono);
		font-size: .875rem;
	}

		.post-rotation a {
			color: var(--text);
			text-decoration: underline;
			text-decoration-color: rgba(var(--accent-1-rgb), .65);
			text-decoration-thickness: 1px;
			text-underline-offset: .2em;
			transition: color .2s ease, text-decoration-color .2s ease;
		}

			.post-rotation a:hover {
				color: var(--accent-1);
				text-decoration-color: var(--accent-1);
			}

	.prose {
		margin-top: 2.25rem;
		font-size: 1.125rem;
		line-height: 1.68;
		color: #dadde1;
	}

		.prose > :first-child {
			margin-top: 0;
		}

		.prose p, .prose ul, .prose ol {
			margin: 0 0 1.3em;
		}

		.prose h2 {
			margin: 2.1em 0 .6em;
			color: var(--text);
			font-size: 1.5rem;
		}

		.prose h3 {
			margin: 1.8em 0 .5em;
			color: var(--text);
			font-size: 1.25rem;
		}

		.prose strong {
			color: var(--text);
			font-weight: 650;
		}

		.prose a {
			color: var(--text);
			text-decoration: underline;
			text-decoration-color: rgba(var(--accent-1-rgb), .65);
			text-decoration-thickness: 1px;
			text-underline-offset: .2em;
			transition: color .2s ease, text-decoration-color .2s ease;
		}

			.prose a:hover {
				color: var(--accent-1);
				text-decoration-color: var(--accent-1);
				text-decoration-thickness: 2px;
			}

		.prose blockquote {
			margin: 1.8em 0;
			padding: .9em 1.25em;
			background: linear-gradient(90deg, rgba(var(--accent-1-rgb), .06), transparent 70%), var(--ink-2);
			border-left: 2px solid var(--accent-1);
			color: var(--text);
		}

			.prose blockquote > :last-child {
				margin-bottom: 0;
			}

		.prose .img {
			display: block;
			margin: 1.9em 0;
		}

	/* About: title, round portrait and text centered in the page area (not
	   the text column). The wordmark stays left, where it is on every page. */
	.has-portrait .post-head {
		text-align: center;
	}

	.portrait.page-portrait {
		width: min(15rem, 70vw);
		margin-top: 2.25rem;
	}

	.has-portrait .prose {
		margin-left: auto;
		margin-right: auto;
		text-align: center;
	}

			.prose .img img {
				display: block;
				width: 100%;
				height: auto;
				border-radius: 4px;
				box-shadow: 0 0 0 1px var(--line), 0 20px 50px -24px rgba(0, 0, 0, .8);
			}

		.prose code,
		.prose pre {
			font-family: var(--mono);
		}

		.prose code {
			padding: .1em .3em;
			background: var(--ink-3);
			border-radius: 3px;
			font-size: .9em;
		}

		.prose pre {
			overflow-x: auto;
			padding: 1em 1.25em;
			background: var(--ink-0);
			border-radius: 4px;
			font-size: .9rem;
		}

			.prose pre code {
				padding: 0;
				background: none;
			}

		.prose hr {
			height: 1px;
			margin: 2.5em 0;
			border: 0;
			background: rgba(var(--accent-1-rgb), .5);
		}

/* Footer */

	#footer {
		padding: 4rem 0 2.5rem;
		color: var(--dim);
		font-family: var(--mono);
		font-size: .8125rem;
	}

		#footer p {
			margin: 0;
		}

		#footer a {
			color: var(--muted);
			text-decoration: underline;
			text-decoration-color: rgba(var(--accent-1-rgb), .45);
			text-underline-offset: .2em;
		}

			#footer a:hover {
				color: var(--accent-1);
			}

/* First visit of a session: one short orchestrated entrance. */

	@keyframes noir-in {
		from {
			opacity: 0;
			transform: translateY(.6rem);
		}
	}

	.is-first #sidebar .portrait,
	.is-first #sidebar li,
	.is-first .ledger .row {
		animation: noir-in .5s var(--ease) both;
	}

		.is-first #sidebar .nav li:nth-child(1) { animation-delay: .08s; }
		.is-first #sidebar .nav li:nth-child(2) { animation-delay: .13s; }
		.is-first #sidebar .nav li:nth-child(3) { animation-delay: .18s; }
		.is-first #sidebar .recent li { animation-delay: .26s; }
		.is-first .ledger .row:nth-child(1) { animation-delay: .12s; }
		.is-first .ledger .row:nth-child(2) { animation-delay: .17s; }
		.is-first .ledger .row:nth-child(3) { animation-delay: .22s; }
		.is-first .ledger .row:nth-child(4) { animation-delay: .27s; }
		.is-first .ledger .row:nth-child(n+5) { animation-delay: .32s; }

/* Cross-page transitions (supporting browsers): the marker glides between pages. */

	@media (prefers-reduced-motion: no-preference) {

		@view-transition {
			navigation: auto;
		}

		::view-transition-group(*) {
			animation-duration: .3s;
			animation-timing-function: cubic-bezier(.2, .7, .2, 1);
		}

	}

/* Narrow screens */

	@media screen and (max-width: 960px) {

		#sidebar {
			display: none;
		}

		#header {
			position: sticky;
			top: 0;
			z-index: 10000;
			display: flex;
			align-items: center;
			justify-content: space-between;
			gap: 1rem;
			height: 3.5rem;
			padding: 0 1.25rem;
			background: rgba(17, 19, 22, .92);
			-webkit-backdrop-filter: blur(10px);
			backdrop-filter: blur(10px);
			box-shadow: 0 1px 0 rgba(255, 255, 255, .05);
		}

			#header::after {
				content: '';
				position: absolute;
				left: 0;
				right: 0;
				bottom: -5px;
				height: 5px;
				background: linear-gradient(270deg, var(--spine));
				pointer-events: none;
			}

			#header .wordmark {
				font-size: 1.125rem;
			}

			#header nav {
				position: relative;
				height: 100%;
			}

			#header .nav {
				display: flex;
				gap: 1.1rem;
				height: 100%;
				margin: 0;
				padding: 0;
				list-style: none;
			}

				#header .nav li {
					display: flex;
				}

				#header .nav a {
					display: flex;
					align-items: center;
					padding: 0 .1rem;
					color: var(--muted);
					font-family: var(--mono);
					font-size: .875rem;
					font-weight: 500;
					text-decoration: none;
				}

					#header .nav a[aria-current],
					#header .nav a.is-section {
						color: var(--text);
					}

			#header .marker::before {
				display: none;
			}

		#wrapper,
		.is-post #wrapper {
			margin-left: 0;
			padding: 1.75rem 1.25rem 0;
		}

		.masthead .wordmark {
			display: none;
		}

		.masthead {
			margin-bottom: 1.25rem;
		}

			.masthead:not(:has(.tagline)) {
				display: none;
			}

		#footer {
			padding-top: 3rem;
		}

	}

	@media screen and (max-width: 600px) {

		.ledger .row {
			grid-template-columns: 1fr;
			gap: .2rem;
			padding: .9rem 1rem 1rem;
		}

			.ledger .row time {
				padding-top: 0;
				font-size: .75rem;
			}

			.ledger p {
				white-space: normal;
				display: -webkit-box;
				-webkit-line-clamp: 2;
				-webkit-box-orient: vertical;
				overflow: hidden;
			}

		.ledger.dense .row {
			grid-template-columns: 3.75rem 1fr;
			gap: .75rem;
			padding: .7rem 1rem;
		}

		.prose {
			font-size: 1.0625rem;
		}

		.pager, .post-nav {
			grid-template-columns: 1fr;
		}

			.pager .glow[rel="next"],
			.post-nav .newer {
				grid-column: auto;
				grid-row: 1;
				text-align: left;
			}

	}

	@media screen and (max-width: 380px) {

		#header {
			gap: .75rem;
			padding: 0 1rem;
		}

			#header .nav {
				gap: .8rem;
			}

	}

/* Smallest phones: keep the header nav inside its padding. */

	@media screen and (max-width: 359px) {

		#header .nav {
			gap: .5rem;
		}

			#header .nav li a {
				font-size: .8125rem;
			}

	}

/* Reduced motion: keep every state, drop the movement. */

	@media (prefers-reduced-motion: reduce) {

		*, *::before, *::after {
			animation: none !important;
			transition-duration: 0s !important;
			transition-delay: 0s !important;
			scroll-behavior: auto !important;
		}

	}
