/* Moon Journey: moonjourney.app. One stylesheet for every page.
   Type: Perilune, drawn for Moon Journey (tools/perilune.py), Light and Heavy; text in the system face.
   Nothing is loaded from anyone else. */

@font-face { font-family: "Perilune"; src: url("fonts/perilune-light.woff") format("woff"); font-weight: 300; font-display: swap; }
@font-face { font-family: "Perilune"; src: url("fonts/perilune-heavy.woff") format("woff"); font-weight: 800; font-display: swap; }

:root {
  color-scheme: dark;
  --black: #000;
  --white: #fff;
  --text: rgba(255, 255, 255, 0.84);
  --dim: rgba(255, 255, 255, 0.58);
  --rule: rgba(255, 255, 255, 0.2);
  --gold: #d9a441;          /* Liberty's foil */
  --display: "Perilune", "Futura", "Avenir Next", system-ui, sans-serif;
  --sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --edge: clamp(20px, 5vw, 72px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; background: var(--black); color: var(--text); font: 400 1.0625rem/1.6 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: clip; }
img, video, svg { display: block; max-width: 100%; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; }
::selection { background: var(--gold); color: var(--black); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: var(--edge); top: -5rem; z-index: 30; padding: 0.8rem 1.1rem; background: var(--white); color: var(--black); font: 800 0.72rem/1 var(--display); letter-spacing: 0.2em; text-decoration: none; text-transform: uppercase; }
.skip:focus { top: 1rem; }

/* ---------- the face ---------- */

h1, h2, h3, .eyebrow, .button, .site-head nav, .site-foot nav, .site-foot .legal-line { font-family: var(--display); text-transform: uppercase; }
h1, h2 { margin: 0; font-weight: 300; letter-spacing: 0.015em; line-height: 1.04; color: var(--white); text-wrap: balance; }
h1 { font-size: clamp(1.6rem, 4.3vw, 4.6rem); }
.hero h1 { max-width: 13em; }
h2 { font-size: clamp(1.5rem, 4.6vw, 4.2rem); }
h1 b, h2 b { font-weight: 800; display: block; }
h3 { margin: 0; font-weight: 800; font-size: clamp(0.9rem, 1.3vw, 1.08rem); letter-spacing: 0.08em; line-height: 1.3; color: var(--white); }
.eyebrow { display: block; margin: 0 0 1.4rem; font-weight: 300; font-size: 0.76rem; letter-spacing: 0.24em; color: var(--white); }
.eyebrow b { font-weight: 800; }
p { margin: 0 0 1em; text-wrap: pretty; }
.lede { font-size: clamp(1.02rem, 1.3vw, 1.18rem); color: var(--text); max-width: 34rem; }

/* The one kind of button: a ruled rectangle, filled on hover. */
.button { display: inline-flex; align-items: center; gap: 1.1rem; padding: 1.05rem 1.5rem 1.05rem 1.6rem; border: 2px solid var(--white); color: var(--white); background: transparent; font-weight: 800; font-size: 0.7rem; letter-spacing: 0.22em; text-decoration: none; cursor: pointer; transition: background 0.25s, color 0.25s; }
.button span { letter-spacing: 0; }
.button:hover, .button:focus-visible { background: var(--white); color: var(--black); }
.button[hidden] { display: none; }

/* ---------- the head and the foot ---------- */

.site-head { position: absolute; inset: 0 0 auto; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 2rem; padding: clamp(18px, 2.6vw, 34px) var(--edge); }
.site-head.solid { position: relative; border-bottom: 1px solid var(--rule); }
.wordmark { display: block; color: var(--white); text-decoration: none; }
.wordmark svg { height: clamp(13px, 1.5vw, 18px); width: auto; }
.site-head nav { display: flex; gap: clamp(1.2rem, 2.6vw, 2.6rem); font-weight: 800; font-size: 0.68rem; letter-spacing: 0.24em; }
.site-head nav a { text-decoration: none; color: var(--white); padding: 0.4rem 0; border-bottom: 2px solid transparent; }
.site-head nav a:hover, .site-head nav a[aria-current="page"] { border-bottom-color: var(--white); }

.site-foot { padding: 3.2rem var(--edge) 3.6rem; border-top: 1px solid var(--rule); font-size: 0.82rem; color: var(--dim); }
.site-foot .row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.4rem 2.4rem; margin-bottom: 1.8rem; }
.site-foot .legal-line { font-weight: 800; font-size: 0.66rem; letter-spacing: 0.22em; color: var(--white); }
.site-foot nav { display: flex; flex-wrap: wrap; gap: 0.8rem 2rem; font-weight: 800; font-size: 0.66rem; letter-spacing: 0.22em; }
.site-foot nav a { text-decoration: none; color: var(--white); }
.site-foot nav a:hover { color: var(--gold); }
.site-foot p { margin: 0; max-width: 60rem; }

/* ---------- full-screen scenes: a picture or a film behind, the words on it ---------- */

.scene { position: relative; min-height: 100vh; min-height: 100svh; display: flex; isolation: isolate; overflow: hidden; }
.scene .plate { position: absolute; inset: 0; z-index: -2; background: var(--black); }
.scene .plate picture { display: block; width: 100%; height: 100%; }
.scene .plate img, .scene .plate video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.scene .plate img.poster { transition: opacity 0.6s ease; }
.scene.playing .plate img.poster { opacity: 0; }
.scene::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.38) 28%, rgba(0, 0, 0, 0) 52%),
              linear-gradient(180deg, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0) 20%); }
.scene .words { position: relative; align-self: flex-end; width: 100%; padding: 8rem var(--edge) clamp(3rem, 9vh, 6.5rem); }
.scene .words > * { max-width: 38rem; }
.scene .words > h1, .scene .words > h2 { max-width: none; margin-bottom: 1.5rem; }
.scene.top .words { align-self: flex-start; padding-top: clamp(7rem, 16vh, 10rem); }
.scene.top::after { background: linear-gradient(180deg, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0) 45%), linear-gradient(0deg, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0) 16%); }
/* Where the ground under the words is bright (the white rungs of the ladder; Liberty on a phone), a deeper shade. */
.scene.deep::after { background: linear-gradient(0deg, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.66) 34%, rgba(0, 0, 0, 0) 64%), linear-gradient(180deg, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0) 20%); }
.scene.right .words { display: flex; flex-direction: column; align-items: flex-end; text-align: right; }
@media (min-aspect-ratio: 4/5) {
  .scene.top-wide .words { align-self: flex-start; padding-top: clamp(7rem, 17vh, 11rem); }
  .scene.top-wide::after { background: linear-gradient(180deg, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0) 40%), linear-gradient(0deg, rgba(0, 0, 0, 0.45) 0%, rgba(0, 0, 0, 0) 16%); }
}
.scene .plate .focus-left { object-position: 30% 50%; }
/* Where the subject fills the middle, the words keep to a narrow column at one side. */
@media (min-aspect-ratio: 4/5) {
  .scene.narrow .words > * { max-width: min(27rem, 30vw); }
  .scene.narrow .words > h2 { font-size: clamp(1.5rem, 3.4vw, 3.4rem); }
}
.scene .handover { margin: 1rem 0 0; font-size: 0.95rem; line-height: 1.5; color: var(--gold); }
.hero h1 { margin-bottom: 1.8rem; }
.hero .lede { max-width: 30rem; }
.hero .actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1.2rem 2rem; margin-top: 2.2rem; }
.note-line { margin: 0; font-size: 0.95rem; color: var(--text); max-width: 34rem; }
.scene.close .note-line { margin-top: 0.4rem; text-align: center; }
.store-badge { display: inline-block; line-height: 0; }
.store-badge img { height: 3.2rem; width: auto; }

/* The flight's clock over each film, counting with it. */
.scene .clock { position: absolute; z-index: 1; top: clamp(5.5rem, 13vh, 9rem); right: var(--edge); font: 300 clamp(1.5rem, 4.2vw, 4rem)/1 var(--display); letter-spacing: 0.04em; color: var(--white); font-variant-numeric: tabular-nums; pointer-events: none; text-shadow: 0 1px 14px rgba(0, 0, 0, 0.6); }
.scene .film-play { margin-top: 1.6rem; }

/* ---------- plain sections on black ---------- */

.band { padding: clamp(6rem, 16vh, 11rem) var(--edge); }
.band.tight { padding-top: 0; }
.band > h2, .band .split h2 { margin-bottom: 2rem; }
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2.5rem, 7vw, 8rem); align-items: start; }

.crew { list-style: none; margin: clamp(3rem, 8vh, 5rem) 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 2px solid var(--white); }
.crew li { padding: 1.6rem 1.6rem 0 0; }
.crew li + li { border-left: 1px solid var(--rule); padding-left: 1.6rem; }
.crew h3 { margin-bottom: 0.8rem; }
.crew p { margin: 0; color: var(--dim); font-size: 0.95rem; }
.crew .you h3 { color: var(--gold); }

/* The flight plan, as a manifest. */
.plan { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--white); }
.plan li { display: grid; grid-template-columns: minmax(9rem, 14rem) minmax(0, 1fr) auto; gap: 1.5rem; align-items: baseline; padding: 1.2rem 0; border-bottom: 1px solid var(--rule); }
.plan time { font: 300 clamp(0.9rem, 1.4vw, 1.18rem)/1.2 var(--display); letter-spacing: 0.06em; color: var(--white); font-variant-numeric: tabular-nums; }
.plan p { margin: 0.4rem 0 0; color: var(--dim); font-size: 0.95rem; }
.plan .free { font: 800 0.64rem/1 var(--display); letter-spacing: 0.24em; color: var(--gold); }
.note { margin-top: 1.4rem; font-size: 0.85rem; color: var(--dim); }

/* Figures, as on a spec sheet. */
.specs { list-style: none; margin: clamp(3rem, 8vh, 5rem) 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 2px solid var(--white); }
.specs li { padding: 2.2rem 2rem 2.4rem 0; border-bottom: 1px solid var(--rule); }
.specs li:not(:nth-child(3n + 1)) { padding-left: 2rem; border-left: 1px solid var(--rule); }
.specs .figure { display: block; font: 800 clamp(2.2rem, 4.8vw, 4.2rem)/1 var(--display); color: var(--white); letter-spacing: 0.01em; white-space: nowrap; }
.specs .unit { display: block; margin: 0.9rem 0 1rem; font: 300 0.78rem/1.3 var(--display); letter-spacing: 0.24em; text-transform: uppercase; color: var(--white); }
.specs p { margin: 0; color: var(--dim); font-size: 0.95rem; }

/* The one band of colour. */
.gold-band { background: var(--gold); color: var(--black); padding: clamp(5rem, 13vh, 9rem) var(--edge); }
.gold-band .eyebrow { color: var(--black); }
.gold-band h2 { color: var(--black); max-width: 24ch; }
.gold-band p { margin: 2rem 0 0; max-width: 46rem; font-size: clamp(1.05rem, 1.5vw, 1.28rem); color: rgba(0, 0, 0, 0.84); }

/* The app on its devices. */
.devices { display: flex; justify-content: center; align-items: flex-end; flex-wrap: wrap; gap: clamp(2rem, 6vw, 6rem); margin-top: clamp(3.5rem, 9vh, 6rem); }
.device { margin: 0; }
.device figcaption { margin-top: 1.4rem; text-align: center; font: 800 0.64rem/1.4 var(--display); letter-spacing: 0.24em; text-transform: uppercase; color: var(--dim); }
.device .body { position: relative; background: linear-gradient(145deg, #2c2e33, #0b0c0e 45%, #1d1f24); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1), 0 40px 90px rgba(0, 0, 0, 0.7); }
.device .glass { position: relative; overflow: hidden; background: #000; }
.device .glass img { width: 100%; height: 100%; object-fit: cover; }
/* iPhone: its screen 1320 x 2868. */
.iphone { width: clamp(150px, 19vw, 240px); }
.iphone .body { padding: 3.2%; border-radius: 15% / 7%; }
.iphone .glass { aspect-ratio: 1320 / 2868; border-radius: 12.4% / 5.8%; }
.iphone .glass::before { content: ""; position: absolute; z-index: 1; top: 1.25%; left: 50%; width: 28.5%; height: 3.7%; transform: translateX(-50%); border-radius: 999px; background: #000; }
/* iPhone Duo, closed: its outer screen 1398 x 2034, rounder on the outer side than at the hinge (left);
   the camera's hole is in the screenshot itself, in the strip on the right. */
.duo { width: clamp(170px, 23vw, 290px); }
.duo .body { padding: 3.4%; border-radius: 4% 14% 14% 4% / 3% 9.6% 9.6% 3%; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1), -6px 0 0 -2px #16181c, 0 40px 90px rgba(0, 0, 0, 0.7); }
.duo .glass { aspect-ratio: 1398 / 2034; border-radius: 1.7% 12.6% 12.6% 1.7% / 1.2% 8.7% 8.7% 1.2%; }
/* iPhone Duo, open and upright: its inner screen 2007 x 2853, the fold running across it. */
.duo-open { width: clamp(220px, 30vw, 400px); }
.duo-open .body { padding: 2.6%; border-radius: 9.5% / 6.7%; }
.duo-open .glass { aspect-ratio: 2007 / 2853; border-radius: 8.2% / 5.8%; }
.duo-open .glass::after { content: ""; position: absolute; left: 0; right: 0; top: 47.9%; height: 4.2%; background: linear-gradient(180deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.05) 45%, rgba(0, 0, 0, 0.18) 55%, rgba(255, 255, 255, 0)); pointer-events: none; }

/* The price. */
.price { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: clamp(3rem, 8vh, 5rem); border-top: 2px solid var(--white); }
.price > div { padding: 2.4rem 2.4rem 0 0; }
.price > div + div { padding-left: 2.4rem; border-left: 1px solid var(--rule); }
.price .figure { display: block; margin: 0 0 1.4rem; font: 800 clamp(3rem, 7vw, 6rem)/1 var(--display); letter-spacing: 0; color: var(--white); }
.price p { color: var(--dim); max-width: 28rem; }
.price p strong { color: var(--white); font-weight: 600; }
.nots { list-style: none; margin: 3rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.6rem 0; font: 800 0.66rem/1.4 var(--display); letter-spacing: 0.22em; text-transform: uppercase; color: var(--white); }
.nots li:not(:last-child)::after { content: "/"; padding: 0 1.1rem; color: var(--dim); font-weight: 300; }

/* The close. */
.scene.close { text-align: center; }
.scene.close .words { display: flex; flex-direction: column; align-items: center; }
.scene.close::after { background: linear-gradient(0deg, rgba(0, 0, 0, 0.92) 0%, rgba(0, 0, 0, 0) 40%), linear-gradient(180deg, #000 0%, rgba(0, 0, 0, 0) 20%); }

/* ---------- plain pages: support, privacy, terms ---------- */

.page { padding: clamp(4rem, 11vh, 8rem) var(--edge) clamp(6rem, 14vh, 10rem); }
.page h1 { font-size: clamp(1.6rem, 4.8vw, 4.2rem); margin-bottom: 2rem; }
.page .lede { max-width: 40rem; }
.page .updated { margin: 1.6rem 0 0; font: 300 0.72rem/1.4 var(--display); letter-spacing: 0.22em; text-transform: uppercase; color: var(--dim); }
.prose { max-width: 44rem; margin-top: clamp(3rem, 8vh, 5rem); }
.prose h2 { font-size: clamp(1.05rem, 2vw, 1.5rem); font-weight: 800; margin: 3.6rem 0 1.2rem; }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose li { color: var(--text); }
.prose strong { color: var(--white); font-weight: 600; }
.prose ul { padding-left: 1.1rem; margin: 0 0 1em; }
.prose li { margin-bottom: 0.5rem; }
.prose li::marker { color: var(--gold); }
.contact { margin-top: clamp(2.5rem, 6vh, 4rem); padding: 1.8rem 0; border-top: 2px solid var(--white); border-bottom: 1px solid var(--rule); max-width: 44rem; }
.contact p { margin: 0 0 0.9rem; color: var(--dim); }
.contact a { font: 300 clamp(1rem, 2.4vw, 1.5rem)/1.3 var(--display); letter-spacing: 0.06em; text-transform: uppercase; color: var(--white); text-decoration: none; border-bottom: 2px solid var(--gold); overflow-wrap: anywhere; }
.faq details { border-bottom: 1px solid var(--rule); }
.faq h2 + details { border-top: 2px solid var(--white); }
.faq summary { list-style: none; cursor: pointer; position: relative; padding: 1.25rem 3rem 1.25rem 0; font-weight: 600; color: var(--white); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0.2rem; top: 50%; transform: translateY(-50%); font: 300 1.5rem/1 var(--display); color: var(--white); }
.faq details[open] summary::after { content: "\2212"; }
.faq details > div { padding: 0 0 1.5rem; }
.faq details > div p:last-child { margin-bottom: 0; }

/* ---------- arrival on scroll (with script, without reduced motion) ---------- */

.js .rise { opacity: 0; transform: translateY(18px); transition: opacity 1s ease, transform 1.2s cubic-bezier(0.2, 0.7, 0.2, 1); }
.js .rise.seen { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .rise { opacity: 1; transform: none; transition: none; }
  .button, .scene .plate img.poster { transition: none; }
}

/* ---------- narrow screens ---------- */

@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; }
  .crew { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .crew li { padding: 1.4rem 1.2rem 1.4rem 0; border-bottom: 1px solid var(--rule); }
  .crew li + li { border-left: 0; padding-left: 0; }
  .crew li:nth-child(even) { border-left: 1px solid var(--rule); padding-left: 1.2rem; }
  .specs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .specs li:not(:nth-child(3n + 1)) { padding-left: 0; border-left: 0; }
  .specs li { padding: 1.8rem 1.2rem 2rem 0; }
  .specs li:nth-child(even) { padding-left: 1.2rem; border-left: 1px solid var(--rule); }
  .price { grid-template-columns: 1fr; }
  .price > div + div { padding-left: 0; border-left: 0; border-top: 1px solid var(--rule); margin-top: 2.4rem; }
}
@media (max-aspect-ratio: 4/5) {
  /* On a phone held upright the rocket rises through the middle: the button goes to the bottom. */
  .scene.hero.top .words { align-self: stretch; display: flex; flex-direction: column; padding-bottom: 2.4rem; }
  .scene.hero .actions { margin-top: auto; padding-top: 2rem; }
  .scene.deep-tall::after { background: linear-gradient(0deg, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.66) 34%, rgba(0, 0, 0, 0) 64%), linear-gradient(180deg, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0) 20%); }
  .scene.hero.top::after { background: linear-gradient(180deg, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0) 40%), linear-gradient(0deg, rgba(0, 0, 0, 0.75) 0%, rgba(0, 0, 0, 0) 26%); }
}
@media (max-width: 600px) {
  body { font-size: 1rem; }
  .site-head nav .wide { display: none; }
  .plan li { grid-template-columns: 1fr auto; gap: 0.5rem 1rem; }
  .plan li > div { grid-column: 1 / -1; grid-row: 2; }
  .scene .words { padding-top: 6rem; }
  .scene.right .words { align-items: flex-start; text-align: left; }
  .specs { grid-template-columns: 1fr; }
  .specs li:nth-child(even) { padding-left: 0; border-left: 0; }
}
