:root {
  --ink: #141820;
  --ink-soft: #2a3340;
  --paper: #eef1f4;
  --paper-deep: #e2e7ed;
  --mist: #9aa6b5;
  --signal: #e23d2d;
  --signal-deep: #b82f22;
  --hero-text: #f4f1eb;
  --plate: #050505;
  --veil: linear-gradient(
      115deg,
      rgba(8, 10, 16, 0.72) 0%,
      rgba(8, 10, 16, 0.35) 48%,
      rgba(8, 10, 16, 0.22) 100%
    ),
    linear-gradient(180deg, rgba(8, 10, 16, 0.28) 0%, rgba(8, 10, 16, 0.12) 38%, rgba(8, 10, 16, 0.78) 100%);
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Sora", system-ui, sans-serif;
  --max: 74rem;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.65;
  background:
    radial-gradient(1200px 600px at 10% -10%, #d9e2ec 0%, transparent 55%),
    radial-gradient(900px 500px at 100% 20%, #d5dde8 0%, transparent 50%),
    linear-gradient(180deg, var(--paper) 0%, var(--paper-deep) 100%);
  min-height: 100vh;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  padding: 0.65rem 1rem;
  background: var(--ink);
  color: var(--hero-text);
  text-decoration: none;
}

.skip-link:focus {
  top: 1rem;
}

.site-header {
  position: absolute;
  inset: 0 0 auto;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem clamp(1.25rem, 4vw, 3rem);
  color: var(--hero-text);
}

.logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  line-height: 0;
}

.logo img {
  width: auto;
  height: clamp(2.75rem, 4.5vw, 3.35rem);
  object-fit: contain;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.85rem 1.35rem;
}

.nav a {
  font-size: 0.88rem;
  font-weight: 500;
  text-decoration: none;
  opacity: 0.88;
  transition: opacity 0.25s ease;
}

.nav a:hover,
.nav a:focus-visible {
  opacity: 1;
}

.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-items: end;
  overflow: hidden;
  color: var(--hero-text);
}

.hero__media {
  position: absolute;
  inset: 0;
  background: #07090d;
}

.hero__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
  transform: scale(1.04);
  animation: kenburns 28s var(--ease) forwards;
}

.hero__veil {
  position: absolute;
  inset: 0;
  background: var(--veil);
}

.hero__content {
  position: relative;
  z-index: 1;
  width: min(100%, var(--max));
  margin: 0 auto;
  padding: clamp(6.5rem, 14vh, 9rem) clamp(1.25rem, 4vw, 3rem) clamp(2.75rem, 7vh, 4.5rem);
}

.hero__brand {
  display: block;
  width: min(100%, 18.5rem);
  height: auto;
  margin: 0 0 1rem;
  animation: rise 0.9s var(--ease) both;
}

.hero__headline {
  margin: 0 0 1rem;
  max-width: 16ch;
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 3.4vw, 2.35rem);
  font-weight: 500;
  line-height: 1.2;
  animation: rise 0.9s var(--ease) 0.12s both;
}

.hero__lede {
  margin: 0 0 1.75rem;
  max-width: 38ch;
  font-size: 1.02rem;
  color: rgba(244, 241, 235, 0.86);
  animation: rise 0.9s var(--ease) 0.22s both;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  animation: rise 0.9s var(--ease) 0.32s both;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.85rem;
  padding: 0.7rem 1.25rem;
  border: 1px solid transparent;
  font-family: inherit;
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
  transition:
    background 0.25s ease,
    color 0.25s ease,
    border-color 0.25s ease,
    transform 0.25s ease;
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-1px);
}

.btn--primary {
  background: var(--signal);
  color: #fff;
}

.btn--primary:hover,
.btn--primary:focus-visible {
  background: var(--signal-deep);
}

.btn--ghost {
  border-color: rgba(244, 241, 235, 0.45);
  color: var(--hero-text);
  background: transparent;
}

.btn--ghost:hover,
.btn--ghost:focus-visible {
  border-color: rgba(244, 241, 235, 0.9);
  background: rgba(244, 241, 235, 0.08);
}

.games,
.studio {
  width: min(100%, var(--max));
  margin: 0 auto;
  padding: clamp(3.5rem, 8vw, 6rem) clamp(1.25rem, 4vw, 3rem);
}

.section-intro {
  max-width: 38rem;
  margin-bottom: clamp(2rem, 5vw, 3.25rem);
}

.eyebrow {
  margin: 0 0 0.55rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--signal);
}

.section-intro h2,
.studio h2 {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, 3.1rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.05;
}

.section-intro p,
.studio > p {
  margin: 0;
  color: var(--ink-soft);
}

.feature {
  display: grid;
  gap: clamp(1.5rem, 4vw, 2.75rem);
  margin-bottom: clamp(3rem, 7vw, 5rem);
  align-items: center;
}

.feature__art,
.game__media {
  display: block;
  overflow: hidden;
  background: #12151c;
  text-decoration: none;
  line-height: 0;
}

.feature__art {
  aspect-ratio: 3 / 2;
}

.game__media {
  aspect-ratio: 3 / 2;
}

.feature__art img,
.game__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.8s var(--ease);
}

.feature:hover .feature__art img,
.game:hover .game__media img {
  transform: scale(1.03);
}

.feature__body h3,
.game__body h3 {
  margin: 0.35rem 0 0.85rem;
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3vw, 2.35rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.1;
}

.feature__body p,
.game__body p {
  margin: 0 0 1.15rem;
  color: var(--ink-soft);
  max-width: 42rem;
}

.status,
.meta {
  margin: 0;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--mist);
}

.store-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.35rem;
}

.store-links a,
.studio__links a {
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  color: var(--ink);
  border-bottom: 2px solid var(--signal);
  padding-bottom: 0.1rem;
  transition: color 0.2s ease;
}

.store-links a:hover,
.store-links a:focus-visible,
.studio__links a:hover,
.studio__links a:focus-visible {
  color: var(--signal-deep);
}

.game-list {
  display: grid;
  gap: clamp(2.5rem, 6vw, 4rem);
}

.game {
  display: grid;
  gap: 1.25rem;
  align-items: center;
}

.studio {
  padding-top: 0;
  padding-bottom: clamp(4rem, 9vw, 6.5rem);
}

.studio__logo {
  width: min(100%, 13.5rem);
  height: auto;
  margin: 0 0 1.25rem;
}

.studio__links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
  margin-top: 1.5rem;
}

.site-footer {
  border-top: 1px solid rgba(20, 24, 32, 0.12);
  padding: 1.75rem clamp(1.25rem, 4vw, 3rem) 2.25rem;
  text-align: center;
  color: var(--ink-soft);
  font-size: 0.9rem;
}

.footer-logo {
  width: auto;
  height: 3.75rem;
  margin: 0 auto 0.85rem;
  object-fit: contain;
}

.site-footer p:last-child {
  margin: 0;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(1.5rem);
  transition:
    opacity 0.8s var(--ease),
    transform 0.8s var(--ease);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(1.25rem);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes kenburns {
  to {
    transform: scale(1);
  }
}

@media (min-width: 800px) {
  .feature {
    grid-template-columns: 1.2fr 0.95fr;
  }

  .game {
    grid-template-columns: 1fr 1.05fr;
    gap: clamp(1.5rem, 3vw, 2.5rem);
  }

  .game:nth-child(even) .game__media {
    order: 2;
  }
}

@media (max-width: 640px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav {
    justify-content: flex-start;
  }

  .hero__brand {
    width: min(100%, 14.5rem);
  }

  .logo img {
    height: 2.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .hero__image,
  .hero__brand,
  .hero__headline,
  .hero__lede,
  .hero__actions,
  [data-reveal] {
    animation: none !important;
    transition: none !important;
    opacity: 1;
    transform: none;
  }
}
