:root {
	--bg: #120d10;
	--bg-raised: #1c1519;
	--line: #33262c;
	--text: #f3e9e4;
	--muted: #a8969a;
	--accent: #ff5a36;
	color-scheme: dark;
}

* {
	box-sizing: border-box;
}

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

body {
	margin: 0;
	min-height: 100vh;
	display: flex;
	flex-direction: column;
	background:
		radial-gradient(60rem 30rem at 50% -10rem, rgba(255, 90, 54, 0.16), transparent 70%),
		var(--bg);
	color: var(--text);
	font: 1rem/1.6 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

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

.wrap {
	width: 100%;
	max-width: 60rem;
	margin: 0 auto;
	padding: 0 1.25rem;
}

/* Header */

.hero {
	padding: 4.5rem 0 2.5rem;
	text-align: center;
}

.wordmark {
	margin: 0;
	font-size: clamp(3rem, 12vw, 6rem);
	font-weight: 900;
	letter-spacing: -0.04em;
	line-height: 1;
	background: linear-gradient(180deg, #ffd27a 0%, var(--accent) 55%, #b3162c 100%);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}

.wordmark a {
	color: inherit;
	text-decoration: none;
}

.tagline {
	margin: 1rem 0 0;
	color: var(--muted);
	font-size: 1.125rem;
}

/* Games */

.section-title {
	margin: 0;
	font-size: 1.5rem;
	line-height: 1.2;
}

.section-blurb {
	margin: 0.25rem 0 1rem;
	color: var(--muted);
}

.games {
	list-style: none;
	margin: 0;
	padding: 0 0 2.5rem;
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr));
	gap: 1rem;
}

.game {
	--game: var(--accent);
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
	height: 100%;
	padding: 1.25rem 1.25rem 1.1rem;
	border: 1px solid var(--line);
	border-top: 3px solid var(--game);
	border-radius: 0.75rem;
	background: var(--bg-raised);
	color: inherit;
	text-decoration: none;
	transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.game:hover,
.game:focus-visible {
	transform: translateY(-3px);
	border-color: var(--game);
	box-shadow: 0 0.75rem 2rem -1rem var(--game);
	outline: none;
}

.game .icon {
	font-size: 2rem;
	line-height: 1;
}

.game h3 {
	margin: 0.25rem 0 0;
	font-size: 1.35rem;
	line-height: 1.2;
}

.game p {
	margin: 0;
	flex: 1;
	color: var(--muted);
	font-size: 0.95rem;
}

.game .meta {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 0.5rem;
	margin-top: 0.5rem;
	font-size: 0.8rem;
	color: var(--muted);
}

.game .host {
	color: var(--game);
	font-weight: 600;
}

.dragons { --game: #f59e0b; }
.infected { --game: #84cc16; }
.partypants { --game: #38bdf8; }
.spirits { --game: #34d399; }
.huh { --game: #e879f9; }

/* Prose pages */

.prose {
	max-width: 42rem;
	padding-bottom: 3rem;
}

.prose .page-title {
	margin: 0;
	font-size: 2.25rem;
	line-height: 1.2;
}

.prose .updated {
	margin: 0.25rem 0 1.5rem;
	color: var(--muted);
	font-size: 0.9rem;
}

.prose h2 {
	margin: 2rem 0 0.5rem;
	font-size: 1.25rem;
}

.prose li {
	margin-bottom: 0.6rem;
}

.prose ul {
	padding-left: 1.25rem;
}

.small-hero {
	padding: 2rem 0 1.5rem;
}

.small-hero .wordmark {
	font-size: 2rem;
	display: inline-block;
}

/* Footer */

footer {
	margin-top: auto;
	border-top: 1px solid var(--line);
	padding: 1.25rem 0;
	color: var(--muted);
	font-size: 0.875rem;
}

footer .wrap {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 0.5rem 1.5rem;
}

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

footer a:hover {
	color: var(--text);
}

@media (prefers-reduced-motion: reduce) {
	.game {
		transition: none;
	}

	.game:hover,
	.game:focus-visible {
		transform: none;
	}
}
