:root {
  color-scheme: dark;
  --ink: #f5ead5;
  --muted: #b9b0a8;
  --night: #090a11;
  --night-soft: #11131d;
  --panel: #17151a;
  --line: #4c3a2b;
  --gold: #f2b743;
  --gold-soft: #d49a34;
  --ember: #c94f25;
  --mist: #8ea1b8;
  --content: 1160px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--night);
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 17px;
  line-height: 1.65;
}

a {
  color: var(--gold);
}

a:focus-visible,
.button:focus-visible {
  outline: 3px solid #fff1b5;
  outline-offset: 4px;
}

.site-header {
  position: absolute;
  z-index: 10;
  top: 0;
  left: 50%;
  width: min(100% - 40px, var(--content));
  min-height: 78px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(242, 183, 67, 0.32);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #fff7e6;
  font-family: Arial, Helvetica, sans-serif;
  font-weight: 700;
  text-decoration: none;
}

.brand img,
.footer-brand img {
  border: 1px solid rgba(242, 183, 67, 0.5);
  border-radius: 6px;
}

nav {
  display: flex;
  gap: 28px;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.93rem;
}

nav a {
  color: #f6ead4;
  text-decoration: none;
}

nav a:hover,
nav a[aria-current="page"] {
  color: var(--gold);
}

.hero {
  position: relative;
  min-height: min(76svh, 760px);
  display: grid;
  align-items: end;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

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

.hero-art {
  object-fit: cover;
  object-position: center 44%;
}

.hero-shade {
  background: linear-gradient(90deg, rgba(5, 6, 11, 0.94) 0%, rgba(5, 6, 11, 0.62) 44%, rgba(5, 6, 11, 0.18) 75%), linear-gradient(0deg, rgba(9, 10, 17, 0.94) 0%, transparent 42%);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(100% - 40px, var(--content));
  margin: 0 auto;
  padding: 150px 0 82px;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--gold);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.79rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2 {
  margin: 0;
  line-height: 1.05;
  letter-spacing: 0;
}

.hero h1 {
  max-width: 740px;
  font-size: clamp(3.8rem, 8vw, 7.2rem);
  text-shadow: 0 4px 24px #000;
}

.hero-copy {
  max-width: 620px;
  margin: 20px 0 30px;
  color: #f1ddbc;
  font-size: clamp(1.2rem, 2.5vw, 1.65rem);
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 10px 22px;
  border: 1px solid var(--gold);
  border-radius: 5px;
  font-family: Arial, Helvetica, sans-serif;
  font-weight: 700;
  text-decoration: none;
}

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

.button-primary:hover {
  background: #ffd26f;
}

.release-status {
  color: #d6d0ca;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.9rem;
}

.atmosphere-strip {
  width: min(100% - 40px, var(--content));
  min-height: 92px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  align-items: center;
  gap: 22px;
  color: #d8c5a1;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.84rem;
  text-align: center;
  text-transform: uppercase;
}

.atmosphere-strip span + span {
  border-left: 1px solid var(--line);
}

.game-section {
  padding: 96px max(20px, calc((100% - var(--content)) / 2));
  background: #0d0f17;
  border-top: 1px solid #211d1f;
}

.section-heading {
  max-width: 740px;
  margin-bottom: 52px;
}

.section-heading h2,
.fair-play h2,
.document-header h1 {
  font-size: clamp(2.2rem, 5vw, 4.2rem);
}

.section-heading > p:last-child {
  max-width: 660px;
  color: var(--muted);
  font-family: Arial, Helvetica, sans-serif;
}

.screenshot-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
}

.screenshot {
  margin: 0;
  overflow: hidden;
  background: #12131a;
  border: 1px solid #312b2c;
  border-radius: 6px;
}

.screenshot img {
  display: block;
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
}

.screenshot figcaption {
  min-height: 82px;
  padding: 18px;
  color: #d4c4ad;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.86rem;
}

.fair-play {
  width: min(100% - 40px, var(--content));
  margin: 0 auto;
  padding: 94px 0;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: end;
  gap: 72px;
}

.fair-play > p {
  margin: 0;
  color: var(--muted);
  font-family: Arial, Helvetica, sans-serif;
}

footer {
  padding: 34px max(20px, calc((100% - var(--content)) / 2));
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  background: #06070b;
  border-top: 1px solid var(--line);
  color: #8f8b88;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.82rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #eee1ce;
  font-weight: 700;
}

.footer-links {
  display: flex;
  gap: 24px;
}

.footer-links a {
  color: #d6b977;
}

footer > p {
  margin: 0;
  text-align: right;
}

.document-shell {
  min-height: calc(100vh - 120px);
  padding: 150px max(20px, calc((100% - 900px) / 2)) 96px;
  background: #0d0f17;
}

.document-header {
  padding-bottom: 42px;
  border-bottom: 1px solid var(--line);
}

.document-header > p:last-child {
  margin: 18px 0 0;
  color: var(--mist);
  font-family: Arial, Helvetica, sans-serif;
}

.legal-document {
  max-width: 780px;
  padding-top: 36px;
  color: #d7d0c8;
  font-family: Arial, Helvetica, sans-serif;
}

.legal-document h2 {
  margin-top: 42px;
  color: #f0c668;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.55rem;
}

.legal-document p {
  margin: 12px 0;
}

.support-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin-top: 52px;
  background: var(--line);
  border: 1px solid var(--line);
}

.support-grid article {
  min-height: 210px;
  padding: 34px;
  background: var(--panel);
}

.support-grid h2 {
  color: var(--gold);
  font-size: 1.45rem;
}

.support-grid p {
  color: var(--muted);
  font-family: Arial, Helvetica, sans-serif;
}

@media (max-width: 860px) {
  .screenshot-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .atmosphere-strip {
    grid-template-columns: repeat(2, 1fr);
    padding: 20px 0;
  }

  .atmosphere-strip span + span {
    border-left: 0;
  }

  footer {
    grid-template-columns: 1fr auto;
  }

  footer > p {
    grid-column: 1 / -1;
    text-align: left;
  }
}

@media (max-width: 620px) {
  .site-header {
    width: calc(100% - 28px);
    min-height: 68px;
  }

  .brand span {
    display: none;
  }

  nav {
    gap: 16px;
    font-size: 0.85rem;
  }

  .hero {
    min-height: 690px;
  }

  .hero-art {
    object-position: 65% center;
  }

  .hero-shade {
    background: linear-gradient(0deg, rgba(5, 6, 11, 0.96) 0%, rgba(5, 6, 11, 0.7) 52%, rgba(5, 6, 11, 0.25) 100%);
  }

  .hero-content {
    width: calc(100% - 36px);
    padding-bottom: 58px;
  }

  .hero h1 {
    font-size: 3.65rem;
  }

  .atmosphere-strip,
  .screenshot-grid,
  .fair-play,
  .support-grid {
    grid-template-columns: 1fr;
  }

  .atmosphere-strip {
    text-align: left;
  }

  .game-section {
    padding-top: 72px;
    padding-bottom: 72px;
  }

  .screenshot-grid {
    gap: 18px;
  }

  .fair-play {
    gap: 28px;
    padding: 72px 0;
  }

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

  .footer-links {
    flex-wrap: wrap;
  }

  .document-shell {
    padding-top: 118px;
    padding-bottom: 68px;
  }

  .support-grid article {
    min-height: auto;
  }
}

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