/* The landing: a night sky, the wheel of today's real planet positions turning slowly, and a few
   sentences that arrive one at a time. Same ink as the reading: gold on navy, Spectral for display. */
body.booting .app, body.booting .intro { visibility: hidden; }
body.landing .app { display: none; }
body:not(.landing) .intro { display: none; }
a.brand { text-decoration: none; }

.intro { position: relative; isolation: isolate; overflow-x: clip; }
.intro-stars { position: absolute; inset: 0 0 auto 0; width: 100%; height: 100svh; min-height: 620px; z-index: -2; display: block; }
.intro-sky { position: absolute; z-index: -1; pointer-events: none; width: min(168vw, 1180px); aspect-ratio: 1; left: 50%; top: 100svh; transform: translate(-50%, -34%); opacity: .92;
  -webkit-mask-image: radial-gradient(closest-side, #000 62%, rgba(0, 0, 0, .55) 86%, transparent 100%); mask-image: radial-gradient(closest-side, #000 62%, rgba(0, 0, 0, .55) 86%, transparent 100%); }
.intro-sky svg { width: 100%; height: 100%; display: block; overflow: visible; }
.sky-spin { transform-origin: 500px 500px; animation: sky-turn 240s linear infinite; }
@keyframes sky-turn { to { transform: rotate(-360deg); } }
.sky-ring { fill: none; stroke: var(--gold); stroke-opacity: .5; stroke-width: 1.2; }
.sky-ring.faint { stroke-opacity: .2; }
.sky-band { fill: rgba(17, 27, 58, .72); }
.sky-tick { stroke: var(--gold); stroke-opacity: .45; stroke-width: 1; }
.sky-g { fill: none; stroke: var(--gold); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; opacity: .85; }
.sky-p { fill: none; stroke: var(--gold-hi); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.sky-dot { fill: var(--gold-hi); }
.sky-halo { fill: var(--gold); opacity: .16; animation: sky-pulse 5.5s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
@keyframes sky-pulse { 50% { opacity: .3; transform: scale(1.25); } }
.sky-asp { fill: none; stroke-width: 1.1; stroke-dasharray: 900; stroke-dashoffset: 900; animation: sky-draw 2.6s ease-out forwards; }
.sky-asp.hard { stroke: var(--hard); } .sky-asp.soft { stroke: var(--soft); }
@keyframes sky-draw { to { stroke-dashoffset: 0; } }

.intro-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px 0; max-width: 1180px; margin: 0 auto; }
.intro-bar .link { font-size: 15px; }
.intro-stage { position: relative; min-height: calc(100svh - 46px); display: flex; flex-direction: column; justify-content: space-between; gap: 28px; padding: clamp(28px, 7vh, 84px) 20px 22px; max-width: 1180px; margin: 0 auto; }
.intro-copy { display: grid; gap: 22px; max-width: 760px; }
/* the sentence and the final headline share one cell, so nothing jumps when one replaces the other */
.intro-line, .intro-final { grid-area: 1 / 1; align-self: start; }
.intro-line { font: 300 clamp(31px, 7.4vw, 62px)/1.1 var(--font-display); letter-spacing: -.012em; color: var(--gold-hi); text-wrap: balance; opacity: 0; transform: translateY(14px); transition: opacity .9s ease, transform .9s ease; min-height: 3.3em; }
.intro-line.on { opacity: 1; transform: none; }
.intro-line.off { opacity: 0; transform: translateY(-10px); transition-duration: .55s; }
.intro-final { display: grid; gap: 18px; transition: opacity 1.1s ease, transform 1.1s ease; }
.intro.playing .intro-final { opacity: 0; transform: translateY(14px); pointer-events: none; }
.intro h1 { font-size: clamp(36px, 8.4vw, 72px); line-height: 1.03; letter-spacing: -.018em; color: var(--text); }
.intro-sub { font-size: clamp(16px, 2.1vw, 19px); line-height: 1.6; color: #C9CCD8; max-width: 56ch; text-shadow: 0 1px 14px rgba(10, 17, 40, .9); }
.intro-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.btn.big { padding: 15px 24px; font-size: 17px; min-height: 54px; border-radius: 10px; }
.btn.ghost.big { background: rgba(10, 17, 40, .55); border-color: rgba(217, 192, 138, .45); }
.intro-small { color: var(--muted); font-size: 14.5px; }
.intro-now { color: var(--muted); font-size: 13.5px; letter-spacing: .01em; max-width: 60ch; text-shadow: 0 1px 10px rgba(10, 17, 40, 1); }
.intro-now b { color: var(--gold); font-weight: 500; }

.intro-more { position: relative; display: flex; flex-direction: column; gap: 22px; padding-top: clamp(300px, 46vw, 520px); padding-bottom: 72px; }
.intro-more h2 { font-size: clamp(28px, 4.4vw, 40px); }
.intro-more .rows { background: rgba(10, 17, 40, .78); }

@media (min-width: 900px) {
  .intro-sky { left: auto; right: -17%; top: 50svh; transform: translate(0, -42%); width: min(88vw, 1120px); }
  .intro-stage { padding-left: 40px; padding-right: 40px; }
  .intro-bar { padding-left: 40px; padding-right: 40px; }
  .intro-copy { max-width: 640px; }
  .intro-more { padding-top: 96px; }
  .intro-more .rows { max-width: 720px; background: none; }
}
@media (max-width: 420px) {
  .intro-actions .btn { flex: 1 1 100%; }
  .intro-line { min-height: 4.4em; }
}
@media (prefers-reduced-motion: reduce) {
  .sky-spin, .sky-halo { animation: none; }
  .sky-asp { animation: none; stroke-dashoffset: 0; }
  .intro-line { display: none; }
}

/* reading: the pieces added when the eleven tabs became five */
.tabs a { padding-left: 14px; padding-right: 14px; font-size: 15.5px; }
.subnav { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.subnav::-webkit-scrollbar { display: none; }
.subnav button { flex: none; background: none; border: 1px solid var(--rule); border-radius: 999px; padding: 8px 15px; font-size: 14.5px; color: var(--muted); cursor: pointer; min-height: 40px; }
.subnav button[aria-pressed="true"] { background: var(--gold); border-color: var(--gold); color: #1B1606; font-weight: 600; }
.subnav button:hover { color: var(--text); } .subnav button[aria-pressed="true"]:hover { color: #1B1606; }
.yearcard { border: 1px solid var(--rule); border-radius: 12px; background: var(--navy); padding: 18px 18px 16px; display: flex; flex-direction: column; gap: 10px; }
.yearcard .span { color: var(--gold); font-size: 14.5px; font-variant-numeric: tabular-nums; }
.yearcard .big { font: 300 clamp(24px, 4.6vw, 32px)/1.2 var(--font-display); color: var(--gold-hi); text-wrap: balance; }
.yearcard p { max-width: 64ch; }
.yearbar { height: 6px; background: var(--night); border-radius: 3px; overflow: hidden; }
.yearbar div { height: 100%; background: var(--gold); }
.yearcard .ends { display: flex; justify-content: space-between; gap: 12px; color: var(--muted); font-size: 13.5px; font-variant-numeric: tabular-nums; }
.movewait { display: grid; gap: 22px; }
@media (min-width: 760px) { .movewait { grid-template-columns: 1fr 1fr; gap: 28px; } }
.movewait h3 { display: flex; align-items: center; gap: 9px; }
.movewait h3::before { content: ""; width: 10px; height: 10px; border-radius: 50%; flex: none; }
.movewait .move h3::before { background: var(--soft); } .movewait .wait h3::before { background: var(--hard); }
.field .check { display: flex; align-items: center; gap: 9px; font-size: 14.5px; color: var(--text); min-height: 32px; cursor: pointer; }
.field .check input { width: 18px; height: 18px; accent-color: var(--gold); flex: none; }
.picked.ok::before { content: "✓ "; }
.panel .step { color: var(--muted); font-size: 14.5px; margin-top: -8px; }
.opt { border-top: 1px solid var(--rule); padding-top: 10px; }
.opt summary { cursor: pointer; color: var(--gold); font-size: 15px; min-height: 36px; display: flex; align-items: center; list-style-position: inside; }
.opt .field { margin-top: 12px; }
.sugg .note { display: block; }
@media (max-width: 480px) { .tabs { gap: 0; } .tabs a { flex: 1 1 auto; text-align: center; padding-left: 6px; padding-right: 6px; font-size: 14.5px; } }
.intro-links { display: flex; gap: 18px; align-items: center; }
.intro-skip { display: none; color: var(--muted); }
.intro.playing .intro-skip { display: inline; }
