:root {
  --paper: #f7f7f2;
  --white: #ffffff;
  --ink: #121313;
  --muted: #656762;
  --line: #d8d9d2;
  --coral: #f15d48;
  --green: #168c70;
  --blue: #1769d2;
  --yellow: #f2c84b;
  --content: 1240px;
  --pad: clamp(20px, 4vw, 64px);
  --display: "Arial Black", "Helvetica Neue", Arial, sans-serif;
  --body: Inter, "Helvetica Neue", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--paper);
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: 0;
  -webkit-font-smoothing: antialiased;
}

body.nav-open {
  overflow: hidden;
}

img {
  display: block;
  width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  background: var(--ink);
  color: var(--white);
  transform: translateY(-160%);
}

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

.site-header {
  position: absolute;
  z-index: 20;
  inset: 0 0 auto;
  color: var(--white);
}

.site-header.header-solid {
  position: relative;
  color: var(--ink);
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.nav-shell {
  max-width: calc(var(--content) + (var(--pad) * 2));
  min-height: 80px;
  margin: 0 auto;
  padding: 0 var(--pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-family: var(--display);
  font-size: 14px;
  line-height: 1;
  text-transform: uppercase;
}

.wordmark-mark {
  display: grid;
  grid-template-columns: repeat(2, 7px);
  grid-template-rows: repeat(2, 7px);
  gap: 2px;
  transform: rotate(45deg);
}

.wordmark-mark i {
  background: currentColor;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 13px;
  font-weight: 700;
}

.site-nav a {
  position: relative;
  padding: 8px 0;
}

.site-nav a::after {
  content: "";
  position: absolute;
  inset: auto 0 2px;
  height: 2px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 180ms ease;
}

.site-nav a:hover::after,
.site-nav a[aria-current="page"]::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid currentColor;
  border-radius: 2px;
  color: inherit;
  background: transparent;
  cursor: pointer;
}

.nav-toggle span,
.nav-toggle::before,
.nav-toggle::after {
  content: "";
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: currentColor;
  transition: transform 180ms ease, opacity 180ms ease;
}

.nav-toggle[aria-expanded="true"] span {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"]::before {
  transform: translateY(6px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"]::after {
  transform: translateY(-6px) rotate(-45deg);
}

.hero {
  min-height: min(88svh, 860px);
  position: relative;
  display: grid;
  align-items: end;
  color: var(--white);
  background: #277bb5;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(7, 19, 21, .72) 0%, rgba(7, 19, 21, .3) 42%, transparent 72%);
}

.hero-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: calc(var(--content) + (var(--pad) * 2));
  margin: 0 auto;
  padding: 150px var(--pad) clamp(48px, 8vh, 86px);
}

.hero-kicker,
.eyebrow {
  margin: 0 0 16px;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.2;
  text-transform: uppercase;
}

.hero-title {
  max-width: 980px;
  margin: 0;
  font-family: var(--display);
  font-size: clamp(54px, 10.2vw, 148px);
  line-height: .82;
  text-transform: uppercase;
}

.hero-bottom {
  margin-top: clamp(34px, 6vh, 68px);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
}

.hero-tagline {
  max-width: 480px;
  margin: 0;
  font-size: clamp(20px, 2.4vw, 32px);
  line-height: 1.15;
  font-weight: 700;
}

.text-link,
.arrow-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  font-size: 14px;
  font-weight: 800;
}

.arrow-link::after,
.text-link::after {
  content: "\2192";
  font-size: 22px;
  line-height: 1;
  transition: transform 180ms ease;
}

.arrow-link:hover::after,
.text-link:hover::after {
  transform: translateX(5px);
}

.section {
  padding: clamp(76px, 11vw, 150px) var(--pad);
}

.section-inner {
  max-width: var(--content);
  margin: 0 auto;
}

.section-head {
  display: grid;
  grid-template-columns: 1fr minmax(250px, 430px);
  align-items: end;
  gap: 40px;
  margin-bottom: clamp(48px, 7vw, 86px);
}

.display-title {
  margin: 0;
  max-width: 900px;
  font-family: var(--display);
  font-size: clamp(47px, 8vw, 112px);
  line-height: .9;
}

.section-copy {
  margin: 0;
  color: var(--muted);
  font-size: clamp(17px, 1.6vw, 21px);
}

.games-list {
  border-top: 1px solid var(--ink);
}

.game-row {
  display: grid;
  grid-template-columns: 74px minmax(0, 1.55fr) minmax(260px, .8fr);
  gap: clamp(20px, 4vw, 62px);
  align-items: center;
  padding: clamp(28px, 4vw, 54px) 0;
  border-bottom: 1px solid var(--line);
}

.game-index {
  align-self: start;
  font-family: var(--display);
  font-size: 13px;
}

.game-image {
  overflow: hidden;
  aspect-ratio: 3 / 2;
  border-radius: 3px;
  background: #ddd;
}

.game-image.portrait {
  aspect-ratio: 4 / 5;
  width: min(74%, 470px);
  justify-self: end;
}

.game-image img {
  height: 100%;
  object-fit: cover;
  transition: transform 500ms cubic-bezier(.2, .8, .2, 1);
}

.game-row:hover .game-image img,
.game-feature:hover .game-feature-image img {
  transform: scale(1.025);
}

.game-meta {
  align-self: end;
}

.game-meta h3,
.game-feature h2 {
  margin: 0 0 18px;
  font-family: var(--display);
  font-size: clamp(28px, 3.5vw, 52px);
  line-height: .95;
}

.game-meta p,
.game-feature p {
  margin: 0 0 26px;
  color: var(--muted);
}

.game-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 24px;
  padding: 0;
  list-style: none;
}

.game-tags li {
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 2px;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.studio-band {
  color: var(--white);
  background: var(--ink);
}

.studio-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(290px, .65fr);
  gap: clamp(36px, 7vw, 100px);
  align-items: center;
}

.studio-image {
  min-height: 520px;
  height: 62vw;
  max-height: 720px;
  object-fit: cover;
}

.studio-copy .display-title {
  font-size: clamp(44px, 6vw, 84px);
}

.studio-copy p:not(.eyebrow) {
  margin: 28px 0 38px;
  color: #c6c8c2;
  font-size: clamp(17px, 1.5vw, 20px);
}

.principles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.principle {
  min-height: 250px;
  padding: clamp(28px, 4vw, 52px);
  background: var(--paper);
}

.principle-number {
  display: block;
  margin-bottom: 70px;
  color: var(--coral);
  font-family: var(--display);
  font-size: 13px;
}

.principle h3 {
  margin: 0 0 12px;
  font-family: var(--display);
  font-size: 23px;
}

.principle p {
  margin: 0;
  color: var(--muted);
}

.contact-band {
  padding: clamp(60px, 8vw, 104px) var(--pad);
  color: var(--ink);
  background: var(--yellow);
}

.contact-inner {
  max-width: var(--content);
  margin: 0 auto;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 32px;
}

.contact-band h2 {
  max-width: 820px;
  margin: 0;
  font-family: var(--display);
  font-size: clamp(40px, 7vw, 94px);
  line-height: .9;
}

.contact-band .arrow-link {
  white-space: nowrap;
}

.site-footer {
  padding: 38px var(--pad) 30px;
  color: var(--white);
  background: var(--ink);
}

.footer-inner {
  max-width: var(--content);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 30px;
  align-items: end;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  font-size: 13px;
  font-weight: 700;
}

.footer-links a:hover {
  color: var(--yellow);
}

.footer-meta {
  margin: 24px 0 0;
  color: #9b9d97;
  font-size: 12px;
}

.footer-place {
  margin: 0;
  text-align: right;
  font-family: var(--display);
  font-size: 14px;
  text-transform: uppercase;
}

.page-hero {
  padding: clamp(88px, 12vw, 170px) var(--pad) clamp(70px, 9vw, 120px);
  border-bottom: 1px solid var(--ink);
}

.page-hero-inner,
.prose,
.games-page,
.support-grid {
  max-width: var(--content);
  margin: 0 auto;
}

.page-hero .eyebrow {
  color: var(--blue);
}

.page-title {
  max-width: 1080px;
  margin: 0;
  font-family: var(--display);
  font-size: clamp(58px, 10vw, 144px);
  line-height: .82;
}

.page-intro {
  max-width: 620px;
  margin: 40px 0 0 auto;
  color: var(--muted);
  font-size: clamp(18px, 2vw, 24px);
}

.games-page {
  padding: clamp(70px, 10vw, 140px) var(--pad);
}

.game-feature {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(280px, .6fr);
  gap: clamp(30px, 6vw, 88px);
  align-items: end;
  padding: 0 0 clamp(70px, 10vw, 140px);
}

.game-feature:nth-child(even) {
  grid-template-columns: minmax(280px, .6fr) minmax(0, 1.4fr);
}

.game-feature:nth-child(even) .game-feature-image {
  order: 2;
}

.game-feature-image {
  overflow: hidden;
  aspect-ratio: 3 / 2;
  border-radius: 3px;
}

.game-feature-image.portrait {
  aspect-ratio: 4 / 5;
  width: min(88%, 580px);
}

.game-feature-image img {
  height: 100%;
  object-fit: cover;
  transition: transform 500ms cubic-bezier(.2, .8, .2, 1);
}

.game-status {
  margin: 0 0 16px;
  color: var(--coral);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.support-section {
  padding: clamp(70px, 10vw, 130px) var(--pad);
}

.support-grid {
  display: grid;
  grid-template-columns: minmax(240px, .65fr) minmax(0, 1.35fr);
  gap: clamp(50px, 10vw, 150px);
}

.support-aside h2 {
  margin: 0 0 16px;
  font-family: var(--display);
  font-size: clamp(28px, 4vw, 48px);
  line-height: 1;
}

.support-aside p {
  color: var(--muted);
}

.faq {
  border-top: 1px solid var(--ink);
}

.faq details {
  border-bottom: 1px solid var(--line);
}

.faq summary {
  min-height: 82px;
  padding: 24px 50px 24px 0;
  position: relative;
  display: flex;
  align-items: center;
  font-size: 18px;
  font-weight: 800;
  cursor: pointer;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::before,
.faq summary::after {
  content: "";
  position: absolute;
  right: 4px;
  width: 18px;
  height: 2px;
  background: currentColor;
  transition: transform 180ms ease;
}

.faq summary::after {
  transform: rotate(90deg);
}

.faq details[open] summary::after {
  transform: rotate(0deg);
}

.faq-answer {
  max-width: 680px;
  padding: 0 50px 30px 0;
  color: var(--muted);
}

.prose {
  max-width: 860px;
  padding: clamp(65px, 9vw, 120px) var(--pad);
}

.prose .updated {
  margin: 0 0 52px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
}

.prose h2 {
  margin: 58px 0 16px;
  font-family: var(--display);
  font-size: clamp(25px, 3vw, 38px);
  line-height: 1.05;
}

.prose h2:first-of-type {
  margin-top: 0;
}

.prose p,
.prose li {
  color: #4e514d;
  font-size: 17px;
  line-height: 1.75;
}

.prose a {
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.notice {
  margin: 38px 0;
  padding: 24px;
  border-left: 5px solid var(--yellow);
  background: var(--white);
}

.notice p {
  margin: 0;
}

.js [data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 600ms ease, transform 600ms cubic-bezier(.2, .8, .2, 1);
}

.js [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

@media (max-width: 820px) {
  .nav-shell {
    min-height: 68px;
  }

  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: fixed;
    z-index: -1;
    inset: 0;
    padding: 110px var(--pad) 48px;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 12px;
    color: var(--ink);
    background: var(--yellow);
    opacity: 0;
    visibility: hidden;
    transition: opacity 180ms ease, visibility 180ms ease;
  }

  .site-nav a {
    font-family: var(--display);
    font-size: clamp(38px, 11vw, 62px);
    line-height: 1;
  }

  .site-nav.is-open {
    z-index: 18;
    opacity: 1;
    visibility: visible;
  }

  .nav-toggle {
    position: relative;
    z-index: 19;
  }

  .site-header:has(.site-nav.is-open) {
    color: var(--ink);
  }

  .hero {
    min-height: 790px;
  }

  .hero::after {
    background: linear-gradient(180deg, rgba(7, 19, 21, .42) 0%, rgba(7, 19, 21, .05) 45%, rgba(7, 19, 21, .74) 100%);
  }

  .hero-media {
    object-position: 62% center;
  }

  .hero-content {
    padding-top: 116px;
  }

  .hero-title {
    max-width: 680px;
    font-size: clamp(52px, 16vw, 92px);
  }

  .hero-bottom,
  .contact-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .section-head,
  .studio-grid,
  .support-grid {
    grid-template-columns: 1fr;
  }

  .section-head {
    align-items: start;
  }

  .section-copy {
    max-width: 600px;
  }

  .game-row {
    grid-template-columns: 42px minmax(0, 1fr);
  }

  .game-meta {
    grid-column: 2;
  }

  .game-image.portrait {
    width: min(80%, 430px);
    justify-self: start;
  }

  .studio-image {
    min-height: 0;
    height: auto;
    aspect-ratio: 3 / 2;
  }

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

  .principle {
    min-height: 220px;
  }

  .game-feature,
  .game-feature:nth-child(even) {
    grid-template-columns: 1fr;
  }

  .game-feature:nth-child(even) .game-feature-image {
    order: 0;
  }

  .game-feature-image.portrait {
    width: min(78%, 520px);
  }
}

@media (max-width: 540px) {
  .hero {
    min-height: 720px;
  }

  .hero-title {
    font-size: clamp(48px, 17vw, 78px);
  }

  .game-row {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .game-index,
  .game-meta {
    grid-column: auto;
  }

  .game-image.portrait,
  .game-feature-image.portrait {
    width: 100%;
    max-height: 560px;
  }

  .page-title {
    font-size: clamp(52px, 17vw, 86px);
  }

  .page-intro {
    margin-left: 0;
  }

  .footer-inner {
    grid-template-columns: 1fr;
  }

  .footer-place {
    text-align: left;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
  }

  .js [data-reveal] {
    opacity: 1;
    transform: none;
  }
}
