:root {
	color-scheme: light dark;

	--bg: #fafaf9;
	--surface: #ffffff;
	--fg: #1c1917;
	--muted: #57534e;
	--border: #e7e5e4;
	--accent: #4338ca;

	--font-sans: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

	--space-1: 0.25rem;
	--space-2: 0.5rem;
	--space-3: 0.75rem;
	--space-4: 1rem;
	--space-6: 1.5rem;
	--space-8: 2rem;

	--radius: 0.5rem;
	--max-width: 48rem;
}

@media (prefers-color-scheme: dark) {
	:root {
		--bg: #1c1917;
		--surface: #292524;
		--fg: #fafaf9;
		--muted: #a8a29e;
		--border: #44403c;
		--accent: #a5b4fc;
	}
}

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

body {
	margin: 0;
	background: var(--bg);
	color: var(--fg);
	font-family: var(--font-sans);
	line-height: 1.5;
}

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

:focus-visible {
	outline: 2px solid var(--accent);
	outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
		scroll-behavior: auto !important;
	}
}

.site-header,
.site-footer,
main {
	max-width: var(--max-width);
	margin: 0 auto;
	padding: var(--space-4);
}

.site-name {
	font-weight: 600;
	color: var(--fg);
	text-decoration: none;
}

.site-footer {
	border-top: 1px solid var(--border);
	color: var(--muted);
}

ol {
	display: grid;
	gap: var(--space-4);
	margin: 0;
	padding: 0;
	list-style: none;
}

li {
	padding: var(--space-4);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	background: var(--surface);
	overflow-wrap: anywhere;
}

h2 {
	margin: 0;
	font-size: 1.125rem;
}

dl {
	display: grid;
	grid-template-columns: max-content 1fr;
	gap: var(--space-1) var(--space-3);
	margin: var(--space-2) 0 0;
	color: var(--muted);
}

dd {
	margin: 0;
}

.rationale {
	margin: var(--space-3) 0 0;
	white-space: pre-line;
}

.empty {
	color: var(--muted);
}
