:root {
  color-scheme: dark;
  --ink: #11110f;
  --ink-soft: #191a18;
  --panel: #24231f;
  --paper: #eee4ca;
  --muted: #bcb7aa;
  --gold: #e2ad42;
  --gold-light: #f4d88a;
  --teal: #60c3ae;
  --blood: #9f3e34;
  --line: rgba(238, 228, 202, 0.18);
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  color: var(--paper);
  background: var(--ink);
  font-family: "Segoe UI", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
}

body::selection {
  color: var(--ink);
  background: var(--gold-light);
}

a {
  color: inherit;
}

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

button:focus-visible,
a:focus-visible,
select:focus-visible {
  outline: 3px solid var(--teal);
  outline-offset: 4px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

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

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

.site-header {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  width: 100%;
  min-height: 76px;
  padding: 0 5vw;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(10, 11, 10, 0.68);
}

.wordmark {
  width: fit-content;
  color: var(--gold-light);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1rem;
  font-weight: 800;
  text-decoration: none;
}

.site-nav {
  display: flex;
  gap: 28px;
}

.site-nav a,
.footer-links a,
.text-link {
  color: var(--paper);
  text-decoration-color: rgba(226, 173, 66, 0.52);
  text-underline-offset: 5px;
}

.site-nav a {
  text-decoration: none;
}

.site-nav a:hover,
.footer-links a:hover,
.text-link:hover {
  color: var(--gold-light);
}

.language-control {
  justify-self: end;
}

.language-control select {
  min-width: 112px;
  min-height: 42px;
  padding: 7px 32px 7px 10px;
  border: 1px solid rgba(244, 216, 138, 0.62);
  border-radius: 3px;
  color: var(--gold-light);
  background: rgba(17, 17, 15, 0.76);
  font: inherit;
  font-size: 0.88rem;
  font-weight: 650;
  cursor: pointer;
}

.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 88svh;
  overflow: hidden;
  background-color: #252b2c;
  background-image: url("assets/wandergrave-hero.png");
  background-position: center;
  background-size: cover;
}

.hero-shade {
  position: absolute;
  inset: 0;
  background: rgba(7, 9, 9, 0.46);
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(90%, var(--max));
  margin: 80px auto 0;
}

.eyebrow,
.section-kicker {
  margin: 0 0 12px;
  color: var(--teal);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
}

h1,
h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.04;
}

h1 {
  max-width: 900px;
  color: var(--gold-light);
  font-size: 5.4rem;
  text-shadow: 0 4px 20px #000;
}

h2 {
  max-width: 780px;
  font-size: 2.75rem;
}

.hero-line {
  max-width: 760px;
  margin: 18px 0 4px;
  color: #fff9e9;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.62rem;
  font-weight: 700;
}

.hero-copy {
  max-width: 650px;
  margin: 12px 0 28px;
  color: #e6e4dd;
  font-size: 1.06rem;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 12px 22px;
  border: 1px solid transparent;
  border-radius: 4px;
  font-weight: 750;
  text-align: center;
  text-decoration: none;
  transition: background-color 160ms ease, color 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  color: #17130b;
  background: var(--gold);
  border-color: var(--gold-light);
}

.button-primary:hover {
  background: var(--gold-light);
}

.button-secondary {
  color: var(--paper);
  background: rgba(17, 17, 15, 0.72);
  border-color: rgba(238, 228, 202, 0.54);
}

.button-secondary:hover {
  color: var(--gold-light);
  border-color: var(--gold-light);
}

.button-android {
  color: #e7f4ef;
  background: #17473e;
  border-color: rgba(96, 195, 174, 0.8);
}

.button-android:hover {
  color: #fff;
  background: #1e5b4f;
}

.button-android[aria-disabled="true"],
.button-android[aria-disabled="true"]:hover {
  color: #bed1ca;
  background: #29423d;
  border-color: #53756d;
  cursor: default;
  transform: none;
}

.button-disabled,
.button-disabled:hover {
  color: #cec5ad;
  background: #51462f;
  border-color: #817354;
  cursor: not-allowed;
  transform: none;
}

.hero-note {
  margin: 15px 0 0;
  color: #d2cdbf;
  font-size: 0.88rem;
}

.section-inner {
  width: min(90%, var(--max));
  margin: 0 auto;
}

.fact-band {
  border-top: 1px solid rgba(226, 173, 66, 0.44);
  border-bottom: 1px solid var(--line);
  background: #191b19;
}

.fact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.fact-grid div {
  display: grid;
  min-height: 112px;
  align-content: center;
  padding: 22px 34px;
  border-right: 1px solid var(--line);
}

.fact-grid div:first-child {
  border-left: 1px solid var(--line);
}

.fact-grid strong {
  color: var(--gold-light);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.12rem;
}

.fact-grid span {
  color: var(--muted);
  font-size: 0.9rem;
}

.game-section,
.gallery-section {
  padding: 108px 0;
}

.intro-grid {
  display: grid;
  grid-template-columns: minmax(290px, 0.75fr) minmax(440px, 1.25fr);
  align-items: center;
  gap: 72px;
}

.section-copy > p:not(.section-kicker) {
  color: var(--muted);
}

.feature-list {
  margin: 30px 0 0;
  padding: 0;
  list-style: none;
}

.feature-list li {
  position: relative;
  padding: 13px 0 13px 28px;
  border-top: 1px solid var(--line);
}

.feature-list li::before {
  position: absolute;
  top: 20px;
  left: 4px;
  width: 9px;
  height: 9px;
  border: 1px solid var(--gold);
  content: "";
  transform: rotate(45deg);
}

.world-figure {
  margin: 0;
}

.world-figure img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1349 / 732;
  object-fit: contain;
  border: 1px solid rgba(226, 173, 66, 0.5);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.42);
}

.world-figure figcaption {
  padding-top: 10px;
  color: var(--muted);
  font-size: 0.82rem;
}

.death-section {
  padding: 74px 0;
  border-top: 1px solid rgba(159, 62, 52, 0.54);
  border-bottom: 1px solid rgba(159, 62, 52, 0.54);
  background: #221817;
}

.death-layout {
  display: grid;
  grid-template-columns: 110px 1fr 1fr;
  align-items: center;
  gap: 46px;
}

.death-number {
  margin: 0;
  color: var(--blood);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 5rem;
  font-weight: 800;
  line-height: 1;
}

.death-layout > p:last-child {
  color: #d3c5bd;
}

.gallery-section {
  background: var(--ink-soft);
}

.section-heading {
  display: grid;
  grid-template-columns: 1.35fr 0.65fr;
  align-items: end;
  gap: 60px;
  margin-bottom: 38px;
}

.section-heading > p {
  margin: 0;
  color: var(--muted);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.gallery-item {
  position: relative;
  min-height: 280px;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: #0d0e0d;
  cursor: zoom-in;
}

.gallery-item img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 220ms ease, opacity 220ms ease;
}

.gallery-item:hover img {
  opacity: 0.86;
  transform: scale(1.015);
}

.gallery-wide {
  grid-column: 1 / -1;
  aspect-ratio: 2.1 / 1;
}

.download-section {
  padding: 92px 0;
  border-top: 1px solid rgba(96, 195, 174, 0.38);
  background: #17201e;
}

.download-layout {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  align-items: center;
  gap: 70px;
}

.download-layout p:not(.section-kicker) {
  max-width: 690px;
  color: #bdc9c4;
}

.download-actions {
  justify-content: flex-end;
}

.platform-actions {
  display: grid;
  grid-template-columns: 1fr;
  align-items: stretch;
}

.platform-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 10px 18px;
  border: 1px solid rgba(96, 195, 174, 0.48);
  border-radius: 4px;
  color: #cfddd8;
  background: #1a2926;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
}

.platform-status[aria-disabled="true"] {
  cursor: default;
}

.android-release {
  display: grid;
  grid-template-columns: minmax(250px, 0.55fr) minmax(520px, 1.45fr);
  gap: 54px;
  align-items: center;
  margin-top: 72px;
  padding-top: 54px;
  border-top: 1px solid rgba(96, 195, 174, 0.28);
}

.android-release-copy h3 {
  margin: 0;
  color: var(--gold-light);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.7rem;
  line-height: 1.12;
}

.android-release-copy > p:not(.section-kicker) {
  margin: 16px 0 22px;
  color: #bdc9c4;
}

.android-release-link {
  width: 100%;
}

.android-art {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.android-art figure {
  margin: 0;
}

.android-art img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border: 1px solid rgba(226, 173, 66, 0.42);
}

.android-art figcaption {
  padding-top: 8px;
  color: #9fb0aa;
  font-size: 0.8rem;
}

.text-link {
  padding: 10px 4px;
  font-weight: 700;
}

.privacy-section {
  padding: 94px 0;
  border-top: 1px solid var(--line);
  background: #151615;
  scroll-margin-top: 18px;
}

.privacy-layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.7fr) minmax(460px, 1.3fr);
  gap: 80px;
}

.privacy-heading > p:last-child {
  color: var(--muted);
}

.privacy-details {
  border-top: 1px solid var(--line);
}

.privacy-details article {
  display: grid;
  grid-template-columns: minmax(150px, 0.35fr) minmax(260px, 0.65fr);
  gap: 24px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}

.privacy-details h3,
.privacy-details p {
  margin: 0;
}

.privacy-details h3 {
  color: var(--gold-light);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.08rem;
}

.privacy-details p {
  color: var(--muted);
  font-size: 0.92rem;
}

.site-footer {
  padding: 46px 0;
  border-top: 1px solid var(--line);
  background: #0b0c0b;
}

.footer-layout {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 22px 50px;
  align-items: center;
}

.footer-layout strong {
  color: var(--gold-light);
  font-family: Georgia, "Times New Roman", serif;
}

.footer-layout p {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 22px;
  font-size: 0.9rem;
}

.lightbox {
  width: min(94vw, 1320px);
  max-width: none;
  padding: 0;
  border: 1px solid rgba(244, 216, 138, 0.58);
  border-radius: 3px;
  color: var(--paper);
  background: #080908;
}

.lightbox::backdrop {
  background: rgba(0, 0, 0, 0.88);
}

.lightbox img {
  display: block;
  width: 100%;
  max-height: 82vh;
  object-fit: contain;
}

.lightbox p {
  margin: 0;
  padding: 10px 18px 14px;
  color: var(--muted);
}

.lightbox-close {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 2;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.44);
  border-radius: 3px;
  color: #fff;
  background: rgba(0, 0, 0, 0.72);
  font-size: 1.7rem;
  cursor: pointer;
}

@media (max-width: 880px) {
  .site-header {
    grid-template-columns: 1fr auto;
    min-height: 68px;
  }

  .site-nav {
    display: none;
  }

  h1 {
    font-size: 4.2rem;
  }

  h2 {
    font-size: 2.25rem;
  }

  .fact-grid,
  .intro-grid,
  .death-layout,
  .section-heading,
  .download-layout,
  .android-release,
  .privacy-layout {
    grid-template-columns: 1fr;
  }

  .fact-grid div,
  .fact-grid div:first-child {
    min-height: 92px;
    border-right: 1px solid var(--line);
    border-left: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
  }

  .intro-grid,
  .death-layout,
  .section-heading,
  .download-layout,
  .android-release,
  .privacy-layout {
    gap: 30px;
  }

  .death-number {
    display: none;
  }

  .download-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 600px) {
  body {
    font-size: 16px;
  }

  .site-header {
    padding: 0 20px;
  }

  .wordmark {
    font-size: 0.88rem;
  }

  .hero {
    min-height: 88svh;
    background-position: 56% center;
  }

  .hero-content {
    width: calc(100% - 40px);
    margin-top: 70px;
  }

  h1 {
    font-size: 3.25rem;
  }

  h2 {
    font-size: 2rem;
  }

  .hero-line {
    font-size: 1.28rem;
  }

  .hero-copy {
    font-size: 0.96rem;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .button {
    width: 100%;
  }

  .section-inner {
    width: calc(100% - 40px);
  }

  .game-section,
  .gallery-section {
    padding: 76px 0;
  }

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

  .android-release {
    margin-top: 54px;
    padding-top: 42px;
  }

  .gallery-wide,
  .gallery-item {
    grid-column: auto;
    min-height: 210px;
    aspect-ratio: 4 / 3;
  }

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

  .footer-links {
    justify-content: flex-start;
    gap: 14px 22px;
  }

  .footer-layout small {
    grid-column: auto;
  }

  .privacy-details article {
    grid-template-columns: 1fr;
    gap: 7px;
  }
}

@media (max-width: 460px) {
  .android-art {
    grid-template-columns: 1fr;
  }
}

[dir="rtl"] .feature-list li {
  padding-right: 28px;
  padding-left: 0;
}

[dir="rtl"] .feature-list li::before {
  right: 4px;
  left: auto;
}

[dir="rtl"] .language-control select {
  direction: rtl;
}

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

  *,
  *::before,
  *::after {
    transition: none !important;
  }
}
