/* Firetail Studios — one stylesheet for the studio pages (cream) and game pages (night). */

:root {
  --cream: #fbf7ef;
  --paper: #ffffff;
  --ink: #161310;
  --ink-soft: #57504a;
  --ink-faint: #8a8279;
  --rule: #e6ded1;
  --flame: #e8571c;
  --flame-deep: #b8400f;
  --ember: #ffb02e;

  --night: #0d0a1c;
  --night-2: #17122e;
  --night-3: #221b40;
  --neon-pink: #ff2e88;
  --neon-cyan: #2ec8f0;
  --neon-yellow: #ffd23f;
  --navy: #1b1740;
  --moon: #fff4dc;
  --moon-soft: #c9c1dd;
  --moon-faint: #8f87ab;

  --display: "Archivo", system-ui, sans-serif;
  --comic: "Bangers", "Archivo", sans-serif;
  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--display);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
p { margin: 0; }
h1, h2, h3 { margin: 0; line-height: 1.05; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--cream); padding: 8px 14px; z-index: 50; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--flame); outline-offset: 3px; }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--cream) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--rule); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { width: 34px; height: auto; }
.brand span { font-weight: 800; font-stretch: 118%; letter-spacing: .16em; font-size: 15px; text-transform: uppercase; }
.nav { display: flex; gap: clamp(14px, 3vw, 30px); }
.nav a { text-decoration: none; font-weight: 600; font-size: 15px; letter-spacing: .02em; color: var(--ink-soft); padding: 6px 0; border-bottom: 2px solid transparent; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--flame); }
@media (max-width: 520px) {
  .brand span { font-size: 12.5px; letter-spacing: .12em; }
  .nav { gap: 14px; }
  .nav a { font-size: 14px; }
}

/* ---------- studio hero ---------- */
.studio-hero { padding: clamp(56px, 10vw, 120px) 0 clamp(40px, 6vw, 72px); }
.studio-hero .wrap { display: grid; grid-template-columns: 1.25fr .75fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.kicker { font-size: 13px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--flame-deep); }
.studio-hero h1 { font-size: clamp(42px, 7vw, 84px); font-weight: 800; font-stretch: 112%; letter-spacing: -.02em; margin: 14px 0 22px; text-wrap: balance; }
.studio-hero h1 em { font-style: normal; color: var(--flame); }
.studio-hero .lede { font-size: clamp(18px, 2vw, 21px); color: var(--ink-soft); max-width: 40ch; }
.studio-hero .logo { justify-self: center; width: min(100%, 360px); }
@media (max-width: 820px) {
  .studio-hero .wrap { grid-template-columns: 1fr; }
  .studio-hero .logo { order: -1; width: 200px; justify-self: start; }
}

.btn { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; font-size: 16px; padding: 14px 22px; border-radius: 999px; border: 2px solid var(--ink); background: var(--ink); color: var(--cream); transition: transform .15s ease, background .15s ease; }
.btn:hover { transform: translateY(-2px); background: var(--flame); border-color: var(--flame); }
.btn.ghost { background: transparent; color: var(--ink); }
.btn.ghost:hover { background: var(--ink); color: var(--cream); border-color: var(--ink); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }

/* ---------- sections ---------- */
.section { padding: clamp(56px, 8vw, 104px) 0; }
.section + .section { border-top: 1px solid var(--rule); }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 32px; flex-wrap: wrap; }
.section-head h2 { font-size: clamp(30px, 4.5vw, 48px); font-weight: 800; font-stretch: 112%; letter-spacing: -.01em; }
.section-head p { color: var(--ink-soft); }

/* featured game card on the studio page */
.game-card { position: relative; display: grid; grid-template-columns: 1.3fr 1fr; overflow: hidden; border-radius: 22px; background: var(--night); color: var(--moon); text-decoration: none; min-height: 420px; isolation: isolate; }
.game-card .media { position: relative; min-height: 260px; }
.game-card .media video, .game-card .media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.game-card .media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent 55%, var(--night) 100%); }
.game-card .body { padding: clamp(26px, 4vw, 48px); display: flex; flex-direction: column; justify-content: center; gap: 18px; }
.game-card .cta { margin-top: 8px; font-weight: 700; color: var(--neon-yellow); display: inline-flex; gap: 8px; align-items: center; }
.game-card:hover .cta span { transform: translateX(4px); }
.game-card .cta span { transition: transform .15s ease; }
.game-card p { color: var(--moon-soft); }
@media (max-width: 820px) {
  .game-card { grid-template-columns: 1fr; }
  .game-card .media { aspect-ratio: 16 / 9; min-height: 0; }
  .game-card .media::after { background: linear-gradient(180deg, transparent 60%, var(--night) 100%); }
}

/* the game's lockup, in its title colours */
.lockup { font-family: var(--comic); font-weight: 400; color: var(--moon); letter-spacing: .02em; line-height: .92; transform: rotate(-4deg); transform-origin: left center;
  text-shadow: 3px 3px 0 var(--navy), 6px 6px 0 var(--neon-pink); }
.game-card .lockup { font-size: clamp(44px, 6vw, 68px); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0; }
.chips li { font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 6px 12px; border-radius: 999px; border: 1px solid color-mix(in srgb, var(--moon) 30%, transparent); color: var(--moon); }
.chips li.live { border-color: var(--neon-yellow); color: var(--neon-yellow); }

/* about */
.about { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 6vw, 80px); }
.about h2 { font-size: clamp(30px, 4.5vw, 48px); font-weight: 800; font-stretch: 112%; }
.about .copy { display: flex; flex-direction: column; gap: 18px; font-size: 18px; color: var(--ink-soft); }
.about .copy strong { color: var(--ink); }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 22px 28px; margin-top: 10px; }
.facts dt { font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-faint); }
.facts dd { margin: 4px 0 0; font-weight: 700; color: var(--ink); }
@media (max-width: 820px) { .about { grid-template-columns: 1fr; } }

/* contact */
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.contact-card { background: var(--paper); border: 1px solid var(--rule); border-radius: 18px; padding: 26px; display: flex; flex-direction: column; gap: 8px; }
.contact-card h3 { font-size: 13px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-faint); }
.contact-card a { font-size: clamp(18px, 2.2vw, 22px); font-weight: 700; text-decoration: none; overflow-wrap: anywhere; }
.contact-card a:hover { color: var(--flame); }
.contact-card p { color: var(--ink-soft); font-size: 15px; }

/* footer */
.site-footer { padding: 36px 0 48px; border-top: 1px solid var(--rule); color: var(--ink-faint); font-size: 14px; }
.site-footer .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.site-footer a { color: var(--ink-soft); }

/* =================================================================
   Game pages: the night theme
   ================================================================= */
body.night { background: var(--night); color: var(--moon); }
body.night .site-header { background: color-mix(in srgb, var(--night) 82%, transparent); border-bottom-color: var(--night-3); }
body.night .brand img { filter: none; }
body.night .nav a { color: var(--moon-soft); }
body.night .nav a:hover, body.night .nav a[aria-current="page"] { color: var(--moon); border-bottom-color: var(--neon-pink); }
body.night :focus-visible { outline-color: var(--neon-yellow); }
body.night .section + .section { border-top-color: var(--night-3); }
body.night .section-head p { color: var(--moon-soft); }
body.night .site-footer { border-top-color: var(--night-3); color: var(--moon-faint); }
body.night .site-footer a { color: var(--moon-soft); }

.game-hero { position: relative; min-height: min(88vh, 820px); display: flex; align-items: flex-end; overflow: hidden; isolation: isolate; }
.game-hero video, .game-hero .poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.game-hero::after { content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(13,10,28,.25) 0%, rgba(13,10,28,.15) 40%, rgba(13,10,28,.92) 88%, var(--night) 100%); }
.game-hero .wrap { padding-top: 120px; padding-bottom: clamp(40px, 7vw, 80px); }
.game-hero .lockup { font-size: clamp(64px, 13vw, 168px); }
.game-hero .tagline { font-size: clamp(20px, 2.6vw, 28px); font-weight: 700; max-width: 30ch; margin: 30px 0 22px; text-wrap: balance; }
.game-hero .tagline em { font-style: normal; color: var(--neon-yellow); }

body.night .btn { background: var(--neon-yellow); border-color: var(--neon-yellow); color: var(--navy); }
body.night .btn:hover { background: var(--neon-pink); border-color: var(--neon-pink); color: #fff; }
body.night .btn.ghost { background: transparent; border-color: var(--moon); color: var(--moon); }
body.night .btn.ghost:hover { background: var(--moon); color: var(--navy); border-color: var(--moon); }

.night h2 { font-family: var(--comic); font-weight: 400; letter-spacing: .03em; font-size: clamp(40px, 6vw, 64px); color: var(--moon); text-shadow: 3px 3px 0 var(--neon-pink); }

/* rules: alternating still + copy */
.rules { display: flex; flex-direction: column; gap: clamp(40px, 7vw, 88px); }
.rule { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(22px, 4vw, 56px); align-items: center; }
.rule:nth-child(even) .shot { order: 2; }
.rule .shot { border-radius: 18px; overflow: hidden; border: 1px solid var(--night-3); box-shadow: 0 30px 60px -30px rgba(0,0,0,.8); }
.rule .num { font-family: var(--comic); font-size: 22px; letter-spacing: .08em; color: var(--neon-cyan); }
.rule h3 { font-size: clamp(26px, 3.4vw, 38px); font-weight: 800; font-stretch: 110%; margin: 8px 0 14px; }
.rule p { color: var(--moon-soft); font-size: 18px; }
.rule p strong { color: var(--moon); }
@media (max-width: 820px) {
  .rule { grid-template-columns: 1fr; }
  .rule:nth-child(even) .shot { order: 0; }
}

/* modes */
.modes { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.mode { background: var(--night-2); border: 1px solid var(--night-3); border-radius: 20px; padding: clamp(24px, 3.5vw, 36px); display: flex; flex-direction: column; gap: 12px; }
.mode .tag { align-self: flex-start; font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; padding: 5px 10px; border-radius: 999px; background: var(--neon-pink); color: #fff; }
.mode .tag.alt { background: transparent; border: 1px solid var(--neon-cyan); color: var(--neon-cyan); }
.mode h3 { font-family: var(--comic); font-weight: 400; font-size: clamp(34px, 4vw, 44px); letter-spacing: .03em; }
.mode p { color: var(--moon-soft); }
@media (max-width: 720px) { .modes { grid-template-columns: 1fr; } }

/* build facts */
.build { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border: 1px solid var(--night-3); border-radius: 20px; overflow: hidden; }
.build div { padding: 22px 24px; border-right: 1px solid var(--night-3); border-bottom: 1px solid var(--night-3); margin: 0 -1px -1px 0; }
.build dt { font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--moon-faint); }
.build dd { margin: 6px 0 0; font-size: 18px; font-weight: 700; }
@media (max-width: 820px) { .build { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .build { grid-template-columns: 1fr; } }

/* netcode band */
.netcode { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 5vw, 64px); align-items: start; }
.netcode .copy { display: flex; flex-direction: column; gap: 16px; color: var(--moon-soft); font-size: 18px; }
.netcode .copy strong { color: var(--moon); }
.netcode ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 12px; }
.netcode li { background: var(--night-2); border: 1px solid var(--night-3); border-left: 4px solid var(--neon-cyan); border-radius: 12px; padding: 14px 18px; }
.netcode li b { display: block; color: var(--moon); }
.netcode li span { color: var(--moon-soft); font-size: 15px; }
@media (max-width: 820px) { .netcode { grid-template-columns: 1fr; } }

/* gallery */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.gallery a { border-radius: 14px; overflow: hidden; border: 1px solid var(--night-3); display: block; }
.gallery img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; transition: transform .3s ease; }
.gallery a:hover img { transform: scale(1.04); }
@media (max-width: 820px) { .gallery { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .gallery { grid-template-columns: 1fr; } }

/* press */
.press { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(24px, 5vw, 64px); }
.press dl { margin: 0; display: grid; grid-template-columns: max-content 1fr; gap: 10px 24px; }
.press dt { color: var(--moon-faint); font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; padding-top: 3px; }
.press dd { margin: 0; font-weight: 600; }
.press .side { display: flex; flex-direction: column; gap: 14px; }
.press .side p { color: var(--moon-soft); }
.press .side .btn { align-self: flex-start; }
.press .side a.mail { font-size: clamp(18px, 2.2vw, 22px); font-weight: 700; color: var(--neon-yellow); text-decoration: none; overflow-wrap: anywhere; }
.press .side a.mail:hover { color: var(--neon-pink); }
@media (max-width: 820px) { .press { grid-template-columns: 1fr; } }
@media (max-width: 420px) { .press dl { grid-template-columns: 1fr; gap: 2px; } .press dd { margin-bottom: 10px; } }

@media (prefers-reduced-motion: reduce) {
  .game-hero video, .game-card video { display: none; }
  .btn, .gallery img, .game-card .cta span { transition: none; }
}
