:root {
	--ink: #1f2933;
	--muted: #6b7280;
	--line: #d9dee3;
	--accent: #2563eb;
	--accent-ink: #1e40af;
	--accent-soft: #eef3fd;
	--bg: #f9fafb;
	--surface: #fff;
	--topbar: 3.5rem;
}

* {
	box-sizing: border-box;
}

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

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

/* ─── top bar ────────────────────────────────────────────────────────────── */

.topbar {
	position: sticky;
	top: 0;
	display: flex;
	align-items: center;
	gap: 1.5rem;
	min-height: var(--topbar);
	padding: 0 1rem;
	background: var(--surface);
	border-bottom: 1px solid var(--line);
}

.brand {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	font-weight: 700;
	font-size: 1.25rem;
	color: var(--ink);
	text-decoration: none;
}

.brand-mark {
	width: 1.75rem;
	height: 1.75rem;
}

.nav {
	display: flex;
	gap: 0.25rem;
}

.nav a {
	padding: 0.3rem 0.75rem;
	border-radius: 999px;
	color: var(--muted);
	text-decoration: none;
}

.nav a:hover {
	color: var(--ink);
	background: var(--accent-soft);
}

.nav a[aria-current="page"] {
	color: var(--accent-ink);
	background: var(--accent-soft);
	font-weight: 600;
}

/* ─── page ───────────────────────────────────────────────────────────────── */

main {
	max-width: 40rem;
	margin: 0 auto;
	padding: 1.5rem 1rem;
}

h1 {
	margin: 0 0 0.5rem;
	font-size: 1.6rem;
}

h2 {
	margin: 1.5rem 0 0.5rem;
	font-size: 1.15rem;
}

.lead {
	margin: 0 0 1rem;
	color: var(--muted);
}

label {
	display: block;
	margin-bottom: 0.4rem;
	font-weight: 600;
}

textarea {
	display: block;
	width: 100%;
	height: 10rem;
	margin-bottom: 0.75rem;
	padding: 0.5rem 0.6rem;
	font: inherit;
	color: var(--ink);
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: 6px;
}

textarea:focus-visible,
.button:focus-visible,
a:focus-visible {
	outline: 2px solid var(--accent);
	outline-offset: 2px;
}

.button {
	display: inline-block;
	padding: 0.5rem 1.1rem;
	font: inherit;
	font-weight: 600;
	color: #fff;
	text-decoration: none;
	cursor: pointer;
	background: var(--accent);
	border: 1px solid var(--accent);
	border-radius: 6px;
}

.button:hover {
	background: var(--accent-ink);
	border-color: var(--accent-ink);
}

/* the shuffled list: numbered cards */
.shuffled {
	margin: 0 0 1rem;
	padding: 0;
	list-style: none;
	counter-reset: item;
}

.shuffled li {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	margin-bottom: 0.5rem;
	padding: 0.6rem 0.75rem;
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: 8px;
	counter-increment: item;
}

.shuffled li::before {
	content: counter(item);
	flex: none;
	width: 1.75rem;
	height: 1.75rem;
	font-size: 0.9rem;
	font-weight: 700;
	line-height: 1.75rem;
	color: var(--accent-ink);
	text-align: center;
	background: var(--accent-soft);
	border-radius: 50%;
}

.footer {
	padding: 1.5rem 1rem;
	font-size: 0.85rem;
	color: var(--muted);
	text-align: center;
}

.footer p {
	margin: 0.2rem 0;
}

.footer a {
	color: inherit;
}

.footer .inscription {
	font-size: 0.75rem;
}
