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

:root {
	color-scheme: light dark;
	--bg: #ffffff;
	--text: #1a1a1a;
	--text-muted: #555;
	--border: #e5e5e5;
	--accent: #5b3df5;
}

@media (prefers-color-scheme: dark) {
	:root {
		--bg: #0f0f12;
		--text: #f2f2f5;
		--text-muted: #a8a8b3;
		--border: #2a2a30;
		--accent: #b9a7ff;
	}
}

html,
body {
	margin: 0;
	padding: 0;
	background: var(--bg);
	color: var(--text);
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	line-height: 1.6;
	-webkit-text-size-adjust: 100%;
}

main {
	max-width: 720px;
	margin: 0 auto;
	padding: 2.5rem 1.25rem 4rem;
}

h1 {
	font-size: 2rem;
	margin: 0.25rem 0 1rem;
	letter-spacing: -0.01em;
}

h2 {
	font-size: 1.25rem;
	margin: 2rem 0 0.5rem;
	letter-spacing: -0.005em;
}

h3 {
	font-size: 1rem;
	margin: 1.25rem 0 0.5rem;
	color: var(--text-muted);
}

p,
ul,
ol {
	margin: 0 0 1rem;
}

ul,
ol {
	padding-left: 1.5rem;
}

li + li {
	margin-top: 0.25rem;
}

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

a:hover {
	text-decoration-thickness: 2px;
}

.meta {
	color: var(--text-muted);
	font-size: 0.9rem;
	border-bottom: 1px solid var(--border);
	padding-bottom: 1rem;
	margin-bottom: 1.5rem;
}

.back {
	display: inline-block;
	margin-bottom: 1rem;
	color: var(--text-muted);
	text-decoration: none;
}

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