@font-face {
  font-family: "Space Grotesk";
  src: url("assets/space-grotesk.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
}

@font-face {
  font-family: "Barlow Condensed";
  src: url("assets/barlow-condensed-bold.woff2") format("woff2");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

:root {
  color-scheme: dark;
  font-family: "Space Grotesk", system-ui, sans-serif;
  background: #0b0e15;
  color: #fff8e9;
  --muted: #b2bbc9;
  --line: #ffffff23;
  --gold: #ffcf62;
}

* { box-sizing: border-box; }
body { margin: 0; min-height: 100svh; }
h1, h2, p, ul { margin: 0; }
a { color: inherit; }
a:focus-visible { outline: 3px solid var(--gold); outline-offset: 5px; }

.shell {
  width: min(1320px, calc(100% - 80px));
  margin-inline: auto;
  padding-bottom: 44px;
}

.masthead {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 74px;
  gap: 16px;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  font-size: 1.55rem;
  font-weight: 700;
  letter-spacing: -.065em;
}

.brand img { display: block; }

.social {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding-inline: 12px;
  border-radius: 5px;
  font-size: .9rem;
  font-weight: 600;
  text-decoration: none;
}

.social:hover { background: #ffffff13; }

.catalog-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-block: 23px 14px;
}

.catalog-heading h1 {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: .84rem;
  font-weight: 700;
  letter-spacing: .095em;
  text-transform: uppercase;
}

.catalog-heading h1::before {
  content: "";
  width: 6px;
  height: 6px;
  background: var(--gold);
  rotate: 45deg;
}

.catalog-heading p { color: var(--muted); font-size: .83rem; }

.games {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 470px), 1fr));
  gap: 18px;
  padding: 0;
  list-style: none;
}

.games > li { min-width: 0; }

.game {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  min-height: clamp(480px, 69svh, 690px);
  height: 100%;
  overflow: hidden;
  border: 1px solid #ffffff32;
  border-radius: 14px;
  background: #0b152b;
  text-decoration: none;
  transition: border-color .2s ease;
}

.art { position: absolute; inset: 0; z-index: -2; }
.art img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 76% center;
  transition: scale .35s ease;
}

.game::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background:
    linear-gradient(90deg, #060d20ed 0%, #060d20cc 22%, #060d2052 45%, transparent 72%),
    linear-gradient(0deg, #070b16ab, transparent 35%);
}

.game-copy { padding: clamp(32px, 5.5vw, 82px); width: min(100%, 640px); }

.game h2 {
  font-family: "Barlow Condensed", "Space Grotesk", sans-serif;
  font-size: clamp(4.4rem, 9.1vw, 9rem);
  font-weight: 700;
  line-height: .82;
  letter-spacing: -.017em;
  text-transform: uppercase;
  text-wrap: nowrap;
}

.game p {
  max-width: 27ch;
  margin-block: 23px 29px;
  color: #d6dce6;
  font-size: clamp(1rem, 1.55vw, 1.2rem);
  line-height: 1.5;
}

.play {
  display: inline-flex;
  justify-content: space-between;
  align-items: center;
  gap: 26px;
  min-height: 52px;
  padding: 11px 16px;
  border-radius: 6px;
  background: var(--gold);
  color: #161008;
  font-size: 1rem;
  font-weight: 700;
  transition: background .2s ease;
}

.play span { font-size: 1.3em; line-height: 1; }
.game:hover { border-color: #ffcf62a8; }
.game:hover .play { background: #ffe098; }
.game:hover .art img { scale: 1.024; }
.game:active .play { background: #ebba4c; }

.games:has(> li + li) .game { min-height: 510px; align-items: end; }
.games:has(> li + li) .game-copy { padding: 26px; }
.games:has(> li + li) .game h2 { font-size: clamp(3.5rem, 6vw, 6rem); }
.games:has(> li + li) .game::after {
  background: linear-gradient(0deg, #060d20 2%, #060d20d9 24%, #060d2026 68%, transparent);
}

@media (max-width: 920px) {
  .shell { width: calc(100% - 48px); }
}

@media (max-width: 780px) {
  .shell { width: calc(100% - 28px); padding-bottom: 28px; }
  .masthead { min-height: 60px; }
  .brand { font-size: 1.35rem; gap: 8px; }
  .brand img { width: 30px; height: 30px; }
  .social { padding-inline: 6px; }
  .catalog-heading { padding-block: 17px 11px; }
  .catalog-heading h1 { font-size: .76rem; gap: 7px; }
  .catalog-heading p { font-size: .73rem; }

  .game, .games:has(> li + li) .game {
    display: block;
    min-height: 0;
    border-radius: 11px;
    background: #0c1528;
  }

  .art { display: block; inset: 0 0 auto; height: clamp(235px, 72vw, 355px); }
  .art img { object-position: center 48%; }
  .game::after, .games:has(> li + li) .game::after {
    inset: 0 0 auto;
    height: clamp(235px, 72vw, 355px);
    background: linear-gradient(0deg, #0c1528 0%, #0c152800 38%);
  }

  .game-copy, .games:has(> li + li) .game-copy {
    width: 100%;
    padding: calc(clamp(235px, 72vw, 355px) - 31px) 17px 18px;
  }

  .game h2, .games:has(> li + li) .game h2 {
    font-size: clamp(3.05rem, 12vw, 5.2rem);
    line-height: .85;
  }

  .game p { margin-block: 13px 17px; max-width: 34ch; font-size: .96rem; }
  .play { width: 100%; min-height: 47px; }
}

@media (prefers-reduced-motion: reduce) {
  .game, .art img, .play { transition: none; }
  .game:hover .art img { scale: 1; }
}

/* Studio navigation and editorial sections */
.brand { text-decoration: none; }
.masthead nav, .footer nav { display: flex; align-items: center; gap: clamp(10px, 2vw, 27px); }
.masthead nav a, .footer nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding-inline: 5px;
  text-decoration: none;
  color: var(--muted);
  gap: 6px;
  font-size: .92rem;
  font-weight: 600;
}
.masthead nav a:hover, .footer nav a:hover { color: var(--gold); }
.skip-link { position: absolute; top: 10px; left: 10px; z-index: 2; padding: 12px; background: var(--gold); color: #161008; translate: 0 -200%; }
.skip-link:focus { translate: 0; }
#games, #studio { scroll-margin-top: 18px; }
.game-entry { display: flex; flex-direction: column; }
.game h1 {
  font-family: "Barlow Condensed", "Space Grotesk", sans-serif;
  font-size: clamp(4.4rem, 9.1vw, 9rem);
  font-weight: 700;
  line-height: .82;
  letter-spacing: -.017em;
  text-transform: uppercase;
  text-wrap: nowrap;
}
.details-link, .back-link {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 9px;
  min-height: 44px;
  font-weight: 700;
  text-decoration: none;
}
.details-link { margin-top: 6px; padding-inline: 3px; }
.details-link span, .back-link span { color: var(--gold); }
.details-link:hover, .back-link:hover { color: var(--gold); }
.catalog-heading:has(.back-link) { padding-block: 13px 8px; }
.studio {
  display: grid;
  grid-template-columns: minmax(150px, .75fr) 1.45fr;
  gap: clamp(25px, 7vw, 105px);
  align-items: center;
  margin-block: clamp(37px, 6vw, 85px) 0;
  padding-block: clamp(33px, 6vw, 78px);
  padding-inline: clamp(20px, 8vw, 120px);
  border-block: 1px solid var(--line);
  background: radial-gradient(ellipse at 5% 10%, #171d2b 0, transparent 63%);
}
.studio-mark { display: grid; place-items: center; min-height: 210px; }
.studio-mark img { width: clamp(90px, 13vw, 174px); height: auto; }
.eyebrow {
  color: var(--gold);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
}
.studio h2, .game-guide h2 {
  font-family: "Barlow Condensed", "Space Grotesk", sans-serif;
  font-size: clamp(2.75rem, 6vw, 5.75rem);
  line-height: .94;
  margin-block: 10px 16px;
  letter-spacing: -.01em;
}
.studio h2 + p, .game-guide p:not(.eyebrow) { max-width: 52ch; color: var(--muted); line-height: 1.65; }
.game-guide { padding-block: clamp(37px, 6vw, 76px); border-bottom: 1px solid var(--line); }
.guide-intro { margin-bottom: 29px; }
.play-guide { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; padding-left: 0; list-style: none; }
.play-guide li { border-top: 1px solid var(--line); padding: 16px 14px 0 0; }
.play-guide h3 { margin: 0 0 7px; font-size: 1.2rem; }
.footer {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  padding-block: 24px 0;
  color: var(--muted);
}
.footer .brand { width: fit-content; color: #fff8e9; }
.footer p { margin-top: 7px; font-size: .83rem; }
.footer small { justify-self: end; white-space: nowrap; }
@media (max-width: 780px) {
  .game h1 { font-size: clamp(3.05rem, 12vw, 5.2rem); line-height: .85; }
  .studio { grid-template-columns: 1fr; gap: 18px; }
  .studio-mark { display: none; }
  .footer { grid-template-columns: 1fr; gap: 4px; align-items: start; }
  .footer small { justify-self: start; }
  .play-guide { grid-template-columns: 1fr; }
}
