:root {
	color-scheme: light dark;
	--fg: #1a1a1a;
	--bg: #ffffff;
	--muted: #666;
	--accent: #2563eb;
	--border: #e5e5e5;
}

@media (prefers-color-scheme: dark) {
	:root {
		--fg: #e5e5e5;
		--bg: #14161a;
		--muted: #9aa0a6;
		--accent: #6ea8fe;
		--border: #2a2d33;
	}
}

* {
	box-sizing: border-box;
}

body {
	max-width: 42rem;
	margin: 0 auto;
	padding: 3rem 1.25rem 5rem;
	font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
	color: var(--fg);
	background: var(--bg);
	line-height: 1.6;
}

a {
	color: var(--accent);
}

header {
	margin-bottom: 2.5rem;
}

header h1 a {
	text-decoration: none;
	color: var(--fg);
}

header p {
	color: var(--muted);
	margin-top: 0.25rem;
}

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

.post-list li {
	border-bottom: 1px solid var(--border);
	padding-bottom: 1rem;
}

.post-list a {
	font-size: 1.15rem;
	font-weight: 600;
	text-decoration: none;
}

.post-list a:hover {
	text-decoration: underline;
}

.post-list .date {
	display: block;
	font-size: 0.85rem;
	color: var(--muted);
	margin-top: 0.15rem;
}

.back-link {
	display: inline-block;
	margin-bottom: 2rem;
	text-decoration: none;
	font-size: 0.9rem;
}

article h1,
article h2,
article h3 {
	line-height: 1.25;
}

article pre {
	background: var(--border);
	padding: 1rem;
	overflow-x: auto;
	border-radius: 6px;
}

article code {
	font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}

article blockquote {
	border-left: 3px solid var(--border);
	margin-left: 0;
	padding-left: 1rem;
	color: var(--muted);
}

#error {
	color: #b91c1c;
}
