/* Bidl Games — site styles. Palette follows the Dread Alert key art:
   rust/ember accent, crimson for Rednecks, combine-green for Cityboys,
   industrial neutrals everywhere else. */

:root {
	--bg: #121417;
	--bg-2: #1a1d22;
	--bg-3: #22262c;
	--line: #2e333a;
	--text: #e8e4dc;
	--text-2: #a9a49a;
	--text-3: #7a756d;
	--ember: #f08a2e;
	--ember-2: #ffb060;
	--crimson: #d24536;
	--combine: #6fc46a;
	--radius: 10px;
	--wrap: 1120px;
	--font: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
	--font-display: "Bahnschrift", "Segoe UI", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
	margin: 0;
	background: var(--bg);
	color: var(--text);
	font: 16px/1.6 var(--font);
	-webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--ember-2); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.15; margin: 0 0 .5em; letter-spacing: .01em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
.muted { color: var(--text-2); }
.small { font-size: .9rem; }
.eyebrow {
	font-family: var(--font-display);
	font-size: .8rem;
	letter-spacing: .18em;
	text-transform: uppercase;
	color: var(--ember);
	margin-bottom: .6em;
}
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }

/* ---- top bar ---- */
.topbar {
	position: sticky; top: 0; z-index: 10;
	display: flex; align-items: center; justify-content: space-between; gap: 16px;
	padding: 12px 20px;
	background: rgba(18, 20, 23, .86);
	backdrop-filter: blur(8px);
	border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); }
.brand:hover { text-decoration: none; }
.brand-mark {
	width: 26px; height: 26px; border-radius: 6px;
	background:
		linear-gradient(135deg, var(--ember) 0 50%, var(--crimson) 50% 100%);
	box-shadow: inset 0 0 0 2px rgba(0,0,0,.35);
}
.brand-name { font-family: var(--font-display); font-size: 1.2rem; letter-spacing: .04em; }
.brand-name b { color: var(--ember-2); font-weight: 700; }
.nav { display: flex; gap: 22px; }
.nav a { color: var(--text-2); font-size: .95rem; }
.nav a:hover { color: var(--text); text-decoration: none; }

/* ---- hero ---- */
.hero {
	position: relative;
	min-height: min(78vh, 720px);
	display: grid; align-items: end;
	background: #0d1a14 url("img/hero.jpg") center / cover no-repeat;
	isolation: isolate;
}
.hero::before {
	content: ""; position: absolute; inset: 0; z-index: -1;
	background:
		linear-gradient(180deg, rgba(18,20,23,.35) 0%, rgba(18,20,23,.15) 35%, rgba(18,20,23,.92) 100%),
		linear-gradient(90deg, rgba(18,20,23,.55) 0%, rgba(18,20,23,0) 60%);
}
.hero-inner { padding: 120px 20px 56px; }
.hero h1 {
	font-size: clamp(2.6rem, 7vw, 5rem);
	text-transform: uppercase;
	letter-spacing: .04em;
	margin-bottom: .15em;
	text-shadow: 0 2px 18px rgba(0,0,0,.6);
}
.hero h1 span { color: var(--ember-2); }
.hero .lede { font-size: clamp(1.05rem, 2vw, 1.3rem); max-width: 620px; color: var(--text); text-shadow: 0 1px 10px rgba(0,0,0,.7); }
.hero .factions { color: var(--text-2); margin-bottom: 1.4em; }
.hero .factions b:first-child { color: #ff7a6b; }
.hero .factions b:last-child { color: var(--combine); }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* ---- buttons ---- */
.btn {
	display: inline-flex; align-items: center; gap: 10px;
	padding: 12px 20px;
	border-radius: 8px;
	font-family: var(--font-display); font-weight: 600; font-size: 1rem; letter-spacing: .02em;
	border: 1px solid transparent;
	transition: transform .12s ease, background .12s ease, border-color .12s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-play {
	background: #000; color: #fff; border-color: #444;
	padding: 8px 18px 8px 12px;
}
.btn-play:hover { border-color: #888; }
.btn-play svg { width: 28px; height: 28px; flex: none; }
.btn-play .btn-play-text { display: flex; flex-direction: column; line-height: 1.1; text-align: left; }
.btn-play .btn-play-text small { font-size: .65rem; font-weight: 400; letter-spacing: .06em; text-transform: uppercase; opacity: .8; }
.btn-play .btn-play-text span { font-size: 1.15rem; }
.btn-ghost { background: rgba(255,255,255,.06); color: var(--text); border-color: rgba(255,255,255,.18); }
.btn-ghost:hover { background: rgba(255,255,255,.1); }

/* ---- sections ---- */
.section { padding: 72px 0; border-top: 1px solid var(--line); }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 28px; }
.section-head p { color: var(--text-2); margin: 0; max-width: 560px; }

/* ---- project card ---- */
.project {
	display: grid; grid-template-columns: 96px 1fr; gap: 24px;
	padding: 28px;
	background: var(--bg-2);
	border: 1px solid var(--line);
	border-radius: var(--radius);
}
.project-icon img { width: 96px; height: 96px; border-radius: 20px; box-shadow: 0 6px 24px rgba(0,0,0,.45); }
.project-title { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-bottom: 6px; }
.project-title h3 { font-size: 1.6rem; margin: 0; }
.tag {
	font-size: .72rem; letter-spacing: .1em; text-transform: uppercase;
	padding: 3px 9px; border-radius: 999px;
	background: rgba(240,138,46,.14); color: var(--ember-2); border: 1px solid rgba(240,138,46,.35);
}
.tag.neutral { background: rgba(255,255,255,.06); color: var(--text-2); border-color: var(--line); }
.project-meta { color: var(--text-3); font-size: .9rem; margin-bottom: 14px; }
.project p { max-width: 720px; }
.project .cta-row { margin-top: 18px; }

.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; margin: 22px 0 0; padding: 0; list-style: none; }
.features li { background: var(--bg-3); border: 1px solid var(--line); border-radius: 8px; padding: 14px 16px; }
.features b { display: block; font-family: var(--font-display); margin-bottom: 4px; }
.features span { color: var(--text-2); font-size: .93rem; }

/* ---- gallery ---- */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; margin-top: 28px; }
.gallery figure { margin: 0; }
.gallery button {
	all: unset; cursor: zoom-in; display: block; width: 100%;
	border-radius: 8px; overflow: hidden; border: 1px solid var(--line);
	background: var(--bg-3);
	transition: transform .15s ease, border-color .15s ease;
}
.gallery button:hover, .gallery button:focus-visible { transform: translateY(-2px); border-color: var(--ember); outline: none; }
.gallery button img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.gallery figcaption { color: var(--text-2); font-size: .9rem; padding: 8px 2px 0; }
.gallery figure.wide { grid-column: 1 / -1; }
.gallery figure.wide button img { aspect-ratio: 2.05 / 1; }

/* lightbox */
.lightbox { border: 0; padding: 0; background: transparent; max-width: min(96vw, 1400px); max-height: 96vh; }
.lightbox::backdrop { background: rgba(0,0,0,.88); }
.lightbox img { max-width: 96vw; max-height: 86vh; border-radius: 6px; box-shadow: 0 20px 80px rgba(0,0,0,.7); }
.lightbox figcaption { text-align: center; color: var(--text-2); padding: 10px 0 0; }
.lightbox-close { position: fixed; top: 14px; right: 18px; font-size: 1.8rem; line-height: 1; color: #fff; background: none; border: 0; cursor: pointer; }

/* ---- factions strip ---- */
.factions-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 14px; margin-top: 26px; }
.faction { padding: 20px 22px; border-radius: 8px; border: 1px solid var(--line); background: var(--bg-3); border-top: 3px solid var(--line); }
.faction.rednecks { border-top-color: var(--crimson); }
.faction.cityboys { border-top-color: var(--combine); }
.faction h3 { margin-bottom: 4px; }
.faction .sub { color: var(--text-3); font-size: .85rem; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 10px; }
.faction p { color: var(--text-2); margin: 0; font-size: .95rem; }

/* ---- about / next ---- */
.about-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 28px; align-items: start; }
.about-grid p { max-width: 640px; }
.next {
	padding: 22px 24px; border-radius: var(--radius);
	border: 1px dashed var(--line); color: var(--text-2);
}
.next h3 { color: var(--text); }

/* ---- footer ---- */
.footer { border-top: 1px solid var(--line); padding: 32px 20px; color: var(--text-3); font-size: .88rem; }
.footer-inner { max-width: var(--wrap); margin: 0 auto; }
.footer p { margin: 0 0 6px; }
.footer a { color: var(--text-2); }

/* ---- privacy page ---- */
.prose { max-width: 720px; margin: 0 auto; padding: 56px 20px 72px; }
.prose h1 { font-size: 2.2rem; }
.prose h2 { font-size: 1.2rem; margin-top: 1.8em; color: var(--text); }
.prose p { color: var(--text-2); }

@media (max-width: 720px) {
	.nav { gap: 14px; }
	.hero-inner { padding-top: 80px; }
	.project { grid-template-columns: 1fr; }
	.project-icon img { width: 72px; height: 72px; border-radius: 16px; }
	.about-grid { grid-template-columns: 1fr; }
	.section { padding: 52px 0; }
}
