/* Flight Beyond the Stars: site styles.
   Direction: a poster from a vintage space film, lit by the amber lamps of a miniature hangar. One dark world, no theme switch.
   Layout idea: full-bleed art, narrow text columns, and the ship's teal-and-orange stripe as the only ornament. */

@font-face { font-family: "Anton"; src: url("../fonts/Anton-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Fira Sans"; src: url("../fonts/FiraSans-Light.woff2") format("woff2"); font-weight: 300; font-display: swap; }
@font-face { font-family: "Fira Sans"; src: url("../fonts/FiraSans-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Fira Sans"; src: url("../fonts/FiraSans-Medium.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Crimson Text"; src: url("../fonts/CrimsonText-Italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }

:root {
  --night: #0b0e14;
  --night-2: #121722;
  --night-3: #1a2130;
  --cream: #f3e6c8;
  --cream-dim: #c9bd9f;
  --amber: #e8a33d;
  --teal: #2fb3a8;
  --orange: #e8793a;
  --line: rgba(243, 230, 200, 0.16);
  --display: "Anton", "Impact", "Arial Narrow", sans-serif;
  --body: "Fira Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
  --serif: "Crimson Text", Georgia, "Times New Roman", serif;
  --gutter: clamp(18px, 4vw, 56px);
  --measure: 62ch;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--night); color: var(--cream);
  font-family: var(--body); font-weight: 400; font-size: 18px; line-height: 1.6;
}
img, video { max-width: 100%; display: block; }
a { color: var(--amber); text-underline-offset: 3px; }
a:hover { color: var(--cream); }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; border-radius: 2px; }
h1, h2, h3 { text-wrap: balance; margin: 0; font-weight: 400; }
p { margin: 0 0 1em; }
.wrap { width: 100%; max-width: 1240px; margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* the ship's stripe: teal, then orange, as on the player's hull */
.stripe { display: flex; gap: 6px; height: 5px; width: 120px; margin-bottom: 18px; }
.stripe::before { content: ""; flex: 62; background: var(--teal); }
.stripe::after { content: ""; flex: 36; background: var(--orange); }

/* header */
.site-header { position: absolute; z-index: 5; top: 0; left: 0; right: 0; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-top: 16px; padding-bottom: 16px; flex-wrap: wrap; }
.mark { display: flex; align-items: baseline; gap: 10px; text-decoration: none; color: var(--cream); }
.mark b { font-family: var(--display); font-weight: 400; font-size: 28px; letter-spacing: 0.06em; line-height: 1; }
.mark span { font-size: 11px; font-weight: 500; letter-spacing: 0.32em; text-transform: uppercase; color: var(--amber); }
.nav { display: flex; gap: clamp(14px, 2.4vw, 30px); flex-wrap: wrap; }
.nav a { color: var(--cream); text-decoration: none; font-size: 14px; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; padding: 6px 0; border-bottom: 2px solid transparent; }
.nav a:hover, .nav a[aria-current="page"] { border-bottom-color: var(--orange); color: var(--cream); }

/* hero */
.hero { position: relative; isolation: isolate; background: var(--night); overflow: hidden; }
.hero-art { position: absolute; inset: 0; z-index: -2; }
.hero-art img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 50%; transform-origin: 70% 60%; animation: slow-push 28s ease-out both; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(11,14,20,0.82) 0%, rgba(11,14,20,0.35) 46%, rgba(11,14,20,0) 70%), linear-gradient(180deg, rgba(11,14,20,0) 62%, var(--night) 100%); }
.hero-inner { min-height: clamp(520px, 56vw, 760px); display: flex; flex-direction: column; justify-content: flex-start; padding-top: clamp(96px, 11vw, 150px); padding-bottom: 64px; }
.hero-logo { width: min(520px, 86%); height: auto; }
.tagline { font-family: var(--serif); font-style: italic; font-size: clamp(22px, 2.6vw, 32px); line-height: 1.3; margin: 26px 0 0; max-width: 28ch; color: var(--cream); }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 30px; }
.status { margin-top: 26px; font-size: 14px; letter-spacing: 0.08em; color: var(--cream-dim); }
.status b { font-weight: 500; color: var(--teal); letter-spacing: 0.16em; text-transform: uppercase; margin-right: 10px; }
@keyframes slow-push { from { transform: scale(1); } to { transform: scale(1.06); } }

.btn { display: inline-block; padding: 13px 26px; font: 500 15px/1 var(--body); letter-spacing: 0.1em; text-transform: uppercase; text-decoration: none; border: 2px solid var(--cream); color: var(--cream); background: transparent; cursor: pointer; transition: background 0.15s, color 0.15s, border-color 0.15s; }
.btn:hover { background: var(--cream); color: var(--night); }
.btn.primary { background: var(--amber); border-color: var(--amber); color: var(--night); }
.btn.primary:hover { background: var(--cream); border-color: var(--cream); }
.btn.small { padding: 9px 16px; font-size: 13px; }

/* sections */
section { padding: clamp(56px, 8vw, 104px) 0; }
.eyebrow { font-size: 13px; font-weight: 500; letter-spacing: 0.26em; text-transform: uppercase; color: var(--amber); margin: 0 0 12px; }
h2 { font-family: var(--display); font-size: clamp(36px, 5.4vw, 64px); line-height: 1.02; letter-spacing: 0.02em; text-transform: uppercase; }
.lede { font-size: clamp(18px, 1.6vw, 21px); color: var(--cream-dim); max-width: var(--measure); margin-top: 18px; font-weight: 300; }
.section-head { margin-bottom: 40px; }

/* trailer */
.screen { background: var(--night-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.frame { position: relative; max-width: 1080px; margin: 0 auto; border: 1px solid var(--line); background: #000; box-shadow: 0 0 0 8px var(--night-3), 0 30px 80px rgba(232, 163, 61, 0.12); }
.frame video { width: 100%; aspect-ratio: 16 / 9; background: #000; }
.caption { max-width: 1080px; margin: 18px auto 0; font-size: 14px; color: var(--cream-dim); letter-spacing: 0.04em; }

/* what you do */
.verbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1px solid var(--line); }
.verb { padding: 30px 28px 34px 0; border-bottom: 1px solid var(--line); }
.verb + .verb { padding-left: 28px; border-left: 1px solid var(--line); }
.verb h3 { font-family: var(--display); font-size: 34px; letter-spacing: 0.04em; text-transform: uppercase; margin-bottom: 12px; color: var(--cream); }
.verb p { font-size: 16px; color: var(--cream-dim); margin: 0; }
.mystery { margin-top: 44px; font-family: var(--serif); font-style: italic; font-size: clamp(22px, 2.4vw, 30px); max-width: 34ch; color: var(--cream); }

/* peoples */
.peoples { background: var(--night-2); border-top: 1px solid var(--line); }
.scroller-bar { display: flex; justify-content: space-between; align-items: end; gap: 20px; flex-wrap: wrap; margin-bottom: 30px; }
.arrows { display: flex; gap: 10px; }
.arrow { width: 46px; height: 46px; border: 2px solid var(--cream); background: transparent; color: var(--cream); font: 500 20px/1 var(--body); cursor: pointer; }
.arrow:hover { background: var(--cream); color: var(--night); }
.scroller { display: flex; gap: 22px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px var(--gutter) 22px; margin: 0 calc(var(--gutter) * -1); scrollbar-color: var(--amber) var(--night-3); scroll-padding-left: var(--gutter); }
.people { flex: 0 0 min(280px, 78vw); min-width: 0; scroll-snap-align: start; background: var(--night); border: 1px solid var(--line); display: flex; flex-direction: column; }
.people img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 20%; }
.people div { padding: 18px 18px 22px; }
.people h3 { font-family: var(--display); font-size: 28px; letter-spacing: 0.04em; text-transform: uppercase; }
.people .kind { font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--teal); font-weight: 500; margin: 4px 0 10px; }
.people p { font-size: 15px; color: var(--cream-dim); margin: 0 0 12px; }
.people q { display: block; font-family: var(--serif); font-style: italic; font-size: 18px; line-height: 1.35; color: var(--cream); quotes: none; }

/* starports */
.port-view { position: relative; background: #000; border: 1px solid var(--line); }
.port-view img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.port-note { position: absolute; left: 0; bottom: 0; right: 0; padding: 60px clamp(16px, 3vw, 36px) 22px; background: linear-gradient(180deg, rgba(11,14,20,0), rgba(11,14,20,0.9)); }
.port-note h3 { font-family: var(--display); font-size: clamp(26px, 3vw, 38px); text-transform: uppercase; letter-spacing: 0.04em; }
.port-note p { margin: 6px 0 0; max-width: 60ch; font-size: 16px; color: var(--cream); }
.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.tab { padding: 9px 16px; background: transparent; color: var(--cream-dim); border: 1px solid var(--line); font: 500 13px/1 var(--body); letter-spacing: 0.1em; text-transform: uppercase; cursor: pointer; }
.tab:hover { color: var(--cream); border-color: var(--cream-dim); }
.tab[aria-selected="true"] { background: var(--cream); color: var(--night); border-color: var(--cream); }

/* ships */
.hulls { background: var(--night-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.hull-row { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; align-items: end; }
.hull { text-align: center; }
.hull img { width: 100%; aspect-ratio: 1; object-fit: contain; filter: drop-shadow(0 12px 22px rgba(0,0,0,0.55)); }
.hull h3 { font-size: 13px; letter-spacing: 0.2em; text-transform: uppercase; font-family: var(--body); font-weight: 500; margin-top: 10px; color: var(--cream); }
.fleet-sub { margin: 56px 0 18px; font-size: 13px; letter-spacing: 0.26em; text-transform: uppercase; color: var(--amber); font-weight: 500; }
.others { display: grid; grid-template-columns: repeat(8, 1fr); gap: 12px; }
.other { text-align: center; font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--cream-dim); }
.other img { width: 100%; aspect-ratio: 1; object-fit: contain; }

/* press call and footer */
.callout { display: flex; gap: 32px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.callout p { max-width: 56ch; margin: 14px 0 0; color: var(--cream-dim); font-weight: 300; font-size: 20px; }
.site-footer { border-top: 1px solid var(--line); padding: 40px 0 56px; color: var(--cream-dim); font-size: 14px; }
.site-footer .wrap { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; align-items: center; }
.site-footer img { width: 150px; }

/* press page */
.page-head { position: relative; padding: 130px 0 48px; background: radial-gradient(1200px 400px at 85% 0%, rgba(232,163,61,0.14), rgba(11,14,20,0) 70%), var(--night); border-bottom: 1px solid var(--line); }
.page-head h1 { font-family: var(--display); text-transform: uppercase; letter-spacing: 0.02em; font-size: clamp(44px, 7vw, 92px); line-height: 1; }
.toc { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 26px; font-size: 14px; letter-spacing: 0.1em; text-transform: uppercase; font-weight: 500; }
.toc a { color: var(--cream); text-decoration: none; border-bottom: 2px solid var(--orange); padding-bottom: 2px; }
.press-section { padding: clamp(40px, 6vw, 72px) 0; border-bottom: 1px solid var(--line); }
.press-section h2 { font-size: clamp(30px, 4vw, 46px); margin-bottom: 22px; }
.two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: clamp(24px, 5vw, 64px); align-items: start; }
.facts { width: 100%; border-collapse: collapse; font-size: 16px; }
.facts th, .facts td { text-align: left; padding: 11px 14px 11px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.facts th { width: 34%; font-weight: 500; font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--amber); padding-top: 14px; }
.todo { border-bottom: 2px dashed var(--orange); color: var(--cream); }
.copybox { background: var(--night-2); border: 1px solid var(--line); padding: 20px 22px; margin-bottom: 18px; }
.copybox h3 { font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--amber); font-family: var(--body); font-weight: 500; margin-bottom: 10px; }
.copybox p { font-size: 16px; }
.copybox p:last-of-type { margin-bottom: 14px; }
.list { margin: 0; padding-left: 1.1em; }
.list li { margin-bottom: 8px; }
.assets { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; margin-top: 18px; }
.asset { background: var(--night-2); border: 1px solid var(--line); display: block; text-decoration: none; color: var(--cream); }
.asset img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: #000; }
.asset.contain img { object-fit: contain; padding: 12px; background: var(--night-3); }
.asset.tall img { aspect-ratio: 4 / 5; }
.asset span { display: block; padding: 10px 12px; font-size: 13px; letter-spacing: 0.04em; color: var(--cream-dim); }
.asset:hover { border-color: var(--amber); }
.logos { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; margin-top: 18px; }
.logo-tile { padding: 28px; display: flex; align-items: center; justify-content: center; border: 1px solid var(--line); }
.logo-tile img { width: 100%; max-width: 220px; }
.logo-tile.on-dark { background: var(--night-2); }
.logo-tile.on-light { background: #ece4d0; }
.logo-tile.on-white { background: #fff; }
.logo-tile.on-black { background: #000; }
.dl { margin-top: 22px; display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.note { font-size: 14px; color: var(--cream-dim); margin-top: 12px; }

@media (max-width: 1000px) {
  .verbs { grid-template-columns: repeat(2, 1fr); }
  .verb { padding-left: 0; }
  .verb:nth-child(2n) { padding-left: 28px; border-left: 1px solid var(--line); }
  .verb:nth-child(2n+1) { border-left: 0; }
  .hull-row { grid-template-columns: repeat(3, 1fr); }
  .others { grid-template-columns: repeat(4, 1fr); }
  .two { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  body { font-size: 17px; }
  .mark span { display: none; }
  .nav a { font-size: 12px; }
  .hero::after { background: linear-gradient(180deg, rgba(11,14,20,0.55) 0%, rgba(11,14,20,0.2) 40%, var(--night) 100%); }
  .hero-inner { padding-top: 92px; }
  .verbs { grid-template-columns: 1fr; }
  .verb, .verb:nth-child(n) { padding-left: 0; border-left: 0; }
  .hull-row { grid-template-columns: repeat(2, 1fr); }
  .others { grid-template-columns: repeat(2, 1fr); }
  .port-note { position: static; background: var(--night-2); padding: 16px 18px 20px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-art img { animation: none; }
  .btn, .tab { transition: none; }
}

/* additions */
figure { margin: 0; }
.surface { display: grid; grid-template-columns: minmax(0, 190px) minmax(0, 190px) minmax(0, 1fr); gap: 28px; align-items: center; margin-top: 56px; }
.surface img { width: 100%; aspect-ratio: 1; object-fit: contain; filter: drop-shadow(0 12px 22px rgba(0,0,0,0.55)); }
@media (max-width: 700px) { .surface { grid-template-columns: 1fr 1fr; } .surface > div { grid-column: 1 / -1; } }

/* keep the ship clear of the title block on wide screens */
@media (min-width: 1001px) {
  .hero-art img { width: 118%; max-width: none; margin-left: 17%; object-position: 40% 42%; }
}
@media (min-width: 1001px) {
  .hero-art img { -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 24%); mask-image: linear-gradient(90deg, transparent 0, #000 24%); }
}
.asset.wide img { aspect-ratio: 16 / 9; }

/* phones: keep the header on one row; show only Trailer and Press */
@media (max-width: 700px) {
  .site-header .wrap { flex-wrap: nowrap; }
  .nav { flex-wrap: nowrap; gap: 18px; }
  .nav a:not(:first-child):not(:last-child) { display: none; }
}

/* sign-up, screenshots, privacy and 404 pages */
.follow { background: var(--night-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.follow-inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.signup label[for] { display: block; font-size: 12px; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase; color: var(--amber); margin-bottom: 10px; }
.signup-row { display: flex; gap: 10px; flex-wrap: wrap; }
.signup input[type="email"] { flex: 1 1 240px; min-width: 0; padding: 13px 14px; font: 400 17px/1.2 var(--body); color: var(--cream); background: var(--night); border: 2px solid var(--cream-dim); border-radius: 0; }
.signup input[type="email"]::placeholder { color: #8c8570; }
.signup input[type="email"]:focus-visible { outline-offset: 2px; border-color: var(--teal); }
.signup .btn { flex: 0 0 auto; }
.signup .btn:disabled { opacity: 0.6; cursor: wait; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.signup-msg { min-height: 1.6em; margin: 12px 0 0; font-size: 16px; color: var(--cream); }
.signup-msg.ok::before { content: "Done. "; font-weight: 500; color: var(--teal); }
.signup-msg.err::before { content: "Problem. "; font-weight: 500; color: var(--orange); }
.fine { font-size: 13px; color: var(--cream-dim); margin: 6px 0 0; max-width: 56ch; }
@media (max-width: 800px) { .follow-inner { grid-template-columns: 1fr; } }

.shots { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 18px; align-items: start; }
.shot { margin: 0; background: var(--night-2); border: 1px solid var(--line); }
.shot:only-child { max-width: 760px; }
.shot a { display: block; }
.shot img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; background: #000; }
.shot figcaption { padding: 10px 14px 14px; font-size: 14px; color: var(--cream-dim); }

.prose { max-width: 68ch; padding: clamp(32px, 5vw, 56px) 0 clamp(56px, 8vw, 96px); }
.prose h2 { font-size: clamp(24px, 3vw, 34px); margin: 40px 0 12px; }
.prose h2:first-child { margin-top: 0; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: 6px; }
