:root {
	--bg: #faf9f7;
	--text: #1a1a1a;
	--muted: #5c5c5c;
	--accent: #2563eb;
	--border: #e5e2dc;
	--font: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
	--sans: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

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

html {
	font-size: 18px;
	-webkit-text-size-adjust: 100%;
}

body {
	margin: 0;
	min-height: 100vh;
	font-family: var(--font);
	color: var(--text);
	background: var(--bg);
	line-height: 1.6;
}

.site-header {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: space-between;
	gap: 1rem;
	padding: 1.25rem 1.5rem;
	border-bottom: 1px solid var(--border);
	background: #fff;
}

.site-title {
	font-weight: 600;
	font-size: 1.15rem;
	color: var(--text);
	text-decoration: none;
}

.site-title:hover {
	color: var(--accent);
}

.site-header nav {
	font-family: var(--sans);
	font-size: 0.9rem;
}

.site-header nav a {
	color: var(--muted);
	text-decoration: none;
}

.site-header nav a:hover {
	color: var(--accent);
}

main {
	max-width: 40rem;
	margin: 0 auto;
	padding: 2rem 1.5rem 4rem;
}

.post-list h1 {
	font-size: 1.75rem;
	font-weight: 600;
	margin: 0 0 1.25rem;
}

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

.posts li {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 0.5rem 1rem;
	padding: 0.65rem 0;
	border-bottom: 1px solid var(--border);
	font-family: var(--sans);
	font-size: 0.95rem;
}

.posts li a {
	color: var(--accent);
	text-decoration: none;
	font-weight: 500;
}

.posts li a:hover {
	text-decoration: underline;
}

.posts time {
	color: var(--muted);
	font-size: 0.85rem;
}

.post-header h1 {
	font-size: 2rem;
	font-weight: 600;
	margin: 0 0 0.5rem;
	line-height: 1.25;
}

.post-meta {
	margin: 0;
	color: var(--muted);
	font-family: var(--sans);
	font-size: 0.9rem;
}

.post-body {
	margin-top: 1.75rem;
}

.post-body :first-child {
	margin-top: 0;
}

.post-body h2 {
	font-size: 1.35rem;
	font-weight: 600;
	margin: 1.75rem 0 0.75rem;
}

.post-body h3 {
	font-size: 1.15rem;
	font-weight: 600;
	margin: 1.5rem 0 0.5rem;
}

.post-body p {
	margin: 0.85rem 0;
}

.post-body ul,
.post-body ol {
	margin: 0.85rem 0;
	padding-left: 1.35rem;
}

.post-body li {
	margin: 0.35rem 0;
}

.post-body pre {
	overflow-x: auto;
	padding: 1rem;
	background: #fff;
	border: 1px solid var(--border);
	border-radius: 6px;
	font-size: 0.85rem;
	line-height: 1.45;
}

.post-body code {
	font-family: ui-monospace, "Cascadia Code", Menlo, monospace;
	font-size: 0.88em;
}

.post-body p code,
.post-body li code {
	background: #fff;
	padding: 0.15em 0.35em;
	border-radius: 4px;
	border: 1px solid var(--border);
}

.post-body pre code {
	background: none;
	padding: 0;
	border: none;
}

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

.post-body a {
	color: var(--accent);
}

.back {
	margin-top: 2.5rem;
	font-family: var(--sans);
	font-size: 0.95rem;
}

.back a {
	color: var(--muted);
	text-decoration: none;
}

.back a:hover {
	color: var(--accent);
}

.site-footer {
	padding: 1.5rem;
	border-top: 1px solid var(--border);
	text-align: center;
	font-family: var(--sans);
	font-size: 0.8rem;
	color: var(--muted);
}

.site-footer p {
	margin: 0;
}
