/* gbeegames.com -- the studio site (index, 404). The per-app privacy pages keep css/main.css. */

:root {
	--bg: #0e0f13;
	--surface: #171920;
	--surface-2: #1e2129;
	--line: #2a2e38;
	--text: #ebecf0;
	--muted: #a0a5b0;
	--red: #ce281a;
	--red-hi: #e8412f;
	--radius: 14px;
	--wrap: 1180px;
	--head: "Exo 2", "Segoe UI", system-ui, sans-serif;
	--body: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
	color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
	margin: 0;
	background: var(--bg);
	color: var(--text);
	font: 400 17px/1.6 var(--body);
	-webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--red-hi); }
h1, h2, h3 { font-family: var(--head); line-height: 1.1; margin: 0; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding-inline: 24px; }

/* Header ---------------------------------------------------------------------------------------- */
.site-header {
	position: sticky;
	top: env(safe-area-inset-top, 0px);
	z-index: 10;
	background: rgba(14, 15, 19, 0.82);
	backdrop-filter: blur(10px);
	border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 72px; }
.brand img { height: 48px; width: auto; }
.nav { display: flex; gap: 28px; }
.nav a {
	color: var(--muted);
	text-decoration: none;
	font: 600 15px var(--head);
	letter-spacing: 0.06em;
	text-transform: uppercase;
}
.nav a:hover { color: var(--text); }

/* Hero (the newest game) ------------------------------------------------------------------------ */
/* The splash carries the game's own title at the top; the pitch and store buttons sit at the
   bottom, over a fade into the page. */
.hero {
	position: relative;
	min-height: min(82vh, 820px);
	display: flex;
	align-items: flex-end;
	background: url("../images/escape-hero.jpg") center top / cover no-repeat;
}
.hero::before {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(0deg, var(--bg) 0%, rgba(14, 15, 19, 0.9) 22%, rgba(14, 15, 19, 0) 55%);
}
.hero .wrap { position: relative; padding-block: 0 56px; width: 100%; }
.hero-copy { max-width: 640px; margin: 0 auto; text-align: center; }
.hero .stores { justify-content: center; gap: 16px; }
.hero .stores img { height: 64px; }
.brand-icon img { height: 48px; width: 48px; }
/* The full GBeeGames logo, big and centred under the hero (the menu bar keeps the round icon). */
.studio-logo { display: flex; justify-content: center; padding: 8px 24px 0; }
.studio-logo img { height: 144px; width: auto; }
/* over the bright splash the "coming soon" card needs its own dark ground, like a store badge */
.hero .soon {
	background: rgba(0, 0, 0, 0.78);
	border: 1px solid #a6a6a6;
	border-style: solid;
	color: #e6e7eb;
	border-radius: 11px;
	font-size: 17px;
	line-height: 24px;
	padding: 19px 22px;			/* 64 px tall, like the badges beside it */
}
.sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}
.eyebrow {
	display: inline-block;
	font: 700 13px var(--head);
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: #fff;
	background: var(--red);
	padding: 5px 10px;
	border-radius: 4px;
}
.hero p { font-size: 19px; color: #e1e3e8; margin: 20px 0 0; }

.stores { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.stores a { display: block; border-radius: 8px; transition: transform 0.15s; }
.stores a:hover { transform: translateY(-2px); }
.stores img { height: 48px; width: auto; }
.stores img[src$=".svg"] { height: 46px; margin-block: 1px; }		/* Apple's badge has no padding; Google's has a little */
.soon {
	font: 600 14px var(--head);
	color: var(--muted);
	border: 1px dashed var(--line);
	border-radius: 8px;
	padding: 12px 16px;
}

/* Sections ---------------------------------------------------------------------------------------- */
section { padding-block: 88px; }
.section-head { margin-bottom: 36px; }
.section-head h2 { font-size: clamp(30px, 4vw, 42px); font-weight: 800; }
.section-head p { color: var(--muted); margin: 10px 0 0; }
.section-head h2::after {
	content: "";
	display: block;
	width: 56px;
	height: 4px;
	margin-top: 14px;
	background: var(--red);
	border-radius: 2px;
}

/* Released games ---------------------------------------------------------------------------------- */
.games { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 28px; }
.game {
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	overflow: hidden;
	display: flex;
	flex-direction: column;
}
.game-art { position: relative; aspect-ratio: 16 / 9; background: #000; }
.game-art > img:first-child { width: 100%; height: 100%; object-fit: cover; }
.game-icon {
	position: absolute;
	left: 20px;
	bottom: -32px;
	width: 72px;
	height: 72px;
	border-radius: 18px;
	border: 3px solid var(--surface);
	box-shadow: 0 6px 18px rgba(0, 0, 0, 0.5);
}
.game-body { padding: 46px 22px 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.game h3 { font-size: 24px; font-weight: 700; }
.platforms { font: 600 13px var(--head); letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.game p { margin: 0; color: #c9ccd4; font-size: 16px; flex: 1; }
.game .stores { margin-top: 10px; }
.game .stores img { height: 42px; }
.game .stores img[src$=".svg"] { height: 40px; }
.game .soon { padding: 9px 12px; font-size: 13px; }

/* In development ---------------------------------------------------------------------------------- */
.dev { display: grid; gap: 28px; }
.dev-card {
	display: grid;
	grid-template-columns: 1.45fr 1fr;
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	overflow: hidden;
}
/* The art keeps its titles at the left / top: anchor the crop there when the text column is taller. */
.dev-card > img { width: 100%; height: 100%; object-fit: cover; object-position: 0 100%; aspect-ratio: 16 / 9; }
.dev-card > img.top { object-position: 100% 0; }
.dev-body { padding: 36px; display: flex; flex-direction: column; justify-content: center; gap: 12px; }
.dev-body .tag { font: 700 12px var(--head); letter-spacing: 0.16em; text-transform: uppercase; color: var(--red-hi); }
.dev-body h3 { font-size: 30px; font-weight: 800; }
.dev-body .sub { font: 600 15px var(--head); color: var(--muted); letter-spacing: 0.04em; }
.dev-body p { margin: 0; color: #c9ccd4; }
.dev-body blockquote {
	margin: 0;
	padding-left: 16px;
	border-left: 3px solid var(--red);
	font-style: italic;
	color: #dfe1e6;
}

.thumbs { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 6px; align-items: start; }
.thumbs img { width: 100%; height: auto; border-radius: 8px; border: 1px solid var(--line); aspect-ratio: 16 / 9; object-fit: cover; }

/* About ----------------------------------------------------------------------------------------- */
.about { background: var(--surface); border-block: 1px solid var(--line); }
.about .wrap { display: grid; grid-template-columns: 1fr 1.4fr; gap: 56px; align-items: center; }
.about img { width: 100%; max-width: 420px; }
.about p { color: #c9ccd4; margin: 0 0 16px; }
.contact-link {
	display: inline-block;
	margin-top: 8px;
	font: 700 16px var(--head);
	color: #fff;
	background: var(--red);
	padding: 12px 22px;
	border-radius: 8px;
	text-decoration: none;
}
.contact-link:hover { background: var(--red-hi); }

/* Footer ---------------------------------------------------------------------------------------- */
.site-footer { padding-block: 40px calc(40px + env(safe-area-inset-bottom, 0px)); color: var(--muted); font-size: 14px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 16px 32px; align-items: center; justify-content: space-between; }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--text); }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 22px; }

/* Privacy policy -------------------------------------------------------------------------------- */
.policy .wrap { max-width: 820px; padding-block: 56px 80px; }
.policy h1 { font-size: clamp(34px, 5vw, 48px); font-weight: 800; }
.policy h2 { font-size: 24px; font-weight: 700; margin: 40px 0 12px; }
.policy p, .policy li { color: #c9ccd4; }
.policy .updated { color: var(--muted); margin-top: 8px; }
.policy-links { padding-left: 20px; }
.policy-links li { margin-bottom: 6px; }

/* 404 ------------------------------------------------------------------------------------------- */
.notfound { min-height: 60vh; display: grid; place-items: center; text-align: center; }
.notfound h1 { font-size: clamp(64px, 12vw, 140px); font-weight: 800; color: var(--red); }
.notfound p { color: var(--muted); }

/* Narrow screens ---------------------------------------------------------------------------------- */
@media (max-width: 820px) {
	.dev-card, .about .wrap { grid-template-columns: 1fr; }
	.about .wrap { gap: 28px; }
	.dev-body { padding: 26px; }
}
@media (max-width: 560px) {
	body { font-size: 16px; }
	.wrap { padding-inline: 18px; }
	.brand img { height: 38px; }
	.nav { gap: 16px; }
	.nav a { font-size: 13px; }
	.nav .opt { display: none; }
	section { padding-block: 64px; }
	/* the whole splash across the top (its logo is the headline), the pitch under it */
	.hero { min-height: 0; padding-top: 55.8vw; background-size: 100% auto; }
	.hero::before { bottom: auto; height: 55.8vw; background: linear-gradient(0deg, var(--bg) 0%, rgba(14, 15, 19, 0) 40%); }
	.hero .wrap { padding-block: 8px 40px; }
	.studio-logo img { height: auto; width: 100%; max-width: 420px; }
	.hero .stores img { height: 52px; }
	.hero .soon { font-size: 14px; line-height: 20px; padding: 15px 16px; }
	.hero p { font-size: 17px; }
	.games { grid-template-columns: 1fr; }
}
