:root {
	--bg: #05060d;
	--panel: #0d1020;
	--line: #232845;
	--text: #e8eaf6;
	--muted: #9aa0c3;
	--orange: #ff9a2e;
	--yellow: #ffd23f;
	--cyan: #3fe0ff;
	--magenta: #d84bff;
	--hot-red: #ff2a1a;
	--max: 1120px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
	margin: 0;
	background: var(--bg);
	color: var(--text);
	font: 17px/1.65 system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	-webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--cyan); }
a:hover { color: var(--yellow); }

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

/* Header */
.site-header {
	position: sticky; top: 0; z-index: 10;
	background: rgba(5, 6, 13, 0.88);
	backdrop-filter: blur(8px);
	border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 92px; }
.brand { display: flex; align-items: center; text-decoration: none; order: 2; } /* studio logo sits at the top right */
.brand img { height: 76px; width: auto; mix-blend-mode: screen; } /* the logo's black backdrop melts into the header */
nav { order: 1; }
nav ul { list-style: none; display: flex; gap: 22px; margin: 0; padding: 0; flex-wrap: wrap; }
nav a { color: var(--text); text-decoration: none; font-weight: 600; font-size: 15px; letter-spacing: 0.02em; }
nav a:hover, nav a[aria-current="page"] { color: var(--orange); }

/* Hero */
.hero {
	position: relative;
	min-height: 78vh;
	display: flex; align-items: flex-end;
	background: #000 url("../img/hero.jpg") center / cover no-repeat;
}
.hero::after {
	content: ""; position: absolute; inset: 0;
	background: linear-gradient(to top, var(--bg) 4%, rgba(5, 6, 13, 0.55) 45%, rgba(5, 6, 13, 0.1) 100%);
}
.hero .wrap { position: relative; z-index: 1; padding-bottom: 56px; }
.hero h1 {
	font-size: clamp(40px, 8vw, 92px);
	line-height: 1; margin: 0 0 12px;
	font-weight: 900; font-style: italic; letter-spacing: 0.02em; text-transform: uppercase;
	background: linear-gradient(90deg, #e6ae2c 0%, #e2801f 35%, #cf3a17 68%, #a81212 100%);
	-webkit-background-clip: text; background-clip: text;
	-webkit-text-fill-color: transparent; color: var(--orange);
	display: inline-block; padding-right: 0.12em; /* italic overhang would otherwise be cut off */
	/* bloom: tight, medium and wide glows in the colours of the letters */
	filter: drop-shadow(0 0 6px rgba(255, 190, 60, 0.55)) drop-shadow(0 0 22px rgba(240, 110, 30, 0.6)) drop-shadow(0 0 60px rgba(200, 30, 20, 0.55));
}
.tagline { font-size: clamp(18px, 2.4vw, 26px); max-width: 720px; margin: 0 0 26px; color: #fff; }
.badges { display: flex; flex-wrap: wrap; gap: 12px; }
.badge {
	display: inline-flex; align-items: center; gap: 8px;
	padding: 11px 20px; border-radius: 6px;
	border: 1px solid var(--line); background: rgba(13, 16, 32, 0.85);
	color: var(--text); text-decoration: none; font-weight: 700; font-size: 15px;
}
.badge small { font-weight: 500; color: var(--muted); }
.badge.primary { background: linear-gradient(90deg, var(--orange), var(--yellow)); color: #1a1000; border-color: transparent; }
.badge.primary:hover { color: #000; filter: brightness(1.08); }

/* Sections */
section { padding: 72px 0; }
section.alt { background: var(--panel); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
h2 {
	font-size: clamp(28px, 4vw, 40px); line-height: 1.15; margin: 0 0 18px;
	font-style: italic; font-weight: 900; text-transform: uppercase; letter-spacing: 0.03em;
	color: var(--orange);
}
h3 { font-size: 20px; margin: 0 0 6px; color: #fff; }
.lead { font-size: 20px; max-width: 760px; color: #d4d8f0; }
.muted { color: var(--muted); }

.cols { display: grid; gap: 28px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); margin-top: 34px; }
.card { background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 22px; }
section.alt .card { background: #090b18; }
.card p { margin: 0; color: #c3c8e6; font-size: 16px; }

/* Screenshots */
.shots { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); margin-top: 30px; }
.shots a { display: block; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: #000; }
.shots a:hover { border-color: var(--orange); }
.shots img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; transition: transform 0.25s; }
.shots a:hover img { transform: scale(1.03); }

/* Game cards on the studio page */
.games { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); margin-top: 28px; }
.game { display: block; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; color: var(--text); text-decoration: none; }
a.game:hover { border-color: var(--orange); color: var(--text); }
.game img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.game-body { padding: 22px; }
.game-body h3 { font-size: 26px; font-style: italic; text-transform: uppercase; color: var(--orange); }
.game-body p { margin: 8px 0 0; color: #c3c8e6; }
.game.next { border-style: dashed; display: flex; align-items: center; }

/* Video */
.video { margin-top: 28px; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: #000; }
.video video { width: 100%; display: block; aspect-ratio: 16 / 9; }
.video-grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); margin-top: 28px; }
.video-grid .video { margin-top: 0; }
.video-caption { padding: 10px 14px; font-size: 15px; color: var(--muted); background: var(--panel); }

/* Lists and facts */
.facts { display: grid; grid-template-columns: max-content 1fr; gap: 8px 28px; margin: 26px 0 0; }
.facts dt { color: var(--muted); font-weight: 600; }
.facts dd { margin: 0; }
ul.ticks { padding-left: 0; list-style: none; }
ul.ticks li { padding-left: 26px; position: relative; margin: 8px 0; }
ul.ticks li::before { content: "\25B8"; position: absolute; left: 0; color: var(--orange); }

details { border-bottom: 1px solid var(--line); padding: 14px 0; }
summary { cursor: pointer; font-weight: 700; font-size: 18px; }
details p { margin: 10px 0 0; color: #c3c8e6; }

/* Text pages */
.doc { padding: 56px 0 80px; max-width: 820px; }
.doc h1 { font-size: clamp(32px, 5vw, 48px); margin: 0 0 6px; font-style: italic; text-transform: uppercase; color: var(--orange); }
.doc h2 { font-size: 24px; margin: 38px 0 10px; text-transform: none; font-style: normal; color: #fff; }
.doc p, .doc li { color: #d4d8f0; }
.doc table { border-collapse: collapse; width: 100%; margin: 14px 0; font-size: 15px; }
.doc th, .doc td { border: 1px solid var(--line); padding: 9px 12px; text-align: left; vertical-align: top; }
.doc th { background: var(--panel); }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 36px 0 48px; color: var(--muted); font-size: 15px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 18px 40px; justify-content: space-between; align-items: center; }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--yellow); }
.footer-logo { height: 56px; width: auto; }

@media (max-width: 640px) {
	.site-header .wrap { flex-direction: column; padding-top: 10px; padding-bottom: 10px; }
	.brand { order: 0; }
	.brand img { height: 60px; }
	nav ul { gap: 14px; justify-content: center; }
	section { padding: 52px 0; }
	.facts { grid-template-columns: 1fr; gap: 2px; }
	.facts dd { margin-bottom: 12px; }
}

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	.shots img { transition: none; }
}
