:root {
	color-scheme: light dark;
	--bg: #ffffff;
	--fg: #1a1d29;
	--muted: #5a6072;
	--accent: #0b7285;
	--rule: #dde1ea;
}

@media (prefers-color-scheme: dark) {
	:root {
		--bg: #0e1018;
		--fg: #e8eaf2;
		--muted: #9aa1b5;
		--accent: #4dd0e1;
		--rule: #262a3a;
	}
}

* {
	box-sizing: border-box;
}

body {
	margin: 0;
	background: var(--bg);
	color: var(--fg);
	font-family:
		system-ui,
		-apple-system,
		"Segoe UI",
		Roboto,
		sans-serif;
	line-height: 1.6;
}

main,
header,
footer {
	max-width: 40rem;
	margin: 0 auto;
	padding: 0 16px;
}

header {
	padding-top: 24px;
}

main {
	padding-bottom: 24px;
}

h1 {
	font-size: 1.75rem;
	line-height: 1.25;
	margin: 24px 0 8px;
}

h2 {
	font-size: 1.15rem;
	margin: 28px 0 4px;
}

a {
	color: var(--accent);
	text-decoration: underline;
}

.updated {
	color: var(--muted);
	font-size: 0.9rem;
}

nav a {
	margin-right: 16px;
}

footer {
	border-top: 1px solid var(--rule);
	color: var(--muted);
	font-size: 0.9rem;
	padding-top: 16px;
	padding-bottom: 32px;
}
