/* Pindrop Productions: the studio front page, a plain list of games. Each game's page has its own look. */

:root {
	--bg: #f6f6f4;
	--text: #1d1f24;
	--muted: #5e636e;
	--card: #ffffff;
	--line: #e2e2de;
	--accent: #2f3fa0;
	--tag-bg: #e7e9f7;
	--shadow: 0 1px 2px rgba(20, 20, 30, 0.06), 0 8px 24px rgba(20, 20, 30, 0.07);
}

@media (prefers-color-scheme: dark) {
	:root:not([data-theme="light"]) {
		--bg: #131417;
		--text: #ececef;
		--muted: #a3a7b2;
		--card: #1c1e23;
		--line: #2c2f36;
		--accent: #9aa6f2;
		--tag-bg: #262b45;
		--shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
	}
}

:root[data-theme="dark"] {
	--bg: #131417;
	--text: #ececef;
	--muted: #a3a7b2;
	--card: #1c1e23;
	--line: #2c2f36;
	--accent: #9aa6f2;
	--tag-bg: #262b45;
	--shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

* { box-sizing: border-box; }

body {
	margin: 0;
	background: var(--bg);
	color: var(--text);
	font: 1rem/1.6 Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
}

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

.top { padding-top: 1.5rem; padding-bottom: 1.5rem; }

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

.intro { padding: 3rem 0 2.5rem; max-width: 40rem; }

h1 { font-size: clamp(2rem, 6vw, 3rem); line-height: 1.1; margin: 0 0 1rem; letter-spacing: -0.02em; }

.intro p { color: var(--muted); font-size: 1.15rem; margin: 0; }

h2 {
	font-size: 0.85rem;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--muted);
	font-weight: 500;
	margin: 0 0 1rem;
}

.games {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(18rem, 1fr));
	gap: 1.25rem;
	margin-bottom: 4rem;
}

.game {
	display: flex;
	flex-direction: column;
	background: var(--card);
	border: 1px solid var(--line);
	border-radius: 10px;
	overflow: hidden;
	color: inherit;
	text-decoration: none;
	box-shadow: var(--shadow);
	transition: transform 0.15s, border-color 0.15s;
}

.game:hover, .game:focus-visible { transform: translateY(-2px); border-color: var(--accent); }

.game img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }

.game-body { padding: 1rem 1.1rem 1.2rem; }

.game h3 { margin: 0.2rem 0 0.4rem; font-size: 1.3rem; }

.game p { margin: 0 0 0.8rem; color: var(--muted); }

.tag {
	display: inline-block;
	background: var(--tag-bg);
	color: var(--accent);
	font-size: 0.75rem;
	font-weight: 500;
	padding: 0.15em 0.6em;
	border-radius: 999px;
	margin: 0 !important;
}

.go { color: var(--accent); font-weight: 500; }

footer { border-top: 1px solid var(--line); padding-top: 1rem; padding-bottom: 2rem; color: var(--muted); font-size: 0.9rem; }
