/* lancefall.app. Palette and type follow the game: night sky, magma, and cyan for the player. */
:root {
  --ink: #07090f;
  --sky: #0b0f1a;
  --panel: #111726;
  --line: #232c42;
  --text: #e9edf6;
  --muted: #9aa5bd;
  --magma: #ff5a1f;
  --magma-hot: #ff8a3d;
  --gold: #ffb23e;
  --cyan: #35d6ff;
  --display: "Avenir Next Condensed", "Barlow Condensed", "Roboto Condensed", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  --body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font: 17px/1.6 var(--body);
}
img, video { max-width: 100%; display: block; }
a { color: var(--cyan); }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
}

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

h1, h2, h3, .eyebrow, .btn, .nav a, .chip, .stat b {
  font-family: var(--display);
}
h1, h2 { font-style: italic; font-weight: 800; text-transform: uppercase; letter-spacing: 0.01em; line-height: 0.98; margin: 0; text-wrap: balance; }
h2 { font-size: clamp(2rem, 5vw, 3.2rem); }
h3 { font-weight: 700; font-size: 1.35rem; letter-spacing: 0.04em; text-transform: uppercase; margin: 0 0 6px; }
p { margin: 0 0 1em; }
.eyebrow { color: var(--gold); font-size: 0.85rem; font-weight: 600; letter-spacing: 0.34em; text-transform: uppercase; margin: 0 0 14px; }
.lede { color: var(--muted); font-size: 1.1rem; max-width: 62ch; }

/* Header */
.top {
  position: sticky; top: 0; z-index: 20;
  background: rgba(7, 9, 15, 0.86);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font: italic 800 1.5rem/1 var(--display); letter-spacing: 0.02em; }
.brand img { width: 34px; height: 34px; border-radius: 8px; }
.nav { display: flex; align-items: center; gap: 22px; }
.nav a { color: var(--muted); text-decoration: none; font-size: 0.95rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; }
.nav a:hover { color: var(--text); }
.nav .btn { color: #140700; }
@media (max-width: 720px) { .nav a:not(.btn) { display: none; } }

/* Buttons: the slanted slab from the game's PLAY button */
.btn {
  display: inline-block;
  background: var(--magma);
  color: #140700;
  font-style: italic; font-weight: 800; font-size: 1.15rem; letter-spacing: 0.14em; text-transform: uppercase; text-decoration: none;
  padding: 13px 26px;
  border: 0; cursor: pointer;
  transform: skewX(-9deg);
  transition: background 0.15s, transform 0.15s;
}
.btn > span { display: inline-block; transform: skewX(9deg); }
.btn:hover { background: var(--magma-hot); transform: skewX(-9deg) translateY(-1px); }
.btn.small { font-size: 0.9rem; padding: 8px 16px; }
.btn.ghost { background: transparent; color: var(--text); box-shadow: inset 0 0 0 2px var(--line); }
.btn.ghost:hover { box-shadow: inset 0 0 0 2px var(--cyan); background: transparent; }
.btn[disabled] { opacity: 0.5; cursor: default; }

/* Hero */
.hero { position: relative; overflow: hidden; min-height: min(88vh, 760px); display: flex; align-items: flex-end; }
.hero video, .hero .poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(7, 9, 15, 0.94) 0%, rgba(7, 9, 15, 0.72) 42%, rgba(7, 9, 15, 0.2) 100%),
              linear-gradient(0deg, var(--ink) 0%, rgba(7, 9, 15, 0) 34%);
}
.hero .wrap { position: relative; z-index: 1; padding: 96px 0 72px; }
.hero h1 { font-size: clamp(3.6rem, 13vw, 8rem); color: #fff; text-shadow: 5px 5px 0 var(--magma); }
.hero .tag { font: 600 clamp(1rem, 2.6vw, 1.4rem)/1.2 var(--display); letter-spacing: 0.42em; text-transform: uppercase; color: var(--muted); margin: 18px 0 22px; }
.hero .lede { color: var(--text); }
.cta { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 22px; margin-top: 26px; }
.fine { color: var(--muted); font-size: 0.9rem; margin-top: 16px; }

/* Sections */
section { padding: 84px 0; }
section.alt { background: var(--sky); border-block: 1px solid var(--line); }
.head { margin-bottom: 40px; }

.rules { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.rule { background: var(--panel); border: 1px solid var(--line); border-top: 3px solid var(--magma); padding: 24px; }
.rule .n { font: italic 800 2.6rem/1 var(--display); color: var(--magma); }
.rule p { color: var(--muted); margin: 0; }
@media (max-width: 800px) { .rules { grid-template-columns: 1fr; } }

.feature { display: grid; grid-template-columns: 1.15fr 1fr; gap: 44px; align-items: center; margin-bottom: 72px; }
.feature:last-child { margin-bottom: 0; }
.feature.flip .shot { order: 2; }
.feature p { color: var(--muted); }
.feature ul { color: var(--muted); padding-left: 1.1em; margin: 0; }
.feature li { margin-bottom: 6px; }
.feature li::marker { color: var(--magma); }
.shot { border: 1px solid var(--line); background: #000; box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55); }
.shot img, .shot video { width: 100%; height: auto; }
@media (max-width: 860px) {
  .feature { grid-template-columns: 1fr; gap: 20px; margin-bottom: 52px; }
  .feature.flip .shot { order: 0; }
}

.clips { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.clips figure { margin: 0; }
.clips figcaption { color: var(--muted); font-size: 0.9rem; margin-top: 8px; }
@media (max-width: 800px) { .clips { grid-template-columns: 1fr; } }

.chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0 0; padding: 0; list-style: none; }
.chip { border: 1px solid var(--line); color: var(--text); font-size: 0.9rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; padding: 6px 12px; }

.road { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.card { background: var(--panel); border: 1px solid var(--line); padding: 26px; }
.card.now { border-top: 3px solid var(--cyan); }
.card.next { border-top: 3px solid var(--gold); }
.card ul { margin: 12px 0 0; padding-left: 1.1em; color: var(--muted); }
.card li { margin-bottom: 8px; }
.card li b { color: var(--text); font-weight: 600; }
.label { font: 600 0.8rem/1 var(--display); letter-spacing: 0.3em; text-transform: uppercase; }
.now .label { color: var(--cyan); }
.next .label { color: var(--gold); }
@media (max-width: 800px) { .road { grid-template-columns: 1fr; } }

.promise { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.stat { border-left: 3px solid var(--magma); padding: 4px 0 4px 16px; }
.stat b { display: block; font-style: italic; font-weight: 800; font-size: 1.7rem; text-transform: uppercase; line-height: 1.05; }
.stat span { color: var(--muted); font-size: 0.95rem; }
@media (max-width: 800px) { .promise { grid-template-columns: 1fr 1fr; } }

details { border-bottom: 1px solid var(--line); padding: 16px 0; }
summary { cursor: pointer; font-weight: 600; font-size: 1.05rem; list-style-position: outside; }
details p { color: var(--muted); margin: 10px 0 0; }

.final { text-align: center; background: radial-gradient(ellipse at 50% 120%, rgba(255, 90, 31, 0.34), transparent 62%), var(--ink); }
.final .cta { justify-content: center; }
.final .lede { margin-inline: auto; }

footer { border-top: 1px solid var(--line); padding: 36px 0 48px; color: var(--muted); font-size: 0.92rem; }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; }
footer a { color: var(--muted); }
footer a:hover { color: var(--text); }
footer nav { display: flex; flex-wrap: wrap; gap: 18px; }

/* Text pages */
.doc { padding: 64px 0 84px; }
.doc h1 { font-size: clamp(2.4rem, 7vw, 4rem); margin-bottom: 10px; }
.doc h2 { font-size: 1.6rem; font-style: normal; letter-spacing: 0.04em; margin: 40px 0 10px; }
.doc p, .doc li { color: #c9d1e2; }
.doc ul { padding-left: 1.2em; }
.doc .updated { color: var(--muted); font-size: 0.95rem; }
.doc .short { background: var(--panel); border: 1px solid var(--line); border-left: 3px solid var(--cyan); padding: 18px 20px; margin: 24px 0; }
.doc .short p:last-child { margin: 0; }

/* Form */
form { display: grid; gap: 16px; margin-top: 20px; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 640px) { .row { grid-template-columns: 1fr; } }
label { display: grid; gap: 6px; font-size: 0.92rem; color: var(--muted); }
input, select, textarea {
  width: 100%; background: var(--panel); color: var(--text);
  border: 1px solid var(--line); border-radius: 0; padding: 12px 14px; font: inherit; font-size: 16px;
}
textarea { min-height: 150px; resize: vertical; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.note { font-size: 0.92rem; color: var(--muted); }
.status { min-height: 1.5em; font-weight: 600; }
.status.ok { color: var(--cyan); }
.status.bad { color: var(--magma-hot); }
[hidden] { display: none !important; }

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