/* Static destination pages (/orbit/, /moon/, /mars/ and /zh/…), built by tools/build-pages.js. */
:root {
  color-scheme: dark;
  --bg: #000;
  --ink: #f4f1ea;
  --muted: rgba(244, 241, 234, .66);
  --line: rgba(244, 241, 234, .16);
  --accent: 120, 180, 255;
  --serif: "Iowan Old Style", "Baskerville", "Times New Roman", "Songti SC", "Noto Serif SC", "STSong", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
}
.dest-page--moon { --accent: 214, 216, 222; }
.dest-page--mars { --accent: 236, 142, 92; }

* { box-sizing: border-box; }
html { background: var(--bg); overflow-x: clip; }
body { overflow-x: clip; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(1px 1px at 12% 18%, rgba(255,255,255,.8), transparent 60%),
    radial-gradient(1px 1px at 68% 9%, rgba(255,255,255,.6), transparent 60%),
    radial-gradient(1.5px 1.5px at 83% 42%, rgba(255,255,255,.7), transparent 60%),
    radial-gradient(1px 1px at 27% 63%, rgba(255,255,255,.5), transparent 60%),
    radial-gradient(1px 1px at 52% 81%, rgba(255,255,255,.6), transparent 60%),
    radial-gradient(1.5px 1.5px at 91% 88%, rgba(255,255,255,.5), transparent 60%),
    radial-gradient(900px 600px at 85% -10%, rgba(var(--accent), .22), transparent 70%),
    var(--bg);
  background-attachment: fixed;
  font-family: var(--sans);
  line-height: 1.7;
}
:lang(zh-CN) body, body:lang(zh-CN) { line-height: 1.85; }
a { color: inherit; }
a:focus-visible { outline: 2px solid rgb(var(--accent)); outline-offset: 3px; }

.dp-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: min(1040px, calc(100% - 32px));
  margin: 0 auto;
  padding: 22px 0;
}
.dp-brand { font-family: var(--serif); font-size: 20px; text-decoration: none; }
.dp-lang {
  padding: 6px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 13px;
  text-decoration: none;
}

.dp-main { position: relative; width: min(1040px, calc(100% - 32px)); margin: 0 auto; }
.dp-hero { position: relative; z-index: 1; padding: 12vh 0 64px; max-width: 600px; }
/* the planet from the journey, drawn on black; screen blending lets the page's sky show through */
.dp-planet {
  position: absolute;
  top: calc(12vh - 40px);
  right: -6%;
  width: min(44vw, 500px);
  height: auto;
  mix-blend-mode: screen;
  pointer-events: none;
  user-select: none;
}
.dp-kicker { margin: 0 0 18px; color: rgb(var(--accent)); font-size: 12px; letter-spacing: .22em; text-transform: uppercase; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; }
h1 { margin: 0; font-size: clamp(46px, 9vw, 92px); line-height: 1.02; }
.dp-meta { margin: 16px 0 0; color: var(--muted); font-size: 14px; }
.dp-tagline { margin: 36px 0 0; font-family: var(--serif); font-size: clamp(22px, 3.4vw, 32px); line-height: 1.35; }
.dp-lede { margin: 22px 0 0; overflow-wrap: anywhere; color: var(--muted); font-size: 17px; }

.dp-cta {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  margin-top: 32px;
  padding: 0 26px;
  border: 1px solid rgba(var(--accent), .8);
  border-radius: 999px;
  background: rgba(var(--accent), .12);
  font-size: 15px;
  text-decoration: none;
  transition: background .2s ease;
}
.dp-cta::after { content: "→"; margin-left: 10px; }
.dp-cta:hover { background: rgba(var(--accent), .26); }

.dp-section { padding: 56px 0; border-top: 1px solid var(--line); }
.dp-section h2 { margin: 0 0 24px; font-size: clamp(28px, 4vw, 40px); line-height: 1.2; }
.dp-section > p { max-width: 720px; margin: 0; color: var(--muted); font-size: 17px; }

.dp-stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(180px, 100%), 1fr)); gap: 1px; margin: 0; padding: 1px; }
.dp-stats div { padding: 22px; background: #050505; box-shadow: 0 0 0 1px var(--line); }
.dp-stats dt { color: var(--muted); font-size: 12px; letter-spacing: .08em; }
.dp-stats dd { margin: 8px 0 0; font-family: var(--serif); font-size: 26px; line-height: 1.2; }

.dp-moment h2 { color: rgb(var(--accent)); }

.dp-plan { margin: 0; padding: 0; list-style: none; }
.dp-plan li { display: grid; grid-template-columns: 120px 1fr; column-gap: 28px; padding: 20px 0; border-top: 1px solid var(--line); }
.dp-plan li:first-child { border-top: 0; }
.dp-plan span { grid-row: span 2; color: rgb(var(--accent)); font-size: 13px; letter-spacing: .08em; padding-top: 6px; }
.dp-plan h3, .dp-sights h3 { margin: 0; font-size: 22px; }
.dp-plan p, .dp-sights p { margin: 6px 0 0; color: var(--muted); }

.dp-sights { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 28px; margin: 0; padding: 0; list-style: none; }

.dp-next { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.dp-next h2 { grid-column: 1 / -1; margin-bottom: 8px; }
.dp-next a { display: block; padding: 20px; border: 1px solid var(--line); font-family: var(--serif); font-size: 22px; text-decoration: none; }
.dp-next a:hover { border-color: rgba(var(--accent), .7); }
.dp-next small { display: block; margin-bottom: 6px; color: var(--muted); font-family: var(--sans); font-size: 12px; letter-spacing: .08em; }

.dp-footer { width: min(1040px, calc(100% - 32px)); margin: 40px auto 0; padding: 28px 0 48px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }
.dp-footer p { margin: 0 0 14px; }
.dp-footer nav { display: flex; flex-wrap: wrap; gap: 8px 18px; }

@media (max-width: 900px) {
  .dp-hero { max-width: none; }
  .dp-planet { position: relative; top: auto; right: auto; display: block; width: min(68vw, 380px); margin: 5vh auto -4vh; }
}
@media (max-width: 640px) {
  .dp-hero { padding-top: 4vh; }
  .dp-plan li { grid-template-columns: 1fr; }
  .dp-plan span { grid-row: auto; padding: 0 0 4px; }
  .dp-next { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { .dp-cta { transition: none; } }
