/* Le site de Meowrrows, dans le thème du jeu.
 *
 * Les couleurs sont celles de ui/theme/palette.gd : surfaces du mode sombre par
 * défaut, surfaces « papier » du mode clair si le système le demande. Comme dans
 * le jeu, les accents ne sont pas remplacés en mode clair, seulement approfondis.
 * La police est Baloo 2, la même que dans le jeu, réduite aux glyphes latins
 * (fonts/Baloo2.woff2, licence OFL dans fonts/OFL.txt). */

@font-face {
	font-family: "Baloo 2";
	src: url("fonts/Baloo2.woff2") format("woff2");
	font-weight: 400 800;
	font-display: swap;
}

:root {
	--night: #16172b;
	--panel: #20223a;
	--panel2: #292c48;
	--ink: #ede7dc;
	--muted: #8e8fae;
	--line: #33365a;
	--gold: #ffc24b;
	--mint: #6fe3c4;
	--nose: #ff8fa3;
	--on-gold: #16172b;
	--glow: rgba(255, 194, 75, 0.08);
	--shadow: 0 10px 30px rgba(10, 10, 25, 0.45);
	color-scheme: dark;
}

@media (prefers-color-scheme: light) {
	:root {
		--night: #f4efe4;
		--panel: #fffbf2;
		--panel2: #e6dfcf;
		--ink: #241f2e;
		--muted: #6a6478;
		--line: #d3c9b4;
		--gold: #a87400;
		--mint: #2a9c7d;
		--nose: #c44e66;
		--on-gold: #fffbf2;
		--glow: rgba(168, 116, 0, 0.07);
		--shadow: 0 8px 24px rgba(36, 31, 46, 0.1);
		color-scheme: light;
	}
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
	margin: 0;
	min-height: 100vh;
	background:
		radial-gradient(60rem 30rem at 50% -8rem, var(--glow), transparent 70%),
		var(--night);
	color: var(--ink);
	font: 17px/1.65 "Baloo 2", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	-webkit-font-smoothing: antialiased;
}

a { color: var(--gold); text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 2px; }

/* ── Bandeau ────────────────────────────────────────────────────────────── */

.top {
	max-width: 52rem;
	margin: 0 auto;
	padding: 1.1rem 1rem 0;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
}

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

.brand img {
	width: 2.4rem;
	height: 2.4rem;
	border-radius: 0.8rem;
}

/* Le sélecteur de langue est un chip, comme dans les réglages du jeu. */
.lang {
	display: inline-flex;
	padding: 0.2rem;
	gap: 0.2rem;
	background: var(--panel);
	border: 1px solid var(--line);
	border-radius: 999px;
	font-size: 0.9rem;
	font-weight: 700;
}

.lang a {
	padding: 0.15rem 0.8rem;
	border-radius: 999px;
	color: var(--muted);
	text-decoration: none;
}

.lang a:hover { color: var(--ink); background: var(--panel2); }

/* ── Mise en page ───────────────────────────────────────────────────────── */

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

.card {
	background: var(--panel);
	border: 1px solid var(--line);
	border-radius: 28px;
	padding: 1.6rem 1.4rem;
	margin: 0 0 1.2rem;
	box-shadow: var(--shadow);
}

@media (min-width: 40rem) {
	.card { padding: 2.2rem 2.4rem; }
}

h1, h2, h3 { line-height: 1.2; font-weight: 800; }
h1 { font-size: 2.1rem; margin: 0 0 0.2rem; }
h2 { font-size: 1.3rem; margin: 2rem 0 0.5rem; color: var(--gold); }
h3 { font-size: 1.08rem; margin: 1.5rem 0 0.4rem; }
.card > h2:first-child { margin-top: 0; }

.meta { color: var(--muted); font-size: 0.92rem; margin-top: 0; }
ul { padding-left: 1.3rem; }
li { margin: 0.3rem 0; }
li::marker { color: var(--gold); }
strong { font-weight: 700; }

/* ── Accueil ────────────────────────────────────────────────────────────── */

.hero {
	display: grid;
	gap: 1.6rem;
	align-items: center;
}

@media (min-width: 44rem) {
	.hero { grid-template-columns: 1.1fr 1fr; gap: 2.4rem; }
}

.hero h1 {
	font-size: clamp(2.6rem, 9vw, 3.6rem);
	color: var(--gold);
	letter-spacing: -0.01em;
}

.tagline { font-size: 1.2rem; font-weight: 600; margin: 0.4rem 0 0.8rem; }

/* La grille d'illustration reste de nuit, quel que soit le mode : c'est une
 * fenêtre sur le jeu, pas un élément de la page. */
.board {
	background: #16172b;
	border: 1px solid #33365a;
	border-radius: 28px;
	padding: 0.6rem;
	box-shadow: var(--shadow);
}

.board img { display: block; width: 100%; height: auto; }

.pill {
	display: inline-block;
	margin-top: 0.6rem;
	padding: 0.55rem 1.4rem;
	border-radius: 24px;
	background: var(--gold);
	color: var(--on-gold);
	font-weight: 800;
	text-decoration: none;
}


/* La légende des trois pattes, comme sous la grille du jeu. */
.paws {
	list-style: none;
	padding: 0;
	margin: 1rem 0 0;
	display: grid;
	gap: 0.7rem;
}

@media (min-width: 40rem) {
	.paws { grid-template-columns: repeat(3, 1fr); }
}

.paws li {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	margin: 0;
	padding: 0.7rem 0.9rem;
	background: var(--panel2);
	border-radius: 20px;
	line-height: 1.3;
}

.paws svg { flex: none; width: 2rem; height: 2rem; }
.paws b { display: block; }
.paws span { color: var(--muted); font-size: 0.92rem; }

.links {
	list-style: none;
	padding: 0;
	margin: 0;
	display: grid;
	gap: 0.6rem;
}

@media (min-width: 40rem) {
	.links { grid-template-columns: repeat(3, 1fr); }
}

.links a {
	display: block;
	padding: 0.8rem 1rem;
	background: var(--panel2);
	border-radius: 20px;
	color: var(--ink);
	text-decoration: none;
	font-weight: 700;
}

.links a:hover { outline: 2px solid var(--gold); }
.links small { display: block; color: var(--muted); font-weight: 500; }

/* ── Pied de page ───────────────────────────────────────────────────────── */

footer {
	max-width: 52rem;
	margin: 0 auto;
	padding: 0 1rem 2.5rem;
	color: var(--muted);
	font-size: 0.9rem;
	text-align: center;
}

footer a { color: var(--muted); }

/* Les couleurs des pattes suivent le mode, comme les accents du jeu. */
.paws .p1 { color: var(--mint); }
.paws .p2 { color: var(--gold); }
.paws .gt { color: var(--muted); }

/* La langue de la page, allumée dans le chip. */
.lang a[aria-current="page"] { background: var(--gold); color: var(--on-gold); }
