:root {
  color-scheme: dark;
  --ink: #090e16;
  --paper: #f3f1e9;
  --muted: #aab5bf;
  --line: #28333e;
  --mint: #c4ebd0;
  font: 16px/1.55 "Avenir Next", Avenir, system-ui, sans-serif;
  background: var(--ink);
  color: var(--paper);
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; min-width: 300px; }
button { font: inherit; cursor: pointer; }
button:disabled { cursor: default; opacity: .55; }
button, a { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible, canvas:focus-visible { outline: 2px solid var(--mint); outline-offset: 4px; }
[hidden] { display: none !important; }
.masthead, .footer { display: flex; align-items: center; justify-content: space-between; padding-inline: clamp(1.25rem, 4.2vw, 4.5rem); }
.masthead { height: 74px; border-bottom: 1px solid var(--line); }
.brand, .text-button { display: inline-flex; align-items: center; justify-content: center; gap: .7rem; background: transparent; border: 0; color: var(--paper); padding: .45rem 0; }
.brand { font-size: .81rem; font-weight: 750; letter-spacing: .22em; }
.seal { position: relative; display: inline-block; width: 22px; height: 22px; border: 1px solid var(--mint); border-radius: 50%; margin: 0 5px; }
.seal::after { content: ""; position: absolute; inset: 6px -7px; border: 1px solid var(--mint); border-radius: 50%; transform: rotate(-27deg); }
.text-button { font-size: .88rem; color: var(--muted); }
.text-button:hover { color: var(--mint); }
.info { width: 17px; height: 17px; border: 1px solid currentColor; border-radius: 50%; text-align: center; font-size: .68rem; line-height: 15px; }
.experience { display: grid; grid-template-columns: minmax(315px, 30%) 1fr; min-height: 660px; height: calc(100svh - 126px); }
.editorial { display: flex; flex-direction: column; justify-content: space-between; gap: 2.5rem; min-width: 0; padding: clamp(2.25rem, 10vh, 7.25rem) clamp(1.25rem, 3.3vw, 3.3rem) 2.3rem clamp(1.25rem, 4.2vw, 4.5rem); background: radial-gradient(ellipse at 20% 22%, #141b25, var(--ink) 75%); }
.kicker, .readout-top, .view-label, .footer, .art-credit { font: 500 .78rem/1.45 ui-monospace, monospace; letter-spacing: .12em; }
.kicker { color: var(--mint); margin: 0 0 1.4rem; }
.kicker > span { display: inline-block; width: 22px; height: 1px; background: currentColor; vertical-align: middle; margin-right: .55rem; }
h1, h2, .place { font-family: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif; font-weight: 400; }
h1 { font-size: clamp(4.2rem, 6.8vw, 8.2rem); letter-spacing: -.075em; line-height: .88; margin: 0 0 1.65rem; }
h1 em { font-weight: inherit; color: var(--mint); }
.intro { color: var(--muted); max-width: 27ch; margin: 0 0 1.65rem; }
.actions { display: flex; flex-direction: column; align-items: flex-start; gap: .7rem; }
.primary { min-height: 48px; background: var(--mint); color: #101d17; border: 0; border-radius: 5px; padding: .7rem 1rem; font-weight: 700; display: inline-flex; align-items: center; gap: .65rem; }
.primary:hover { background: #e2f6e7; }
.target-icon { width: 15px; height: 15px; display: inline-grid; place-items: center; position: relative; border: 1px solid currentColor; border-radius: 50%; }
.target-icon::after { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.destinations { gap: .55rem; }
.destinations span { color: var(--mint); font-size: 1rem; }
.readout { border-top: 1px solid var(--line); padding-top: 1rem; }
.readout-top { color: var(--muted); display: flex; justify-content: space-between; gap: .5rem; align-items: center; }
.signal { display: inline-flex; align-items: center; gap: .4rem; color: var(--mint); letter-spacing: .04em; }
.signal > span:first-child, .view-label > span:first-child { width: 6px; height: 6px; flex: 0 0 6px; border-radius: 50%; background: currentColor; box-shadow: 0 0 10px #b1ffd0a0; }
.signal[data-state="idle"] { color: var(--muted); }
.signal[data-state="idle"] > span:first-child { box-shadow: none; }
.place { font-size: clamp(1.45rem, 2.15vw, 2.05rem); margin: .6rem 0 .1rem; line-height: 1.1; overflow-wrap: anywhere; }
.detail { color: var(--muted); font-size: .875rem; margin: .35rem 0 0; }
.coordinates { border: 0; background: transparent; color: var(--mint); font: .8rem/1.4 ui-monospace, monospace; padding: .55rem 0 .15rem; text-align: left; }
.coordinates:hover { text-decoration: underline; }
.stage { position: relative; overflow: hidden; isolation: isolate; min-width: 0; border-left: 1px solid var(--line); background: #03070e; }
.map, .orbit-art, .stars { position: absolute; inset: 0; }
.orbit-art { pointer-events: none; display: grid; place-items: center; overflow: hidden; background: radial-gradient(ellipse at 51% 49%, #12243a 0, #060c18 45%, #03070e 77%); transition: opacity .85s ease; }
.orbit-art.dismissed { opacity: 0; pointer-events: none; }
.stars { opacity: .52; background-size: 127px 163px, 199px 151px, 313px 277px; background-image: radial-gradient(circle at 39px 37px,#d8e7ef 0 .7px, transparent 1.6px), radial-gradient(circle at 78px 124px,#83afb8 0 .6px, transparent 1.5px), radial-gradient(circle at 168px 57px,#f4eee0 0 1px, transparent 2px); }
.planet-frame { width: min(72%, 64vh); aspect-ratio: 1; position: relative; display: grid; place-items: center; transform: translateY(-1%); }
.planet-frame::before, .planet-frame::after { position: absolute; content: ""; border-radius: 50%; border: 1px solid #b9d3ed36; inset: -9%; }
.planet-frame::after { inset: -16%; border-style: dashed; opacity: .55; }
.planet { position: absolute; inset: 0; overflow: hidden; border-radius: 50%; background: #102f54; box-shadow: -5px -5px 19px #81baff68, 0 0 72px #35639668, 0 0 125px #2d497544; }
.planet img { width: 100%; height: 100%; object-fit: fill; display: block; }
.planet::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 4px 6px 20px #add8ff88, inset -32px -20px 85px #020714b3; }
.stage-top { position: absolute; inset: 1.25rem 1.25rem auto; display: flex; justify-content: space-between; align-items: flex-start; pointer-events: none; }
.stage-top button { pointer-events: auto; }
.view-label { display: inline-flex; margin: 0; align-items: center; gap: .55rem; color: var(--mint); text-transform: uppercase; background: #090e16e8; border: 1px solid var(--line); border-radius: 4px; padding: .55rem .72rem; }
.map-controls { position: absolute; display: grid; gap: .6rem; right: 1.25rem; bottom: 3.5rem; }
.map-button { display: grid; place-items: center; padding: 0; width: 43px; height: 43px; color: var(--paper); background: #090e16ed; border: 1px solid #53606a; border-radius: 5px; font-size: 1.5rem; line-height: 1; }
.map-button:hover { background: #263842; color: var(--mint); }
.map-button svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.zoom-controls { display: grid; }
.zoom-controls button:first-child { border-radius: 5px 5px 0 0; }
.zoom-controls button:last-child { border-radius: 0 0 5px 5px; border-top: 0; }
.art-credit { position: absolute; left: 1.25rem; bottom: 1rem; color: #b3c2d6; font-size: .72rem; }
.stage .maplibregl-ctrl-attrib.maplibregl-compact {
  background: #090e16e8;
  color: #e4e9ed;
  font-size: .75rem;
  border: 1px solid var(--line);
}
.stage .maplibregl-ctrl-attrib a { color: inherit; }
.stage .maplibregl-ctrl-attrib-button { filter: invert(1); }
.stage:fullscreen { width: 100%; height: 100%; border: 0; }
.marker { display: block; width: 16px; height: 16px; border-radius: 50%; border: 2px solid #0c2826; background: var(--mint); box-shadow: 0 0 0 3px #e1ffe480, 0 0 20px #07221d; }
.footer { min-height: 52px; color: var(--muted); border-top: 1px solid var(--line); gap: 1rem; }
.footer span:last-child { letter-spacing: 0; }
dialog { color: var(--paper); background: #101924; padding: 1.5rem; width: min(470px, calc(100% - 2rem)); max-height: calc(100% - 2rem); overflow: auto; border: 1px solid #4b5d66; border-radius: 10px; box-shadow: 0 24px 80px #0008; }
dialog::backdrop { background: #030810c9; backdrop-filter: blur(5px); }
.dialog-top { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: 1rem; }
.dialog-top h2 { font-size: 2rem; margin: 0; line-height: 1; }
dialog p { color: var(--muted); }
.credits a { color: var(--mint); }
.place-list button { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: .8rem; text-align: left; border: 0; border-top: 1px solid var(--line); color: var(--paper); background: transparent; padding: .85rem .3rem; }
.place-list button:hover { color: var(--mint); background: #182833; }
.place-list small { color: var(--muted); font-size: .84rem; text-align: right; }
@media (max-width: 760px) {
  .masthead { height: 62px; }
  .experience { display: flex; flex-direction: column; height: auto; min-height: 0; }
  .editorial { display: contents; }
  .lede { order: 0; padding: 1.7rem 1.25rem 1.35rem; }
  .kicker { margin-bottom: .75rem; }
  h1 { font-size: clamp(3.15rem, 11vw, 5rem); margin-bottom: .75rem; }
  h1 br { display: none; }
  h1 em::before { content: " "; }
  .intro { max-width: 42ch; margin-bottom: .9rem; }
  .actions { flex-direction: row; align-items: center; gap: 1rem; flex-wrap: wrap; }
  .stage { order: 1; min-height: max(390px, 49svh); border-left: 0; border-top: 1px solid var(--line); }
  .planet-frame { width: min(65%, 34vh); }
  .readout { order: 2; margin: 0; padding: 1rem 1.25rem 1.15rem; min-height: 117px; }
  .stage-top { inset: .75rem .75rem auto; }
  .map-controls { right: .75rem; }
  .art-credit { left: .75rem; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; } }
