:root {
	color-scheme: light dark;
	--bg: #f7f5ef;
	--text: #22251f;
	--muted: #646b5d;
	--line: #d4d0c2;
	--link: #2b6f5b;
	--link-visited: #684f8f;
	--panel: #ece7da;
	--code-bg: #171a17;
	--code-text: #d9e7cf;
	--accent: var(--link);
}

@media (prefers-color-scheme: dark) {
	:root {
		--bg: #151713;
		--text: #e6e2d6;
		--muted: #aeb5a5;
		--line: #373c33;
		--link: #8fcf9f;
		--link-visited: #c0a8df;
		--panel: #20241e;
		--code-bg: #0e100e;
		--code-text: #d9e7cf;
		--accent: var(--link);
	}
}

* {
	box-sizing: border-box;
}

html {
	font-family: Covik, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	font-size: 17px;
	line-height: 1.6;
	background: var(--bg);
	color: var(--text);
}

body {
	max-width: 760px;
	margin: 0 auto;
	padding: 28px 20px 48px;
}

header,
footer {
	font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
	font-size: 0.9rem;
}

header {
	margin-bottom: 72px;
}

nav {
	display: flex;
	gap: 18px;
	flex-wrap: wrap;
}

main > section,
article {
	margin-block: 44px;
}

h1,
h2,
h3 {
	font-family: Nichrome, Covik, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	line-height: 1.15;
	margin: 0 0 16px;
	font-weight: 700;
}

h1 {
	font-size: 2rem;
	max-width: none;
}

h2 {
	font-size: 1.15rem;
	margin-top: 40px;
}

h3 {
	font-size: 1.1rem;
	margin-top: 28px;
}

p,
ol,
ul,
blockquote,
pre,
figure,
video,
audio {
	margin-block: 0 22px;
}

a {
	color: var(--link);
	text-decoration-thickness: 0.08em;
	text-underline-offset: 0.18em;
}

a:visited {
	color: var(--link);
}

hr {
	border: 0;
	border-top: 1px solid var(--line);
	margin: 40px 0;
}

img,
video {
	display: block;
	max-width: 100%;
	height: auto;
	border: 1px solid var(--line);
	background: var(--panel);
}

audio {
	display: block;
	width: 100%;
}

figcaption,
time,
.kicker {
	color: var(--muted);
	font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
	font-size: 0.86rem;
}

.kicker {
	color: var(--link);
	text-transform: uppercase;
	letter-spacing: 0;
	margin-bottom: 12px;
}

.lede {
	font-size: 1.35rem;
	color: var(--muted);
	max-width: 28rem;
}

.signals {
	list-style: none;
	padding: 0;
	display: grid;
	gap: 12px;
	border-top: 0;
}

.signals li {
	border-left: 3px solid var(--link);
	padding: 10px 0 10px 18px;
	background: color-mix(in srgb, var(--panel) 64%, transparent);
}

.year-group {
	margin-block: 38px;
}

.year-group h2 {
	border-bottom: 1px solid var(--line);
	margin-bottom: 12px;
	padding-bottom: 8px;
}

.posts {
	list-style: none;
	padding: 0;
	margin: 0;
}

.posts li {
	display: grid;
	grid-template-columns: 7ch 1fr;
	gap: 18px;
	align-items: baseline;
	border-bottom: 1px solid var(--line);
	padding: 11px 0;
}

.posts time {
	color: var(--muted);
	font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
	font-size: 0.82rem;
	white-space: nowrap;
}

.posts a {
	font-weight: 600;
	text-decoration: none;
}

.posts a:hover,
.posts a:focus-visible {
	text-decoration: underline;
	text-underline-offset: 0.18em;
}

blockquote {
	border-left: 3px solid var(--accent);
	margin-left: 0;
	padding-left: 18px;
	color: var(--muted);
}

code,
pre {
	font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
}

code {
	font-size: 0.92em;
}

pre {
	overflow-x: auto;
	padding: 18px;
	border-radius: 6px;
	background: var(--code-bg);
	color: var(--code-text);
	font-size: 0.86rem;
	line-height: 1.5;
}

pre code {
	font-size: 1em;
}

footer {
	margin-top: 76px;
	padding-top: 24px;
	border-top: 1px solid var(--line);
	color: var(--muted);
}

@media (max-width: 560px) {
	body {
		padding-inline: 16px;
	}

	header {
		margin-bottom: 48px;
	}

	h1 {
		max-width: 100%;
	}
}

