:root {
	--bg: #fffdf5;
	--surface: #ffffff;
	--text: #1d1d1f;
	--muted: #5c5c66;
	--border: #e6e1d3;
	--brick-red: #cf3726;
	--brick-yellow: #f6c445;
	--brick-blue: #2f6fd6;
	--brick-green: #2e9e4f;
	--shadow: 0 2px 0 rgba(0, 0, 0, .12);
}

@media (prefers-color-scheme: dark) {
	:root {
		--bg: #15161a;
		--surface: #1f2026;
		--text: #f2f2f4;
		--muted: #a4a4b0;
		--border: #33343c;
		--shadow: 0 2px 0 rgba(0, 0, 0, .5);
	}
}

* { box-sizing: border-box; }

html, body { margin: 0; }

body {
	background: var(--bg);
	color: var(--text);
	font: 16px/1.55 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

a { color: var(--brick-blue); }
@media (prefers-color-scheme: dark) { a { color: #6fb6ff; } }

.wrap { max-width: 960px; margin: 0 auto; padding: 0 16px; }

/* Row of "studs" across the top, like the top of a brick */
.studs {
	height: 14px;
	background:
		radial-gradient(circle at 50% 100%, var(--brick-red) 9px, transparent 10px) 0 0 / 32px 14px repeat-x,
		var(--bg);
}

header.site {
	background: var(--brick-red);
	color: #fff;
	padding: 28px 0 32px;
}
header.site h1 {
	margin: 0;
	font-size: clamp(2rem, 6vw, 3.25rem);
	letter-spacing: -.02em;
	line-height: 1.1;
}
header.site p { margin: 8px 0 0; font-size: 1.1rem; opacity: .92; }

.badge {
	display: inline-block;
	background: var(--brick-yellow);
	color: #1d1d1f;
	font-weight: 700;
	font-size: .8rem;
	text-transform: uppercase;
	letter-spacing: .06em;
	padding: 3px 10px;
	border-radius: 4px;
	margin-bottom: 12px;
}

main section { margin: 36px 0; }
main h2 { font-size: 1.4rem; margin: 0 0 12px; }

.launch {
	display: block;
	border-radius: 8px;
	overflow: hidden;
	box-shadow: var(--shadow);
	background: #141821;
}
.launch img { display: block; width: 100%; height: auto; transition: transform .2s; }
.launch:hover img { transform: scale(1.02); }

#fs-host { position: fixed; inset: 0; z-index: 10; background: #000; }
#fs-host iframe { width: 100%; height: 100%; border: 0; display: block; }

.actions { margin-top: 12px; display: flex; gap: 12px; flex-wrap: wrap; }
.button {
	display: inline-block;
	border: 0;
	font: inherit;
	cursor: pointer;
	background: var(--brick-yellow);
	color: #1d1d1f;
	font-weight: 700;
	text-decoration: none;
	padding: 10px 18px;
	border-radius: 6px;
	box-shadow: 0 3px 0 #c99a1e;
}
.controls { color: var(--muted); font-size: .9rem; align-self: center; }
.button:hover { filter: brightness(1.05); }
.button[hidden] { display: none; }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.card {
	background: var(--surface);
	border: 1px solid var(--border);
	border-top: 6px solid var(--c, var(--brick-blue));
	border-radius: 8px;
	padding: 16px;
}
.card h3 { margin: 0 0 6px; font-size: 1.05rem; }
.card p { margin: 0; color: var(--muted); }

footer.site {
	border-top: 1px solid var(--border);
	padding: 20px 0 32px;
	color: var(--muted);
	font-size: .9rem;
}
.build-info { font-family: ui-monospace, Consolas, monospace; font-size: .85rem; }
.env-preview { color: #b36b00; font-weight: 700; }
.env-production { color: var(--brick-green); font-weight: 700; }
