/* Opposition: First to Mars — website. One style sheet for every page. */
:root {
  --bg: #05080d;
  --panel: #0b1420;
  --line: #1f3a52;
  --text: #ebe2c6;  /* Warm cream, like old book paper: softer than white on the dark sky. */
  --muted: #a59d86;
  --cyan: #59c7f2;
  --rust: #d9774a;
  --dark-red: #c4533f;
  --read: 42rem;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 18px/1.7 "Source Serif 4", Georgia, serif;
}
a { color: var(--cyan); }
a:hover { color: #9fe0ff; }
img { max-width: 100%; display: block; }
h1, h2, h3, nav, .eyebrow, figcaption, .stat, .button, .timeline time, footer {
  font-family: "Barlow Condensed", "Bahnschrift", "Arial Narrow", sans-serif;
}
h1, h2, h3 { line-height: 1.15; letter-spacing: 0.02em; }

/* Top bar */
header.top {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 0.7rem 16px;
  background: rgba(5, 8, 13, 0.88);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}
header.top .brand { color: var(--cyan); text-decoration: none; font: 600 1.25rem/1 "Barlow Condensed", sans-serif; letter-spacing: 0.12em; }
header.top .brand small { color: var(--muted); letter-spacing: 0.08em; font-weight: 400; margin-left: 0.4rem; }
nav { display: flex; gap: 1.1rem; flex-wrap: wrap; font-size: 1.05rem; text-transform: uppercase; letter-spacing: 0.08em; }
nav a { color: var(--muted); text-decoration: none; }
nav a[aria-current="page"], nav a:hover { color: var(--cyan); }

/* Big opening picture */
.hero { position: relative; min-height: min(78vh, 760px); display: flex; align-items: flex-end; overflow: hidden; }
.hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, var(--bg) 4%, rgba(5, 8, 13, 0.25) 55%, rgba(5, 8, 13, 0.55)); }
.hero .words { position: relative; z-index: 1; padding: 2rem 16px 3rem; max-width: 60rem; margin: 0 auto; width: 100%; }
.hero h1 { font-size: clamp(2.6rem, 8vw, 5.5rem); margin: 0; color: var(--cyan); letter-spacing: 0.08em; }
.hero p { font-size: 1.25rem; max-width: 38rem; }
.eyebrow { text-transform: uppercase; letter-spacing: 0.2em; color: var(--rust); font-size: 1rem; margin: 0 0 0.4rem; }

/* Reading column */
main { padding: 0 16px 4rem; }
.read { max-width: var(--read); margin: 0 auto; }
.wide { max-width: 64rem; margin: 0 auto; }
section { padding-top: 3rem; }
h2 { font-size: clamp(1.9rem, 5vw, 2.8rem); color: #f4e9c8; margin: 0 0 1rem; }
h3 { font-size: 1.5rem; color: var(--cyan); margin: 2.2rem 0 0.6rem; }
p { margin: 0 0 1.1rem; }
.lead { font-size: 1.2rem; color: #f1e7c9; }
.scene { font-style: italic; color: #ddd2b4; border-left: 3px solid var(--rust); padding-left: 1rem; }

/* Pictures with credits */
figure { margin: 2rem 0; }
figure img { width: 100%; max-height: 640px; object-fit: cover; border: 1px solid var(--line); border-radius: 4px; }
figcaption { color: var(--muted); font-size: 0.98rem; margin-top: 0.4rem; line-height: 1.4; }
figure.bleed { max-width: 64rem; margin-left: auto; margin-right: auto; }

/* Dark moments: the people who were lost */
.loss {
  background: linear-gradient(90deg, rgba(196, 83, 63, 0.14), transparent);
  border-left: 4px solid var(--dark-red);
  padding: 1rem 1.2rem; margin: 1.6rem 0; border-radius: 0 4px 4px 0;
}
.loss strong { color: #ffb4a6; font-family: "Barlow Condensed", sans-serif; letter-spacing: 0.06em; text-transform: uppercase; display: block; }
.loss p:last-child { margin-bottom: 0; }

/* Chapter list */
.chapters { list-style: none; padding: 0; display: grid; gap: 0.6rem; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); }
.chapters a { display: block; padding: 0.8rem 1rem; background: var(--panel); border: 1px solid var(--line); border-radius: 4px; text-decoration: none; font-family: "Barlow Condensed", sans-serif; font-size: 1.15rem; color: var(--text); }
.chapters a span { color: var(--rust); display: block; font-size: 0.95rem; letter-spacing: 0.1em; }
.chapters a:hover { border-color: var(--cyan); }

/* Sources under each chapter */
.sources { margin-top: 2rem; padding: 1rem 1.2rem; background: var(--panel); border: 1px solid var(--line); border-radius: 4px; font-size: 0.95rem; line-height: 1.5; }
.sources h4 { margin: 0 0 0.5rem; font: 600 1rem/1 "Barlow Condensed", sans-serif; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.sources ol { margin: 0; padding-left: 1.3rem; }
.sources li { margin-bottom: 0.3rem; }
sup a { text-decoration: none; font-size: 0.75em; }

/* Game page */
.grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr)); }
.grid figure { margin: 0; }
.features { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); margin: 1.5rem 0; }
.feature { background: var(--panel); border: 1px solid var(--line); border-radius: 6px; padding: 1.1rem 1.2rem; }
.feature h3 { margin-top: 0; font-size: 1.3rem; }
.feature p { margin: 0; font-size: 1rem; line-height: 1.55; }
.button { display: inline-block; padding: 0.7rem 1.4rem; border: 1px solid var(--cyan); border-radius: 4px; text-decoration: none; text-transform: uppercase; letter-spacing: 0.12em; font-size: 1.1rem; }
.button:hover { background: rgba(89, 199, 242, 0.12); }

/* Future timeline */
.timeline { list-style: none; padding: 0; margin: 1.5rem 0; border-left: 2px solid var(--line); }
.timeline li { position: relative; padding: 0 0 1.4rem 1.4rem; }
.timeline li::before { content: ""; position: absolute; left: -7px; top: 0.55rem; width: 12px; height: 12px; border-radius: 50%; background: var(--cyan); }
.timeline li.unsure::before { background: var(--bg); border: 2px solid var(--muted); }
.timeline time { color: var(--rust); font-size: 1.2rem; letter-spacing: 0.06em; display: block; }

footer { border-top: 1px solid var(--line); padding: 2rem 16px; color: var(--muted); font-size: 1rem; text-align: center; }
footer a { color: var(--muted); }

@media (max-width: 600px) {
  body { font-size: 17px; }
  header.top { flex-direction: column; align-items: flex-start; gap: 0.4rem; }
  nav { gap: 0.8rem; font-size: 0.95rem; }
}
footer .company { font-size: 0.9rem; margin-top: 0.8rem; }
