:root {
  --ink: #050d1c;
  --paper: #f3f7fc;
  --mute: #aebcd0;
  --cyan: #3cc8ff;
  --line: rgba(243, 247, 252, .16);
  --glass: rgba(8, 18, 36, .58);
  --display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --text: "B612", "Segoe UI", system-ui, sans-serif;
  --mono: "B612 Mono", ui-monospace, monospace;
}
* { box-sizing: border-box; }
html { background: var(--ink); scroll-behavior: smooth; }
body { margin: 0; color: var(--paper); font-family: var(--text); font-size: 17px; line-height: 1.55; -webkit-font-smoothing: antialiased; }

/* the film, and the veil that keeps text readable over it */
#film { position: fixed; inset: 0; width: 100%; height: 100%; display: block; background: var(--ink) url(poster.jpg) center / cover no-repeat; }
.veil { position: fixed; inset: 0; pointer-events: none;
  background: radial-gradient(120% 90% at 50% 45%, rgba(5,13,28,.30) 0%, rgba(5,13,28,.62) 100%); }

/* route line: the page's scroll position, drawn as the flight from gate to gate */
.route { position: fixed; z-index: 6; top: 0; left: 0; right: 0; height: 3px; background: rgba(243,247,252,.10); }
.route i { display: block; height: 100%; width: 0; background: var(--cyan); }

/* nav pill */
.nav { position: fixed; z-index: 5; top: 18px; left: 50%; transform: translateX(-50%); display: flex; align-items: center; gap: 6px; padding: 7px 8px 7px 16px; border: 1px solid var(--line); border-radius: 999px; background: var(--glass); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); white-space: nowrap; }
.mark { display: flex; align-items: center; gap: 9px; margin-right: 14px; font-family: var(--display); font-weight: 700; font-size: 19px; letter-spacing: .14em; color: var(--paper); text-decoration: none; }
.mark img { width: 24px; height: 24px; }
.mark i { font-style: normal; font-weight: 500; color: var(--cyan); }
.nav a.link { padding: 6px 12px; font-size: 14.5px; color: var(--mute); text-decoration: none; border-radius: 999px; }
.nav a.link:hover { color: var(--paper); }
.btn { display: inline-block; font-family: var(--display); font-weight: 700; font-size: 18px; letter-spacing: .05em; color: var(--ink); background: var(--paper); padding: 8px 20px 9px; border-radius: 999px; border: 1px solid var(--paper); text-decoration: none; }
.btn:hover { background: var(--cyan); border-color: var(--cyan); }
.btn.ghost { color: var(--paper); background: var(--glass); border-color: var(--line); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.btn.ghost:hover { border-color: var(--paper); background: var(--glass); }
a:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }

/* content */
main { position: relative; z-index: 2; }
section { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 0 24px; }
h1, h2, .wordmark { font-family: var(--display); font-weight: 700; line-height: .96; margin: 0; text-wrap: balance; text-shadow: 0 2px 30px rgba(5,13,28,.6); }
h1 { font-size: clamp(54px, 8.4vw, 128px); letter-spacing: -.01em; }
h2 { font-size: clamp(40px, 5.6vw, 84px); }
p { margin: 0; text-shadow: 0 1px 16px rgba(5,13,28,.7); }
.phase { font-family: var(--mono); font-size: 13.5px; color: var(--cyan); margin-bottom: 14px; }
.sub { margin-top: 18px; max-width: 46ch; font-size: clamp(17px, 1.5vw, 20px); color: #dfe8f3; }
.hero { min-height: 100vh; justify-content: flex-end; padding-bottom: 11vh; }
.hero .actions { margin-top: 26px; display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.moment { min-height: 74vh; }

/* details */
.details { padding-top: 12vh; padding-bottom: 14vh; }
.cards { margin-top: 34px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; width: min(1040px, 100%); text-align: left; }
.card { padding: 22px 22px 24px; border: 1px solid var(--line); border-radius: 18px; background: var(--glass); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.card h3 { margin: 0 0 12px; font-family: var(--display); font-weight: 700; font-size: 27px; line-height: 1; }
.card p, .card li { font-size: 15.5px; color: #d5dfec; text-shadow: none; }
.card ul { margin: 0; padding: 0; list-style: none; }
.card li { padding: 7px 0; border-top: 1px solid var(--line); }
.card li:first-child { border-top: 0; padding-top: 0; }
.card li b { font-weight: 400; color: var(--paper); }

/* arrival */
.arrival { position: relative; min-height: 100vh; justify-content: flex-start; padding-top: 21vh; }
.wordmark { font-size: clamp(34px, 9.4vw, 148px); letter-spacing: .1em; padding-left: .1em; white-space: nowrap; }
.wordmark i { font-style: normal; font-weight: 500; color: var(--cyan); }
.arrival .btn { margin-top: 24px; }
footer { position: absolute; left: 0; right: 0; bottom: 0; padding: 28px clamp(20px, 5vw, 64px) 12px; text-align: left; background: linear-gradient(rgba(5,13,28,0), rgba(5,13,28,.74)); font-size: 11.5px; line-height: 1.4; color: var(--mute); }
footer p { margin: 0 0 2px; text-shadow: 0 1px 6px rgba(5,13,28,.8); }
footer a { color: var(--paper); }

/* edit mode (?edit): type on the page, then copy the changes out */
.editing [data-edit] { outline: 1px dashed rgba(60,200,255,.55); outline-offset: 5px; border-radius: 4px; cursor: text; }
.editing [data-edit]:hover { outline-color: var(--cyan); }
.editing [data-edit]:focus { outline: 2px solid var(--cyan); }
.editing [data-edit].changed { outline-style: solid; background: rgba(60,200,255,.10); }
.editbar { position: fixed; z-index: 20; left: 50%; bottom: 14px; transform: translateX(-50%); display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: center; max-width: calc(100vw - 24px); padding: 10px 12px 10px 18px; border: 1px solid var(--cyan); border-radius: 16px; background: rgba(5,13,28,.92); font-size: 14.5px; }
.editbar b { font-weight: 700; }
.editbar button { font: inherit; font-weight: 700; color: var(--ink); background: var(--paper); border: 0; border-radius: 999px; padding: 7px 16px; cursor: pointer; }
.editbar button.quiet { color: var(--paper); background: transparent; border: 1px solid var(--line); font-weight: 400; }
.editbar button:hover { background: var(--cyan); color: var(--ink); }
.editout { position: fixed; z-index: 21; left: 50%; bottom: 76px; transform: translateX(-50%); width: min(720px, calc(100vw - 24px)); padding: 12px; border: 1px solid var(--cyan); border-radius: 14px; background: rgba(5,13,28,.96); }
.editout p { font-size: 13.5px; margin: 0 0 8px; text-shadow: none; text-align: left; }
.editout textarea { display: block; width: 100%; height: 220px; font: 13px/1.45 var(--mono); color: var(--paper); background: #0b1830; border: 1px solid var(--line); border-radius: 8px; padding: 10px; }

@media (max-width: 820px) {
  .nav { top: 12px; padding-left: 12px; }
  .mark span { display: none; }
  .nav { gap: 2px; padding: 6px 6px 6px 10px; }
  .nav a.link { padding: 6px 8px; font-size: 13.5px; }
  .nav .btn { font-size: 16px; padding: 7px 13px 8px; }
  .mark { margin-right: 6px; }
  .cards { grid-template-columns: 1fr; }
  .moment { min-height: 80vh; }
  .wordmark { letter-spacing: .06em; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* info page: a reading page over a still from the film */
.still { position: fixed; inset: 0; background: var(--ink) url(info-bg.jpg) center / cover no-repeat; }
.still::after { content: ""; position: absolute; inset: 0; background: linear-gradient(rgba(5,13,28,.55), rgba(5,13,28,.86) 45%, rgba(5,13,28,.94)); }
.details .more { margin-top: 26px; }
.doc { position: relative; z-index: 2; width: min(820px, 100%); margin: 0 auto; padding: 150px 24px 90px; text-align: left; }
.doc h1 { font-size: clamp(52px, 7vw, 96px); }
.doc .sub { max-width: 52ch; margin-top: 18px; }
.jump { margin: 30px 0 0; padding: 0; list-style: none; display: flex; gap: 10px; flex-wrap: wrap; }
.jump a { display: block; padding: 7px 16px; border: 1px solid var(--line); border-radius: 999px; background: var(--glass); color: var(--paper); text-decoration: none; font-size: 15px; }
.jump a:hover { border-color: var(--cyan); }
.doc article { margin-top: 64px; padding-top: 30px; border-top: 1px solid var(--line); scroll-margin-top: 90px; }
.doc h2 { font-size: clamp(38px, 4.6vw, 60px); margin-bottom: 16px; }
.doc h3 { font-family: var(--display); font-weight: 700; font-size: 28px; line-height: 1.05; margin: 34px 0 10px; }
.doc p { max-width: 64ch; margin: 0 0 14px; color: #dbe5f1; text-shadow: none; }
.doc ul, .doc ol { max-width: 64ch; margin: 0 0 14px; padding: 0; list-style: none; }
.doc li { padding: 11px 0; border-top: 1px solid var(--line); color: #dbe5f1; }
.doc li:first-child { border-top: 0; }
.doc li b { font-weight: 400; color: var(--paper); }
.doc ol { counter-reset: step; }
.doc ol li { position: relative; padding-left: 44px; counter-increment: step; }
.doc ol li::before { content: counter(step); position: absolute; left: 0; top: 11px; width: 28px; height: 28px; border: 1px solid var(--cyan); border-radius: 50%; font-family: var(--mono); font-size: 13px; line-height: 26px; text-align: center; color: var(--cyan); }
.doc .end { margin-top: 64px; display: flex; gap: 12px; flex-wrap: wrap; }
.doc footer { position: static; margin-top: 70px; padding: 18px 0 0; background: none; border-top: 1px solid var(--line); }

@media (max-width: 360px) { .nav a.link[href$="#flight"] { display: none; } }
.editbar .go { display: flex; align-items: center; gap: 6px; padding-left: 10px; border-left: 1px solid var(--line); color: var(--mute); }
.editbar .go a { padding: 5px 11px; border: 1px solid var(--line); border-radius: 999px; color: var(--paper); text-decoration: none; }
.editbar .go a:hover { border-color: var(--cyan); }
.editbar .go a[aria-current] { border-color: var(--cyan); color: var(--cyan); }
.sub.long { max-width: 62ch; font-size: clamp(16px, 1.25vw, 18px); }
.badge { display: inline-block; margin-top: 22px; padding: 5px 14px; border: 1px solid var(--cyan); border-radius: 999px; background: rgba(60,200,255,.12); font-size: 14px; color: var(--paper); text-shadow: none; }
.early { margin-top: 20px; max-width: 54ch; font-size: 14.5px; color: #e6edf6; }
.early a { color: var(--paper); }
