:root {
  color-scheme: dark;
  --ink: #080808;
  --paper: #eee9dc;
  --muted: #a19c91;
  --line: rgba(238, 233, 220, 0.24);
  --cream: #e9d7b7;
  --red: #d92323;
  --blue: #0a2233;
  --toggle-bg: rgba(238, 233, 220, 0.06);
  --toggle-border: rgba(238, 233, 220, 0.28);
}

:root[data-theme="light"] {
  color-scheme: light;
  --ink: #eee9dc;
  --paper: #171513;
  --muted: #716c63;
  --line: rgba(23, 21, 19, 0.2);
  --cream: #9b4a2e;
  --red: #b62b20;
  --blue: #0a2233;
  --toggle-bg: rgba(23, 21, 19, 0.06);
  --toggle-border: rgba(23, 21, 19, 0.28);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--ink);
  color: var(--paper);
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  transition: background-color 220ms ease, color 220ms ease;
}

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

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

.site-shell {
  width: min(100%, 1440px);
  min-height: 100vh;
  margin: 0 auto;
  padding: 0 5.3vw;
}

.site-header,
.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  border-bottom: 1px solid var(--line);
}

.site-header {
  position: relative;
  letter-spacing: 0.015em;
}

.brand-mark,
.site-nav,
.site-footer,
.game-meta,
.game-status,
.back-to-top {
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-weight: 600;
}

.brand-wordmark {
  display: block;
  width: 138px;
  height: 44px;
  overflow: hidden;
  mix-blend-mode: screen;
}

.brand-icon {
  display: block;
  width: 44px;
  height: 44px;
}

.brand-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.brand-wordmark img,
.footer-wordmark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

:root[data-theme="light"] .brand-wordmark,
:root[data-theme="light"] .footer-wordmark {
  mix-blend-mode: multiply;
}

:root[data-theme="light"] .brand-wordmark img,
:root[data-theme="light"] .footer-wordmark img {
  filter: invert(1);
  mix-blend-mode: multiply;
}

.brand-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 7px 0 0 var(--cream);
}

.studio-label {
  position: absolute;
  left: 50%;
  color: var(--muted);
  font-size: 0.95rem;
  letter-spacing: 0.14em;
  text-transform: lowercase;
  transform: translateX(-50%);
}

.site-nav {
  display: flex;
  gap: 1.6rem;
  margin-left: auto;
  margin-right: 1.4rem;
  color: var(--muted);
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.5rem 0.7rem;
  border: 1px solid var(--toggle-border);
  border-radius: 999px;
  background: var(--toggle-bg);
  color: var(--paper);
  cursor: pointer;
  font: inherit;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: border-color 180ms ease, background-color 180ms ease, color 180ms ease;
}

.theme-toggle:hover {
  background: var(--line);
}

.theme-toggle-mark {
  width: 0.78rem;
  height: 0.78rem;
  border: 1px solid currentColor;
  border-radius: 50%;
  background: linear-gradient(90deg, currentColor 50%, transparent 50%);
}

.site-nav a,
.social-link,
.back-to-top,
.game-link {
  transition: color 180ms ease, opacity 180ms ease;
}

.site-nav a:hover,
.social-link:hover,
.back-to-top:hover {
  color: var(--paper);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(340px, 1.1fr);
  gap: clamp(1.5rem, 4vw, 5rem);
  align-items: start;
  min-height: auto;
  padding: clamp(2rem, 3vw, 3rem) 0 clamp(3rem, 5vw, 4.5rem);
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  min-height: auto;
}

.hero-wordmark {
  width: min(100%, 500px);
  aspect-ratio: 3 / 2;
  margin-bottom: 2rem;
  overflow: hidden;
  mix-blend-mode: screen;
}

.hero-wordmark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

:root[data-theme="light"] .hero-wordmark {
  mix-blend-mode: multiply;
}

:root[data-theme="light"] .hero-wordmark img {
  filter: invert(1);
  mix-blend-mode: multiply;
}

.eyebrow {
  margin: 0 0 1.7rem;
  color: var(--muted);
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  line-height: 1.3;
  text-transform: uppercase;
}

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

h1,
h2,
h3 {
  font-weight: 400;
}

h1 {
  max-width: 7em;
  margin-bottom: 3.5rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(4.4rem, 10.4vw, 10.2rem);
  letter-spacing: -0.09em;
  line-height: 0.79;
}

em {
  color: var(--cream);
  font-style: italic;
}

.hero-bottom {
  display: block;
  max-width: 480px;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}

.hero-statement {
  margin-bottom: 0;
  font-size: clamp(1.4rem, 2.3vw, 2.1rem);
  letter-spacing: -0.04em;
  line-height: 1.06;
}

.hero-note {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.35;
}

.hero-art {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  max-width: 680px;
  border: 0;
  background: transparent;
}

.hero-art img {
  width: 100%;
  height: 100%;
  padding: clamp(0.5rem, 2.5vw, 2rem);
  object-fit: contain;
  object-position: center;
  filter: saturate(0.92) contrast(1.04);
  transition: transform 800ms cubic-bezier(0.2, 0.75, 0.25, 1);
}

.hero-art:hover img {
  transform: scale(1.035);
}

.art-label {
  position: absolute;
  right: 1rem;
  bottom: 0.9rem;
  z-index: 1;
  color: rgba(238, 233, 220, 0.75);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
}

.games-section,
.about-section {
  padding: clamp(3.5rem, 6vw, 6rem) 0;
  border-top: 1px solid var(--line);
}

.games-section {
  padding-bottom: 1rem;
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(140px, 0.25fr) minmax(0, 1fr);
  gap: 2rem;
  align-items: baseline;
  margin-bottom: clamp(2rem, 4vw, 3.5rem);
}

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

.games-section .section-heading {
  display: block;
}

h2 {
  margin-bottom: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3.5rem, 8vw, 8rem);
  letter-spacing: -0.08em;
  line-height: 0.8;
}

.game-card {
  display: grid;
  grid-template-columns: 0.14fr minmax(190px, 0.58fr) minmax(0, 1.22fr) minmax(110px, 0.45fr) auto;
  gap: 2rem;
  align-items: center;
  padding: 1rem 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.game-card + .game-card {
  border-top: 0;
}

.game-index {
  align-self: start;
  color: var(--red);
  font-size: 0.84rem;
  letter-spacing: 0.08em;
}

.game-art {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: #102c45;
  border-radius: 1rem;
}

.game-art--langareal {
  background: #fff;
}

.game-art:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 0.35rem;
}

.game-art img {
  width: 100%;
  height: 100%;
  padding: 1rem;
  object-fit: contain;
  transition: transform 500ms cubic-bezier(0.2, 0.75, 0.25, 1);
}

.game-card:hover .game-art img {
  transform: scale(1.045);
}

.game-art-label {
  position: absolute;
  right: 0.7rem;
  bottom: 0.6rem;
  z-index: 1;
  color: #171513;
  font-size: 0.63rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.game-title-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 1.1rem;
}

h3 {
  margin-bottom: 0.7rem;
  font-size: clamp(1.55rem, 3vw, 2.8rem);
  letter-spacing: -0.045em;
  line-height: 1;
}

.game-status {
  color: var(--muted);
  font-size: 0.65rem;
  white-space: nowrap;
}

.status-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 0.42rem;
  border-radius: 50%;
  background: var(--cream);
  vertical-align: 1px;
}

.game-description {
  max-width: 35rem;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.98rem;
}

.game-meta {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  color: var(--muted);
}

.game-meta strong {
  color: var(--paper);
  font-size: 0.82rem;
  font-weight: 500;
}

.game-link {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.85rem 0;
  color: var(--cream);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.game-link:hover {
  color: var(--red);
}

.arrow {
  font-size: 1.25rem;
  line-height: 0.5;
}

.about-section {
  display: grid;
  grid-template-columns: minmax(140px, 0.25fr) minmax(0, 1.15fr);
  gap: 2rem;
}

.about-section .section-heading {
  display: block;
  margin-bottom: 0;
}

.about-section .section-heading .eyebrow {
  margin-bottom: 4rem;
}

.about-section h2 {
  font-size: clamp(3rem, 6vw, 6.2rem);
}

.about-copy {
  max-width: 33rem;
  align-self: end;
  margin: 0 0 0.3rem;
  color: var(--cream);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.5rem, 2.5vw, 2.45rem);
  letter-spacing: -0.04em;
  line-height: 1.08;
}

.site-footer {
  min-height: 84px;
  border-top: 0;
  border-bottom: 0;
  color: var(--muted);
}

.footer-wordmark {
  width: 115px;
  height: 42px;
  overflow: hidden;
  opacity: 0.72;
}

.footer-wordmark img {
  mix-blend-mode: screen;
}

.back-to-top {
  color: var(--paper);
}

.social-link {
  color: var(--muted);
}

.back-to-top span {
  margin-left: 0.45rem;
  font-size: 1rem;
}

@media (max-width: 820px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    min-height: auto;
    padding-top: 3.5rem;
  }

  .hero-copy {
    min-height: auto;
  }

  .hero-art {
    width: 100%;
    max-width: none;
  }

  .game-card {
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 1.3rem;
  }

  .game-art,
  .game-main,
  .game-link {
    grid-column: 2;
  }

  .game-meta {
    display: none;
  }

  .game-link {
    justify-self: start;
    padding-top: 0;
  }

  .about-section {
    display: block;
  }

  .about-section .section-heading {
    margin-bottom: 4rem;
  }
}

@media (max-width: 520px) {
  .site-shell {
    padding: 0 1.25rem;
  }

  .site-header {
    min-height: 68px;
  }

  .site-nav {
    gap: 1rem;
    margin-right: 0.8rem;
  }

  .theme-toggle {
    padding: 0.5rem;
  }

  .theme-label {
    display: none;
  }

  .hero {
    padding: 2.5rem 0 3.5rem;
  }

  h1 {
    margin-bottom: 3rem;
    font-size: clamp(4.25rem, 21vw, 7rem);
  }

  .hero-bottom {
    display: block;
  }

  .section-heading {
    display: block;
  }

  .section-heading .eyebrow {
    margin-bottom: 2rem;
  }

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

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

  .site-footer {
    flex-wrap: wrap;
    gap: 1.3rem;
    padding: 1.5rem 0;
  }

  .site-footer > span {
    order: 3;
    width: 100%;
  }
}

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

  .hero-art img,
  .site-nav a,
  .back-to-top,
  .game-link {
    transition: none;
  }
}
