/* Layout: a tower-cab handout. Left-aligned hero with the game's own cab view, the three
   positions as flight progress strips, the rest as a shift briefing sheet. One dark look
   (the game's HUD), so no light theme. */
@font-face {
  font-family: "Rajdhani";
  src: url("fonts/rajdhani-600.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: "Rajdhani";
  src: url("fonts/rajdhani-700.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --ground: #121c19;        /* HUD panel green-black */
  --ground-2: #18241f;
  --rule: #2c3b35;
  --text: #e3ebe7;
  --muted: #9fb0a9;
  --amber: #f0c050;         /* HUD runway/ATIS amber */
  --green: #6fdc9c;         /* HUD readback chip */
  --you: #9db6d3;           /* HUD "YOU" chip */
  --strip: #ece4cc;         /* paper flight strip */
  --strip-ink: #1d2422;
  --strip-line: #b9ad8c;
  --display: "Rajdhani", "Arial Narrow", sans-serif;
  --body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SFMono-Regular", "DejaVu Sans Mono", Menlo, Consolas, monospace;
  --wrap: 1120px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ground);
  color: var(--text);
  font: 17px/1.6 var(--body);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--amber); }
a:hover { color: var(--text); }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; }

.wrap {
  max-width: var(--wrap);
  margin-inline: auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 700;
  line-height: 1.05;
  margin: 0;
  text-wrap: balance;
}
p { margin: 0; }

.label {
  font: 600 0.78rem/1.3 var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--amber);
}

/* Header */
.top {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding-block: 14px;
  border-bottom: 1px solid var(--rule);
}
.brand {
  font: 700 1.25rem/1 var(--display); letter-spacing: 0.06em;
  color: var(--text); text-decoration: none;
}
.brand span { color: var(--amber); }
.top .badge img { height: 42px; width: auto; }

/* Hero: text left, the cab view right; stacks on phones */
.hero {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 40px;
  align-items: center; padding-block: 48px 40px;
}
.hero-text { display: grid; gap: 18px; min-width: 0; }
.hero h1 { font-size: clamp(2.2rem, 4.6vw, 3.6rem); }
.lede { color: var(--muted); font-size: 1.08rem; max-width: 46ch; }
.cta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; }
.cta .badge img { height: 58px; width: auto; }
.cta p { color: var(--muted); font-size: 0.92rem; max-width: 26ch; }
.hero-shot { border: 1px solid var(--rule); min-width: 0; }

/* Transmission log, as in the game */
.log {
  border-block: 1px solid var(--rule); background: var(--ground-2);
}
.log .wrap { display: grid; gap: 8px; padding-block: 20px; }
.log .line { display: grid; grid-template-columns: 6.5rem minmax(0, 1fr); gap: 14px; align-items: baseline; }
.log .who {
  font: 700 0.72rem/1.6 var(--mono); letter-spacing: 0.06em; text-align: center;
  color: var(--ground); border-radius: 3px;
}
.log .you .who { background: var(--you); }
.log .pilot .who { background: var(--green); }
.log .said { font: 0.97rem/1.5 var(--mono); }
.log .you .said { color: var(--muted); }

section { padding-block: 64px; }
.section-head { display: grid; gap: 8px; margin-bottom: 28px; }
.section-head h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); }

/* Positions as flight progress strips */
.strips { display: grid; gap: 10px; }
.strip {
  display: grid; grid-template-columns: 7.5rem minmax(0, 1fr);
  background: var(--strip); color: var(--strip-ink);
  border-left: 6px solid var(--amber);
}
.strip .pos {
  display: grid; align-content: center; justify-items: center; gap: 2px;
  border-right: 1px solid var(--strip-line); padding: 14px 8px;
  font-family: var(--mono); text-align: center;
}
.strip .pos b { font-size: 1.35rem; letter-spacing: 0.04em; }
.strip .pos small { font-size: 0.7rem; letter-spacing: 0.06em; text-transform: uppercase; color: #5b5a4c; }
.strip .body { padding: 14px 18px; display: grid; gap: 4px; }
.strip h3 { font-size: 1.4rem; }
.strip p { color: #3a403c; }

/* Trailer */
.video {
  position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; max-width: 100%;
  border: 1px solid var(--rule); background: #000; padding: 0; cursor: pointer; overflow: hidden;
}
.video img { width: 100%; height: 100%; object-fit: cover; }
.video .play {
  position: absolute; left: 24px; bottom: 24px;
  display: flex; align-items: center; gap: 12px;
  background: var(--ground); color: var(--text); border: 1px solid var(--amber);
  padding: 10px 16px 10px 14px; font: 600 1.05rem/1 var(--display); letter-spacing: 0.06em;
}
.video .play::before {
  content: ""; border-style: solid; border-width: 8px 0 8px 13px;
  border-color: transparent transparent transparent var(--amber);
}
.video:hover .play { background: var(--ground-2); }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.note { color: var(--muted); font-size: 0.85rem; margin-top: 10px; }

/* Screenshots */
.shots {
  display: grid; grid-auto-flow: column; grid-auto-columns: min(86%, 720px); gap: 14px;
  overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 12px;
  overscroll-behavior-x: contain;
}
.shots img { scroll-snap-align: start; border: 1px solid var(--rule); }

/* Briefing sheet: label column, text column */
.brief { border-top: 2px solid var(--amber); }
.brief > div {
  display: grid; grid-template-columns: 13rem minmax(0, 1fr); gap: 8px 32px;
  padding-block: 22px; border-bottom: 1px solid var(--rule);
}
.brief h3 { font-size: 1.35rem; }
.brief p { color: var(--muted); max-width: 66ch; }

.closing { background: var(--ground-2); border-top: 1px solid var(--rule); }
.closing .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; }
.closing p { max-width: 40ch; flex: 1 1 18rem; }
.closing .sign { width: 260px; max-width: 100%; border: 1px solid var(--rule); }

/* Legal pages: one reading column */
.doc { max-width: 760px; padding-block: 40px 56px; }
.doc > header { display: grid; gap: 10px; padding-bottom: 20px; margin-bottom: 8px; border-bottom: 2px solid var(--amber); }
.doc h1 { font-size: clamp(2rem, 4vw, 2.8rem); }
.doc .intro { color: var(--muted); }
.doc section { padding-block: 18px 6px; border-bottom: 1px solid var(--rule); }
.doc h2 { font-size: 1.45rem; margin-bottom: 10px; }
.doc h3 { font-size: 1.15rem; margin: 14px 0 6px; }
.doc p, .doc li { color: var(--muted); }
.doc p + p, .doc p + ul, .doc ul + p { margin-top: 12px; }
.doc ul, .doc ol { padding-left: 1.3em; margin: 8px 0 0; }
.doc strong { color: var(--text); }

footer { padding-block: 28px 40px; color: var(--muted); font-size: 0.86rem; }
footer .wrap { display: grid; gap: 6px; }
footer nav { display: flex; flex-wrap: wrap; gap: 6px 20px; margin-bottom: 8px; }

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; padding-block: 28px 32px; }
  .hero-shot { order: -1; }
  .brief > div { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .top .badge { display: none; }
  .log .line { grid-template-columns: 1fr; gap: 2px; }
  .log .who { justify-self: start; padding-inline: 8px; }
  .strip { grid-template-columns: 4.8rem minmax(0, 1fr); }
  .strip .pos b { font-size: 1.1rem; }
  .video .play { left: 12px; bottom: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .shots { scroll-behavior: auto; }
}
