:root {
	--bg: #fdfdfc;
	--text: #1f2328;
	--muted: #656d76;
	--accent: #2459a8;
	--border: #e3e4e6;
	--measure: 42rem;
	color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
	:root {
		--bg: #16181c;
		--text: #e6e6e6;
		--muted: #9aa1aa;
		--accent: #79a8f2;
		--border: #2c2f35;
	}
}

* { box-sizing: border-box; }

body {
	margin: 0 auto;
	max-width: var(--measure);
	padding: 0 1rem;
	background: var(--bg);
	color: var(--text);
	font: 1.0625rem/1.6 system-ui, -apple-system, "Segoe UI", sans-serif;
}

a { color: var(--accent); }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { line-height: 1.25; }

/* Header + navbar */
.site-header {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: space-between;
	gap: 0.5rem 1.5rem;
	padding: 1.25rem 0;
	border-bottom: 1px solid var(--border);
	margin-bottom: 2rem;
}
.site-title {
	font-weight: 700;
	color: var(--text);
	text-decoration: none;
}
.site-header ul {
	display: flex;
	flex-wrap: wrap;
	gap: 1.25rem;
	margin: 0;
	padding: 0;
	list-style: none;
}
.site-header nav a {
	color: var(--muted);
	text-decoration: none;
}
.site-header nav a:hover,
.site-header nav a[aria-current="page"] {
	color: var(--text);
	text-decoration: underline;
	text-underline-offset: 0.3em;
}

/* Blog */
.post-list { list-style: none; padding: 0; }
.post-list li { display: flex; gap: 1rem; padding: 0.35rem 0; }
.post-list time, .post time {
	color: var(--muted);
	font-variant-numeric: tabular-nums;
	white-space: nowrap;
}
.post header { margin-bottom: 1.5rem; }
.post header h1 { margin-bottom: 0.25rem; }

/* Photos */
.gallery {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 18rem), 1fr));
	gap: 1rem;
}
.gallery figure { margin: 0; }
.gallery figcaption { color: var(--muted); font-size: 0.9rem; margin-top: 0.35rem; }

.site-footer {
	margin-top: 4rem;
	padding: 1.5rem 0;
	border-top: 1px solid var(--border);
	color: var(--muted);
	font-size: 0.9rem;
}
