/* Hallmark · genre: atmospheric · macrostructure: Marquee Hero · H1 knobs: size=xl, alignment=left-bias, underlay=none
 * theme: custom (vibe: "night paddock — navy dark, arcade yellow" · paper oklch(15% 0.025 265) · accent oklch(88% 0.17 100) warm-yellow · Tomorrow 600 + Geist 350)
 * axes: dark / display-condensed / warm-yellow · nav: N9 edge-aligned (wordmark image + text-arrow CTA) · footer: Ft5 statement (sentence=mailto, hairline meta)
 * enrichment: none — real brand key art only · motion: hero reveal + CTA lift (2 primitives)
 * contrast: pass (40–41) · slop: pass (42–45) · honest: pass (46) · chrome: pass (47) · tokens: pass (48)
 * responsive: pass (49) · icons: pass (30) · mobile: pass (34, 49, 50–57)
 * Hallmark · pre-emit critique: P4 H4 E4 S4 R5 V4
 */

@import url("tokens.css");

html { overflow-x: clip; }
body { overflow-x: clip; }

* { box-sizing: border-box; margin: 0; }

body {
  background: var(--color-paper);
  color: var(--color-ink);
  font-family: var(--font-body);
  font-weight: 350;
  font-size: var(--text-base);
  line-height: 1.6;
  padding-inline: max(0px, env(safe-area-inset-left)) max(0px, env(safe-area-inset-right));
}

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

::selection { background: var(--color-accent); color: var(--color-accent-ink); }

a { color: var(--color-ink); text-decoration-color: var(--color-rule); text-underline-offset: 0.2em; }
a:hover { text-decoration-color: var(--color-accent); }
:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 3px; border-radius: 2px; }

/* ---- nav · N9 edge-aligned minimal ---------------------------------- */

.nav-edge {
  position: absolute;
  inset: 0 0 auto 0;
  z-index: var(--z-raised);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-lg) var(--page-gutter);
}
.nav-edge__mark img { height: 24px; width: auto; }
.nav-edge__cta {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: var(--text-sm);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  color: var(--color-ink);
  padding: var(--space-xs) 0;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  border-bottom: 2px solid transparent;
  transition: border-color var(--dur-micro) var(--ease-out);
}
.nav-edge__cta:hover { border-bottom-color: var(--color-accent); }
.nav-edge--page { position: static; background: var(--color-paper-2); }

/* ---- hero · Marquee (art fills the fold, statement anchored low-left) */

.hero-marquee {
  position: relative;
  min-height: 88dvh;
  display: grid;
  align-content: end;
  padding: var(--space-xl) var(--page-gutter) var(--space-2xl);
  isolation: isolate;
}
.hero-marquee__art {
  position: absolute;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 62% 50%;
}
.hero-marquee__art-scrim {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(to top, var(--color-scrim), var(--color-scrim-0) 55%);
}
.hero-marquee h1 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--text-display);
  line-height: 1.06;
  letter-spacing: 0.015em;
  text-transform: uppercase;
  max-width: 20ch;
  min-width: 0;
  overflow-wrap: anywhere;
}

/* ---- game · poster figure + bottom-anchored annotation (S5) --------- */

.game {
  padding: var(--space-3xl) var(--page-gutter) var(--space-2xl);
  display: grid;
  gap: var(--space-xl);
}
.game__poster {
  position: relative;
  border-radius: var(--radius-card);
  overflow: hidden;
  background: var(--color-paper-2);
}
.game__poster > img { width: 100%; }
img.game__poster-logo {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: clamp(180px, 38%, 420px);
  height: auto;
}
.game__note {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: var(--space-md) var(--space-2xl);
  align-items: end;
}
.game__note h2 {
  grid-column: 1 / -1;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--text-2xl);
  line-height: 1.06;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  min-width: 0;
  overflow-wrap: anywhere;
}
.game__note h2::before {
  content: "";
  display: inline-block;
  inline-size: 0.45em;
  block-size: 0.45em;
  margin-inline-end: 0.45em;
  background: var(--color-accent);
}
.game__blurb { max-width: 52ch; color: var(--color-muted); font-size: var(--text-md); }
.game__act { justify-self: end; }

.cta-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  white-space: nowrap;
  min-height: 44px;
  padding: var(--space-sm) var(--space-lg);
  border-radius: var(--radius-pill);
  background: var(--color-accent);
  color: var(--color-accent-ink);
  font-family: var(--font-body);
  font-weight: 500;
  text-decoration: none;
  transition: transform var(--dur-short) var(--ease-out), background-color var(--dur-short) var(--ease-out);
}
.cta-pill:hover { transform: translateY(-1.5px); }
.cta-pill:active { transform: translateY(0); transition-duration: 60ms; }

/* ---- studio · continuous prose, inline head (S4), one bloom --------- */

.studio {
  position: relative;
  padding: var(--space-2xl) var(--page-gutter) var(--space-4xl);
}
.studio::before {
  content: "";
  position: absolute;
  inset: auto auto 0 -10%;
  width: 55%;
  aspect-ratio: 1.6;
  background: radial-gradient(ellipse at center, var(--color-bloom), transparent 70%);
  pointer-events: none;
}
.studio p {
  max-width: 58ch;
  font-size: var(--text-lg);
  line-height: 1.5;
  font-weight: 350;
}
.studio p + p { margin-block-start: var(--space-lg); }
.head-inline {
  font-variant-caps: all-small-caps;
  letter-spacing: 0.08em;
  font-weight: 500;
  color: var(--color-accent);
}

/* ---- footer · Ft5 statement (the contact line closes the page) ------ */

.foot-stmt {
  padding: var(--space-2xl) var(--page-gutter) var(--space-xl);
  display: grid;
  gap: var(--space-xl);
  background: var(--color-paper-2);
}
.foot-stmt__label {
  font-family: var(--font-outlier);
  font-size: var(--text-sm);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-muted);
}
.foot-stmt__line {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--text-display-s);
  line-height: 1.05;
  letter-spacing: 0.01em;
  max-width: 28ch;
  min-width: 0;
  overflow-wrap: anywhere;
  color: var(--color-ink);
  text-decoration: none;
  justify-self: start;
  border-bottom: 3px solid var(--color-accent);
  padding-block-end: 0.08em;
  transition: color var(--dur-micro) var(--ease-out);
}
.foot-stmt__line:hover { color: var(--color-accent); }
.foot-stmt__meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md) var(--space-xl);
  align-items: center;
  padding-block-start: var(--space-md);
  border-top: var(--rule-hair) solid var(--color-rule);
  font-size: var(--text-sm);
  color: var(--color-muted);
}
.foot-stmt__meta img { height: 16px; width: auto; opacity: 0.75; }
.foot-stmt__meta a { color: var(--color-muted); white-space: nowrap; }
.foot-stmt__meta .spacer { flex: 1; }

/* ---- content pages (terms / privacy / 404) --------------------------- */

.doc {
  padding: var(--space-2xl) var(--page-gutter) var(--space-3xl);
  max-width: 46rem;
}
.doc h1 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--text-display-s);
  line-height: 1.06;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  margin-block-end: var(--space-2xl);
  min-width: 0;
  overflow-wrap: anywhere;
}
.doc h2, .doc h3, .doc h4 {
  font-family: var(--font-body);
  font-weight: 600;
  line-height: 1.25;
  margin-block: var(--space-2xl) var(--space-md);
}
.doc h2 { font-size: var(--text-lg); }
.doc h3 { font-size: var(--text-md); }
.doc h4 { font-size: var(--text-base); }
.doc p, .doc li { max-width: 65ch; color: var(--color-muted); }
.doc p { margin-block: var(--space-md); }
.doc ul, .doc ol { padding-inline-start: 1.4rem; margin-block: var(--space-md); }
.doc li { margin-block: var(--space-xs); }
.doc strong { color: var(--color-ink); font-weight: 500; }
.doc a { color: var(--color-ink); }

/* ---- page-load reveal (single orchestrated moment) ------------------- */

.reveal {
  opacity: 0;
  transform: translateY(8px);
  animation: reveal var(--dur-long) var(--ease-out) forwards;
  animation-delay: calc(var(--i, 0) * 60ms);
}
@keyframes reveal { to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 150ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 150ms !important;
  }
  .reveal { animation: reveal-reduced 150ms linear forwards; }
  @keyframes reveal-reduced { to { opacity: 1; transform: none; } }
  .cta-pill:hover { transform: none; }
}

/* ---- responsive ------------------------------------------------------- */

@media (max-width: 60rem) {
  .game__note { grid-template-columns: minmax(0, 1fr); align-items: start; }
  .game__act { justify-self: start; }
}
@media (max-width: 40rem) {
  .hero-marquee { min-height: 76dvh; padding-block-end: var(--space-xl); }
  .hero-marquee__art { object-position: 32% 50%; }
  .hero-marquee h1 { font-size: var(--text-display-s); }
  .game { padding-block-start: var(--space-2xl); }
  .game__note h2 { font-size: var(--text-xl); }
  .studio p { font-size: var(--text-md); }
  .foot-stmt__meta { flex-direction: column; align-items: flex-start; gap: var(--space-sm); }
  .foot-stmt__meta .spacer { display: none; }
}
