:root {
	--bg: #faf7f2;
	--surface: #ffffff;
	--text: #1f1d1a;
	--muted: #6b655c;
	--accent: #c2410c;
	--accent-text: #ffffff;
	--border: #e7e1d8;
	--radius: 14px;
	color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
	:root {
		--bg: #171512;
		--surface: #221f1b;
		--text: #f2eee8;
		--muted: #a59e93;
		--accent: #fb923c;
		--accent-text: #1a1206;
		--border: #36312b;
	}
}

* {
	box-sizing: border-box;
}

body {
	margin: 0;
	min-height: 100vh;
	display: flex;
	flex-direction: column;
	background: var(--bg);
	color: var(--text);
	font-family: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
	line-height: 1.5;
}

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

header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding-top: 20px;
}

.brand {
	font-weight: 700;
	color: var(--text);
	text-decoration: none;
}

.lang {
	border: 1px solid var(--border);
	background: transparent;
	color: var(--muted);
	border-radius: 999px;
	padding: 4px 12px;
	font: inherit;
	font-size: 0.875rem;
	cursor: pointer;
}

main {
	flex: 1;
	padding-top: 48px;
	padding-bottom: 48px;
}

h1 {
	font-size: clamp(2rem, 7vw, 2.75rem);
	line-height: 1.1;
	margin: 0 0 16px;
}

h2 {
	font-size: 1.25rem;
	margin: 40px 0 8px;
}

p {
	margin: 0 0 16px;
}

.lead {
	font-size: 1.125rem;
	color: var(--muted);
}

.card {
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	padding: 24px;
}

.button {
	display: inline-block;
	background: var(--accent);
	color: var(--accent-text);
	text-decoration: none;
	font-weight: 600;
	padding: 12px 20px;
	border-radius: 999px;
	border: 0;
	font: inherit;
	font-weight: 600;
	cursor: pointer;
}

.button.secondary {
	background: transparent;
	color: var(--text);
	border: 1px solid var(--border);
}

.actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin: 24px 0;
}

.hint {
	font-size: 0.875rem;
	color: var(--muted);
}

code {
	font-size: 0.8125rem;
	overflow-wrap: anywhere;
	color: var(--muted);
}

footer {
	padding-bottom: 24px;
	font-size: 0.875rem;
	color: var(--muted);
}

[hidden] {
	display: none !important;
}
