/* Doomsday Keep landing page. No build step: edit and reload. */

/* Be Vietnam Pro, self-hosted (SIL OFL 1.1, see /assets/fonts/OFL.txt). */
@font-face { font-family: "Be Vietnam Pro"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("/assets/fonts/bvp-vietnamese-400.woff2") format("woff2");
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB; }
@font-face { font-family: "Be Vietnam Pro"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("/assets/fonts/bvp-latin-400.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Be Vietnam Pro"; font-style: normal; font-weight: 600; font-display: swap;
  src: url("/assets/fonts/bvp-vietnamese-600.woff2") format("woff2");
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB; }
@font-face { font-family: "Be Vietnam Pro"; font-style: normal; font-weight: 600; font-display: swap;
  src: url("/assets/fonts/bvp-latin-600.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Be Vietnam Pro"; font-style: normal; font-weight: 800; font-display: swap;
  src: url("/assets/fonts/bvp-vietnamese-800.woff2") format("woff2");
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB; }
@font-face { font-family: "Be Vietnam Pro"; font-style: normal; font-weight: 800; font-display: swap;
  src: url("/assets/fonts/bvp-latin-800.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --bg: #0b1020;          /* moonlit night */
  --bg-2: #111a30;
  --panel: #16213b;
  --line: #26345a;
  --text: #e9edf5;
  --muted: #b3bdd1;       /* 9.6:1 on --bg */
  --moon: #e0473b;        /* Red Moon */
  --moon-soft: #ff8a7a;   /* 6.9:1 on --bg, for text */
  --gold: #f2c069;        /* warm day */
  --night: #8fb3ff;
  --radius: 14px;
  --font: "Be Vietnam Pro", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}
img, video { display: block; max-width: 100%; height: auto; }
a { color: var(--gold); }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .6em; }
h2 { font-size: clamp(1.7rem, 1.2rem + 2vw, 2.5rem); font-weight: 800; letter-spacing: -.01em; }
h3 { font-size: 1.15rem; font-weight: 600; }
p { margin: 0 0 1em; }

.wrap { width: min(1120px, 100% - 2.5rem); margin-inline: auto; }
.narrow { width: min(720px, 100% - 2.5rem); }

.skip {
  position: absolute; left: 1rem; top: -4rem; z-index: 10;
  background: var(--gold); color: #1a1205; padding: .5rem 1rem; border-radius: 8px;
  font-weight: 600; text-decoration: none;
}
.skip:focus { top: 1rem; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  place-items: center;
  overflow: hidden;
  isolation: isolate;
  text-align: center;
  padding: 6rem 1.25rem 5rem;
}
.hero__media { position: absolute; inset: 0; z-index: -2; }
.hero__video { width: 100%; height: 100%; object-fit: cover; }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(ellipse at 50% 45%, rgba(11,16,32,.5) 0%, rgba(11,16,32,.72) 60%, rgba(11,16,32,.92) 100%),
    linear-gradient(to bottom, rgba(11,16,32,.55) 0%, rgba(11,16,32,0) 30%, rgba(11,16,32,0) 65%, var(--bg) 100%);
}
.moon {
  position: absolute; z-index: 0;
  top: clamp(1.5rem, 7vh, 4.5rem); right: clamp(1.5rem, 9vw, 9rem);
  width: clamp(70px, 11vw, 150px); aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle at 42% 40%, #ff7a63 0%, #d9392e 60%, #a3221d 100%);
  opacity: .92;
  box-shadow: 0 0 40px 10px rgba(224,71,59,.45), 0 0 120px 40px rgba(224,71,59,.18);
}
.hero__content { position: relative; z-index: 1; max-width: 52rem; }
.eyebrow {
  color: var(--moon-soft); text-transform: uppercase; letter-spacing: .22em;
  font-size: .85rem; font-weight: 600; margin-bottom: .75rem;
}
.title {
  font-size: clamp(2.9rem, 1.5rem + 7vw, 6.5rem);
  font-weight: 800; letter-spacing: -.02em; margin-bottom: .2em;
  color: #fff3dc;
  text-shadow: 0 2px 0 #6b3a12, 0 6px 30px rgba(0,0,0,.6);
}
.tagline {
  font-size: clamp(1.2rem, 1rem + 1.2vw, 1.75rem); font-weight: 600;
  color: var(--text); margin-bottom: 1.6rem;
  text-shadow: 0 2px 12px rgba(0,0,0,.7);
}
.soon {
  display: inline-flex; align-items: center; gap: .6rem;
  padding: .55rem 1.1rem; border-radius: 999px;
  background: rgba(11,16,32,.72); border: 1px solid rgba(242,192,105,.45);
  color: var(--gold); font-weight: 600; font-size: .98rem; margin: 0;
}
.dot { width: .55rem; height: .55rem; border-radius: 50%; background: var(--moon); box-shadow: 0 0 10px var(--moon); }
.scroll-cue {
  position: absolute; bottom: 1.5rem; left: 50%; translate: -50% 0;
  color: var(--muted); text-decoration: none; font-size: 1.5rem; line-height: 1;
  padding: .5rem .8rem; border-radius: 8px;
}

/* ---------- Story ---------- */
.story { padding: clamp(4rem, 9vw, 7rem) 0 clamp(1.5rem, 4vw, 3rem); text-align: center; }
.story h2 { color: var(--moon-soft); }
.story__lines span { display: block; font-size: clamp(1.1rem, 1rem + .6vw, 1.35rem); color: var(--text); margin-bottom: .55em; }
.story__lines span:last-child { color: var(--gold); font-weight: 600; margin-top: .9em; }

/* ---------- How it plays ---------- */
.howto { padding: clamp(3.5rem, 8vw, 6rem) 0; background: linear-gradient(var(--bg), var(--bg-2) 30%, var(--bg-2) 70%, var(--bg)); }
.howto h2 { text-align: center; }
.cycle { display: grid; gap: 1.25rem; grid-template-columns: repeat(3, 1fr); margin-top: 2rem; }
.phase {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.5rem 1.5rem .75rem; border-top: 4px solid var(--accent);
}
.phase--day { --accent: var(--gold); }
.phase--night { --accent: var(--night); }
.phase--dawn { --accent: var(--moon-soft); }
.phase__time { color: var(--accent); text-transform: uppercase; letter-spacing: .18em; font-size: .8rem; font-weight: 600; margin-bottom: .35rem; }
.phase ul { margin: 0; padding-left: 1.1rem; color: var(--muted); }
.phase li { margin-bottom: .6em; }
.lose {
  text-align: center; margin: 2rem auto 0; max-width: 40rem; color: var(--muted);
}
.lose strong { color: var(--moon-soft); }
.clip { margin: 2.5rem auto 0; max-width: 960px; }
.clip video { width: 100%; border-radius: var(--radius); border: 1px solid var(--line); background: #000; aspect-ratio: 16 / 9; }
.clip figcaption { color: var(--muted); font-size: .95rem; text-align: center; margin-top: .75rem; }

/* ---------- Features ---------- */
.features { padding: clamp(3.5rem, 8vw, 6rem) 0; }
.features h2 { text-align: center; }
.feature-grid {
  list-style: none; margin: 2rem 0 0; padding: 0;
  display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr));
}
.feature-grid li {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.25rem 1.25rem .5rem;
}
.feature-grid h3 { color: var(--gold); }
.feature-grid p { color: var(--muted); font-size: .98rem; }
.tag {
  display: inline-block; margin-top: .4rem; padding: .1rem .55rem; border-radius: 999px;
  border: 1px solid var(--moon-soft); color: var(--moon-soft); font-size: .8rem; font-weight: 600;
}

/* ---------- Gallery ---------- */
.gallery { padding: clamp(1.5rem, 4vw, 3rem) 0 clamp(3.5rem, 8vw, 6rem); }
.gallery h2 { text-align: center; }
.shots {
  list-style: none; margin: 2rem 0 0; padding: 0;
  display: grid; gap: .9rem; grid-template-columns: repeat(3, 1fr);
}
.shots li.wide { grid-column: span 2; grid-row: span 2; }
.shots a { display: block; height: 100%; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); background: var(--panel); }
.shots img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 16 / 9; transition: transform .35s ease; }
.shots a:hover img, .shots a:focus-visible img { transform: scale(1.03); }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 2.5rem 0 3rem; background: #080c18; }
.footer__title { font-weight: 600; margin-bottom: .5rem; }
.credits { color: var(--muted); font-size: .9rem; max-width: 60rem; margin: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .cycle { grid-template-columns: 1fr; }
  .shots { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px) {
  body { font-size: 1rem; }
  .shots { grid-template-columns: 1fr; }
  .shots li.wide { grid-column: auto; grid-row: auto; }
  .moon { top: 1.25rem; right: 1.25rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .shots img { transition: none; }
}
