:root {
  --bg: #0b0c10;
  --surface: #14161c;
  --line: #262a33;
  --text: #e9ebf0;
  --muted: #9aa1ad;
  --accent: #2ee6e8;      /* the glitch cyan from the game's lettering */
  --accent-2: #eb2b4a;    /* its red */
  --radius: 10px;
  --wrap: 1120px;
  --gutter: 16px;
  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 Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
img, video { display: block; max-width: 100%; }
a { color: var(--accent); }
h1, h2, h3 { font-family: "Space Grotesk", Inter, sans-serif; line-height: 1.15; margin: 0 0 .5em; }
h2 { font-size: clamp(26px, 3vw, 34px); }
h3 { font-size: 22px; }
p { margin: 0 0 1em; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 720px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--accent); color: #000; padding: 8px 12px; border-radius: 6px; z-index: 10; }
.skip:focus { left: 8px; }
.eyebrow { color: var(--accent); font: 600 13px/1 Inter, sans-serif; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 14px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 5; background: rgba(11, 12, 16, .82); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.header-row { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.wordmark { display: flex; align-items: center; text-decoration: none; }
.wordmark img { width: auto; height: 40px; }
nav { display: flex; gap: 22px; }
nav a { color: var(--muted); text-decoration: none; font-weight: 500; font-size: 15px; }
nav a:hover, nav a:focus-visible { color: var(--text); }

/* Studio intro */
.intro { padding: 88px 0 40px; }
.intro h1 { font-size: clamp(34px, 5.4vw, 64px); letter-spacing: -.02em; max-width: 15em; margin: 0; }
.nowrap { white-space: nowrap; }

/* The game */
.game { padding: 40px 0 72px; }
.game-grid { display: grid; grid-template-columns: 5fr 7fr; gap: 48px; align-items: center; }
.game-logo { width: 100%; max-width: 460px; height: auto; image-rendering: pixelated; margin: 4px 0 14px; }
.tagline { font: 500 19px/1.4 "Space Grotesk", sans-serif; color: var(--text); }
.game-copy > p:not(.eyebrow):not(.tagline):not(.platform) { color: var(--muted); }
.platform { color: var(--muted); font-size: 14px; margin-top: 18px; }
.buttons { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 12px 20px; border-radius: 8px;
  border: 1px solid var(--line); background: var(--surface); color: var(--text);
  font-weight: 600; font-size: 15px; text-decoration: none; transition: border-color .15s, transform .15s;
}
.btn:hover, .btn:focus-visible { border-color: var(--accent); transform: translateY(-1px); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #041416; }
.btn.primary:hover, .btn.primary:focus-visible { background: #6ff0f1; }
.btn[aria-disabled="true"] { opacity: .55; pointer-events: none; }
.btn small { font-weight: 500; opacity: .8; }
.trailer { margin: 0; }
.trailer video { width: 100%; aspect-ratio: 16 / 9; background: #000; border-radius: var(--radius); border: 1px solid var(--line); }
.trailer figcaption { color: var(--muted); font-size: 13px; margin-top: 8px; }

/* Features */
.features { padding: 24px 0 40px; border-top: 1px solid var(--line); }
.feature { padding: 56px 0; }
.feature + .feature { border-top: 1px solid var(--line); }
.header-strip { width: 100%; max-width: 780px; aspect-ratio: 780 / 80; margin: 0 auto 28px; image-rendering: pixelated; border-radius: 4px; }
.feature-body { display: grid; grid-template-columns: 7fr 5fr; gap: 40px; align-items: center; }
.feature:nth-child(even) .feature-body { grid-template-columns: 5fr 7fr; }
.feature:nth-child(even) .clip { order: 2; }
.clip { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: #000; border-radius: var(--radius); border: 1px solid var(--line); }
.feature-text p { color: var(--muted); }

/* Screenshots */
.shots { padding: 72px 0; border-top: 1px solid var(--line); }
.shot-grid { list-style: none; padding: 0; margin: 24px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.shot-grid a { display: block; border-radius: 8px; overflow: hidden; border: 1px solid var(--line); }
.shot-grid img { width: 100%; height: auto; transition: transform .25s; }
.shot-grid a:hover img, .shot-grid a:focus-visible img { transform: scale(1.03); }

/* About, contact */
.about, .contact { padding: 72px 0; border-top: 1px solid var(--line); }
.about p, .contact p { color: var(--muted); font-size: 18px; }
.contact-links { list-style: none; padding: 0; margin: 20px 0 0; display: flex; flex-wrap: wrap; gap: 12px; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 28px 0; color: var(--muted); font-size: 14px; }
.footer-row { display: flex; justify-content: space-between; gap: 16px; }
.site-footer a { color: var(--muted); }

/* Screenshot viewer */
.lightbox { position: fixed; inset: 0; z-index: 20; background: rgba(0, 0, 0, .92); display: flex; align-items: center; justify-content: center; padding: 24px; }
.lightbox[hidden] { display: none; }
.lightbox img { max-width: 100%; max-height: 100%; border-radius: 6px; }
.lightbox-close { position: absolute; top: 12px; right: 16px; background: none; border: 0; color: #fff; font-size: 40px; line-height: 1; cursor: pointer; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

@media (max-width: 860px) {
  .game-grid, .feature-body, .feature:nth-child(even) .feature-body { grid-template-columns: 1fr; gap: 24px; }
  .feature:nth-child(even) .clip { order: 0; }
  .shot-grid { grid-template-columns: repeat(2, 1fr); }
  .intro { padding: 56px 0 24px; }
  .feature { padding: 40px 0; }
}
@media (max-width: 520px) {
  .wordmark img { height: 36px; }
  nav { gap: 12px; }
  nav a { font-size: 14px; }
  .shot-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .shot-grid img { transition: none; }
}

/* The two games at a glance */
.lineup { padding: 8px 0 56px; }
.lineup-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.game-card { position: relative; display: block; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); color: var(--text); text-decoration: none; background: var(--surface); }
.game-card > img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; opacity: .55; transition: opacity .2s, transform .3s; }
.game-card:hover > img, .game-card:focus-visible > img { opacity: .75; transform: scale(1.02); }
.card-body { position: absolute; inset: auto 0 0 0; display: flex; align-items: flex-end; gap: 16px; padding: 18px; background: linear-gradient(transparent, rgba(5, 6, 9, .92) 55%); }
.card-logo { width: 84px; height: auto; flex: none; }
.card-logo.wide { width: 150px; image-rendering: pixelated; }
.card-text { display: flex; flex-direction: column; gap: 2px; }
.card-text strong { font: 700 20px/1.2 "Space Grotesk", sans-serif; }
.card-text span { color: var(--muted); font-size: 14px; line-height: 1.4; }
.game-card.wto:hover, .game-card.wto:focus-visible { border-color: var(--blood); }
.game-card.nab:hover, .game-card.nab:focus-visible { border-color: var(--accent); }

/* Wipe Them Out!: its own colours, the blood red and bone white of its trailer */
:root { --blood: #d4362e; }
.wto-section { border-top: 1px solid var(--line); padding-top: 72px; }
.wto-section .eyebrow { color: var(--blood); }
.wto-logo { width: 220px; height: auto; margin: 6px 0 18px; }
.wto-section .tagline { font-family: "Saira Stencil One", "Space Grotesk", sans-serif; font-size: 26px; letter-spacing: .02em; text-transform: uppercase; }
.btn.primary.wto-btn { background: var(--blood); border-color: var(--blood); color: #fff; }
.btn.primary.wto-btn:hover, .btn.primary.wto-btn:focus-visible { background: #e8524a; border-color: #e8524a; }
.wto-section .btn:not(.wto-btn):hover, .wto-section .btn:not(.wto-btn):focus-visible { border-color: var(--blood); }
.wto-section .shot-grid { margin-top: 48px; }
#not-a-bug { border-top: 1px solid var(--line); padding-top: 72px; }

@media (max-width: 860px) {
  .lineup-grid { grid-template-columns: 1fr; }
  .wto-logo { width: 170px; }
}
