/* VZNK Labs: one stylesheet for every page. One container (.wrap) holds header, hero, sections and footer so all edges line up. */

@font-face {
  font-family: "Marcellus";
  src: url("/assets/fonts/Marcellus-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --ground: #0f0021;        /* the game's launch colour */
  --ground-raised: #1a0a38;
  --ink: #f3eeff;
  --ink-soft: #c9bfe4;      /* 11.6:1 on ground */
  --ink-faint: #a69ac6;     /* 7.7:1 on ground */
  --line: #3a2a63;          /* decorative rules only */
  --line-strong: #7a68ad;   /* control borders, 4.2:1 on ground */
  --gold: #f2c46d;
  --gold-hot: #ffd98f;
  --on-gold: #1c0f00;
  --cyan: #79e6ff;          /* links, focus */
  --violet: #8d5cff;
  --ember: #ff9d47;

  --display: "Marcellus", "Trajan Pro", Georgia, serif;
  --text: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --gutter: clamp(16px, 4vw, 40px);
  --max: 1120px;
  --section: clamp(72px, 10vw, 136px);
  --radius-device: 26px;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  background: var(--ground);
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 24px;
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font: 400 1.0625rem/1.65 var(--text);
  letter-spacing: 0.005em;
  overflow-x: clip;
}

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

::selection { background: var(--violet); color: #fff; }

a { color: var(--cyan); text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
a:hover { color: #b5f1ff; }

:focus-visible {
  outline: 3px solid var(--cyan);
  outline-offset: 3px;
  border-radius: 6px;
}

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -0.01em;
  text-wrap: balance;
  margin: 0;
}
p { margin: 0; text-wrap: pretty; }

.wrap {
  width: min(100% - 2 * var(--gutter), var(--max));
  margin-inline: auto;
}

.nowrap { white-space: nowrap; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip {
  position: absolute;
  left: var(--gutter);
  top: -100px;
  z-index: 10;
  padding: 12px 16px;
  background: var(--ink);
  color: var(--ground);
  border-radius: 8px;
}
.skip:focus { top: 12px; }
.skip:hover { color: var(--ground); }

/* ---------- Header ---------- */

.site-header {
  position: relative;
  z-index: 2;
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 76px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  color: var(--ink);
  text-decoration: none;
  font-family: var(--display);
  font-size: 1.1875rem;
  letter-spacing: 0.04em;
  white-space: nowrap;
}
.brand img { width: 30px; height: 30px; }
.site-nav { display: flex; gap: 4px; margin-right: -12px; }
.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 12px;
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 0.9375rem;
  border-radius: 8px;
}
.site-nav a:hover { color: var(--ink); }
.site-nav a[aria-current="page"] { color: var(--ink); text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 0.45em; }

/* ---------- Buttons and the status chip ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 54px;
  padding: 0 28px;
  border-radius: 999px;
  background: var(--gold);
  color: var(--on-gold);
  font: 600 1.0625rem/1 var(--text);
  text-decoration: none;
  box-shadow: 0 10px 24px -10px rgba(0, 0, 0, 0.7);
  transition: background-color 0.2s ease, transform 0.2s ease;
}
.btn:hover { background: var(--gold-hot); color: var(--on-gold); }
.btn:active { transform: translateY(1px); }
.btn svg { width: 20px; height: 20px; flex: none; }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(15, 0, 33, 0.55);
  color: var(--ink);
  font-size: 0.9375rem;
}
.chip::before {
  content: "";
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--cyan);
}

.action {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 14px 18px;
}
.action-note {
  margin-top: 14px;
  color: var(--ink-faint);
  font-size: 0.9375rem;
}

/* ---------- Hero ---------- */

.hero {
  --art-h: clamp(440px, 54vw, 860px);
  position: relative;
  margin-top: -76px;              /* the art runs under the header */
  padding-top: calc(var(--art-h) * 0.5);
  padding-bottom: clamp(16px, 3vw, 40px);
  text-align: center;
  isolation: isolate;
}
.hero-art {
  position: absolute;
  inset: 0 0 auto 0;
  height: var(--art-h);
  z-index: -1;
  -webkit-mask-image: linear-gradient(to bottom, #000 62%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 62%, transparent 100%);
  overflow: hidden;
}
.hero-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 34%;
}
@media (prefers-reduced-motion: no-preference) {
  .hero-art img { animation: drift 40s ease-in-out infinite alternate; transform-origin: 50% 34%; }
  @keyframes drift { from { transform: scale(1); } to { transform: scale(1.06) rotate(-0.6deg); } }
}
.hero h1 { line-height: 0; }
.hero h1 img {
  width: clamp(300px, 36vw, 480px);
  margin-inline: auto;
  filter: drop-shadow(0 8px 24px rgba(15, 0, 33, 0.8));
}
.hero .tagline {
  max-width: 40ch;
  margin: clamp(8px, 1.5vw, 16px) auto 0;
  color: var(--ink);
  font-size: clamp(1.125rem, 1rem + 0.5vw, 1.375rem);
  line-height: 1.5;
  text-shadow: 0 2px 16px rgba(15, 0, 33, 0.9);
}
.hero .action { margin-top: clamp(24px, 3vw, 32px); }

/* ---------- Sections ---------- */

.section { padding-block: var(--section); }
.section-head { max-width: 40rem; }
.section-head h2 { font-size: clamp(2rem, 1.3rem + 2.6vw, 3.25rem); }
.section-head p {
  margin-top: 20px;
  color: var(--ink-soft);
  font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.25rem);
  max-width: 38em;
}

/* Feature rows: image and text alternate sides on the shared grid. */
.rows {
  display: grid;
  gap: clamp(64px, 8vw, 112px);
  margin-top: clamp(48px, 6vw, 88px);
}
.row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  grid-template-areas: "media text";
  align-items: center;
  gap: clamp(32px, 6vw, 88px);
}
.row:nth-child(even) { grid-template-areas: "text media"; }
.row-media { grid-area: media; }
.row-text { grid-area: text; max-width: 30rem; }
.row-text h3 { font-size: clamp(1.625rem, 1.2rem + 1.4vw, 2.375rem); }
.row-text p {
  margin-top: 16px;
  color: var(--ink-soft);
  font-size: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
}
.row-text .shot-note {
  margin-top: 20px;
  color: var(--ink-faint);
  font-size: 0.875rem;
}

/* The black hole as the recurring shape: an event-horizon ring behind each game image. */
.horizon {
  position: relative;
  display: grid;
  place-items: center;
  padding-block: clamp(16px, 3vw, 40px);
  isolation: isolate;
}
.horizon::before {
  content: "";
  position: absolute;
  z-index: -1;
  width: min(100%, var(--ring, 460px));
  aspect-ratio: 1;
  top: 50%;
  left: 50%;
  translate: -50% -50%;
  border-radius: 50%;
  background:
    radial-gradient(circle closest-side, var(--ground) 0 87%, var(--ember) 87.6% 88.6%, var(--gold) 89.2%, rgba(141, 92, 255, 0.5) 90%, transparent 91%);
}
.device {
  width: clamp(200px, 24vw, 300px);
  border-radius: var(--radius-device);
  overflow: hidden;
  box-shadow: 0 28px 60px -24px rgba(0, 0, 0, 0.85);
}
.device img { width: 100%; }

.realms {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  width: 100%;
  max-width: 520px;
}
.realms img {
  width: 100%;
  border-radius: 14px;
  box-shadow: 0 20px 44px -22px rgba(0, 0, 0, 0.9);
}
.realms .big { grid-column: 1 / -1; }

/* Facts: platform, price, offline, controls. */
.facts {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-block: 1px solid var(--line);
}
.facts li {
  padding: clamp(24px, 3vw, 36px) clamp(12px, 2vw, 24px);
}
.facts li + li { border-left: 1px solid var(--line); }
.facts li:first-child { padding-left: 0; }
.facts strong {
  display: flex;
  align-items: center;
  gap: 10px;
  font: 400 clamp(1.25rem, 1.1rem + 0.5vw, 1.5rem)/1.2 var(--display);
}
.facts strong::before {
  content: "";
  flex: none;
  width: 12px; height: 12px;
  border-radius: 50%;
  border: 2px solid var(--gold);
}
.facts span { display: block; margin-top: 8px; color: var(--ink-faint); font-size: 0.9375rem; }

/* Closing call to action: the event horizon at page scale. */
.close {
  position: relative;
  text-align: center;
  padding-block: clamp(120px, 15vw, 200px);
  isolation: isolate;
  overflow: hidden;
}
.close::before {
  content: "";
  position: absolute;
  z-index: -1;
  width: clamp(480px, 50vw, 640px);
  aspect-ratio: 1;
  top: 50%; left: 50%;
  translate: -50% -50%;
  border-radius: 50%;
  background:
    radial-gradient(circle closest-side, var(--ground) 0 88%, var(--ember) 88.5% 89.3%, var(--gold) 89.8%, rgba(141, 92, 255, 0.5) 90.5%, transparent 91.3%);
}
.close h2 { font-size: clamp(1.875rem, 1.3rem + 2vw, 2.875rem); max-width: 12ch; margin-inline: auto; }
.close p.lede {
  max-width: 28ch;
  margin: 18px auto 0;
  color: var(--ink-soft);
  font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.25rem);
}
.close .action { margin-top: 32px; }

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--line);
  padding-block: 48px 40px;
  color: var(--ink-faint);
  font-size: 0.9375rem;
}
.site-footer .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 32px 48px;
  align-items: start;
}
.studio { display: flex; gap: 16px; align-items: flex-start; max-width: 30rem; }
.studio picture { flex: none; }
.studio img { width: 56px; height: 56px; border-radius: 13px; }
.studio b { display: block; color: var(--ink); font: 400 1.125rem/1.3 var(--display); margin-bottom: 4px; }
.footer-nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 0 4px; margin-right: -12px; }
.footer-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 12px;
  color: var(--ink-soft);
}
.footer-nav a:hover { color: var(--ink); }
.copyright { grid-column: 1 / -1; color: var(--ink-faint); font-size: 0.875rem; }

/* ---------- Reading pages (support, press) ---------- */

.page { padding-block: clamp(40px, 7vw, 88px) var(--section); }
.page-head h1 { font-size: clamp(2.25rem, 1.5rem + 3vw, 3.5rem); }
.page-head p { margin-top: 16px; color: var(--ink-soft); font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.25rem); max-width: 38em; }
.page-head .action { justify-content: flex-start; margin-top: 28px; }
.prose { max-width: 42rem; }
.prose h2 { font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); margin: 56px 0 16px; }
.prose h3 { font: 600 1.0625rem/1.4 var(--text); letter-spacing: 0; margin: 28px 0 6px; color: var(--ink); }
.prose p, .prose li { color: var(--ink-soft); }
.prose p + p { margin-top: 12px; }
.prose ul { padding-left: 1.2em; margin: 0; }
.prose p + ul { margin-top: 14px; }
.prose li + li { margin-top: 8px; }
.prose li::marker { color: var(--gold); }
.prose a, .page-head p a { display: inline-block; padding-block: 11px; margin-block: -11px; }

.sheet {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 10px 28px;
  margin: 0;
}
.sheet dt { color: var(--ink-faint); }
.sheet dd { margin: 0; color: var(--ink); }

.press-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr));
  gap: 28px 24px;
  margin-top: 24px;
}
.press-grid figure { margin: 0; }
.press-grid .tile {
  display: grid;
  place-items: center;
  aspect-ratio: 4 / 3;
  border-radius: 14px;
  background: var(--ground-raised);
  overflow: hidden;
}
.press-grid .tile img { max-height: 100%; width: auto; object-fit: contain; }
.press-grid .tile.fill img { width: 100%; height: 100%; object-fit: cover; }
.press-grid .tile.pad img { max-width: 78%; max-height: 78%; }
.press-grid figcaption { margin-top: 10px; color: var(--ink); }
.press-grid figcaption a { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; min-width: 44px; }
.press-grid figcaption small { color: var(--ink-faint); font-size: 0.875rem; margin-left: 6px; }
.prose-wide { max-width: none; }
.press-grid .tile img.app-icon { border-radius: 22%; }
.press-note { margin-top: 28px; }
.press-cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: clamp(32px, 6vw, 80px); align-items: start; }

/* ---------- Narrow screens ---------- */

@media (max-width: 860px) {
  .row, .row:nth-child(even) {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "media" "text";
    gap: 28px;
  }
  .row-text { justify-self: stretch; max-width: 34rem; }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .facts li:nth-child(3) { border-left: 0; padding-left: 0; }
  .facts li:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .site-footer .wrap { grid-template-columns: minmax(0, 1fr); }
  .footer-nav { justify-content: flex-start; margin-left: -12px; margin-right: 0; }
  .press-cols { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 520px) {
  .brand span { font-size: 1.0625rem; }
  .site-nav a { padding: 0 9px; font-size: 0.875rem; }
  .site-nav { margin-right: -9px; }
  .facts li { padding-inline: 12px 8px; }
  .facts li:nth-child(odd) { padding-left: 0; }
  .facts strong { font-size: 1.125rem; }
  .device { width: min(62vw, 260px); }
  .action .btn { width: 100%; }
  .close .action .btn { width: auto; }
}
