:root {
  --terracotta: #d35131;
  --brick: #c84a2b;
  --terracotta-deep: #b5432a;
  --wall: #d54f30;
  --desk: #eca979;
  --rust: #a24a2b;
  --cream: #f9f1e0;
  --paper: #fcf8f0;
  --ink: #1e2a33;
  --ink-soft: #4b5661;
  --sky: #6cc6ee;
  --line: #e6dcc8;
  --radius: 18px;
  --shadow: 4px 4px 0 var(--ink);
  --max: 1140px;
  --font: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.0625rem/1.65 var(--font);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.1; margin: 0 0 .5em; letter-spacing: -.02em; }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.75rem); font-weight: 800; }
h3 { font-size: 1.35rem; font-weight: 800; }
p { margin: 0 0 1em; }
.icon { width: 1.15em; height: 1.15em; flex: none; }

.skip-link {
  position: absolute; left: 1rem; top: -3rem; z-index: 100;
  background: var(--ink); color: var(--cream); padding: .5rem 1rem; border-radius: 8px;
}
.skip-link:focus { top: 1rem; }
:focus-visible { outline: 3px solid var(--sky); outline-offset: 3px; }

.container { width: min(var(--max), 100% - 2rem); margin-inline: auto; }
.section { padding-block: clamp(4rem, 9vw, 7rem); }
.lede { font-size: 1.2rem; color: var(--ink-soft); max-width: 40rem; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: .55rem;
  padding: .8rem 1.35rem; border: 2px solid var(--ink); border-radius: 999px;
  font: 800 1rem/1 var(--font); text-decoration: none; cursor: pointer;
  background: var(--brick); color: #fff; box-shadow: 3px 3px 0 var(--ink);
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn:hover { transform: translate(-2px, -2px); box-shadow: 5px 5px 0 var(--ink); background: var(--terracotta-deep); }
.btn:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }
.btn--light { background: var(--cream); color: var(--ink); }
.btn--light:hover { background: #fff; }
.btn--ink { background: var(--ink); color: var(--cream); }
.btn--ink:hover { background: #2c3b47; }
.btn-row { display: flex; flex-wrap: wrap; gap: .85rem; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 68px; }
.brand { display: flex; align-items: center; gap: .65rem; text-decoration: none; font-weight: 800; font-size: 1.15rem; letter-spacing: -.01em; }
.brand img { width: 40px; height: 40px; border-radius: 50%; border: 2px solid var(--ink); }
.brand span { white-space: nowrap; }
@media (max-width: 420px) { .brand { font-size: 1rem; gap: .5rem; } .brand img { width: 34px; height: 34px; } }
.nav { display: flex; align-items: center; gap: .3rem; }
.nav a:not(.btn) {
  text-decoration: none; font-weight: 600; padding: .45rem .7rem; border-radius: 8px; color: var(--ink-soft);
}
.nav a:not(.btn):hover, .nav a[aria-current="page"] { color: var(--ink); background: var(--cream); }
.nav .social { display: inline-flex; padding: .5rem; }
.nav .social .icon { width: 1.25rem; height: 1.25rem; }
.nav .btn { padding: .6rem 1rem; font-size: .95rem; margin-left: .4rem; }
@media (max-width: 760px) {
  .nav .nav-text { display: none; }
  .nav .btn span { display: none; }
  .nav .btn { padding: .6rem; }
}

/* Home hero: the channel-banner desk scene, with real gameplay playing on the left monitor.
   The scene keeps the art's 2400x1360 ratio so the screen insets line up; when the viewport is wider
   than the height-capped scene, the wall and desk colours continue out to the edges (desk line = 72.9%). */
.hero { background: var(--cream); border-bottom: 2px solid var(--ink); overflow-x: clip; }
/* Height-capped so the art (top) and the title card (below, ~19rem) fit in one screen together. */
.scene {
  position: relative; container-type: inline-size; margin-inline: auto;
  width: min(100%, max(calc((100svh - 68px - 19rem) * 2400 / 1360), 520px));
}
.scene-frame { position: relative; isolation: isolate; }
/* Wall and desk tiles cut from the art itself (1920px source), scaled with the scene so the grain matches. */
.scene-frame::before, .scene-frame::after { content: ""; position: absolute; z-index: -1; }
.scene-frame::before {
  inset: 0 -100vw 27.1%;
  background: var(--wall) url("/img/brand/wall-tile.webp") 0 0 / 13.333cqi 10.417cqi repeat;
}
.scene-frame::after {
  inset: 72.9% -100vw 0;
  background: var(--desk) url("/img/brand/desk-tile.webp") 0 0 / 13.333cqi 3.75cqi repeat;
}
.scene-art { width: 100%; }
.scene-screen {
  position: absolute; left: 11.198%; top: 12.408%; width: 43.958%; height: 43.29%;
  overflow: hidden; background: var(--sky);
}
.scene-video { width: 100%; height: 100%; object-fit: cover; display: block; }
.screen-toggle {
  position: absolute; right: .5rem; bottom: .5rem;
  font: 700 clamp(.65rem, 1.1cqi, .8rem)/1 var(--font); padding: .45em .8em; border: 0; border-radius: 999px; cursor: pointer;
  background: rgb(30 42 51 / .8); color: var(--cream);
}
/* The title card always sits centred below the art, at every screen width. */
.hero-card {
  text-align: center; padding: 1.5rem 1.25rem 2rem; background: var(--cream);
  border-top: 2px solid var(--ink);
  border-image: linear-gradient(var(--ink) 0 0) 1 / 2px 0 0 / 0 100vw;
}
.hero-mascot {
  width: 72px; aspect-ratio: 1; margin: 0 auto .75rem;
  border-radius: 50%; border: 3px solid var(--ink); background: var(--terracotta);
}
.hero h1 { font-size: clamp(2.2rem, 7vw, 3.4rem); font-weight: 800; margin-bottom: .2em; }
.hero .tagline { font-size: 1.1rem; font-weight: 600; color: var(--rust); margin: 0 auto 1.2rem; max-width: 48rem; }
.hero-card .btn-row { justify-content: center; }

/* Game cards */
.games-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 1.75rem; margin-top: 2.5rem; }
@media (max-width: 860px) { .games-grid { grid-template-columns: 1fr; } }
.card {
  background: #fff; border: 2px solid var(--ink); border-radius: var(--radius);
  box-shadow: var(--shadow); overflow: hidden; display: flex; flex-direction: column;
}
.card-media { aspect-ratio: 16 / 9; object-fit: cover; width: 100%; border-bottom: 2px solid var(--ink); }
.card-body { padding: 1.5rem 1.6rem 1.75rem; display: flex; flex-direction: column; gap: .4rem; flex: 1; }
.card-body p { color: var(--ink-soft); }
.card-body .btn-row { margin-top: auto; }
.badge {
  display: inline-flex; align-items: center; gap: .4rem; align-self: flex-start;
  font-size: .9rem; font-weight: 700;
  padding: .3rem .7rem; border-radius: 999px; background: var(--cream); border: 1.5px solid var(--ink);
}
.badge::before { content: ""; width: .5rem; height: .5rem; border-radius: 50%; background: var(--terracotta); }
.card--soon {
  background: var(--cream); border-style: dashed; box-shadow: none;
  align-items: center; justify-content: center; text-align: center; padding: 2.5rem 2rem;
}
.card--soon img { width: 110px; border-radius: 50%; border: 2px solid var(--ink); filter: grayscale(.85) contrast(.9); opacity: .75; margin-bottom: 1.25rem; }
.card--soon p { color: var(--ink-soft); max-width: 22rem; }

/* Video blocks */
.video {
  position: relative; width: 100%; aspect-ratio: 16 / 9;
  border: 2px solid var(--ink); border-radius: var(--radius); box-shadow: var(--shadow);
  background: var(--ink); overflow: hidden;
}
.video--short { aspect-ratio: 9 / 16; max-width: 340px; }
.video iframe, .video .video-poster { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-poster { padding: 0; cursor: pointer; background: var(--ink); }
.video-poster img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease, opacity .2s ease; }
.video-poster:hover img { transform: scale(1.03); opacity: .9; }
.play {
  position: absolute; left: 50%; top: 50%; translate: -50% -50%;
  width: 84px; height: 84px; border-radius: 50%;
  background: var(--terracotta); border: 3px solid var(--ink); box-shadow: 3px 3px 0 var(--ink);
  display: grid; place-items: center; transition: transform .15s ease;
}
.play::after { content: ""; margin-left: 6px; border-style: solid; border-width: 14px 0 14px 24px; border-color: transparent transparent transparent #fff; }
.video-poster:hover .play { transform: scale(1.08); }
.video--short .play { width: 68px; height: 68px; }

.latest { margin-top: 2rem; display: grid; grid-template-columns: minmax(0, 340px) 1fr; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; }
.latest.is-wide { grid-template-columns: 1.4fr 1fr; }
.latest-info h3 { font-size: clamp(1.5rem, 2.6vw, 2rem); }
.latest-meta { color: var(--ink-soft); font-weight: 600; margin-bottom: 1.4rem; }
.latest-loading { min-height: 200px; display: grid; place-items: center; color: var(--ink-soft); }
@media (max-width: 760px) {
  .latest, .latest.is-wide { grid-template-columns: 1fr; }
  .latest .video--short { margin-inline: auto; }
}

/* Game page */
.game-hero { background: var(--cream); border-bottom: 2px solid var(--ink); padding-block: clamp(3rem, 7vw, 5rem) clamp(3rem, 6vw, 4.5rem); }
.game-hero h1 { font-size: clamp(2.5rem, 6vw, 4.5rem); font-weight: 800; margin-block: .75rem .3rem; }
.game-hero .lede { margin-bottom: 1.75rem; }
.steam-status { display: flex; align-items: center; gap: .5rem; font-size: .95rem; color: var(--ink-soft); margin-top: 1rem; }
.trailer-wrap { margin-top: clamp(2.5rem, 5vw, 3.5rem); }
.section--tinted { background: var(--cream); border-block: 2px solid var(--ink); }

.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-top: 2rem; }
@media (max-width: 900px) { .gallery { grid-template-columns: repeat(2, 1fr); } }
.gallery figure { margin: 0; }
.gallery button {
  all: unset; cursor: zoom-in; display: block; border-radius: 14px; overflow: hidden;
  border: 2px solid var(--ink); background: #fff; box-shadow: 3px 3px 0 var(--ink);
  transition: transform .15s ease, box-shadow .15s ease;
}
.gallery button:hover { transform: translate(-2px, -2px); box-shadow: 5px 5px 0 var(--ink); }
.gallery button:focus-visible { outline: 3px solid var(--sky); outline-offset: 3px; }
.gallery img { aspect-ratio: 16 / 9; object-fit: cover; width: 100%; }
.gallery figcaption { padding: .6rem .8rem; font-size: .92rem; font-weight: 600; line-height: 1.3; }
.gallery .wide { grid-column: span 2; grid-row: span 2; }
.gallery .wide img { aspect-ratio: auto; height: 100%; min-height: 0; flex: 1; }
.gallery .wide button { display: flex; flex-direction: column; height: 100%; }
@media (max-width: 900px) { .gallery .wide { grid-row: span 1; } }

.lightbox {
  border: 2px solid var(--ink); border-radius: var(--radius); padding: 0; background: var(--ink);
  width: min(1200px, 100% - 2rem); max-height: calc(100% - 2rem); overflow: hidden;
}
.lightbox::backdrop { background: rgb(20 26 31 / .82); }
.lightbox img { width: 100%; height: auto; max-height: calc(100vh - 7rem); object-fit: contain; }
.lightbox-bar { display: flex; align-items: center; gap: .75rem; padding: .7rem 1rem; color: var(--cream); font-weight: 600; }
.lightbox-bar p { margin: 0 auto 0 0; }
.lightbox-bar button {
  font: 800 1rem/1 var(--font); color: var(--ink); background: var(--cream);
  border: 2px solid var(--cream); border-radius: 999px; padding: .5rem .9rem; cursor: pointer;
}

/* About */
.about { display: grid; grid-template-columns: 220px 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.about img { width: 100%; border-radius: 50%; border: 3px solid var(--ink); box-shadow: var(--shadow); background: var(--terracotta); }
.about p { font-size: 1.2rem; max-width: 42rem; }
@media (max-width: 680px) { .about { grid-template-columns: 1fr; text-align: center; } .about img { width: 160px; margin-inline: auto; } .about p { margin-inline: auto; } }

/* Community band */
.community { background: var(--brick); color: #fff; border-block: 2px solid var(--ink); }
.community .container { display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
.community h2 { margin-bottom: .3rem; }
.community p { margin: 0; font-size: 1.15rem; opacity: .95; max-width: 34rem; }

/* Footer */
.site-footer { background: var(--ink); color: var(--cream); padding-block: 3rem 2.5rem; }
.site-footer .container { display: flex; justify-content: space-between; gap: 2rem; flex-wrap: wrap; align-items: flex-start; }
.site-footer .brand img { border-color: var(--cream); }
.site-footer p { margin: .75rem 0 0; color: #c8cdd2; font-size: .95rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; list-style: none; padding: 0; margin: 0; }
.footer-links a { display: inline-flex; align-items: center; gap: .45rem; text-decoration: none; font-weight: 600; }
.footer-links a:hover { color: #fff; text-decoration: underline; }
.footer-legal { width: 100%; border-top: 1px solid #34434f; padding-top: 1.25rem; margin-top: .5rem; font-size: .88rem; color: #9aa4ad; }

/* 404 */
.not-found { min-height: 70vh; display: grid; place-items: center; text-align: center; }
.not-found img { width: 140px; margin: 0 auto 1.5rem; border-radius: 50%; border: 3px solid var(--ink); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}
