/* This Is Bad -- marketing page. One dark look taken from the game's own UI.
   Layout: full-bleed storm hero, the trailer, four in-game shots, a weather band,
   two scenario panoramas, a night band, a closing panel. body.doc is the plain
   text layout privacy.html uses. */
:root {
  --ground: #0d0a08;
  --card: #1a1612;
  --text: #e8e0d0;
  --text-muted: rgba(232, 224, 208, 0.72);
  --text-faint: rgba(232, 224, 208, 0.48);
  --border: rgba(136, 101, 59, 0.45);
  --border-strong: rgba(136, 101, 59, 0.8);
  --go: #78bc73;
  --go-hover: #8bcb86;
  --go-ink: #0d140c;
  --warn: #f0a060;

  --display: "Barlow Semi Condensed", "Arial Narrow", system-ui, sans-serif;
  --body: "Barlow", system-ui, -apple-system, "Segoe UI", sans-serif;
  --journal: "Newsreader", Georgia, "Times New Roman", serif;
  --mono: ui-monospace, Menlo, Consolas, monospace;

  --gutter-l: max(16px, env(safe-area-inset-left, 0px));
  --gutter-r: max(16px, env(safe-area-inset-right, 0px));
  --measure: 1080px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { background: var(--ground); -webkit-text-size-adjust: 100%; overflow-x: hidden; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--ground);
  color: var(--text);
  font: 400 1.0625rem/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, video { max-width: 100%; height: auto; display: block; }
a { color: var(--text); text-underline-offset: 3px; }
a:focus-visible { outline: 2px solid var(--go); outline-offset: 3px; }
h1, h2, h3 { text-wrap: balance; margin: 0; font-family: var(--display); font-weight: 700; }
p { margin: 0; }

.wrap {
  width: 100%;
  max-width: calc(var(--measure) + 32px);
  margin: 0 auto;
  padding-left: var(--gutter-l);
  padding-right: var(--gutter-r);
}
.kicker {
  font: 500 0.78rem/1.3 var(--body);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-faint);
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 48px; padding: 0 22px;
  border-radius: 6px;
  font: 700 1.05rem/1 var(--display);
  letter-spacing: 0.02em;
  text-decoration: none;
  white-space: nowrap;
}
.btn-go { background: var(--go); color: var(--go-ink); }
.btn-go:hover { background: var(--go-hover); }
.btn-go .dur { font: 500 0.85rem/1 var(--body); opacity: 0.75; }
.btn-quiet { border: 2px solid var(--border-strong); color: var(--text); background: rgba(13, 10, 8, 0.4); }
.btn-quiet:hover { border-color: var(--text-muted); }

/* ---------- hero ---------- */
.hero {
  position: relative;
  min-height: min(92svh, 860px);
  display: flex; align-items: flex-end;
  overflow: hidden;
  isolation: isolate;
}
.hero-art {
  position: absolute; inset: 0; z-index: -2;
  width: 100%; height: 100%;
  object-fit: cover; object-position: 66% 50%;
  transform-origin: 66% 50%;
}
@media (prefers-reduced-motion: no-preference) {
  .hero-art { animation: drift 40s ease-out forwards; }
  @keyframes drift { from { transform: scale(1.08); } to { transform: scale(1); } }
}
.hero-shade {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(to top, var(--ground) 0%, rgba(13, 10, 8, 0.92) 18%, rgba(13, 10, 8, 0.45) 48%, rgba(13, 10, 8, 0.1) 75%, rgba(13, 10, 8, 0) 100%),
    linear-gradient(to right, rgba(13, 10, 8, 0.55) 0%, rgba(13, 10, 8, 0) 60%);
}
.hero-copy { padding-top: 160px; padding-bottom: 56px; }
.hero h1 {
  font-size: clamp(3.6rem, 9vw, 7.5rem);
  line-height: 0.95;
  letter-spacing: -0.01em;
  margin: 10px 0 18px;
}
.lede {
  max-width: 34ch;
  font: italic 400 1.45rem/1.35 var(--journal);
  color: var(--text);
}
.actions { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 12px; }
.platforms { margin-top: 18px; color: var(--text-muted); font-size: 0.95rem; }

/* ---------- trailer ---------- */
.trailer { padding-block: 24px 72px; }
.frame {
  border: 2px solid var(--border);
  border-radius: 8px;
  background: var(--card);
  overflow: hidden;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
}
.frame video { width: 100%; aspect-ratio: 16 / 9; height: auto; background: #000; }

/* ---------- sections ---------- */
section h2 { font-size: clamp(2rem, 4.2vw, 3rem); line-height: 1.05; }
.hours { padding-block: 24px 80px; }
.lead {
  max-width: 58ch;
  margin: 16px 0 40px;
  color: var(--text-muted);
  font-size: 1.15rem;
}
.shots { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px 28px; }
.shots figure { margin: 0; display: grid; gap: 12px; align-content: start; }
.shots img {
  width: 100%; aspect-ratio: 16 / 9; object-fit: cover;
  border: 2px solid var(--border); border-radius: 8px; background: var(--card);
}
.shots figcaption { margin: 0; color: var(--text-muted); font-size: 1rem; line-height: 1.55; }
.shots figcaption b { display: block; margin-bottom: 4px; font: 700 1.35rem/1.2 var(--display); color: var(--text); }

/* ---------- full-bleed bands ---------- */
.band {
  position: relative;
  min-height: clamp(360px, 46vw, 560px);
  display: flex; align-items: flex-end;
  overflow: hidden; isolation: isolate;
}
.band > img {
  position: absolute; inset: 0; z-index: -2;
  width: 100%; height: 100%; object-fit: cover;
}
.band::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(to top, var(--ground) 0%, rgba(13, 10, 8, 0.75) 30%, rgba(13, 10, 8, 0.15) 65%, rgba(13, 10, 8, 0.35) 100%);
}
.band-storm > img { object-position: 50% 45%; }
.band-night > img { object-position: 50% 60%; }
.band-copy { padding-block: 40px; }
.band-copy p {
  max-width: 32ch;
  font: italic 400 clamp(1.5rem, 3vw, 2.1rem)/1.3 var(--journal);
}
.band-copy .unease { color: var(--warn); }
.band-copy .unease-q { margin-top: 14px; color: var(--text); }

/* ---------- scenarios ---------- */
.scenarios { padding-block: 72px 24px; }
.scenarios h2 { margin-bottom: 0; }
.scenarios .lead { margin-bottom: 28px; }
.scenario {
  position: relative;
  aspect-ratio: 21 / 9;
  min-height: 300px;
  border: 2px solid var(--border);
  border-radius: 8px;
  overflow: hidden; isolation: isolate;
  background: var(--card);
  display: flex; align-items: flex-end;
}
.scenario + .scenario { margin-top: 24px; }
.scenario > img {
  position: absolute; inset: 0; z-index: -2;
  width: 100%; height: 100%; object-fit: cover;
}
.scenario::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(to top, rgba(13, 10, 8, 0.95) 0%, rgba(13, 10, 8, 0.6) 35%, rgba(13, 10, 8, 0) 70%),
    linear-gradient(to right, rgba(13, 10, 8, 0.5) 0%, rgba(13, 10, 8, 0) 55%);
}
.scenario:nth-of-type(1) > img { object-position: 42% 55%; }
.scenario:nth-of-type(2) > img { object-position: 62% 50%; }
.scenario-copy { padding: 32px; max-width: 46ch; }
.scenario h3 { font-size: clamp(1.9rem, 3.6vw, 2.7rem); line-height: 1.05; margin: 6px 0 10px; }
.scenario-copy p:not(.kicker) { color: var(--text); font-size: 1.05rem; }

/* ---------- closing ---------- */
.closing { padding-block: 24px 80px; }
.closing .panel {
  border: 2px solid var(--border);
  border-radius: 8px;
  background: var(--card);
  padding: 48px 32px;
  text-align: center;
}
.closing .panel > p { max-width: 48ch; margin: 12px auto 0; color: var(--text-muted); }
.stores {
  list-style: none; margin: 32px auto 0; padding: 0;
  display: flex; flex-wrap: wrap; justify-content: center; gap: 12px;
}
.stores li {
  min-width: 160px; padding: 14px 20px;
  border: 1px solid var(--border); border-radius: 6px;
  background: var(--ground);
  display: flex; flex-direction: column; gap: 2px;
}
.store-name { font: 700 1.1rem/1.2 var(--display); }
.store-when { font: 500 0.72rem/1.3 var(--body); letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-faint); }
.closing .actions { justify-content: center; margin-top: 32px; }
.closing .small { font-size: 0.95rem; color: var(--text-faint); margin-top: 18px; }

/* ---------- footer ---------- */
footer { border-top: 1px solid var(--border); padding-block: 28px calc(28px + env(safe-area-inset-bottom, 0px)); }
footer .wrap { display: flex; flex-wrap: wrap; gap: 8px 28px; align-items: center; }
footer a { color: var(--text-muted); text-decoration: none; }
footer a:hover { color: var(--text); text-decoration: underline; }
footer span { color: var(--text-faint); margin-left: auto; }

/* ---------- plain document page (privacy.html) ---------- */
body.doc main { padding-block: 40px 64px; max-width: calc(760px + 32px); }
body.doc .wordmark { font: 700 1.35rem/1 var(--display); text-decoration: none; }
body.doc h1 { font-size: 2.6rem; line-height: 1.1; margin: 24px 0 8px; }
body.doc h2 { font-size: 1.4rem; line-height: 1.2; margin: 32px 0 8px; }
body.doc p { color: var(--text-muted); max-width: 68ch; margin: 0 0 12px; }
body.doc p strong, body.doc code { color: var(--text); }
body.doc .updated { font: 500 0.8rem/1.4 var(--mono); letter-spacing: 0.06em; color: var(--text-faint); }
body.doc footer .wrap { max-width: calc(760px + 32px); }

/* ---------- narrow screens ---------- */
@media (max-width: 720px) {
  body { font-size: 1rem; }
  .hero { min-height: min(88svh, 760px); }
  .hero-art { object-position: 74% 50%; transform-origin: 74% 50%; }
  .hero-copy { padding-top: 120px; padding-bottom: 40px; }
  .hero h1 { font-size: clamp(3.4rem, 17vw, 5rem); }
  .lede { font-size: 1.25rem; }
  .actions .btn { width: 100%; justify-content: center; }
  .trailer { padding-bottom: 56px; }
  .hours { padding-bottom: 56px; }
  .lead { margin-bottom: 28px; font-size: 1.05rem; }
  .shots { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .band { min-height: 420px; }
  .scenarios { padding-top: 56px; }
  .scenario { aspect-ratio: 4 / 5; min-height: 0; }
  .scenario-copy { padding: 20px; }
  .closing { padding-bottom: 56px; }
  .closing .panel { padding: 36px 20px; }
  .stores li { width: 100%; }
  footer span { margin-left: 0; width: 100%; }
}
