/* Quiet, low-key style: dark ink background, warm parchment text, one muted gold accent. */
:root {
	--bg: #16140f;
	--panel: #1e1b15;
	--line: #34302500;
	--rule: #3a3428;
	--text: #e8dfcc;
	--muted: #a89f8c;
	--accent: #c9a75d;
	--accent-ink: #1a160c;
	--bad: #e39a86;
	--good: #a9c79a;
	--radius: 6px;
	color-scheme: dark;
}

* { box-sizing: border-box; }

html { background: var(--bg); }

body {
	margin: 0;
	min-height: 100vh;
	display: flex;
	flex-direction: column;
	color: var(--text);
	background: var(--bg);
	font: 17px/1.6 Georgia, 'Iowan Old Style', 'Palatino Linotype', serif;
}

a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: #e0c27f; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 3px; }

.bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	max-width: 60rem;
	width: 100%;
	margin: 0 auto;
	padding: 1.25rem 1.5rem;
}
.brand { color: var(--text); text-decoration: none; white-space: nowrap; letter-spacing: 0.04em; font-size: 1.05rem; }
.bar nav { display: flex; align-items: center; gap: 1.25rem; font-family: system-ui, sans-serif; font-size: 0.95rem; }
.bar nav a:not(.button) { color: var(--muted); text-decoration: none; }
.bar nav a:not(.button):hover { color: var(--text); }

main { flex: 1; max-width: 60rem; width: 100%; margin: 0 auto; padding: 2rem 1.5rem 4rem; }
main.narrow { max-width: 32rem; }

h1 { font-weight: normal; font-size: clamp(2rem, 5vw, 3rem); line-height: 1.15; margin: 0.25rem 0 1rem; letter-spacing: -0.01em; }
h2 { font-weight: normal; font-size: 1.35rem; margin: 0 0 0.6rem; }
.eyebrow { font-family: system-ui, sans-serif; font-size: 0.8rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin: 0; }
.lead { color: var(--muted); max-width: 36rem; margin: 0 0 1.75rem; }

.intro { padding: 3rem 0 2.5rem; }
.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin: 0; }

.button {
	display: inline-block;
	padding: 0.7rem 1.3rem;
	border: 1px solid var(--accent);
	border-radius: var(--radius);
	background: var(--accent);
	color: var(--accent-ink);
	font: 600 0.95rem/1.2 system-ui, sans-serif;
	text-decoration: none;
	cursor: pointer;
}
.button:hover { background: #d9b96f; color: var(--accent-ink); }
.button.ghost { background: transparent; color: var(--accent); }
.button.ghost:hover { background: #c9a75d1a; }
.button.small { padding: 0.4rem 0.9rem; font-size: 0.85rem; }
.button:disabled { opacity: 0.55; cursor: default; }

.facts { border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); padding: 1.5rem 0; margin-bottom: 2.5rem; }
.facts dl { display: grid; grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr)); gap: 1.25rem 2rem; margin: 0; }
.facts dt { font-family: system-ui, sans-serif; font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.facts dd { margin: 0.2rem 0 0; }

.world, .howto { margin-bottom: 2.5rem; max-width: 40rem; }
.world p { color: var(--muted); margin: 0; }
.howto ol { padding-left: 1.25rem; margin: 0; }
.howto li { margin-bottom: 0.6rem; color: var(--muted); }
.howto li a { color: var(--accent); }

.foot { border-top: 1px solid var(--rule); padding: 1.25rem 1.5rem; text-align: center; color: var(--muted); font: 0.8rem/1.5 system-ui, sans-serif; }
.foot p { margin: 0; }

/* Form */
form { margin-top: 1.5rem; }
.field { margin: 0 0 1.4rem; padding: 0; border: 0; }
.field > label:not(.choice), legend { display: block; font: 600 0.9rem/1.4 system-ui, sans-serif; margin-bottom: 0.4rem; padding: 0; }
.optional { font-weight: normal; color: var(--muted); }
input:not([type='radio']) {
	width: 100%;
	padding: 0.65rem 0.75rem;
	border: 1px solid #4a4334;
	border-radius: var(--radius);
	background: var(--panel);
	color: var(--text);
	font: 1rem/1.3 system-ui, sans-serif;
}
input:not([type='radio']):focus { border-color: var(--accent); outline: none; box-shadow: 0 0 0 2px #c9a75d55; }
input[aria-invalid='true'] { border-color: var(--bad); }
.choice { display: inline-flex; align-items: center; gap: 0.45rem; margin-right: 1.5rem; font: 1rem system-ui, sans-serif; cursor: pointer; }
.choice input { accent-color: var(--accent); width: 1.05rem; height: 1.05rem; }
.hint { color: var(--muted); font: 0.82rem/1.45 system-ui, sans-serif; margin: 0.35rem 0 0; }
fieldset .hint { margin: 0 0 0.6rem; }
.error { color: var(--bad); font: 0.85rem/1.45 system-ui, sans-serif; margin: 0.3rem 0 0; min-height: 0; }
.error:empty { display: none; }
.message { font: 0.9rem/1.5 system-ui, sans-serif; min-height: 1.4em; margin: 0 0 1rem; color: var(--muted); }
.message.bad { color: var(--bad); }
.trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.done h2 { color: var(--good); }

@media (max-width: 34rem) {
	body { font-size: 16px; }
	.bar { padding: 1rem; }
	/* Keep the header on one line: the page body already links to registration. */
	.bar nav a:not(.button) { display: none; }
	main { padding: 1rem 1rem 3rem; }
	.intro { padding: 1.5rem 0; }
}
