:root {
  --ink: #101820;
  --paper: #f7f3ea;
  --line: #d8cec0;
  --muted: #6f675d;
  --green: #2f8f6f;
  --blue: #2767b1;
  --red: #de4f45;
  --gold: #f3b63f;
  --white: #fffaf1;
  color-scheme: light;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
}

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

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
  padding: 18px clamp(20px, 4vw, 56px);
  color: var(--white);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
}

.brand-mark {
  display: inline-grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 2px solid currentColor;
  background: rgba(16, 24, 32, 0.42);
  font-weight: 900;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 3vw, 34px);
  color: rgba(255, 250, 241, 0.86);
  font-size: 0.95rem;
  font-weight: 700;
}

.site-nav a {
  padding-block: 8px;
}

.site-nav a:hover,
.site-nav a:focus-visible,
.site-footer a:hover,
.site-footer a:focus-visible {
  color: var(--gold);
}

.hero {
  position: relative;
  min-height: 92svh;
  display: grid;
  align-items: center;
  overflow: hidden;
  padding: 116px clamp(20px, 7vw, 108px) 82px;
  background: #101820;
  color: var(--white);
}

.hero-canvas,
.hero-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-canvas {
  background:
    linear-gradient(rgba(255, 250, 241, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 250, 241, 0.06) 1px, transparent 1px),
    #101820;
  background-size: 34px 34px;
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(16, 24, 32, 0.95) 0%, rgba(16, 24, 32, 0.66) 45%, rgba(16, 24, 32, 0.1) 100%),
    linear-gradient(0deg, rgba(16, 24, 32, 0.86) 0%, rgba(16, 24, 32, 0) 48%);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 720px;
}

.kicker,
.section-label,
.game-state {
  margin: 0;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 22px;
  font-size: clamp(4.4rem, 14vw, 11rem);
  line-height: 0.82;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 640px;
  margin-bottom: 30px;
  color: rgba(255, 250, 241, 0.88);
  font-size: clamp(1.15rem, 2.2vw, 1.55rem);
  line-height: 1.45;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border: 2px solid transparent;
  border-radius: 8px;
  font-weight: 900;
}

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

.button-secondary {
  border-color: rgba(255, 250, 241, 0.5);
  color: var(--white);
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
}

.hero-status {
  position: absolute;
  z-index: 2;
  right: clamp(20px, 4vw, 56px);
  bottom: 24px;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
  color: rgba(255, 250, 241, 0.76);
  font-size: 0.86rem;
  font-weight: 800;
}

.hero-status span {
  border: 1px solid rgba(255, 250, 241, 0.3);
  border-radius: 999px;
  padding: 8px 12px;
  background: rgba(16, 24, 32, 0.52);
}

.section {
  padding: clamp(64px, 9vw, 120px) clamp(20px, 6vw, 88px);
}

.intro,
.routes-section,
.studio-section {
  display: grid;
  grid-template-columns: minmax(120px, 0.42fr) minmax(0, 1fr);
  gap: clamp(24px, 6vw, 84px);
  align-items: start;
}

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

h2 {
  margin-bottom: 18px;
  font-size: clamp(2.1rem, 5vw, 5.2rem);
  line-height: 0.96;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.35rem;
  letter-spacing: 0;
}

.section p,
.game-card p,
.route-row p,
.studio-metrics span {
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.65;
}

.games-section {
  background: var(--white);
  border-block: 1px solid var(--line);
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 32px;
}

.section-heading p {
  max-width: 420px;
  margin-bottom: 10px;
}

.game-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.game-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.game-art {
  position: relative;
  min-height: 190px;
  overflow: hidden;
  background: var(--ink);
}

.game-art::before {
  content: "";
  position: absolute;
  inset: 18px;
  border: 2px solid rgba(255, 250, 241, 0.42);
}

.game-art span {
  position: absolute;
  display: block;
}

.game-card-a .game-art span:nth-child(1) {
  left: 22%;
  top: 24%;
  width: 62px;
  height: 62px;
  background: var(--gold);
}

.game-card-a .game-art span:nth-child(2) {
  right: 18%;
  bottom: 22%;
  width: 82px;
  height: 24px;
  background: var(--green);
}

.game-card-a .game-art span:nth-child(3) {
  right: 29%;
  top: 25%;
  width: 18px;
  height: 96px;
  background: var(--red);
}

.game-card-b .game-art {
  background: #142d3d;
}

.game-card-b .game-art span:nth-child(1) {
  left: 18%;
  top: 55%;
  width: 66%;
  height: 12px;
  background: var(--gold);
  transform: rotate(-13deg);
  transform-origin: left center;
}

.game-card-b .game-art span:nth-child(2),
.game-card-b .game-art span:nth-child(3) {
  width: 34px;
  height: 34px;
  border: 8px solid var(--green);
  border-radius: 50%;
}

.game-card-b .game-art span:nth-child(2) {
  left: 20%;
  top: 34%;
}

.game-card-b .game-art span:nth-child(3) {
  right: 18%;
  bottom: 22%;
}

.game-card-c .game-art {
  background: #2d2530;
}

.game-card-c .game-art span:nth-child(1) {
  left: 18%;
  bottom: 20%;
  width: 120px;
  height: 46px;
  border-radius: 24px 24px 8px 8px;
  background: var(--red);
}

.game-card-c .game-art span:nth-child(2),
.game-card-c .game-art span:nth-child(3) {
  bottom: 15%;
  width: 34px;
  height: 34px;
  border: 8px solid var(--white);
  border-radius: 50%;
  background: var(--ink);
}

.game-card-c .game-art span:nth-child(2) {
  left: 24%;
}

.game-card-c .game-art span:nth-child(3) {
  left: 47%;
}

.game-card-body {
  padding: 22px;
}

.game-card-body p:last-of-type {
  min-height: 80px;
}

.game-card a {
  display: inline-flex;
  min-width: 0;
  max-width: 100%;
  color: var(--blue);
  font-weight: 900;
  overflow-wrap: anywhere;
}

.routes-section {
  background: #e9f0ec;
}

.route-list {
  display: grid;
  gap: 14px;
}

.route-row {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  padding: 20px;
  border: 1px solid rgba(16, 24, 32, 0.14);
  border-radius: 8px;
  background: rgba(255, 250, 241, 0.65);
}

.route-icon {
  display: inline-grid;
  width: 48px;
  height: 48px;
  place-items: center;
  background: var(--ink);
  color: var(--white);
  font-weight: 900;
}

code {
  color: var(--ink);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  overflow-wrap: anywhere;
}

.studio-section {
  background: var(--paper);
}

.studio-panel {
  max-width: 680px;
}

.studio-metrics {
  display: grid;
  gap: 12px;
}

.studio-metrics div {
  display: grid;
  gap: 6px;
  padding-block: 18px;
  border-bottom: 1px solid var(--line);
}

.studio-metrics strong {
  font-size: 1.5rem;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 28px clamp(20px, 6vw, 88px);
  background: var(--ink);
  color: var(--white);
  font-weight: 800;
}

@media (max-width: 820px) {
  .site-header {
    position: absolute;
    align-items: flex-start;
    padding-top: 18px;
  }

  .site-nav {
    flex-wrap: wrap;
    justify-content: flex-end;
    max-width: 230px;
    row-gap: 2px;
    font-size: 0.84rem;
  }

  .hero {
    min-height: 92svh;
    padding-top: 128px;
    padding-bottom: 118px;
  }

  .hero-status {
    left: 20px;
    right: 20px;
    justify-content: flex-start;
  }

  .intro,
  .routes-section,
  .studio-section,
  .section-heading {
    display: grid;
    grid-template-columns: 1fr;
  }

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

  .game-card-body p:last-of-type {
    min-height: 0;
  }
}

@media (max-width: 520px) {
  .site-header {
    gap: 12px;
  }

  .brand span:last-child {
    display: none;
  }

  h1 {
    font-size: clamp(4rem, 22vw, 7rem);
  }

  .hero-actions,
  .site-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .button {
    width: 100%;
  }
}

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

  .button:hover,
  .button:focus-visible {
    transform: none;
  }
}
