/* RockIce Studios — site styles */

@font-face { font-family: "Anton"; src: url("../fonts/Anton-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Archivo"; src: url("../fonts/Archivo-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Archivo"; src: url("../fonts/Archivo-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Archivo"; src: url("../fonts/Archivo-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("../fonts/IBMPlexMono-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("../fonts/IBMPlexMono-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }

:root {
  --ground: #0b0b0b;
  --ground-raised: #161616;
  --ink: #f5f4f0;
  --ink-muted: #9b9890;
  --hairline: #2c2c2a;
  --signal: #ff4f1f;
  --signal-text: #ff5a2c;
  --on-signal: #0b0b0b;
  --key-art: #262624;

  --font-display: Anton, "Archivo Narrow", Impact, sans-serif;
  --font-sans: Archivo, "Helvetica Neue", Arial, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;

  --gutter: clamp(16px, 3vw, 32px);
  --section-gap: clamp(64px, 7vw, 96px);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--ground); color: var(--ink); font: 400 16px/24px var(--font-sans); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--ink); }
a:hover { color: var(--signal-text); }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
[id] { scroll-margin-top: 16px; }

.skip { position: absolute; left: -9999px; top: 8px; z-index: 10; background: var(--ink); color: var(--ground); padding: 8px 12px; }
.skip:focus { left: 8px; }

/* Shared text styles */
.label { font: 500 12px/16px var(--font-mono); letter-spacing: .08em; text-transform: uppercase; }
.data { font: 400 13px/20px var(--font-mono); }
.muted { color: var(--ink-muted); }
.lede { margin: 0; font: 400 clamp(18px, 1.6vw, 22px)/1.5 var(--font-sans); max-width: 34em; text-wrap: pretty; }
.h2 { margin: 0; font: 400 clamp(44px, 6vw, 72px)/.92 var(--font-display); text-transform: uppercase; }

/* Layout */
.wrap { max-width: 1376px; margin: 0 auto; padding: 0 var(--gutter); }
.split { display: flex; flex-wrap: wrap; gap: 48px 24px; }
.split > .major { flex: 7 1 420px; min-width: 0; }
.split > .minor { flex: 5 1 320px; min-width: 0; }
.section { padding-bottom: var(--section-gap); }
.sec-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; border-top: 2px solid var(--ink); padding-top: 12px; color: var(--ink-muted); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 12px 24px; font: 500 14px/20px var(--font-sans); border: 2px solid var(--ink); border-radius: 0; background: transparent; color: var(--ink); text-decoration: none; cursor: pointer; transition: background-color 120ms linear, color 120ms linear, border-color 120ms linear; }
.btn:hover { background: var(--ink); color: var(--ground); }
.btn--primary { background: var(--signal); border-color: var(--signal); color: var(--on-signal); }
.btn--primary:hover { background: var(--ink); border-color: var(--ink); color: var(--ground); }
.btn--text { min-height: 0; padding: 0; border: 0; font: 500 12px/16px var(--font-mono); letter-spacing: .08em; text-transform: uppercase; }
.btn--text:hover { background: transparent; color: var(--signal-text); }

/* Nav */
.nav { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 32px; padding: 16px var(--gutter); border-bottom: 2px solid var(--ink); }
.nav__mark { display: block; width: 40px; height: 40px; color: var(--ink); flex: none; }
.nav__mark svg { display: block; width: 100%; height: 100%; }
.nav__links { display: flex; gap: 24px; margin: 0; padding: 0; list-style: none; }
.nav__links a { display: block; padding: 4px 0; text-decoration: none; border-bottom: 2px solid transparent; }
.nav__links a:hover { color: var(--ink); border-bottom-color: var(--signal-text); }
.nav__cta { margin-left: auto; }

/* Hero */
.hero { padding: clamp(40px, 7vw, 112px) 0 var(--section-gap); }
.hero__meta { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; color: var(--ink-muted); }
.hero__title { margin: 24px 0 0; font: 400 clamp(64px, 15vw, 216px)/.86 var(--font-display); text-transform: uppercase; letter-spacing: -.005em; }
.hero .split { margin-top: 48px; align-items: flex-end; }
.hero__copy { display: flex; flex-direction: column; gap: 32px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.feature { margin: 0; }
.feature__panel { aspect-ratio: 4 / 5; background: var(--signal); color: var(--on-signal); display: flex; flex-direction: column; justify-content: space-between; padding: 20px; }
.feature__panel--art { position: relative; display: block; padding: 0; background: var(--key-art); color: var(--ink); text-decoration: none; overflow: hidden; }
.feature__panel--art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 240ms ease-out; }
.feature__panel--art:hover { color: var(--ink); }
.feature__panel--art:hover img { transform: scale(1.02); }
.feature__text { position: absolute; left: 20px; bottom: 20px; display: flex; flex-direction: column; gap: 8px; }
.feature__name { font: 400 clamp(48px, 5vw, 72px)/.92 var(--font-display); text-transform: uppercase; }
.feature figcaption { margin-top: 12px; }

/* Game tiles */
.games-title { margin: 24px 0 48px; }
.tile { display: flex; flex-direction: column; border-top: 2px solid var(--ink); padding-top: 12px; }
.tile__meta { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 4px 12px; color: var(--ink-muted); }
.tile__art { margin-top: 12px; aspect-ratio: 16 / 9; background: var(--key-art); display: flex; align-items: flex-end; padding: 12px; color: var(--ink-muted); overflow: hidden; }
.tile__art--img { padding: 0; }
.tile__art--img img { width: 100%; height: 100%; object-fit: cover; }
.tile--link { color: inherit; text-decoration: none; }
.tile--link:hover { color: inherit; }
.tile--link:hover .tile__title { color: var(--signal-text); }
.tile__title { margin: 16px 0 0; font: 400 40px/.95 var(--font-display); text-transform: uppercase; }
.tile--lead .tile__title { font-size: clamp(40px, 4vw, 56px); }
.tile__pitch { margin: 8px 0 0; max-width: 46ch; text-wrap: pretty; }
.tile__data { margin-top: 12px; color: var(--ink-muted); }

/* Classified list */
.classified { margin: 64px 0 0; padding: 0; list-style: none; border-top: 2px solid var(--ink); }
.row { display: grid; grid-template-columns: 40px minmax(0, 1fr) minmax(0, 18rem) 9rem; align-items: baseline; gap: 8px 24px; padding: 20px 8px; border-bottom: 1px solid var(--hairline); }
.row__code { display: block; font: 400 40px/.95 var(--font-display); text-transform: uppercase; }
.row__bar { display: block; height: 10px; max-width: 100%; margin-top: 10px; background: var(--ink-muted); }
.row__status { display: inline-flex; align-items: center; gap: 6px; color: var(--signal-text); }
.dot { width: 8px; height: 8px; border-radius: 9999px; background: var(--signal); flex: none; }

/* Studio facts */
.facts { margin: 0; align-self: flex-end; border-top: 1px solid var(--hairline); }
.facts div { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--hairline); }
.facts dt { color: var(--ink-muted); }
.facts dd { margin: 0; text-align: right; }

/* Sign-up */
.signup { margin-bottom: var(--section-gap); background: var(--ground-raised); padding: clamp(24px, 4vw, 56px); display: flex; flex-wrap: wrap; gap: 32px 48px; align-items: flex-end; }
.signup__title { margin: 16px 0 12px; font: 400 clamp(36px, 5vw, 56px)/.95 var(--font-display); text-transform: uppercase; }
.signup form { display: flex; flex-direction: column; gap: 8px; }
.field { display: flex; flex-wrap: wrap; gap: 8px; }
.field input { flex: 1 1 200px; min-width: 0; height: 48px; padding: 0 16px; font: 400 16px/24px var(--font-sans); color: var(--ink); background: var(--ground); border: 2px solid var(--ink); border-radius: 0; }
.field input::placeholder { color: var(--ink-muted); }

/* Footer */
.footer { border-top: 6px solid var(--ink); padding: 48px var(--gutter) 32px; }
.footer__top, .footer__bottom { max-width: 1376px; margin: 0 auto; display: flex; flex-wrap: wrap; justify-content: space-between; }
.footer__top { gap: 40px; }
.footer__logo { width: min(420px, 100%); }
.footer__links { display: flex; flex-wrap: wrap; gap: 16px 32px; align-content: flex-start; margin: 0; padding: 0; list-style: none; }
.footer__links a { text-decoration: none; }
.footer__bottom { margin-top: 48px; gap: 8px; color: var(--ink-muted); }

/* Tablet */
@media (max-width: 960px) {
  .row { grid-template-columns: 40px minmax(0, 1fr) minmax(0, 14rem); }
  .row__status { display: none; }
}

/* Phone */
@media (max-width: 640px) {
  .nav { gap: 12px 16px; }
  .nav > nav { order: 3; width: 100%; border-top: 1px solid var(--hairline); padding-top: 12px; }
  .nav__links { justify-content: space-between; gap: 8px; }
  .feature__panel:not(.feature__panel--art) { aspect-ratio: 4 / 3; }
  .nav__cta { min-height: 40px; padding: 8px 16px; }
  .hero__copy .actions .btn { flex: 1 1 auto; }
  .games-title { margin-bottom: 32px; }
  .classified { margin-top: 48px; }
  .row { grid-template-columns: 32px minmax(0, 1fr); gap: 4px 12px; padding: 16px 4px; }
  .row__code { font-size: 32px; }
  .row__genre { grid-column: 2; }
  .facts div { padding: 12px 0; }
  .field .btn { flex: 1 1 100%; }
  .footer__bottom { flex-direction: column; }
}

/* Game page */
.game-hero { padding: clamp(32px, 5vw, 72px) 0 var(--section-gap); }
.crumbs { color: var(--ink-muted); }
.crumbs a { color: var(--ink-muted); text-decoration: none; }
.crumbs a:hover { color: var(--ink); }
.game-logo { width: min(640px, 100%); margin: 32px 0 0; }
.game-hero .split { margin-top: 40px; align-items: flex-end; }
.game-art { margin: 0; aspect-ratio: 16 / 9; background: var(--key-art); }
.game-art img { width: 100%; height: 100%; object-fit: cover; }
.game-art + figcaption { margin-top: 12px; }
.shots { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 24px; margin: 48px 0 0; padding: 0; list-style: none; }
.shots li:first-child { grid-column: 1 / -1; }
.shots figure { margin: 0; }
.shots a { display: block; aspect-ratio: 16 / 9; background: var(--key-art); }
.shots img { width: 100%; height: 100%; object-fit: cover; }
.shots figcaption { margin-top: 10px; }
@media (max-width: 640px) {
  .shots { grid-template-columns: 1fr; gap: 24px; }
}
.game-logo--pixel img { image-rendering: pixelated; }
