:root {
	--font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	--font-family-monospace: Consolas, Menlo, Monaco, Andale Mono WT, Andale Mono, Lucida Console, Lucida Sans Typewriter, DejaVu Sans Mono, Bitstream Vera Sans Mono, Liberation Mono, Nimbus Mono L, Courier New, Courier, monospace;
	--anchor-scroll-offset: 5rem;
	--site-content-width: 47.5rem;

	color-scheme: dark;

	--color-gray-10: #0f1720;
	--color-gray-20: #1f2933;
	--color-gray-30: #24313d;
	--color-gray-50: #94a3b8;
	--color-gray-70: #cbd5e1;
	--color-gray-90: #e5e7eb;

	--background-color: #0f1720;
	--surface-color: #111827;
	--surface-color-soft: rgba(17, 24, 39, 0.58);
	--surface-color-hover: rgba(30, 41, 59, 0.42);
	--border-color: #243244;
	--border-color-soft: rgba(148, 163, 184, 0.18);
	--border-color-strong: rgba(203, 213, 225, 0.38);
	--editorial-accent: #8dd4e7;
	--home-intro-muted-text: #94a3b8;

	--text-color: var(--color-gray-90);
	--text-color-soft: var(--color-gray-50);
	--text-color-link: #e5e7eb;
	--text-color-link-active: #ffffff;
	--text-color-link-visited: #d1d5db;

	--shadow-soft: 0 1px 2px rgba(0, 0, 0, 0.25);
	--shadow-hover: 0 12px 32px rgba(0, 0, 0, 0.28);
	--control-surface: rgba(17, 24, 39, 0.32);
	--control-border: rgba(148, 163, 184, 0.32);
	--control-hover: rgba(148, 163, 184, 0.14);
	--control-hover-border: rgba(203, 213, 225, 0.7);
	--profile-icon-filter: invert(1);
	--profile-icon-opacity: 0.84;
	--theme-control-icon: #9aa9bd;
	--theme-control-active: #8dd4e7;
	--theme-control-weight: #c6a171;
	--theme-control-glow: rgba(214, 168, 96, 0.3);
	--theme-control-halo-opacity: 0.45;
	--theme-control-halo-hover-opacity: 0.62;

	--syntax-tab-size: 2;
}

:root[data-theme="light"] {
	color-scheme: light;

	--color-gray-10: #dedbd2;
	--color-gray-20: #e7e4dc;
	--color-gray-30: #c5c1b7;
	--color-gray-50: #69706a;
	--color-gray-70: #4d554f;
	--color-gray-90: #252b27;

	--background-color: #dedbd2;
	--surface-color: #e7e4dc;
	--surface-color-soft: rgba(231, 228, 220, 0.76);
	--surface-color-hover: rgba(242, 239, 230, 0.86);
	--border-color: #c5c1b7;
	--border-color-soft: rgba(71, 78, 73, 0.18);
	--border-color-strong: rgba(71, 78, 73, 0.38);
	--editorial-accent: #2b6f7e;
	--home-intro-muted-text: #5b615b;

	--text-color: #252b27;
	--text-color-soft: #5d635d;
	--text-color-link: #29332e;
	--text-color-link-active: #111713;
	--text-color-link-visited: #48574f;

	--shadow-soft: 0 1px 2px rgba(38, 33, 27, 0.08);
	--shadow-hover: 0 12px 28px rgba(49, 43, 34, 0.12);
	--control-surface: transparent;
	--control-border: rgba(71, 78, 73, 0.3);
	--control-hover: rgba(231, 228, 220, 0.78);
	--control-hover-border: rgba(71, 78, 73, 0.48);
	--profile-icon-filter: none;
	--profile-icon-opacity: 0.8;
	--theme-control-icon: #626b65;
	--theme-control-active: #2b6f7e;
	--theme-control-weight: #2b6f7e;
	--theme-control-glow: rgba(43, 111, 126, 0.2);
	--theme-control-halo-opacity: 0.82;
	--theme-control-halo-hover-opacity: 0.94;
}

/* Global stylesheet */
* {
	box-sizing: border-box;
}

html,
body {
	padding: 0;
	margin: 0;
	font-family: var(--font-family);
	color: var(--text-color);
	background-color: var(--background-color);
}

html {
	overflow-y: scroll;
}

body {
	max-width: var(--site-content-width);
	margin: 0 auto;
}

.theme-transitioning,
.theme-transitioning body,
.theme-transitioning header,
.theme-transitioning .postlist-card,
.theme-transitioning .postlist-description,
.theme-transitioning .postlist-meta,
.theme-transitioning .series-card,
.theme-transitioning .series-map span,
.theme-transitioning .series-deck,
.theme-transitioning .post-tag,
.theme-transitioning .home-intro-copy,
.theme-transitioning .home-intro-image figcaption,
.theme-transitioning .icon-link,
.theme-transitioning .post-content li,
.theme-transitioning p,
.theme-transitioning h1,
.theme-transitioning h2,
.theme-transitioning h3,
.theme-transitioning a[href] {
	transition: background-color 260ms ease, border-color 260ms ease, color 260ms ease, box-shadow 260ms ease;
}

/* https://www.a11yproject.com/posts/how-to-hide-content/ */
.visually-hidden:not(:focus):not(:active) {
	clip: rect(0 0 0 0);
	clip-path: inset(50%);
	height: 1px;
	overflow: hidden;
	position: absolute;
	white-space: nowrap;
	width: 1px;
}

/* Fluid media */
img {
	max-width: 100%;
}

img[width][height] {
	height: auto;
}

img[src$=".svg"] {
	width: 100%;
	height: auto;
	max-width: none;
}

video,
iframe {
	width: 100%;
	height: auto;
}

iframe {
	aspect-ratio: 16 / 9;
}

p {
	line-height: 1.75;
	margin: 0 0 1rem 0;
	color: var(--text-color-soft);
}

p:last-child {
	margin-bottom: 0;
}

li {
	line-height: 1.7;
}

h1,
h2,
h3,
h4,
h5,
h6 {
	color: var(--text-color);
	letter-spacing: -0.02em;
	line-height: 1.2;
}

:where(h1, h2, h3, h4, h5, h6)[id] {
	scroll-margin-top: var(--anchor-scroll-offset);
}

h1 {
	font-size: 2.4rem;
	margin-bottom: 1.5rem;
}

h2 {
	font-size: 1.65rem;
	margin-top: 2rem;
	margin-bottom: 0.9rem;
}

a[href] {
	color: var(--text-color-link);
}

a[href]:visited {
	color: var(--text-color-link-visited);
}

a[href]:hover,
a[href]:active {
	color: var(--text-color-link-active);
}

main {
	padding: 1.25rem;
}

main {
	padding-top: 2.25rem;
	padding-bottom: 3rem;
	overflow-wrap: break-word;
}

main :first-child {
	margin-top: 0;
}

heading-anchors {
	display: block;
	min-width: 0;
	max-width: 100%;
}

header {
	border-bottom: 1px solid var(--border-color);
}

/* Skip link */
#skip-link {
	text-decoration: none;
	background: var(--surface-color);
	color: var(--text-color);
	padding: 0.5rem 1rem;
	border: 1px solid var(--border-color);
	border-radius: 8px;
}

/* Prevent visually-hidden skip link from pushing content around when focused */
#skip-link.visually-hidden:focus {
	position: absolute;
	top: 1rem;
	left: 1rem;
	z-index: 999;
}

table {
	margin: 1em 0;
}

table td,
table th {
	padding-right: 1em;
}

/* Code */
pre,
code {
	font-family: var(--font-family-monospace);
}

pre:not([class*="language-"]) {
	margin: 0.75em 0;
	line-height: 1.5;
	-moz-tab-size: var(--syntax-tab-size);
	-o-tab-size: var(--syntax-tab-size);
	tab-size: var(--syntax-tab-size);
	-webkit-hyphens: none;
	-ms-hyphens: none;
	hyphens: none;
	direction: ltr;
	text-align: left;
	white-space: pre;
	word-spacing: normal;
	word-break: normal;
	overflow-x: auto;
	padding: 1rem 1.1rem;
	border-radius: 12px;
	background: var(--surface-color);
	border: 1px solid var(--border-color);
}

code {
	word-break: break-word;
}

/* Header */
header {
	display: flex;
	gap: 1em;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: center;
	padding: 1rem 1.25rem;
}

body > header {
	position: relative;
}

.home-link {
	display: inline-flex;
	align-items: center;
	flex: 0 0 auto;
}

.home-link:link:not(:hover) {
	text-decoration: none;
}

.site-logo {
	display: block;
	aspect-ratio: 1860 / 520;
	background: var(--site-logo-image) center / contain no-repeat;
}

.site-logo {
	width: 6.75rem;
	flex: 0 0 auto;
}

/* Nav */
.nav {
	display: flex;
	align-items: center;
	gap: 0.5em 1em;
	padding: 0;
	margin: 0;
	list-style: none;
}

.nav-theme-standalone {
	gap: 0.5rem clamp(0.9rem, 2vw, 1.35rem);
}

.nav-item {
	display: inline-block;
}

.nav-item a[href]:not(:hover) {
	text-decoration: none;
}

.nav-item a[href] {
	font-weight: 650;
	letter-spacing: -0.01em;
}

.nav a[href][aria-current="page"] {
	text-decoration: underline;
	text-underline-offset: 0.16em;
	text-decoration-thickness: 1.5px;
}

.nav-control {
	display: inline-flex;
	align-items: center;
}

.theme-pull-control {
	width: 2.5rem;
	height: 2.5rem;
	flex: 0 0 2.5rem;
}

.nav-back-to-top-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.75rem;
	height: 2.75rem;
	padding: 0;
	border: 1px solid var(--control-border);
	border-radius: 6px;
	background: var(--control-surface);
	color: var(--text-color-soft);
	font: 700 1.15rem/1 var(--font-family-monospace);
	cursor: pointer;
	transition: background-color 0.16s ease, border-color 0.16s ease, color 0.16s ease, transform 0.16s ease;
}

.nav-back-to-top-button[hidden] {
	display: none !important;
}

.nav-back-to-top[hidden] {
	display: none !important;
}

.nav-back-to-top-button:hover,
.nav-back-to-top-button:focus-visible {
	border-color: var(--control-hover-border);
	background: var(--control-hover);
	color: var(--text-color);
	transform: translateY(-1px);
	outline: 2px solid var(--color-gray-50);
	outline-offset: 2px;
}

.theme-toggle {
	position: absolute;
	top: 0;
	right: 1.25rem;
	z-index: 2;
	display: block;
	width: 2.5rem;
	height: 4.5rem;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: transparent;
	box-shadow: none;
	color: var(--theme-control-icon);
	cursor: pointer;
	font: inherit;
	transition: color 180ms ease;
}

.theme-toggle:hover {
	background: transparent;
	color: var(--text-color);
}

.theme-toggle:focus-visible {
	outline: none;
}

.icon-link:focus-visible {
	outline: 2px solid var(--editorial-accent);
	outline-offset: 2px;
}

.theme-pull-visual {
	position: absolute;
	inset: 0;
	display: block;
	pointer-events: none;
}

.theme-pull-visual svg {
	display: block;
	width: 100%;
	height: 100%;
	overflow: visible;
}

.theme-pull-swing,
.theme-pull-chain {
	transform-box: view-box;
	transform-origin: 20px 0;
}

.theme-pull-chain {
	transition: transform 120ms ease;
}

.theme-pull-line {
	fill: none;
	stroke: currentColor;
	stroke-width: 1;
	stroke-linecap: round;
	opacity: 0.52;
	vector-effect: non-scaling-stroke;
	transition: opacity 180ms ease;
}

.theme-pull-bead {
	fill: currentColor;
	opacity: 0.62;
	transition: opacity 180ms ease;
}

.theme-pull-capsule {
	fill: var(--theme-control-weight);
	opacity: 0.78;
	transition: opacity 180ms ease, filter 180ms ease;
}

.theme-pull-halo {
	fill: var(--theme-control-glow);
	opacity: var(--theme-control-halo-opacity);
	transition: opacity 180ms ease;
}

.theme-pull-focus-ring {
	fill: none;
	stroke: var(--editorial-accent);
	stroke-width: 1.5;
	opacity: 0;
	vector-effect: non-scaling-stroke;
	transition: opacity 120ms ease;
}

:root[data-theme="light"] .theme-toggle {
	color: var(--theme-control-active);
}

:root[data-theme="light"] .theme-toggle:hover {
	background: transparent;
	color: color-mix(in srgb, var(--theme-control-active) 82%, var(--text-color));
}

.theme-toggle:hover .theme-pull-line,
.theme-toggle:hover .theme-pull-bead,
.theme-toggle:hover .theme-pull-capsule {
	opacity: 1;
}

.theme-toggle:hover .theme-pull-halo {
	opacity: var(--theme-control-halo-hover-opacity);
}

.theme-toggle:focus-visible .theme-pull-focus-ring {
	opacity: 1;
}

.theme-toggle:active .theme-pull-chain {
	transform: scaleY(1.04);
}

@keyframes theme-pull-swing {
	0%,
	100% {
		transform: rotate(0deg);
	}

	20% {
		transform: rotate(7deg);
	}

	42% {
		transform: rotate(-5deg);
	}

	62% {
		transform: rotate(3deg);
	}

	80% {
		transform: rotate(-1.5deg);
	}
}

@media (hover: hover) and (pointer: fine) {
	.theme-toggle:hover .theme-pull-swing {
		animation: theme-pull-swing 560ms cubic-bezier(0.22, 0.72, 0.24, 1) both;
	}
}

/* Posts list */
.postlist {
	list-style: none;
	padding: 0;
	margin: 2.15rem 0 0 0;
	display: flex;
	flex-direction: column;
	gap: 0.95rem;
}

.postlist-item {
	margin: 0;
	padding: 0;
}

.postlist-item::before {
	content: none;
}

.postlist-card {
	position: relative;
	display: block;
	overflow: hidden;
	padding: 1.18rem 1.25rem 1.02rem;
	border: 1px solid var(--border-color-soft);
	border-radius: 8px;
	background: var(--surface-color-soft);
	text-decoration: none;
	color: inherit;
	box-shadow: none;
	transition: background-color 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.postlist-card::before {
	content: "";
	position: absolute;
	top: 0.95rem;
	bottom: 0.95rem;
	left: 0;
	width: 2px;
	border-radius: 999px;
	background: transparent;
	transition: background-color 0.18s ease;
}

.postlist-card:hover,
.postlist-card:focus-visible {
	transform: translateY(-1px);
	border-color: var(--border-color-strong);
	background: var(--surface-color-hover);
	box-shadow: var(--shadow-soft);
}

.postlist-card:hover::before,
.postlist-card:focus-visible::before,
.postlist-item-active .postlist-card::before {
	background: var(--editorial-accent);
}

.postlist-card:focus-visible {
	outline: 2px solid var(--color-gray-50);
	outline-offset: 3px;
}

.postlist-item-active .postlist-card {
	border-color: var(--border-color-strong);
}

.postlist-title {
	margin: 0 0 0.48rem 0;
	font-size: 1.38rem;
	line-height: 1.25;
	font-weight: 650;
	letter-spacing: -0.01em;
	color: var(--text-color);
}

.postlist-title a {
	color: inherit;
	text-decoration: none;
}

.postlist-description {
	margin: 0 0 0.72rem 0;
	font-size: 1rem;
	line-height: 1.66;
	color: var(--text-color-soft);
	max-width: 48rem;
}

.postlist-meta {
	margin: 0;
	font-size: 0.92rem;
	line-height: 1.5;
	color: var(--color-gray-50);
}

/* Series page */
.series-page {
	max-width: 48rem;
}

.series-header {
	margin-bottom: 1.85rem;
	padding-bottom: 1.1rem;
	border-bottom: 1px solid var(--border-color-soft);
}

.series-kicker {
	margin: 0 0 0.55rem;
	color: var(--color-gray-50);
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	line-height: 1.4;
	text-transform: uppercase;
}

.series-header h1 {
	margin: 0 0 0.75rem;
	font-size: 2.1rem;
	line-height: 1.16;
}

.series-deck {
	max-width: 42rem;
	margin: 0;
	font-size: 1.04rem;
	line-height: 1.68;
}

.series-map {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 0.62rem;
	margin: 0 0 1.55rem;
}

.series-map span {
	display: block;
	padding: 0.62rem 0.68rem;
	border: 1px solid var(--border-color-soft);
	border-radius: 6px;
	background: var(--surface-color-soft);
	color: var(--text-color-soft);
	font-family: var(--font-family-monospace);
	font-size: 0.78rem;
	line-height: 1.35;
}

.series-list {
	display: flex;
	flex-direction: column;
	gap: 0.82rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.series-item {
	margin: 0;
	padding: 0;
}

.series-card {
	display: block;
	padding: 0.98rem 1.08rem;
	border: 1px solid var(--border-color-soft);
	border-radius: 8px;
	background: var(--surface-color-soft);
	color: inherit;
	text-decoration: none;
	transition: background-color 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.series-card:hover,
.series-card:focus-visible {
	transform: translateY(-1px);
	border-color: var(--border-color-strong);
	background: var(--surface-color-hover);
	box-shadow: var(--shadow-soft);
}

.series-card:focus-visible {
	outline: 2px solid var(--color-gray-50);
	outline-offset: 3px;
}

.series-part {
	display: block;
	margin-bottom: 0.38rem;
	color: var(--color-gray-50);
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	line-height: 1.4;
	text-transform: uppercase;
}

.series-card h2 {
	margin: 0 0 0.45rem;
	font-size: 1.25rem;
	line-height: 1.3;
	letter-spacing: 0;
}

.series-card p {
	margin: 0;
	font-size: 0.96rem;
	line-height: 1.66;
}

@media (max-width: 720px) {
	.series-header h1 {
		font-size: 1.72rem;
	}

	.series-map {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 460px) {
	.series-map {
		grid-template-columns: 1fr;
	}
}

/* Explore */
.explore-page {
	--explore-accent: #8dd4e7;
	--explore-accent-soft: rgba(141, 212, 231, 0.16);
}

:root[data-theme="light"] .explore-page {
	--explore-accent: #2b6f7e;
	--explore-accent-soft: rgba(43, 111, 126, 0.12);
}

.explore-header {
	margin-bottom: 1rem;
	padding-bottom: 0.75rem;
	border-bottom: 1px solid var(--border-color);
}

.explore-header h1 {
	margin: 0;
	font-size: 1.85rem;
	line-height: 1.18;
}

.explore-controls {
	margin-bottom: 1.5rem;
	padding: 1rem;
	border: 1px solid var(--border-color);
	border-radius: 8px;
	background: color-mix(in srgb, var(--surface-color) 72%, transparent);
}

.explore-controls-top {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 1rem;
	margin-bottom: 0.9rem;
}

.explore-controls h2 {
	margin: 0;
	font-size: 1rem;
	line-height: 1.3;
	letter-spacing: 0;
}

.explore-controls h2 a,
.explore-controls h2 .header-anchor,
.explore-controls h2 .direct-link,
.explore-controls h2 .ha-placeholder,
.explore-controls h2 + .ha {
	display: none !important;
}

.explore-count {
	margin: 0;
	font-family: var(--font-family-monospace);
	font-size: 0.82rem;
	line-height: 1.4;
	color: var(--text-color-soft);
	white-space: nowrap;
}

.explore-chip-row {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
}

.explore-chip {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 2rem;
	padding: 0.32rem 0.68rem;
	border: 1px solid var(--control-border);
	border-radius: 999px;
	background: transparent;
	color: var(--text-color-soft);
	font-size: 0.88rem;
	line-height: 1.2;
	text-decoration: none;
	text-transform: capitalize;
	transition: border-color 0.18s ease, background-color 0.18s ease, color 0.18s ease;
}

.explore-chip[href]:visited {
	color: var(--text-color-soft);
}

.explore-chip:hover,
.explore-chip:focus-visible {
	border-color: var(--control-hover-border);
	background: var(--control-hover);
	color: var(--text-color);
}

.explore-chip.is-active {
	border-color: color-mix(in srgb, var(--explore-accent) 78%, var(--control-hover-border));
	background: var(--explore-accent-soft);
	color: var(--text-color);
}

.explore-chip-all {
	font-weight: 650;
}

.explore-list {
	display: flex;
	flex-direction: column;
	gap: 1rem;
	padding: 0;
	margin: 0;
	list-style: none;
}

.explore-item {
	position: relative;
	margin: 0;
	padding: 0;
	border: 1px solid var(--border-color);
	border-radius: 8px;
	background: var(--surface-color);
	box-shadow: var(--shadow-soft);
	transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.explore-item::before {
	content: none;
}

.explore-item:hover {
	transform: translateY(-1px);
	border-color: var(--color-gray-50);
	box-shadow: var(--shadow-hover);
}

.explore-card {
	display: block;
	padding: 1.25rem 1.3rem 0.85rem;
	color: inherit;
	text-decoration: none;
}

.explore-card-title {
	margin: 0 0 0.55rem;
	font-size: 1.28rem;
	font-weight: 650;
	line-height: 1.3;
	letter-spacing: -0.01em;
	color: var(--text-color);
}

.explore-description {
	max-width: 48rem;
	margin: 0 0 0.75rem;
	font-size: 0.98rem;
	line-height: 1.68;
}

.explore-meta {
	margin: 0;
	font-family: var(--font-family-monospace);
	font-size: 0.82rem;
	line-height: 1.5;
	color: var(--color-gray-50);
}

.explore-card-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 0.45rem 0.65rem;
	padding: 0 1.3rem 1.15rem;
}

.explore-empty {
	margin-top: 1.25rem;
	padding: 1rem;
	border: 1px solid var(--border-color);
	border-radius: 8px;
	color: var(--text-color-soft);
}

@media (max-width: 640px) {
	.explore-controls {
		margin-bottom: 1rem;
		padding: 0.75rem;
	}

	.explore-controls-top {
		flex-direction: column;
		align-items: flex-start;
		gap: 0.2rem;
		margin-bottom: 0.68rem;
	}

	.explore-header {
		margin-bottom: 0.85rem;
		padding-bottom: 0.62rem;
	}

	.explore-header h1 {
		font-size: 1.58rem;
	}

	.explore-chip-row {
		gap: 0.38rem;
		min-width: 0;
	}

	.explore-chip {
		min-width: 0;
		min-height: 2.25rem;
		max-width: 100%;
		padding-right: 0.56rem;
		padding-left: 0.56rem;
		white-space: normal;
		overflow-wrap: anywhere;
		word-break: break-word;
		font-size: 0.84rem;
	}

	.explore-list {
		gap: 0.85rem;
	}

	.explore-item:hover {
		transform: none;
	}

	.explore-card {
		padding: 0.95rem 0.9rem 0.72rem;
	}

	.explore-card-title {
		font-size: 1.13rem;
		line-height: 1.32;
	}

	.explore-description {
		margin-bottom: 0.62rem;
		font-size: 0.94rem;
		line-height: 1.6;
	}

	.explore-meta {
		font-size: 0.78rem;
	}

	.explore-card-tags {
		gap: 0.38rem 0.55rem;
		padding-right: 0.9rem;
		padding-bottom: 0.92rem;
		padding-left: 0.9rem;
	}
}

.postlist-date {
	color: inherit;
	font-size: inherit;
	word-spacing: normal;
}

.post-tag {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	color: var(--color-gray-50);
	font-size: 0.88rem;
	font-style: italic;
	text-decoration: none;
	text-transform: capitalize;
}

/* Responsive */
@media (max-width: 640px) {
	body {
		max-width: 100%;
	}

	body > header {
		position: -webkit-sticky;
		position: sticky;
		top: 0;
		z-index: 20;
		align-items: center;
		flex-wrap: nowrap;
		gap: 0.5rem;
		padding-left: 1rem;
		padding-right: 1rem;
		padding-top: 0.66rem;
		padding-bottom: 0.66rem;
		background: var(--background-color);
		box-shadow: var(--shadow-soft);
		transform: translateY(0);
		transition: transform 180ms ease, box-shadow 180ms ease;
	}

	body > header.site-header-hidden:not(.site-header-keyboard-focus) {
		transform: translateY(calc(-100% - 1px));
		box-shadow: none;
		pointer-events: none;
	}

	main {
		padding-left: 1rem;
		padding-right: 1rem;
	}

	main {
		padding-top: 1.45rem;
		padding-bottom: 2.4rem;
	}

	.home-link {
		flex: 0 0 auto;
		gap: 0;
		min-height: 2.75rem;
		min-width: 0;
	}

	.site-logo {
		width: 4.35rem;
	}

	body > header nav {
		flex: 1 1 auto;
		width: auto;
		min-width: 0;
	}

	.nav {
		width: 100%;
		flex-wrap: nowrap;
		gap: 0;
	}

	.nav.nav-theme-standalone {
		display: grid;
		grid-template-columns: repeat(2, max-content) 2.75rem;
		align-items: center;
		justify-content: end;
		column-gap: 0.35rem;
	}

	.nav.nav-theme-standalone.has-back-to-top {
		grid-template-columns: repeat(2, max-content) 2.75rem 2.75rem;
		column-gap: 0.25rem;
	}

	.nav-item {
		flex: 1 1 0;
		min-width: 0;
	}

	.nav-item a[href] {
		display: inline-flex;
		align-items: center;
		justify-content: center;
		width: 100%;
		min-height: 2.75rem;
		padding: 0.1rem 0.18rem;
		font-size: 0.85rem;
		font-weight: 600;
		line-height: 1.15;
		text-align: center;
		overflow-wrap: anywhere;
	}

	.nav-theme-standalone .nav-item {
		flex: 0 0 auto;
	}

	.nav-theme-standalone .nav-item a[href] {
		width: auto;
		min-width: 2.75rem;
		padding-right: 0.45rem;
		padding-left: 0.45rem;
	}

	.nav-control {
		flex: 0 0 auto;
		margin-left: 0;
	}

	.nav-theme-standalone .nav-control,
	.nav-theme-standalone .nav-back-to-top,
	.nav-theme-standalone .nav-control + .nav-control {
		justify-content: center;
		margin-left: 0;
	}

	.nav-back-to-top {
		margin-left: 0.5rem;
	}

	.nav-control + .nav-control {
		margin-left: 0.35rem;
	}

	.theme-pull-control {
		width: 2.75rem;
		height: 2.75rem;
		flex-basis: 2.75rem;
	}

	.theme-toggle {
		right: 1rem;
		width: 2.75rem;
		height: 4rem;
	}

	h1 {
		font-size: 1.82rem;
		line-height: 1.18;
	}

	h2 {
		font-size: 1.42rem;
	}

	p,
	li {
		line-height: 1.68;
	}

	.postlist {
		margin-top: 1.35rem;
		gap: 0.9rem;
	}

	.postlist-title {
		font-size: 1.18rem;
		line-height: 1.32;
	}

	.postlist-card {
		padding: 0.98rem 0.95rem 0.88rem;
		border-radius: 8px;
	}

	.postlist-card:hover {
		transform: none;
	}

	.postlist-description {
		margin-bottom: 0.68rem;
		font-size: 0.94rem;
		line-height: 1.62;
	}

	.postlist-meta {
		font-size: 0.82rem;
	}

}

@media (max-width: 360px) {
	body > header {
		gap: 0.35rem;
		padding-left: 0.625rem;
		padding-right: 0.625rem;
	}

	.site-logo {
		width: 4rem;
	}

	.nav.nav-theme-standalone,
	.nav.nav-theme-standalone.has-back-to-top {
		column-gap: 0.25rem;
	}

	.nav-theme-standalone .nav-item a[href] {
		padding-right: 0.25rem;
		padding-left: 0.25rem;
	}

	.nav-back-to-top {
		margin-left: 0.35rem;
	}

	.nav-control + .nav-control {
		margin-left: 0.25rem;
	}

	.nav-theme-standalone .nav-back-to-top,
	.nav-theme-standalone .nav-control + .nav-control {
		margin-left: 0;
	}
}

/* Home */
.home-intro {
	padding: 0.35rem 0 1.5rem;
	width: 100%;
}

.home-intro-layout {
	display: grid;
	grid-template-columns: minmax(18.85rem, 0.9fr) minmax(0, 1.1fr);
	gap: 1.75rem;
	align-items: start;
	width: 100%;
}

.home-intro-left {
	--home-left-content-width: 18.85rem;
	min-width: 0;
	align-self: center;
	padding-bottom: 1.1rem;
}

.home-intro-copy {
	width: min(100%, var(--home-left-content-width));
}

.home-intro-icons {
	display: grid;
	grid-template-columns: repeat(6, 2.75rem);
	justify-content: start;
	gap: clamp(0.25rem, 0.9vw, 0.4rem);
	margin-top: 1.15rem;
	width: min(100%, var(--home-left-content-width));
}

.home-intro-icons .icon-link {
	width: 2.75rem;
	height: 2.75rem;
}

.home-intro-icons .icon-link img {
	width: 20px;
	height: 20px;
}

.icon-link {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 3.25rem;
	aspect-ratio: 1 / 1;
	background: var(--control-surface);
	border: 1px solid var(--control-border);
	border-radius: 7px;
	text-decoration: none;
	transition: transform 0.16s ease, background-color 0.16s ease, border-color 0.16s ease;
}

.icon-link:hover,
.icon-link:focus-visible {
	background-color: var(--control-hover);
	border-color: var(--control-hover-border);
	transform: translateY(-1px);
}

.icon-link img {
	display: block;
	width: 22px;
	height: 22px;
	object-fit: contain;
	filter: var(--profile-icon-filter);
	opacity: var(--profile-icon-opacity);
}

.about-contact-icons {
	display: flex;
	flex-wrap: wrap;
	gap: 0.65rem;
	margin-top: 0.8rem;
}

.about-contact-link {
	width: 3.25rem;
	flex: 0 0 3.25rem;
}

.about-intro {
	margin: 0.45rem 0 2.2rem;
}

.about-intro-copy {
	min-width: 0;
}

.about-phd-note {
	padding-left: 0.85rem;
	border-left: 2px solid var(--editorial-accent);
	color: var(--text-color);
}

.home-intro-image {
	margin: 0;
	width: 100%;
	min-width: 0;
}

.home-intro-image picture {
	display: block;
}

.home-intro-image img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 1.64 / 1;
	object-fit: cover;
	border-radius: 6px;
	box-shadow: var(--shadow-soft);
}

.home-intro-image figcaption {
	display: flex;
	justify-content: space-between;
	gap: 1rem;
	margin-top: 0.58rem;
	color: var(--home-intro-muted-text);
	font-family: var(--font-family-monospace);
	font-size: 0.68rem;
	font-weight: 550;
	line-height: 1.45;
	letter-spacing: 0.055em;
	text-transform: uppercase;
}

.home-intro-media {
	min-width: 0;
}

.home-lead {
	margin: 0;
	color: var(--text-color);
	font-size: clamp(1.35rem, 1.18rem + 0.5vw, 1.55rem);
	font-weight: 650;
	line-height: 1.16;
	letter-spacing: -0.025em;
}

.home-intro-role,
.home-intro-note {
	width: 100%;
}

.home-intro-role {
	margin: 0.58rem 0 0;
	color: var(--color-gray-70);
	font-size: 1rem;
	font-weight: 500;
	line-height: 1.55;
	text-wrap: balance;
}

.home-intro-note {
	margin: 0.68rem 0 0;
	color: var(--home-intro-muted-text);
	font-size: 0.94rem;
	font-weight: 400;
	line-height: 1.58;
	text-wrap: balance;
}

.home-section {
	margin-top: 2rem;
}

@media (max-width: 760px) {
	.home-intro {
		padding: 0 0 0.72rem;
	}

	.home-intro-layout {
		grid-template-columns: 1fr;
		gap: 0.92rem;
	}

	.home-intro-left {
		padding-bottom: 0;
	}

	.home-intro-copy {
		width: 100%;
	}

	.home-lead {
		font-size: clamp(1.3rem, 1.18rem + 0.6vw, 1.42rem);
		line-height: 1.18;
	}

	.home-intro-role {
		margin-top: 0.5rem;
		font-size: 1rem;
		line-height: 1.52;
		text-wrap: wrap;
	}

	.home-intro-note {
		margin-top: 0.58rem;
		font-size: 0.94rem;
		line-height: 1.55;
		text-wrap: wrap;
	}

	.home-intro-image {
		width: 100%;
	}

	.home-intro-icons {
		grid-template-columns: repeat(6, 2.75rem);
		justify-content: start;
		gap: clamp(0.2rem, 1vw, 0.35rem);
		margin-top: 0.92rem;
		width: max-content;
		max-width: 100%;
	}

	.home-intro-icons .icon-link {
		border-color: transparent;
		background: transparent;
	}

	.home-intro-icons .icon-link:hover,
	.home-intro-icons .icon-link:active,
	.home-intro-icons .icon-link:focus-visible {
		border-color: var(--control-hover-border);
		background-color: var(--control-hover);
	}

	.icon-link {
		justify-self: center;
		width: 2.65rem;
		height: 2.65rem;
	}

	.icon-link img {
		width: 20px;
		height: 20px;
	}

	.about-contact-icons {
		gap: 0.48rem;
	}

	.about-contact-link {
		width: 2.65rem;
		flex-basis: 2.65rem;
	}

	.about-intro {
		margin-bottom: 1.8rem;
	}

	.home-intro-image img {
		border-radius: 5px;
	}

	.home-intro-image figcaption {
		flex-wrap: wrap;
		gap: 0.65rem;
		font-size: 0.66rem;
		overflow-wrap: anywhere;
	}

	.home-section {
		margin-top: 1.45rem;
	}
}

@media (prefers-reduced-motion: reduce) {
	.theme-transitioning,
	.theme-transitioning body,
	.theme-transitioning header,
	.theme-transitioning .postlist-card,
	.theme-transitioning .postlist-description,
	.theme-transitioning .postlist-meta,
	.theme-transitioning .post-tag,
	.theme-transitioning .home-intro-copy,
	.theme-transitioning .home-intro-image figcaption,
	.theme-transitioning .icon-link,
	.theme-transitioning p,
	.theme-transitioning h1,
	.theme-transitioning h2,
	.theme-transitioning h3,
	.theme-transitioning a[href],
	.theme-toggle,
	.theme-pull-line,
	.theme-pull-bead,
	.theme-pull-capsule,
	.theme-pull-halo,
	.theme-pull-focus-ring,
	.theme-pull-chain,
	.nav-back-to-top-button,
	body > header {
		transition-duration: 0.01ms;
	}

	.theme-pull-swing {
		animation: none !important;
	}

	.theme-pull-chain {
		transform: none !important;
	}
}
