/* The game's look (client/ui/look.gd): Fredoka, deep blue cards, gold for the
   main action, chunky buttons with a darker lip. */

@font-face {
	font-family: "Fredoka";
	src: url("/fonts/Fredoka.ttf") format("truetype");
	font-weight: 300 700; /* a variable font: every weight from one file */
	font-display: swap;
}

:root {
	--ink: #29203d;
	--text: #faf8ff;
	--muted: #c9cbe0;
	--gold: #ffcc47;
	--gold-lip: #d1801a;
	--blue: #5180e6;
	--blue-lip: #304d9e;
	--page: #1b1f38;
	--card: #262b4a;
	--line: rgba(255, 255, 255, 0.08);
	color-scheme: dark;
}

* { box-sizing: border-box; }

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

body {
	margin: 0;
	color: var(--text);
	background:
		radial-gradient(ellipse 120% 60% at 50% 0%, #34508f 0%, rgba(52, 80, 143, 0) 70%),
		var(--page);
	font: 500 18px/1.55 "Fredoka", system-ui, sans-serif;
}

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

h1, h2 { font-weight: 650; line-height: 1.15; margin: 0; }

/* --- the top: name, pitch, key art ---------------------------------------- */

.hero {
	max-width: 72rem;
	margin: 0 auto;
	padding: 3.5rem 16px 0;
	text-align: center;
}

.logo {
	font-size: clamp(3.4rem, 13vw, 7rem);
	font-weight: 700;
	letter-spacing: 0.01em;
	color: var(--text);
	-webkit-text-stroke: 0.14em var(--ink);
	paint-order: stroke fill;
	text-shadow: 0 0.08em 0 rgba(0, 0, 0, 0.35);
}

.logo .siege { color: var(--gold); }

.tagline {
	margin: 0.4rem 0 0;
	font-size: clamp(1.4rem, 4.5vw, 2rem);
	font-weight: 650;
}

.lede {
	max-width: 36rem;
	margin: 0.8rem auto 0;
	color: var(--muted);
}

.status {
	display: inline-block;
	margin: 1.2rem 0 0;
	padding: 0.3rem 1rem;
	border-radius: 999px;
	background: var(--card);
	border: 2px solid var(--line);
	font-size: 0.95rem;
}

.key-art {
	display: block;
	width: 100%;
	height: auto;
	margin: 2rem auto 0;
	border-radius: 22px;
	border: 2px solid var(--line);
	box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}

/* --- buttons ------------------------------------------------------------------ */

.links {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 12px;
	margin: 1.4rem 0 0;
	padding: 0;
	list-style: none;
}

.button {
	display: inline-block;
	padding: 0.55rem 1.3rem 0.5rem;
	border-radius: 16px;
	border-bottom: 5px solid var(--blue-lip);
	background: var(--blue);
	color: var(--text);
	font-weight: 650;
	text-decoration: none;
	transition: transform 0.08s, border-bottom-width 0.08s;
}

.button:hover { filter: brightness(1.08); }

.button:active {
	transform: translateY(4px);
	border-bottom-width: 1px;
}

.button.gold {
	background: var(--gold);
	border-bottom-color: var(--gold-lip);
	color: var(--ink);
}

/* --- what the game is ---------------------------------------------------------- */

main {
	max-width: 72rem;
	margin: 0 auto;
	padding: 0 16px;
}

.features {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr));
	gap: 20px;
	margin: 2rem 0 0;
}

.features article,
.follow {
	background: var(--card);
	border: 2px solid var(--line);
	border-radius: 22px;
	overflow: hidden;
}

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

.features h2 {
	margin: 1rem 1.2rem 0;
	font-size: 1.5rem;
}

.features p {
	margin: 0.4rem 1.2rem 1.3rem;
	color: var(--muted);
}

.follow {
	margin: 2.5rem 0 0;
	padding: 2rem 1.2rem;
	text-align: center;
}

.follow h2 { font-size: 1.9rem; }

.follow p {
	margin: 0.4rem 0 0;
	color: var(--muted);
}

footer {
	max-width: 72rem;
	margin: 0 auto;
	padding: 2.5rem 16px 3rem;
	text-align: center;
	color: var(--muted);
	font-size: 0.95rem;
}

footer p { margin: 0.3rem 0; }

/* --- the privacy policy and other text pages ---------------------------------- */

.page-header {
	padding: 1.5rem 16px 0;
	text-align: center;
}

.page-header .logo {
	display: inline-block;
	font-size: 2.6rem;
	text-decoration: none;
}

.doc {
	max-width: 48rem;
	margin: 1.5rem auto 0;
	padding: 2rem clamp(16px, 4vw, 2.5rem);
	background: var(--card);
	border: 2px solid var(--line);
	border-radius: 22px;
	font-weight: 400;
}

.doc h1 { font-size: 2.2rem; margin-bottom: 1rem; }
.doc h2 { font-size: 1.5rem; margin: 2rem 0 0.5rem; }
.doc strong { font-weight: 650; }

.doc .table {
	overflow-x: auto; /* wide tables scroll inside the card on phones */
}

.doc table {
	width: 100%;
	border-collapse: collapse;
	font-size: 0.95rem;
}

.doc th,
.doc td {
	padding: 0.5rem 0.7rem;
	border: 1px solid rgba(255, 255, 255, 0.14);
	text-align: left;
	vertical-align: top;
}

.doc th { background: rgba(255, 255, 255, 0.06); }
