:root {
  color-scheme: light;
  --fjord-blue: #1076af;
  --paper: #f5f2ea;
  --paper-bright: #fffdf8;
  --ink: #142530;
  --muted: #53636c;
  --line: color-mix(in srgb, var(--ink) 18%, transparent);
  --accent: var(--fjord-blue);
  --accent-ink: #ffffff;
  --max: 78rem;
  --radius: 1.4rem;
  --shadow: 0 1.5rem 4rem rgb(18 33 43 / 12%);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
}

:root[data-theme="waystation"] {
  --paper: #fef7e7;
  --paper-bright: #fffaf0;
  --ink: #272a27;
  --muted: #59615a;
  --accent: #315f63;
  --accent-ink: #fef7e7;
}

:root[data-theme="burnout"] {
  color-scheme: dark;
  --paper: #161416;
  --paper-bright: #211e21;
  --ink: #fff8ef;
  --muted: #c9bec5;
  --line: rgb(255 255 255 / 18%);
  --accent: #d0ff47;
  --accent-ink: #19131a;
  --shadow: 0 1.5rem 4rem rgb(0 0 0 / 36%);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  overflow-x: clip;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-underline-offset: 0.2em;
  text-decoration-thickness: 0.08em;
}

a:hover {
  text-decoration-thickness: 0.14em;
}

a:focus-visible,
summary:focus-visible {
  border-radius: 0.2rem;
  outline: 0.2rem solid var(--accent);
  outline-offset: 0.25rem;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 0.98;
  text-wrap: balance;
}

h1 {
  font-size: clamp(3.25rem, 9vw, 8.5rem);
  margin-bottom: 1.5rem;
}

h2 {
  font-size: clamp(2.25rem, 5vw, 4.8rem);
}

h3 {
  font-size: clamp(2rem, 4vw, 3.4rem);
}

.shell {
  margin-inline: auto;
  max-width: var(--max);
  padding-inline: clamp(1.25rem, 4vw, 3rem);
}

.preview-note {
  background: #f4c84c;
  color: #211d10;
  font-size: 0.76rem;
  font-weight: 750;
  letter-spacing: 0.08em;
  padding: 0.45rem 1rem;
  text-align: center;
  text-transform: uppercase;
}

.skip-link {
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 800;
  left: 1rem;
  padding: 0.7rem 1rem;
  position: fixed;
  top: 0.5rem;
  transform: translateY(-150%);
  z-index: 20;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  background: color-mix(in srgb, var(--paper) 90%, transparent);
  border-bottom: 1px solid var(--line);
  position: relative;
  z-index: 10;
}

.site-header__inner,
.site-footer__inner {
  align-items: center;
  display: flex;
  justify-content: space-between;
  min-height: 5rem;
}

.wordmark {
  align-items: center;
  display: inline-flex;
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-decoration: none;
  text-transform: uppercase;
}

.site-header nav,
.site-footer__links {
  display: flex;
  flex-wrap: wrap;
  font-size: 0.88rem;
  font-weight: 700;
  gap: clamp(1rem, 3vw, 2rem);
}

.site-header nav a,
.site-footer a {
  text-decoration: none;
}

.eyebrow {
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.15em;
  margin-bottom: 1rem;
  text-transform: uppercase;
}

.lede {
  color: var(--muted);
  font-size: clamp(1.25rem, 2.2vw, 1.8rem);
  line-height: 1.45;
  max-width: 38rem;
}

.button-row {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 2rem;
}

.button {
  align-items: center;
  border: 0.12rem solid var(--accent);
  border-radius: 999px;
  display: inline-flex;
  font-size: 0.86rem;
  font-weight: 800;
  justify-content: center;
  min-height: 3.2rem;
  padding: 0.7rem 1.4rem;
  text-decoration: none;
}

.button--primary {
  background: var(--accent);
  color: var(--accent-ink);
}

.button--secondary {
  background: transparent;
  color: var(--ink);
}

.button:hover {
  box-shadow: 0 0.5rem 1.5rem color-mix(in srgb, var(--accent) 25%, transparent);
  transform: translateY(-0.1rem);
}

.text-link {
  color: var(--accent);
  font-weight: 800;
}

.availability {
  color: var(--muted);
  font-size: 0.83rem;
  font-weight: 750;
  padding: 0.7rem 0;
}

.availability--hero {
  border-left: 0.2rem solid var(--accent);
  padding-left: 0.9rem;
}

.studio-hero {
  overflow: hidden;
  position: relative;
}

.studio-hero::after {
  background: var(--fjord-blue);
  border-radius: 50%;
  content: "";
  filter: blur(0);
  height: min(48vw, 42rem);
  opacity: 0.08;
  position: absolute;
  right: -15vw;
  top: -18vw;
  width: min(48vw, 42rem);
  z-index: -1;
}

.studio-hero__inner {
  align-items: center;
  display: grid;
  gap: clamp(3rem, 8vw, 8rem);
  grid-template-columns: minmax(14rem, 0.72fr) 1.28fr;
  min-height: clamp(38rem, 78vh, 52rem);
  padding-block: 5rem;
}

.studio-hero__inner > *,
.game-hero__inner > *,
.game-intro__grid > *,
.press-hero__inner > *,
.press-grid > *,
.game-card > * {
  min-width: 0;
}

.studio-hero__logo {
  box-shadow: var(--shadow);
  transform: rotate(-2.4deg);
  width: min(100%, 29rem);
}

.studio-hero h1 {
  font-size: clamp(3.5rem, 8vw, 7.6rem);
}

.games-section,
.gallery-section,
.press-body {
  padding-block: clamp(5rem, 10vw, 9rem);
}

.games-section {
  background: var(--ink);
  color: var(--paper);
}

.section-heading {
  margin-bottom: clamp(2.5rem, 5vw, 4.5rem);
  max-width: 52rem;
}

.section-heading h2 {
  margin-bottom: 0;
}

.game-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.game-card {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  color: var(--card-ink, #fff8ef);
  display: grid;
  min-height: 44rem;
  overflow: hidden;
}

.game-card--burnout {
  --accent: #d0ff47;
  --accent-ink: #19131a;
  --card-ink: #fff8ef;
  --card-muted: rgb(255 248 239 / 76%);
  background: #21151d;
}

.game-card--waystation {
  --accent: #315f63;
  --accent-ink: #fef7e7;
  --card-ink: #272a27;
  --card-muted: #59615a;
  background: #fef7e7;
}

.game-card__art {
  align-items: center;
  display: flex;
  justify-content: center;
  min-height: 19rem;
  overflow: hidden;
  padding: 2.5rem;
  position: relative;
}

.game-card--burnout .game-card__art {
  background: linear-gradient(135deg, #21151d 35%, #3a1830);
}

.game-card--waystation .game-card__art {
  background: linear-gradient(135deg, #fef7e7, #eee1c4);
}

.game-card--waystation .game-card__art::before {
  background: rgb(49 95 99 / 14%);
  clip-path: polygon(30% 0, 70% 0, 100% 30%, 100% 70%, 70% 100%, 30% 100%, 0 70%, 0 30%);
  content: "";
  height: 20rem;
  position: absolute;
  right: -5rem;
  top: -8rem;
  width: 20rem;
}

.game-card__art img {
  max-height: 15rem;
  object-fit: contain;
  position: relative;
  width: min(100%, 31rem);
  z-index: 1;
}

.game-card--waystation .game-card__art img {
  filter: drop-shadow(0 1rem 1rem rgb(39 42 39 / 18%));
}

.game-card--waystation .eyebrow {
  color: #b4782c;
}

.game-card__body {
  align-self: end;
  padding: clamp(1.7rem, 4vw, 3rem);
}

.game-card__body > p:not(.eyebrow) {
  color: var(--card-muted);
  font-size: 1.1rem;
  max-width: 33rem;
}

.game-card .button--secondary {
  color: var(--card-ink);
}

.game-card .availability {
  color: var(--card-muted);
}

.studio-note {
  padding-block: clamp(5rem, 12vw, 10rem);
}

.studio-note__inner {
  display: grid;
  gap: 2rem;
  grid-template-columns: 0.35fr 1fr;
}

.studio-note__inner > p:last-child {
  font-size: clamp(2rem, 5vw, 4.3rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.05;
}

.game-hero {
  overflow: hidden;
  position: relative;
}

.game-hero::before,
.game-hero::after {
  content: "";
  position: absolute;
  z-index: 0;
}

.game-hero--project-burnout::before {
  background: url("/assets/project-burnout/web/halftone-edge-pink.webp") center / contain no-repeat;
  bottom: -20rem;
  height: min(78vw, 60rem);
  left: -23rem;
  opacity: 0.32;
  width: min(78vw, 60rem);
}

.game-hero--project-burnout::after {
  background: url("/assets/project-burnout/web/halftone-edge-indigo.webp") center / contain no-repeat;
  height: min(72vw, 55rem);
  opacity: 0.28;
  right: -22rem;
  top: -23rem;
  width: min(72vw, 55rem);
}

.game-hero--waystation-warden::before {
  background: #315f63;
  clip-path: polygon(30% 0, 70% 0, 100% 30%, 100% 70%, 70% 100%, 30% 100%, 0 70%, 0 30%);
  height: 42rem;
  opacity: 0.12;
  right: -12rem;
  top: -18rem;
  width: 42rem;
}

.game-hero--waystation-warden::after {
  background: #b4782c;
  clip-path: polygon(30% 0, 70% 0, 100% 30%, 100% 70%, 70% 100%, 30% 100%, 0 70%, 0 30%);
  bottom: -16rem;
  height: 30rem;
  left: 18%;
  opacity: 0.13;
  width: 30rem;
}

.game-hero__inner {
  align-items: center;
  display: grid;
  gap: clamp(3rem, 8vw, 7rem);
  grid-template-columns: minmax(18rem, 0.95fr) 1.05fr;
  min-height: clamp(40rem, 82vh, 58rem);
  padding-block: 5rem;
  position: relative;
  z-index: 1;
}

.game-hero__art {
  align-items: center;
  display: flex;
  justify-content: center;
}

.game-hero__art img {
  filter: drop-shadow(0 2rem 2.5rem rgb(0 0 0 / 25%));
  max-height: 25rem;
  object-fit: contain;
  width: min(100%, 42rem);
}

.game-hero--project-burnout .game-hero__art img {
  border-radius: 0.8rem;
  box-shadow: 0 2rem 4rem rgb(0 0 0 / 38%);
  filter: none;
  max-height: 40rem;
  width: auto;
}

.game-hero__copy h1 {
  font-size: clamp(3.5rem, 7vw, 7rem);
}

.game-intro {
  background: var(--paper-bright);
  border-block: 1px solid var(--line);
  padding-block: clamp(5rem, 12vw, 10rem);
}

.game-intro__grid {
  display: grid;
  gap: clamp(3rem, 8vw, 8rem);
  grid-template-columns: 0.8fr 1.2fr;
}

.game-intro h2 {
  margin-bottom: 0;
}

.prose {
  max-width: 48rem;
}

.prose > * + * {
  margin-top: 1.5rem;
}

.prose h2 {
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  margin-bottom: 1rem;
  margin-top: 3.5rem;
}

.prose h3 {
  font-size: clamp(1.2rem, 2vw, 1.5rem);
  line-height: 1.2;
  margin-bottom: 0.75rem;
  margin-top: 2.5rem;
}

.prose a {
  color: var(--accent);
  font-weight: 750;
}

.prose--large > p:first-child {
  font-size: clamp(1.3rem, 2.2vw, 1.8rem);
  line-height: 1.5;
}

.feature-list {
  border-top: 1px solid var(--line);
  list-style: none;
  margin: 3rem 0 0;
  padding: 0;
}

.feature-list li {
  border-bottom: 1px solid var(--line);
  font-weight: 720;
  padding: 1.15rem 0 1.15rem 2rem;
  position: relative;
}

.feature-list li::before {
  color: var(--accent);
  content: "◆";
  font-size: 0.65rem;
  left: 0.15rem;
  position: absolute;
  top: 1.4rem;
}

.screenshot-grid {
  display: grid;
  gap: clamp(1rem, 2vw, 1.5rem);
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.screenshot-grid figure {
  margin: 0;
}

.screenshot-grid a {
  background: var(--paper-bright);
  border: 1px solid var(--line);
  border-radius: 0.7rem;
  box-shadow: var(--shadow);
  display: block;
  overflow: hidden;
}

.screenshot-grid img {
  aspect-ratio: 16 / 9;
  height: auto;
  object-fit: cover;
  width: 100%;
}

.screenshot-grid figcaption {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.65rem 0.2rem 0;
}

.trailer-section {
  background: var(--paper-bright);
  border-block: 1px solid var(--line);
  padding-block: clamp(3.5rem, 7vw, 6rem);
}

.trailer-section--press {
  background: transparent;
  border: 0;
  margin-block: 4rem;
  padding: 0;
}

.trailer-section video {
  aspect-ratio: 16 / 9;
  background: #100e10;
  border: 1px solid var(--line);
  border-radius: 0.7rem;
  box-shadow: var(--shadow);
  display: block;
  height: auto;
  margin-inline: auto;
  max-width: 52rem;
  width: 100%;
}

.trailer-downloads {
  align-items: center;
  margin-block: 1.5rem 2rem;
}

.trailer-downloads .text-link {
  font-size: 0.86rem;
}

.trailer-facts {
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0 0 2rem;
}

.trailer-facts > div {
  border-bottom: 1px solid var(--line);
  min-width: 0;
  padding: 0.85rem 1rem 0.85rem 0;
}

.trailer-facts dt {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.trailer-facts dd {
  margin: 0.25rem 0 0;
  overflow-wrap: anywhere;
}

.checksum {
  font-size: 0.72rem;
  word-break: break-all;
}

.trailer-notes {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 0.7rem;
  margin-block: 2rem;
  padding: 1.5rem;
}

.trailer-transcript {
  border-bottom: 1px solid var(--line);
  border-top: 1px solid var(--line);
  margin-top: 2rem;
  padding-block: 1rem;
}

.trailer-transcript summary {
  cursor: pointer;
  font-weight: 800;
}

.trailer-transcript ol {
  list-style: none;
  margin: 1.25rem 0 0;
  padding: 0;
}

.trailer-transcript li {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 1rem;
  grid-template-columns: 10.5rem minmax(0, 1fr);
  padding-block: 0.9rem;
}

.transcript-time {
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.78rem;
}

.kit-version {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 750;
}

.closing-art {
  background: #100e10;
  padding-block: clamp(3rem, 7vw, 6rem);
}

.closing-art figure,
.press-artwork figure {
  margin: 0;
}

.closing-art img {
  border-radius: 0.7rem;
  box-shadow: var(--shadow);
  height: auto;
  width: 100%;
}

.closing-art figcaption,
.press-artwork figcaption {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.65rem 0.2rem 0;
}

.game-closer {
  background: var(--accent);
  color: var(--accent-ink);
  padding-block: clamp(3rem, 6vw, 5rem);
}

.game-closer__inner {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  font-size: 1.1rem;
  font-weight: 800;
  gap: 2rem;
  justify-content: space-between;
}

.game-closer p {
  margin-bottom: 0;
}

.game-closer .text-link {
  color: inherit;
}

.game-closer .muted {
  font-size: 0.88rem;
  font-weight: 650;
  opacity: 0.78;
}

.plain-page {
  min-height: 65vh;
  padding-block: clamp(5rem, 10vw, 9rem);
}

.plain-page h1 {
  font-size: clamp(3rem, 7vw, 6rem);
}

.plain-page address {
  font-style: normal;
}

.contact-list,
.facts dl {
  border-top: 1px solid var(--line);
  margin-top: 3rem;
}

.contact-list > div,
.facts dl > div {
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 1rem;
  grid-template-columns: 8rem 1fr;
  padding-block: 0.9rem;
}

.contact-list dt,
.facts dt {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.contact-list dd,
.facts dd {
  margin: 0;
  min-width: 0;
  overflow-wrap: anywhere;
}

.press-hero {
  background: var(--paper-bright);
  border-bottom: 1px solid var(--line);
}

.press-hero__inner {
  align-items: center;
  display: grid;
  gap: 4rem;
  grid-template-columns: 1.2fr 0.8fr;
  min-height: 34rem;
  padding-block: 5rem;
}

.press-hero h1 {
  font-size: clamp(3.5rem, 7vw, 6.5rem);
}

.press-hero img {
  filter: drop-shadow(0 1rem 1.7rem rgb(0 0 0 / 18%));
  max-height: 15rem;
  object-fit: contain;
  width: 100%;
}

.press-grid {
  align-items: start;
  display: grid;
  gap: clamp(3rem, 8vw, 8rem);
  grid-template-columns: minmax(16rem, 0.7fr) minmax(0, 1.3fr);
}

.facts {
  background: var(--paper-bright);
  border: 1px solid var(--line);
  border-radius: 1rem;
  padding: 1.5rem;
  position: sticky;
  top: 2rem;
}

.facts h2 {
  font-size: 2rem;
}

.facts dl > div {
  grid-template-columns: minmax(5rem, 6rem) minmax(0, 1fr);
}

.download-card {
  align-items: center;
  background: var(--paper-bright);
  border: 1px solid var(--line);
  border-radius: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: space-between;
  padding: 2rem;
}

.download-card img {
  max-height: 9rem;
  max-width: min(100%, 20rem);
  object-fit: contain;
}

.press-artwork {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr);
}

.press-artwork a {
  background: var(--paper-bright);
  border: 1px solid var(--line);
  border-radius: 0.7rem;
  box-shadow: var(--shadow);
  display: flex;
  height: 100%;
  min-height: 14rem;
  overflow: hidden;
}

.press-artwork img {
  height: auto;
  object-fit: contain;
  width: 100%;
}

.site-footer {
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.8rem;
}

.site-footer p {
  margin-bottom: 0;
}

.site-footer__inner {
  flex-wrap: wrap;
  gap: 1rem 2rem;
  padding-block: 1.25rem;
}

@media (max-width: 52rem) {
  .studio-hero__inner,
  .game-hero__inner,
  .game-intro__grid,
  .press-hero__inner,
  .press-grid,
  .studio-note__inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .studio-hero__inner,
  .game-hero__inner {
    min-height: auto;
  }

  .studio-hero__logo {
    max-width: 17rem;
  }

  .studio-hero__copy,
  .game-hero__copy {
    max-width: 44rem;
  }

  .game-grid {
    grid-template-columns: 1fr;
  }

  .game-card {
    min-height: 38rem;
  }

  .game-hero__art {
    min-height: 17rem;
  }

  .game-hero__art img {
    max-height: 18rem;
  }

  .game-hero--project-burnout .game-hero__art img {
    max-height: 34rem;
  }

  .press-artwork {
    grid-template-columns: 1fr;
  }

  .game-hero--project-burnout::before {
    bottom: -10rem;
    height: 30rem;
    left: -19rem;
    width: 30rem;
  }

  .game-hero--project-burnout::after {
    height: 27rem;
    right: -18rem;
    top: 1rem;
    width: 27rem;
  }

  .facts {
    position: static;
  }
}

@media (max-width: 36rem) {
  h1 {
    font-size: clamp(3rem, 16vw, 4.6rem);
  }

  .preview-note {
    font-size: 0.66rem;
    overflow-wrap: anywhere;
  }

  .site-header__inner,
  .site-footer__inner {
    align-items: flex-start;
    flex-direction: column;
    gap: 1rem;
    justify-content: center;
    padding-block: 1rem;
  }

  .wordmark {
    font-size: 0.78rem;
  }

  .studio-hero__inner,
  .game-hero__inner,
  .press-hero__inner {
    gap: 2.5rem;
    padding-block: 3.5rem;
  }

  .studio-hero__logo {
    max-width: 13rem;
  }

  .game-card__art {
    min-height: 15rem;
    padding: 1.6rem;
  }

  .game-card {
    min-height: auto;
  }

  .screenshot-grid {
    grid-template-columns: 1fr;
  }

  .contact-list > div,
  .facts dl > div,
  .trailer-facts,
  .trailer-transcript li {
    grid-template-columns: 1fr;
  }

  .button {
    width: 100%;
  }

  .button-row {
    align-items: stretch;
    flex-direction: column;
  }
}

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

.trailer-variants { max-width: 52rem; margin-inline: auto; }
.trailer-variant { border-block-end: 1px solid var(--line); padding-block: 1rem; }
.trailer-variant > summary { cursor: pointer; font-weight: 800; padding-block: .5rem; }
.trailer-variant > summary:focus-visible { outline: 3px solid var(--ink); outline-offset: 5px; }
.trailer-language-note { color: var(--muted); font-size: .9rem; margin-block: .75rem 1rem; }
