/* Beadline public pages (GitHub Pages). Colours match the game's Palette (godot/scripts/core/
   palette.gd). Font: Nunito, self-hosted (SIL OFL, fonts/Nunito-OFL.txt) — no external requests. */

@font-face {
	font-family: "Nunito";
	src: url("fonts/Nunito-Variable.ttf") format("truetype");
	font-weight: 200 1000;
	font-display: swap;
}

:root {
	--bg: #23262d;
	--bg-dark: #1b1d23;
	--surface: #2a2e37;
	--border: #454a56;
	--text: #ffffff;
	--text-2: #c9ccd3;
	--muted: #9ca1ad;
	--accent: #e52554;
	--link: #4c9aff;
	color-scheme: dark;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
	margin: 0;
	background: linear-gradient(180deg, var(--bg) 0%, var(--bg-dark) 100%) fixed;
	background-color: var(--bg-dark);
	color: var(--text-2);
	font-family: "Nunito", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	font-size: 17px;
	line-height: 1.6;
}

main {
	max-width: 760px;
	margin: 0 auto;
	padding: 28px 16px 56px;
}

header.app {
	display: flex;
	align-items: center;
	gap: 14px;
	margin-bottom: 20px;
}

header.app img {
	width: 56px;
	height: 56px;
	border-radius: 14px;
	flex: none;
}

header.app .name {
	color: var(--text);
	font-weight: 800;
	font-size: 19px;
	line-height: 1.25;
}

header.app .dev { color: var(--muted); font-size: 14px; }

h1, h2, h3 { color: var(--text); line-height: 1.25; }
h1 { font-size: 28px; font-weight: 900; margin: 8px 0 4px; }
h2 { font-size: 21px; font-weight: 800; margin: 32px 0 8px; }
h3 { font-size: 17px; font-weight: 800; margin: 20px 0 4px; }

p, li { margin: 0 0 10px; }
ul { padding-left: 22px; }
strong { color: var(--text); }

a { color: var(--link); text-decoration-thickness: 1px; text-underline-offset: 3px; }

.updated { color: var(--muted); font-size: 14px; margin-bottom: 18px; }

.lang-switch {
	display: inline-block;
	margin: 4px 0 8px;
	padding: 6px 14px;
	border: 1px solid var(--border);
	border-radius: 999px;
	font-size: 14px;
	text-decoration: none;
}

.card {
	background: var(--surface);
	border: 1px solid rgba(255, 255, 255, 0.06);
	border-radius: 18px;
	padding: 18px 20px;
	margin: 16px 0;
}

.card > :first-child { margin-top: 0; }
.card > :last-child { margin-bottom: 0; }

.links { display: grid; gap: 12px; margin: 24px 0; }

.links a {
	display: block;
	padding: 16px 20px;
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: 16px;
	color: var(--text);
	font-weight: 800;
	text-decoration: none;
}

.links a span { display: block; color: var(--muted); font-weight: 600; font-size: 14px; }

.table-wrap { overflow-x: auto; margin: 12px 0; }

table { width: 100%; border-collapse: collapse; font-size: 15px; }

th, td {
	text-align: left;
	vertical-align: top;
	padding: 10px 12px;
	border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

th { color: var(--text); font-weight: 800; }

code {
	background: var(--bg-dark);
	border-radius: 6px;
	padding: 1px 6px;
	font-size: 0.92em;
}

hr.lang {
	border: none;
	border-top: 1px solid var(--border);
	margin: 48px 0 24px;
}

footer {
	margin-top: 40px;
	color: var(--muted);
	font-size: 14px;
}

@media (max-width: 480px) {
	body { font-size: 16px; }
	h1 { font-size: 24px; }
	h2 { font-size: 19px; }
	th, td { padding: 8px 6px; }
}
