/* Editorial prototype â€” Swiss / scientific-journal look.
   Light: black ink on warm paper. Dark: the same print as a negative â€” ivory lines on ink-black, like a scratchboard. */

html {
  --paper: #f3f1ea; --ink: #141414; --ink-2: #6b6a66; --accent: #ff5a1f;
  --grain-blend: multiply; --grain-opacity: .35;
  --earth-filter: none; --earth-blend: multiply; --earth-opacity: 1;
  --moon-filter: none; --moon-blend: multiply;
  /* glows: on paper they read as a soft printed haze rather than light */
  --glow: rgba(20, 20, 20, .22); --glow-hot: rgba(255, 90, 31, .75); --atmo: rgba(95, 115, 150, .12);
  --limb-inset: 0; --limb: transparent;
}
html[data-theme="dark"] {
  --paper: #070707; --ink: #ebe8df; --ink-2: #8d8b84; --accent: #ff6a33;
  --grain-blend: screen; --grain-opacity: .18;
  /* the engraving as printed: dark lines on its own pale paper, a lit globe against the black sky */
  --earth-filter: none; --earth-blend: normal; --earth-opacity: 1;
  --moon-filter: brightness(.95) contrast(1.05); --moon-blend: normal;
  --glow: rgba(240, 236, 225, .5); --glow-hot: rgba(255, 106, 51, .9); --atmo: rgba(190, 210, 255, .15);
  --limb-inset: 0; --limb: rgba(240, 236, 225, .75);
}

.ed-app {
  padding: 0; height: 100dvh; min-height: 0; overflow: hidden; background: var(--paper); color: var(--ink);
  transition: background-color .4s, color .4s;
}
@media (min-width: 520px) and (min-height: 560px), (hover: hover) and (pointer: fine) { .ed-app { height: 100%; } }
/* status bar on paper */
.phone:has(.ed-app) .phone-ui { color: var(--ink); }
.phone:has(.ed-app) .phone-indicator { background: var(--ink); opacity: .75; }

.ed { position: relative; width: 100%; height: 100%; overflow: clip; /* clip, not hidden: never scrolled sideways by a focus off its edge */ touch-action: pan-y; user-select: none; container-type: inline-size; }
/* paper grain */
.ed::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 4; opacity: var(--grain-opacity); mix-blend-mode: var(--grain-blend);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .5 0 0 0 0 .48 0 0 0 0 .44 0 0 0 .35 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* One WebGL canvas under the page draws the sky and its fade, the flight, the cover's orbit, the travelling asteroid,
   the stars behind the figures and the whale (app.js); the page's HTML and SVG stand-ins for those are only there to
   be measured */
.ed-sky { position: absolute; inset: 0; z-index: 0; }
.ed-sky canvas { display: block; width: 100%; height: 100%; }
#actor { visibility: hidden !important; }
.ed-hero-orbit { display: none; }

/* Own paper and isolation: the engraving's multiply/screen blend happens inside this layer,
   so it can't break when layers above (the glows' filters) get composited separately */
.ed-earth { position: absolute; inset: 0; overflow: hidden; pointer-events: none; background: var(--paper); isolation: isolate; }
/* multiply: the engraving prints onto the paper, whatever is left of its own background disappears */
.ed-earth img {
  position: absolute; max-width: none; user-select: none; -webkit-user-drag: none;
  mix-blend-mode: var(--earth-blend); filter: var(--earth-filter); opacity: var(--earth-opacity);
}
.ed-field .moon { mix-blend-mode: var(--moon-blend); filter: var(--moon-filter); }
.ed-field .moon-bg { fill: var(--paper); }
/* the stars are a layer of their own, so their slow fall is moved by the compositor and never repaints the sky */
.ed-stars { position: absolute; inset: 0; pointer-events: none; }
.ed-star-layer, .ed-star-drift { position: absolute; inset: 0; will-change: transform; }
.ed-star-drift { animation: ed-star-fall linear infinite; }
.ed-star-drift svg { position: absolute; overflow: visible; }
.ed-stars .star { fill: var(--ink); }
@keyframes ed-star-fall { to { transform: translateY(var(--tile)); } }
.ed.is-detail:not(.is-leaving) .ed-star-drift { animation-play-state: paused; }
@media (prefers-reduced-motion: reduce) { .ed-star-drift { animation: none; } }
/* the asteroids could breathe light: their glow swelling and settling slowly, each on its own beat (delay set from JS) */
@property --pulse { syntax: '<number>'; inherits: false; initial-value: 0; }
.ed-field .dot {
  --dot-glow: var(--glow);
  filter: drop-shadow(0 0 calc(2.5px + 1.6px * var(--pulse)) var(--dot-glow)) drop-shadow(0 0 calc(7px + 6px * var(--pulse)) var(--dot-glow));
  /* the breathing is off for now (the glow holds its calm end, where the flight lands); to bring it back:
     animation: ed-pulse 3.6s ease-in-out infinite alternate; */
}
@keyframes ed-pulse { to { --pulse: 1; } }
/* the light build (Android): one fixed soft shadow, no breathing — a moving dot re-filters on every frame */
html.lite .ed-field .dot { filter: drop-shadow(0 0 4px var(--glow)); animation: none; }
/* back home after a page: the beat starts over from its calm end, where the flying copy's glow lands */
.ed-field g.is-returning .dot, .ed-field g.is-arriving .dot { animation-delay: 0s !important; } /* over its own inline beat */
.ed-field g.is-returning .dot { animation: none; }
@media (prefers-reduced-motion: reduce) { .ed-field .dot { animation: none; } }
.ed-field .limb { fill: none; stroke: var(--limb); stroke-width: .8; }
.ed-field { position: absolute; inset: 0; width: 100%; height: 100%; }

.ed-field .orbit { fill: none; stroke: var(--ink); stroke-opacity: .55; stroke-width: .8; stroke-dasharray: 1.2 3.2; }
.ed-field .orbit.is-focus { stroke-dasharray: none; stroke-opacity: .7; }
.ed-field .moon-ring { fill: none; stroke: var(--ink); stroke-opacity: .45; stroke-width: .8; stroke-dasharray: 1.2 3.2; }
.ed-field .reach { stroke: var(--accent); stroke-width: 1.4; }
.ed-field .moon-reach { stroke: var(--ink); stroke-opacity: .55; stroke-width: 1; }
.ed-field .name { font: 600 13px var(--sans); letter-spacing: .01em; fill: var(--ink); text-anchor: middle; }
.ed-field .tick { stroke: var(--ink); stroke-width: 1; }
.ed-field .note { font: 400 9.5px var(--mono); letter-spacing: .06em; fill: var(--ink-2); }
.ed-field .dist { font: 500 12px var(--mono); letter-spacing: .06em; fill: var(--accent); }
.ed-field .moon-name { font: 600 12px var(--sans); fill: var(--ink); }

/* Header: one quiet centred line with the date between faint arrows, as on the main screen */
.ed-head { position: absolute; z-index: 3; left: 0; right: 0; top: calc(var(--safe-top) + 12px); }
/* the date between its arrows in one glass pill, like the tabs and the other floating buttons */
.ed-day {
  display: flex; align-items: center; justify-content: center; gap: 4px; width: fit-content; margin: 0 auto;
  height: 34px; padding: 0 4px; border-radius: 17px; font: 400 13px/1 var(--mono); letter-spacing: -0.01em;
  background: color-mix(in srgb, var(--ink) 9%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ink) 10%, transparent);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
}
/* one width for every day, so the arrows never move: the longest title, "Yesterday, September 30", is 23 characters
   of the monospaced face */
.ed-day h1 { font: inherit; white-space: nowrap; color: var(--ink); padding: 0 6px; width: 23ch; box-sizing: content-box; text-align: center; }
.ed-day button { color: var(--ink-2); height: 28px; padding: 0 10px; border-radius: 14px; font: inherit; transition: color .2s, background-color .2s; }
.ed-day button:not(:disabled):hover { background: color-mix(in srgb, var(--ink) 8%, transparent); }
.ed-day button:not(:disabled):hover { color: var(--ink); }
.ed-day button:disabled { opacity: .3; cursor: default; }
.ed-more {
  position: absolute; right: 12px; top: 50%; transform: translateY(-50%); padding: 8px; border-radius: 50%; color: var(--ink-2);
  background: color-mix(in srgb, var(--ink) 9%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ink) 10%, transparent);
  transition: color .2s, opacity .2s;
}
.ed-app:has(.ed-menu.is-drop) .ed-more { opacity: 0; transition: opacity 0s; } /* the list has become it */
.ed-more:hover { color: var(--ink); }
.ed-more svg { width: 18px; height: 18px; display: block; fill: currentColor; }

/* Dots: one per asteroid, the current one lit in the accent */
.ed-dots {
  position: absolute; z-index: 3; left: 50%; bottom: calc(40px + env(safe-area-inset-bottom)); transform: translateX(-50%);
  display: flex; align-items: center;
  transition: transform .6s cubic-bezier(.65, 0, .25, 1), opacity .45s ease;
}
.ed-dots button { padding: 8px 5px; display: grid; place-items: center; }
.ed-dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--ink); opacity: .35; transition: opacity .25s, background-color .25s, transform .25s; }
.ed-dots button:hover i { opacity: .7; }
.ed-dots .is-on i { background: var(--accent); opacity: 1; transform: scale(1.35); box-shadow: 0 0 6px var(--glow-hot); }
.ed.is-detail .ed-dots { transform: translate(-50%, 80px); opacity: 0; pointer-events: none; }
/* My asteroid, a quiet glass pill under the dots (app.js), which step up to make room for it.
   No accent: on the sky the orange means the asteroid you are looking at */
.ed:has(.ed-mine) .ed-dots { bottom: calc(78px + env(safe-area-inset-bottom)); }
.ed-mine {
  position: absolute; z-index: 3; left: 50%; bottom: calc(30px + env(safe-area-inset-bottom)); transform: translateX(-50%);
  display: flex; align-items: center; gap: 7px; height: 36px; max-width: calc(100% - 48px); padding: 0 16px 0 12px; border-radius: 18px;
  font: 400 12.5px var(--sans); white-space: nowrap; color: var(--ink-2);
  background: color-mix(in srgb, var(--ink) 9%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ink) 10%, transparent);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  transition: transform .6s cubic-bezier(.65, 0, .25, 1), opacity .45s ease, color .2s;
}
.ed-mine span { overflow: hidden; text-overflow: ellipsis; }
/* with a birthday saved: "My asteroid · 2011 UA131", the name a step brighter */
.ed-mine b { font-weight: 500; color: var(--ink); }
.ed-mine b::before { content: '·'; margin: 0 6px; font-weight: 400; color: var(--ink-2); }
.ed-mine svg { flex: none; width: 18px; height: 18px; }
.ed-mine:hover, .ed-mine:active { color: var(--ink); }
.ed-mine.is-busy { opacity: .55; }
.ed.is-detail .ed-mine { transform: translate(-50%, 80px); opacity: 0; pointer-events: none; }

/* Earth fades into the paper at the bottom of the screen (above the Earth) */
.ed-fade {
  position: absolute; z-index: 2; left: 0; right: 0; bottom: 0; height: 20%; pointer-events: none;
  background: linear-gradient(to bottom, transparent 0%, color-mix(in srgb, var(--paper) 70%, transparent) 45%, var(--paper) 88%);
}

/* On a computer there are two views (index.html picks one before the first paint and marks it on <html>; the button
   in the window's corner switches between them, remembered on this device):
   html.as-desk — the app as a desktop page: no phone, the sky is the window itself (app.js lays it out wide);
   html.as-phone — "as on a phone": the 440 × 956 phone screen zoomed to fit the window, with the sky going on past it.
   A real phone has neither: the app is simply the whole screen. */
html:has(.ed-app), html:has(.ed-app) body { background: var(--paper); transition: background-color .4s; }
.ed-backdrop { display: none; } /* the sky past the phone: "as on a phone" only, below */
html.as-desk .phone:has(.ed-app) .phone-ui, html.as-desk .phone:has(.ed-app) .phone-indicator,
html.as-phone .phone:has(.ed-app) .phone-ui, html.as-phone .phone:has(.ed-app) .phone-indicator { display: none; }

/* As on a phone: the screen set apart from the sky behind it by its rounded corners and a hairline edge (no glow) */
html.as-phone .phone:has(.ed-app) {
  padding: 0; border-radius: 32px; background: none; z-index: 1;
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--ink) 8%, transparent);
}
html.as-phone .phone:has(.ed-app) .ed-app { --safe-top: 20px; border-radius: 32px; }
/* the sky goes on past the phone: the same paper and grain, and the same three layers of falling stars, a little
   fainter, so the app reads as a window onto it */
html.as-phone .ed-backdrop { display: block; position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; background: var(--paper); }
html.as-phone .ed-backdrop i {
  position: absolute; left: 0; right: 0; top: calc(-1 * var(--tile)); height: calc(100% + var(--tile));
  background-size: var(--tile-w) var(--tile); animation: ed-star-fall linear infinite; will-change: transform; opacity: .75;
}
html.as-phone .ed-backdrop::after {
  content: ""; position: absolute; inset: 0; opacity: var(--grain-opacity); mix-blend-mode: var(--grain-blend);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .5 0 0 0 0 .48 0 0 0 0 .44 0 0 0 .35 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
@media (prefers-reduced-motion: reduce) { .ed-backdrop i { animation: none; } }
/* while the Enter screen is up there are no stars past the phone either; they come in with the sky */
html.as-phone .ed-backdrop i { transition: opacity 1.4s ease .4s; }
html.as-phone.is-entering .ed-backdrop i { opacity: 0; transition: none; }

/* The switch between the two views: a glass pill in the window's bottom right corner, like the ⋯ and ← circles */
.view-switch {
  position: fixed; z-index: 10; right: 24px; bottom: 24px; display: flex; align-items: center; gap: 8px;
  height: 36px; padding: 0 16px 0 12px; border-radius: 18px; font: 400 12.5px var(--sans); color: var(--ink-2);
  background: color-mix(in srgb, var(--ink) 9%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ink) 10%, transparent);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); transition: color .2s;
}
.view-switch[hidden] { display: none; }
.view-switch:hover { color: var(--ink); }
.view-switch:focus-visible { outline: 1.5px solid var(--accent); outline-offset: 2px; }
.view-switch svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; }

/* Desktop: no phone at all. The sky is the window itself, edge to edge (app.js lays it out for a wide screen:
   a larger Earth, more asteroids on the arc); an asteroid's page opens as a column down the middle */
html.as-desk body:has(.ed-app) { padding: 0; }
html.as-desk .phone:has(.ed-app) { width: 100%; height: 100dvh; aspect-ratio: auto; padding: 0; border-radius: 0; background: none; box-shadow: none; zoom: 1; }
html.as-desk .phone:has(.ed-app) .ed-app { --safe-top: 24px; border-radius: 0; }
/* the page: the words in a column the width of a phone screen, centred, but the page itself as wide as the window,
   so what is drawn — the cover's orbit, the figures, the Orbit's close-up, the falling stars — runs on past the column
   instead of stopping at its edges. --pad: the margin either side of the column */
html.as-desk .phone:has(.ed-app) .sheet-body { --pad: max(22px, calc(50vw - 218px)); padding-left: var(--pad); padding-right: var(--pad); }
html.as-desk .phone:has(.ed-app) .ed-fig-stars { left: calc(-1 * var(--pad)); right: calc(-1 * var(--pad)); }
/* the Orbit's close-up runs the window's width, drawn at the column's scale (app.js widens its view to match),
   so its orbits go on to the window's edges */
html.as-desk .phone:has(.ed-app) .ed-block-fig svg.is-zoom { width: calc(100% + 2 * var(--pad)); margin-left: calc(-1 * var(--pad)); margin-right: calc(-1 * var(--pad)); }
/* three floating things at the top: ← at the window's left, ⋯ at its right, and between them the tabs, one glass
   pill like the two circles, with a hairline along its foot that fills in the accent as the page is read (--read) */
html.as-desk .phone:has(.ed-app) .sheet-bar { padding-left: 24px; padding-right: 24px; }
html.as-desk .phone:has(.ed-app) .ed-tabs {
  top: calc(var(--safe-top) + 6px); bottom: auto; left: 50%; right: auto; height: 34px; padding: 0 6px; gap: 2px;
  border-radius: 17px; overflow: hidden; z-index: 4;
  background: color-mix(in srgb, var(--ink) 9%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ink) 10%, transparent);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  transform: translate(-50%, -12px);
}
html.as-desk .phone:has(.ed-app) .ed-sheet.is-landed .ed-tabs { transform: translate(-50%, 0); }
html.as-desk .phone:has(.ed-app) .ed-tabs::before {
  content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 100%; background: var(--accent);
  transform-origin: left; transform: scaleX(var(--read, 0)); box-shadow: 0 0 6px var(--glow-hot);
}
html.as-desk .phone:has(.ed-app) .ed-tabs button { flex: none; padding: 0 14px; font-size: 12.5px; }
html.as-desk .phone:has(.ed-app) .ed-tabs button::after { display: none; }
/* the screens no longer keep room for tabs at their foot, only some air: the words stand clear of the window's edge */
html.as-desk .phone:has(.ed-app) .ed-block, html.as-desk .phone:has(.ed-app) .ed-intro { padding-bottom: 12vh; }
/* Size: a little lower, so the figure (the largest estimate's ring included) fits above the words on a shorter
   window too, instead of rising under the tabs and being cut */
html.as-desk .phone:has(.ed-app) .ed-block-fig svg.is-bleed { max-height: min(50cqh, calc(100cqh - 12vh - 400px)); }
/* the cover's dashed orbit stands still (on a phone its dashes run) */
html.as-desk .phone:has(.ed-app) .ed-sheet.is-landed .ed-hero-spin { animation: none; }
/* no ⋯ menu on desktop: a sound on/off button stands in its place (app.js) */
html.as-desk .phone:has(.ed-app) [data-menu-open] { display: none; }
html.as-desk .ed-sound[aria-pressed="false"] { color: var(--ink-2); }
html.as-desk .ed-sound[aria-pressed="true"] { color: var(--ink); }
/* the menu's pages (Your asteroid's date) come in as a panel at the window's right */
html.as-desk .ed-page { left: auto; width: min(480px, 100%); }
/* the words set centred under the figure, as the cover's masthead is */
html.as-desk .phone:has(.ed-app) .ed-copy { text-align: center; }
html.as-desk .phone:has(.ed-app) .ed-copy-text { margin-left: auto; margin-right: auto; }
html.as-desk .phone:has(.ed-app) .ed-copy .ed-legend { justify-content: center; }
/* Source: the link to NASA's record centred too, the arrow right after its name */
html.as-desk .phone:has(.ed-app) .ed-source { justify-content: center; align-items: flex-end; gap: 10px; }
/* the cover: the name and its line come down to the asteroid and end a fixed way above it (the asteroid's centre sits
   at 52cqh of the page). The masthead is a box reaching down to that line, its words set at its foot, so a headline of
   three or four lines grows upwards instead of running down onto the asteroid */
html.as-desk .phone:has(.ed-app) .ed-intro { padding-top: calc(14cqh + 10px); }
html.as-desk .phone:has(.ed-app) .ed-intro.is-rock { padding-top: calc(14cqh - 54px); }
html.as-desk .phone:has(.ed-app) .ed-masthead { display: flex; flex-direction: column; justify-content: flex-end; min-height: calc(38cqh - 185px); }
html.as-desk .phone:has(.ed-app) .ed-intro.is-rock .ed-masthead { min-height: calc(38cqh - 121px); }
}

/* ---------------- Full details: the asteroid's page, set like a journal article ---------------- */
.ed-field .dot { cursor: pointer; }
/* The page fades in over the sky as the sky lets go; the asteroid itself flies up to become its header */
.ed-sheet {
  /* no paper of its own: the zooming sky stays visible through it until it has faded */
  position: absolute; inset: 0; z-index: 3; color: var(--ink);
  display: flex; flex-direction: column; opacity: 0; transition: opacity .3s ease;
}
.ed-sheet.is-open { opacity: 1; transition: opacity .45s ease .12s; }
.ed-sheet[hidden] { display: none; }

/* the sky letting go: a camera move toward the asteroid. Sky and Earth scale up around it (--zoom-origin, set from JS),
   so what is above it flies off upward and what is below flies off downward, fading on the way;
   the header leaves upward, the bottom fade downward */
.ed-field, .ed-stars, .ed-earth { transform-origin: var(--zoom-origin, 50% 50%); transition: transform .76s cubic-bezier(.65, 0, .25, 1), opacity .6s cubic-bezier(.5, 0, .75, 0); }
/* the orbits' dotted lines turn into heavy dashes as they scale up, so the sky's lines are gone before they get there */
.ed.is-detail .ed-field, .ed.is-detail .ed-stars { transition: transform .76s cubic-bezier(.65, 0, .25, 1), opacity .32s ease-out; }
.ed-head, .ed-fade { transition: transform .6s cubic-bezier(.65, 0, .25, 1), opacity .45s ease; }
.ed.is-detail .ed-field, .ed.is-detail .ed-stars, .ed.is-detail .ed-earth { transform: translate(var(--zoom-shift, 0px, 0px)) scale(var(--zoom-scale, 3.2)); opacity: 0; }
/* !important: setting the sky's pose out of sight must never animate, whatever transition another state asks for (is-leaving) */
.ed.is-snap .ed-field, .ed.is-snap .ed-stars, .ed.is-snap .ed-earth { transition: none !important; }
/* the way back is slower than the way in */
.ed.is-leaving .ed-field, .ed.is-leaving .ed-stars, .ed.is-leaving .ed-earth { transition: transform 1.15s cubic-bezier(.65, 0, .25, 1), opacity .95s cubic-bezier(.5, 0, .75, 0); }
.ed.is-leaving .ed-head, .ed.is-leaving .ed-fade { transition: transform .9s cubic-bezier(.65, 0, .25, 1) .25s, opacity .7s ease .3s; }
.ed.is-leaving .ed-sheet { transition: opacity .5s ease; }
/* back home from the page: the labels return with the sky, and the line to Earth draws down from the asteroid as it comes,
   its distance label coming up as the line reaches it (set from JS);
   the orbit stays hidden while the flying copy stands in for it; the halo rides with it, coming up on the way, and so
   does the sky's dot, under it, coming up over the last stretch as the copy's glow goes (their glows differ) */
.ed-field g.is-returning > .orbit { visibility: hidden; }
.ed.is-detail .ed-head { transform: translateY(-60px); opacity: 0; }
.ed.is-detail .ed-fade { transform: translateY(100%); opacity: 0; }
.ed.is-detail .ed-field, .ed.is-detail .ed-head { pointer-events: none; }

/* Opening (app.js): dark until the sky is laid out, then each part comes in out of the dark in turn.
   The entrances are animations "from" a hidden pose, so each ends on whatever the element's own style is */
.ed.is-boot :is(.ed-earth, .ed-stars, .ed-field, .ed-head, .ed-fade, .ed-dots, .ed-mine) { opacity: 0; transition: none; }
.ed.is-intro .ed-earth, .ed.is-intro .ed-field .in-earth {
  transform-origin: var(--earth-at, 50% 100%); animation: ed-earth-in 1.7s cubic-bezier(.2, .7, .2, 1) backwards;
}
.ed.is-intro .ed-fade { animation: ed-in-dark 1s ease .1s backwards; }
.ed.is-intro .ed-stars { animation: ed-in-dark 1.6s ease .25s backwards; }
.ed.is-intro .ed-field .in-moon { animation: ed-drop .9s cubic-bezier(.16, .8, .24, 1) .12s backwards; }
/* the Moon's measuring line draws from the Moon down to the Earth, in a cascade just after the asteroid's orange one */
.ed.is-intro .ed-field .moon-reach { stroke-dasharray: 1 1; animation: ed-draw-back .7s cubic-bezier(.55, 0, .25, 1) calc(var(--line-in, 1.05s) + .25s) backwards; }
.ed.is-intro .ed-near > g { animation: ed-drop .85s cubic-bezier(.16, .8, .24, 1) var(--in, .2s) backwards; }
/* the line to Earth draws down from the asteroid (pathLength 1: the offset is how much is still undrawn), its distance after */
.ed.is-intro .ed-near > g .reach { animation: ed-draw .7s cubic-bezier(.55, 0, .25, 1) var(--line-in, 1.05s) backwards; }
.ed.is-intro .ed-near > g .dist { animation: ed-in-dark .45s ease calc(var(--line-in, 1.05s) + .45s) backwards; }
.ed.is-intro :is(.ed-head, .ed-dots, .ed-mine) { animation: ed-in-dark .8s ease var(--ui-in, 1.35s) backwards; }
/* the Earth: from wholly below the screen, large, up into place and down to its size (--rise and --earth-in from JS) */
@keyframes ed-earth-in { from { transform: translateY(var(--rise, 100vh)) scale(var(--earth-in, 1.3)); } }
@keyframes ed-drop { from { transform: translateY(-56px); opacity: 0; } }
@keyframes ed-draw { from { stroke-dashoffset: 1; } }
@keyframes ed-draw-back { from { stroke-dashoffset: -1; } }
@keyframes ed-in-dark { from { opacity: 0; } }
/* The Enter screen: where the browser holds the music until a tap, a dark screen asks for it; the tap starts the music
   and the sky's entrance together. It sits in the stage, over the sky (in the phone card in "as on a phone").
   The name in the middle, the dot over its i an asteroid in the accent; a white pill and a quiet way in without sound */
.ed-enter {
  position: absolute; inset: 0; z-index: 20; display: flex; flex-direction: column; align-items: center;
  padding: 0 38px calc(env(safe-area-inset-bottom) + 72px); text-align: center; background: var(--paper); color: var(--ink);
  animation: ed-in-dark 1s ease .15s backwards;
}
.ed-enter > * { transition: opacity .4s ease; }
.ed-enter.is-gone { pointer-events: none; background: transparent; transition: background-color .9s ease .15s; }
.ed-enter.is-gone > * { opacity: 0; }
/* its sky: a few stars at the top (the orbit is not drawn) */
.ed-enter-sky { position: absolute; inset: 0; z-index: -1; pointer-events: none; transform-origin: var(--dot-at, 50% 50%); }
.ed-enter { isolation: isolate; }
/* a few stars at the top only, falling slowly, fading out well above the name */
.ed-enter-stars {
  position: absolute; left: 0; right: 0; top: 0; height: 42%; overflow: hidden; opacity: .55;
  -webkit-mask-image: linear-gradient(#000, #000 25%, transparent); mask-image: linear-gradient(#000, #000 25%, transparent);
}
.ed-enter-stars i {
  position: absolute; left: 0; right: 0; top: calc(-1 * var(--tile)); height: calc(100% + var(--tile));
  background-size: var(--tile-w) var(--tile); animation: ed-star-fall linear infinite; will-change: transform;
}
.ed-enter-stars i:last-child { display: none; } /* the near, brightest layer stays out: just a few faint ones */
/* falling visibly (the sky's own pace would barely move here): far layer slower, the nearer one quicker */
.ed-enter-stars i:nth-child(1) { animation-duration: 26s !important; }
.ed-enter-stars i:nth-child(2) { animation-duration: 14s !important; }
@media (prefers-reduced-motion: reduce) { .ed-enter-stars i { animation: none; } }
/* the paper grain lies over the Enter screen too (it sits under the screen otherwise) */
.ed:has(> .ed-enter)::before { z-index: 22; }
.ed-enter-orbit { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.ed-enter-orbit circle { fill: none; stroke: var(--ink); stroke-opacity: .5; stroke-width: .8; }
/* not drawn: the screen is only the name, its dot and the way in. The circle stays (hidden) as the hand-off's measure
   of how the sky comes in turned */
.ed-enter-orbit { visibility: hidden; }
/* Enter: we rush in at the asteroid, the stars and the orbit sweeping out past us */
.ed-enter.is-gone .ed-enter-sky { transform: scale(7); opacity: 0; transition: transform 1.1s cubic-bezier(.5, 0, .75, .3), opacity .8s ease .3s; }
.ed-enter-title { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; padding-top: 12vh; }
.ed-enter-mark { margin: 0; font: 600 40px/1 var(--sans); letter-spacing: -.02em; }
.ed-enter-i { position: relative; }
.ed-enter-dot, .ed-enter-fly {
  border-radius: 50%; background: var(--accent);
  box-shadow: 0 0 4px var(--glow-hot), 0 0 12px var(--glow-hot);
}
.ed-enter-dot { position: absolute; left: 50%; top: -.06em; width: 6px; height: 6px; transform: translateX(-50%); }
.ed-enter-fly { position: absolute; z-index: 21; transform: translate(-50%, -50%); pointer-events: none; }
/* set like the date over the sky: the mono, small, and quieter than the name */
.ed-enter-line { margin: 18px 0 0; font: 400 13px/1.45 var(--mono); letter-spacing: -0.01em; color: color-mix(in srgb, var(--ink) 55%, transparent); }
.ed-enter-foot { width: 100%; display: flex; flex-direction: column; align-items: center; }
/* glass, like the Desktop view / Phone view switch: a faint ink fill, a hairline edge, the sky blurred behind it */
.ed-enter-go {
  width: 100%; height: 64px; border-radius: 32px; font: 400 15px var(--sans); color: var(--ink);
  background: color-mix(in srgb, var(--ink) 9%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ink) 10%, transparent);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  transition: transform .2s ease, opacity .55s ease, background-color .2s ease;
}
.ed-enter-go:hover { background: color-mix(in srgb, var(--ink) 13%, transparent); }
.ed-enter-go:active { transform: scale(.98); }
.ed-enter-go { outline: none; border: 0; }
.ed-enter-quiet:focus-visible { outline: 1.5px solid var(--ink); outline-offset: 3px; }
/* set like the line under the name: the mono, small, half-transparent */
.ed-enter-quiet { margin-top: 14px; padding: 8px; font: 400 13px/1.45 var(--mono); letter-spacing: -0.01em; color: color-mix(in srgb, var(--ink) 45%, transparent); transition: color .2s; }
.ed-enter-quiet:hover { color: color-mix(in srgb, var(--ink) 80%, transparent); }
/* After the Enter screen: one camera move for the whole sky, the Earth with it. We start in close on the asteroid,
   the sky turned so that its orbit leans as the screen's did (the Earth low on the left); the camera pulls back and
   turns upright, the asteroid holding still. One transform, about the asteroid, for every layer (they share the
   stage's coordinates), so Earth, atmosphere, stars and orbits move as one picture */
.ed.is-intro.is-approach :is(.ed-earth, .ed-stars, .ed-field) {
  transform-origin: var(--approach-at, 50% 35%); animation: ed-camera 2.4s cubic-bezier(.45, 0, .25, 1) backwards;
}
.ed.is-intro.is-approach :is(.ed-stars, .ed-field) { animation: ed-camera 2.4s cubic-bezier(.45, 0, .25, 1) backwards, ed-in-dark .7s ease backwards; }
.ed.is-intro.is-approach .ed-earth { overflow: visible; } /* its own box would cut it, turned; the clip keeps it round */
/* the Moon and its ring are part of the sky in the camera move too: they come in with it, no drop of their own */
.ed.is-intro.is-approach .ed-field .in-moon { animation: none; }
@keyframes ed-camera { from { transform: translate(var(--cam-x, 0px), var(--cam-y, 0px)) rotate(var(--roll, 0deg)) scale(var(--cam-scale, 1.8)); } }
/* the Earth on the same move, and riding in from beyond the edge with it: pushed down along its own axis at the start
   (--earth-drop from JS). Its atmosphere and horizon line, in the sky's SVG, get the same push inside the sky's move,
   so the two stay one planet: the transforms interpolate part by part on one clock */
.ed.is-intro.is-approach .ed-earth { animation: ed-camera-earth 2.4s cubic-bezier(.45, 0, .25, 1) backwards; }
.ed.is-intro.is-approach .ed-field .in-earth { animation: ed-earth-drop 2.4s cubic-bezier(.45, 0, .25, 1) backwards; }
@keyframes ed-camera-earth { from { transform: translate(var(--cam-x, 0px), var(--cam-y, 0px)) rotate(var(--roll, 0deg)) scale(var(--cam-scale, 1.8)) translateY(var(--earth-drop, 0px)); } }
@keyframes ed-earth-drop { from { transform: translateY(var(--earth-drop, 0px)); } }
/* the hand-off (app.js flyDot): the flying dot and orbit stand in for the middle asteroid's own until the sky
   has arrived */
.ed-field g.is-handoff > .orbit, .ed-field g.is-handoff > .dot { visibility: hidden; }
.ed-fly-orbit { position: absolute; inset: 0; z-index: 21; width: 100%; height: 100%; pointer-events: none; overflow: visible; }
.ed-fly-orbit circle { fill: none; stroke: var(--ink); stroke-width: .8; }
/* after the Enter screen the middle asteroid is the flying dot: its group fades in under it instead of dropping */
.ed.is-intro .ed-near > g.is-met { animation: ed-in-dark .45s ease var(--in, .95s) backwards; }
/* in the camera move the asteroids and their orbits are simply part of the sky, there from the start (no cascade) */
.ed.is-intro.is-approach .ed-near > g, .ed.is-intro.is-approach .ed-near > g.is-met { animation: none; }
/* a desktop window: the screen keeps a phone's proportions in its middle */
html.as-desk .ed-enter-title, html.as-desk .ed-enter-foot { max-width: 420px; }
.ed-field g.is-flying > * { visibility: hidden; }

/* the asteroid as a header: a lit sphere in the accent, engraved shading on its dark side, glowing */
/* the asteroid and its orbit sit in the middle of the cover; the page's words flow around them */
.ed-hero { position: absolute; left: 0; right: 0; top: calc(52cqh - 105px); height: 210px; pointer-events: none; }
.ed-hero-orbit { position: absolute; inset: 0; -webkit-mask-image: linear-gradient(90deg, transparent, #000 28%, #000 72%, transparent); mask-image: linear-gradient(90deg, transparent, #000 28%, #000 72%, transparent); }
/* only the arc that shows is drawn (the circle is thousands of px wide); the spin turns it about the circle's centre,
   set from JS as its transform-origin */
.ed-hero-spin, .ed-hero-spin svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
/* the orbit, as it looks when focused on the sky: a solid hairline (on the page and while flying) */
.ed-hero-orbit path, .ed-ghost-orbit circle { fill: none; stroke: var(--ink); stroke-opacity: .7; stroke-width: .8; }
.ed-hero-orbit path { stroke-dasharray: 3 4; stroke-opacity: .55; }
.ed-ghost-orbit { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 5; pointer-events: none; overflow: visible; }
.ed-hero-orbit { visibility: hidden; }
.ed-sheet.is-landed .ed-hero-orbit { visibility: visible; }
.ed-hero-dot {
  position: absolute; left: 50%; top: 50%; width: 92px; height: 92px; margin: -46px 0 0 -46px; border-radius: 50%;
  background: radial-gradient(circle at 34% 30%, color-mix(in srgb, var(--accent) 55%, #fff) 0%, var(--accent) 42%, color-mix(in srgb, var(--accent) 62%, #000) 100%);
  box-shadow: 0 0 14px var(--glow-hot), 0 0 46px color-mix(in srgb, var(--glow-hot) 45%, transparent);
  visibility: hidden;
}
.ed-hero-dot::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  background: repeating-linear-gradient(-45deg, rgba(0, 0, 0, .22) 0 .8px, transparent .8px 3px);
  -webkit-mask: radial-gradient(circle at 32% 28%, transparent 38%, #000 82%); mask: radial-gradient(circle at 32% 28%, transparent 38%, #000 82%);
}
/* the header sphere only marks the place; what you see is the travelling asteroid (#actor) */
/* it travels over the page's lines (the cover's orbit passes behind it), and only slips under the content
   on the way to and from a screen where something stands in front of it (the size reference) */
/* no will-change: as a layer it would be drawn at its header size and blown up blurry on screens where it is bigger (Size) */
.ed-actor { left: 0; top: 0; margin: 0; z-index: 2; pointer-events: none; }
.ed-actor.is-under { z-index: 0; }
.sheet-body { position: relative; z-index: 1; }
.ed-sheet.is-landed .ed-actor { visibility: visible; }
.ed-sheet.is-landed [data-actor] { visibility: hidden; }
/* and on the way back too: the flying copy has taken over, so the page's own mark (the Size disc, a dot on a figure)
   must not come back and fade out with the page beside it */
.ed.is-leaving .ed-sheet [data-actor] { visibility: hidden; }
.sheet-bar { z-index: 3; }
/* the flying copy, above everything while it travels */
/* no will-change: as a layer it would be drawn once at its small starting size and blown up blurry,
   then snap sharp when the page's copy takes over */
.ed-hero-dot.is-ghost {
  left: 0; top: 0; margin: 0; z-index: 5; visibility: visible; pointer-events: none;
  /* --flat (0â€“100%) lays a flat accent over the shading, so at the sky's end it is the sky's plain glowing disc */
  /* --g1/--g2: glow sizes and --hot: white-to-accent glow, set per frame by the flight */
  /* --glow-k (0–1) fades its glow out at the very end of the way back, as the sky's own dot takes over with its own */
  --glow-c: color-mix(in srgb, color-mix(in srgb, var(--glow-hot) var(--hot, 100%), var(--glow)) calc(var(--glow-k, 1) * 100%), transparent);
  box-shadow: inset 0 0 0 46px color-mix(in srgb, var(--accent) var(--flat, 0%), transparent), 0 0 var(--g1, 14px) var(--glow-c), 0 0 var(--g2, 46px) color-mix(in srgb, var(--glow-c) 45%, transparent);
}
.ed-hero-dot.is-ghost::after { opacity: calc(1 - var(--flatn, 0)); }
/* leaving from behind the size reference: it starts under the fading page, so the drawing in front of it doesn't jump behind */
.ed-hero-dot.is-ghost.is-under, .ed-ghost-orbit.is-under { z-index: 2; }
/* a white (unselected) asteroid warms to the accent as it flies in: an ink disc over it fades away, the glow grows */
.ed-hero-dot.is-ghost.from-ink::before {
  content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--ink); z-index: 1;
  animation: ed-warm .45s ease-out both;
}
@keyframes ed-warm { from { opacity: 1; } to { opacity: 0; } }

/* the text falls into place block by block */
.ed-cascade { animation: ed-rise .6s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes ed-rise { from { opacity: 0; transform: translateY(18px); } }
@media (prefers-reduced-motion: reduce) { .ed-cascade { animation: none; } }

/* no bar: just ← and the ⋯, two glass circles floating over the page as it scrolls under them */
.sheet-bar {
  position: absolute; top: 0; left: 0; right: 0; display: flex; justify-content: space-between; align-items: center;
  padding: calc(var(--safe-top) + 6px) 12px 0; pointer-events: none;
}
.sheet-bar button { pointer-events: auto; }
.sheet-bar button:focus:not(:focus-visible) { outline: none; }
#sheet-close {
  width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; color: var(--ink); font: 400 17px/1 var(--sans);
  background: color-mix(in srgb, var(--ink) 9%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ink) 10%, transparent);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
}
.sheet-bar .ed-more { position: static; transform: none; -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }

.sheet-body { flex: 1; min-height: 0; overflow-y: auto; padding: calc(var(--safe-top) + 46px) 22px 0; scrollbar-width: none; overscroll-behavior: contain; }
.sheet-body::-webkit-scrollbar { display: none; }
.sheet-loading { font: 400 11px var(--mono); color: var(--ink-2); letter-spacing: .06em; margin-top: 24px; }

/* The page scrolls screen by screen: the intro under the asteroid, then one block per fact */
.sheet-body { container-type: size; overflow-x: hidden; scroll-snap-type: y proximity; scroll-padding-top: calc(var(--safe-top) + 46px); }

/* the cover: the name, its class and a one-line headline at the top, the asteroid in the middle,
   and the countdown at the foot, told the same way as every other screen */
.ed-intro { min-height: 100cqh; scroll-snap-align: start; padding: calc(14cqh + 10px) 0 92px; display: flex; flex-direction: column; }
.ed-kicker, .ed-label { font: 400 10px/1.3 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); }
.ed-masthead { text-align: center; }
.ed-masthead h1 { font: 500 18px/1.2 var(--sans); letter-spacing: -.01em; margin: 0; }
.ed-intro .ed-kicker { font: 500 12px/1.3 var(--sans); letter-spacing: .05em; color: var(--ink); margin-top: 16px; }
/* the cover's header in three groups by nearness: (Your asteroid and its day,) the name with what it is right under it,
   then the line about it. The name and its details sit close; the groups apart (the padding above makes up for the
   header being shorter, so it still ends as far above the asteroid) */
.ed-masthead h1 + .ed-kicker { margin-top: 6px; }
.ed-kicker .nw { white-space: nowrap; }
.ed-intro .ed-kicker .hz { color: var(--accent); }
.ed-cover-line { font: 400 14px/1.45 var(--sans); color: var(--ink-2); max-width: 26ch; margin: 20px auto 0; }
/* No word left alone on a line, anywhere: headings, kickers and short lines are balanced across their lines; running
   text keeps its lines full and only evens out the last ones (pretty). Where a browser has neither, content.js ties a
   text's last two words together */
h1, h2, h3, .ed-kicker, .ed-copy-kicker, .ed-copy-title, .ed-copy-sub, .ed-cover-line, .ed-page-lead, .ed-page-h { text-wrap: balance; }
p, li, .ed-copy-text, .ed-page-text { text-wrap: pretty; }
/* Your asteroid's cover: the day and Change date over the name, as a quiet line of its own (the one kind of line that is
   about the page, not the asteroid); with it and a longer line under the name the header is taller, so it starts higher
   by as much and ends as far above the asteroid as the sky's cover does */
.ed-masthead .ed-eyebrow { font: 400 10px/1.3 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); margin: 0 0 20px; }
.ed-intro.is-rock { padding-top: calc(14cqh - 54px); }
.ed-countdown { margin-top: auto; }
.ed-countdown [data-cd-value] { font-variant-numeric: tabular-nums; }

/* a block: one screen for one fact â€” the figure fills the top, the words sit at the foot */
.ed-block { min-height: 100cqh; scroll-snap-align: start; padding: 64px 0 92px; display: flex; flex-direction: column; gap: 28px; }
.ed-block-fig { flex: 1; width: 100%; display: flex; flex-direction: column; justify-content: center; position: relative; }
.ed-block-fig > :not(.ed-fig-stars) { position: relative; z-index: 1; }
/* falling stars behind the figure: from under the top bar (the block's top padding) to the figure's foot, edge to edge,
   fading in at the top and out before the text */
.ed-fig-stars {
  position: absolute; top: -64px; bottom: 0; left: -22px; right: -22px; overflow: hidden; pointer-events: none;
  -webkit-mask-image: linear-gradient(transparent, #000 18%, #000 72%, transparent); mask-image: linear-gradient(transparent, #000 18%, #000 72%, transparent);
}
.ed-fig-stars i {
  position: absolute; left: 0; right: 0; top: calc(-1 * var(--tile)); height: calc(100% + var(--tile));
  background-size: 360px var(--tile); animation: ed-star-fall linear infinite; will-change: transform;
}
/* the cover: stars only in the band around the asteroid, between the headline and the countdown */
.ed-intro { position: relative; }
.ed-intro > :not(.ed-fig-stars) { position: relative; z-index: 1; }
.ed-intro-stars {
  top: calc(52cqh - 125px); bottom: auto; height: 205px;
  -webkit-mask-image: linear-gradient(transparent, #000 30%, #000 70%, transparent); mask-image: linear-gradient(transparent, #000 30%, #000 70%, transparent);
}
/* the cover: the camera rides along with the asteroid flying left to right, so the stars stream past
   right to left, fast, nearer layers quicker */
.ed-fig-stars.is-pass i {
  top: 0; height: 100%; left: 0; right: auto; width: calc(100% + var(--tile-w));
  background-size: var(--tile-w) var(--tile); animation-name: ed-star-pass; animation-duration: var(--pass) !important;
}
@keyframes ed-star-pass { to { transform: translateX(calc(-1 * var(--tile-w))); } }
/* and its orbit slides past the other way, with the stars: the dashes run right to left over the top
   (counter-clockwise), one dash and gap every .5 s. The arc turns about its centre by one dash and gap (--spin), where
   the pattern lands on itself, and starts over: a transform, so the compositor moves it and nothing is redrawn. It starts
   on landing, from where the flying orbit left its dashes */
.ed-sheet.is-landed .ed-hero-spin { animation: ed-orbit-spin .5s linear infinite; }
@keyframes ed-orbit-spin { to { transform: rotate(calc(-1 * var(--spin, 0deg))); } }
/* Orbit: the stars zoom with the figure (scale set as it zooms), so each layer reaches half its box out on every
   side and can shrink to half without showing an edge */
.ed-fig-stars.is-zoomable i { left: -50%; right: -50%; top: calc(-50% - var(--tile)); height: calc(200% + var(--tile)); }
/* …and when they also stream sideways (the close-up), half a box out on every side plus a tile's width to slide;
   left to right as well as right to left, whichever way the asteroid is heading */
/* (and slowly: a fortieth of the cover's speed) */
.ed-fig-stars.is-zoomable.is-pass i, .ed-fig-stars.is-zoomable.is-pass-rev i { left: -50%; right: auto; width: calc(200% + var(--tile-w)); top: -50%; height: 200%; animation-duration: calc(var(--pass) * 40) !important; }
.ed-fig-stars.is-pass-rev i {
  top: 0; height: 100%; left: calc(-1 * var(--tile-w)); right: auto; width: calc(100% + var(--tile-w));
  background-size: var(--tile-w) var(--tile); animation-name: ed-star-pass-rev; animation-duration: var(--pass) !important;
}
.ed-fig-stars.is-zoomable.is-pass-rev i { left: calc(-50% - var(--tile-w)); }
@keyframes ed-star-pass-rev { to { transform: translateX(var(--tile-w)); } }
@media (prefers-reduced-motion: reduce) { .ed-fig-stars i, .ed-sheet.is-landed .ed-hero-spin { animation: none; } }
/* the words: the same four lines on every screen â€” kicker, headline, sub, one paragraph â€” left-aligned */
.ed-copy { width: 100%; text-align: left; }
.ed-copy-kicker { font: 400 13px/1.3 var(--sans); color: var(--ink-2); }
.ed-copy-title { font: 600 min(36px, 9.5cqw)/1.1 var(--sans); letter-spacing: -.025em; margin-top: 8px; }
.ed-copy-sub { font: 400 15px/1.4 var(--sans); margin-top: 10px; }
.ed-copy-text { font: 400 13.5px/1.55 var(--sans); color: var(--ink-2); margin-top: 14px; max-width: 46ch; }
.ed-copy-text b { color: var(--ink); font-weight: 500; }
.ed-copy .ed-legend { justify-content: flex-start; margin-top: 22px; }
.ed-block-fig svg { display: block; width: 100%; height: auto; overflow: visible; }
.ed-block-fig svg.is-square { width: min(100%, 52cqh); margin: 0 auto; }
.ed-block-fig svg.is-bleed { width: 100%; max-height: 50cqh; }
/* Short screens: the figure gives way so the words and their switches stay above the tabs. It keeps its size and
   rises instead (centred while there is room; once there isn't, its foot stays on the words and its top runs up under
   the top bar), cut off at the top of the screen */
.ed-block { overflow-y: clip; }
/* Size: the dashed ring of the largest estimate may run up past the block; it is drawn whole, under the top bar and on
   to the screen's own edge, rather than cut along the block's top */
.ed-block:has(svg[data-sizes]) { overflow-y: visible; }
.ed-block-fig { flex-basis: 0px; min-height: 0; justify-content: flex-end; }
.ed-block-fig > :nth-child(1 of :not(.ed-fig-stars)):not(.is-zoom) { margin-top: auto; }
.ed-block-fig > :last-child:not(.ed-fig-stars, .is-zoom) { margin-bottom: auto; }
@container (max-height: 760px) {
  .ed-block { padding: 56px 0 84px; gap: 18px; }
  .ed-copy-sub { margin-top: 6px; }
  .ed-copy-text { margin-top: 10px; }
}
/* a close-up that runs to the screen's edges: the orbits leave the picture on both sides, cut at its top and foot */
/* it also rises into the empty band above the figure (the block's 64px top padding, under the top bar), so the
   orbits get that much more height, and its top fade starts right under the bar */
.ed-block-fig svg.is-zoom { width: calc(100% + 44px); margin: -56px -22px 0; max-height: calc(46cqh + 56px); overflow: hidden; }
/* its top and foot fade out instead of cutting the orbits off sharply; the whole-orbit view cuts nothing,
   so there the fade draws back almost to the edges, in step with the zoom */
@property --fade-top { syntax: '<percentage>'; inherits: false; initial-value: 9%; }
@property --fade-foot { syntax: '<percentage>'; inherits: false; initial-value: 16%; }
.ed-block-fig svg.is-zoom {
  --fade-top: 9%; --fade-foot: 16%;
  -webkit-mask-image: linear-gradient(transparent, #000 var(--fade-top), #000 calc(100% - var(--fade-foot)), transparent);
  mask-image: linear-gradient(transparent, #000 var(--fade-top), #000 calc(100% - var(--fade-foot)), transparent);
  transition: --fade-top .9s cubic-bezier(.65, 0, .35, 1), --fade-foot .9s cubic-bezier(.65, 0, .35, 1);
}
.ed-block-fig svg.is-zoom.is-wide { --fade-top: 2%; --fade-foot: 2%; }
.ed-block-fig svg[data-views] .sun-ptr { cursor: pointer; transition: opacity .3s; }
.ed-block-fig svg[data-views].is-wide { cursor: zoom-in; }
.ed-block-fig svg[data-views].is-wide .sun-ptr { opacity: 0; pointer-events: none; }
/* the whole orbit's edge-on view, above it: hidden on the close-up, fading in once the zoom out is under way */
.ed-block-fig svg[data-views] .orbit-side { opacity: 0; pointer-events: none; transition: opacity .3s; }
.ed-block-fig svg[data-views].is-wide .orbit-side { opacity: 1; transition: opacity .7s .45s; }
.ed-block-fig svg.ed-seg-mark { margin-bottom: 6px; overflow: visible; }
.ed-block-fig .ink { stroke: var(--ink); stroke-width: .8; }
.ed-block-fig .faint { stroke-opacity: .35; }
.ed-block-fig .dashed { stroke-dasharray: 3 3; }
.ed-block-fig .dotted { stroke-dasharray: 1 3; stroke-opacity: .6; }
.ed-block-fig .ink-fill { fill: var(--ink); }
/* a dot that may sit on the Sun (Orbit's edge-on view): ringed in the page's colour, so it stands out from the disc */
.ed-block-fig .knock { stroke: var(--paper); stroke-width: 1.4; paint-order: stroke; }
.ed-block-fig .accent { fill: var(--accent); filter: drop-shadow(0 0 4px var(--glow-hot)); }
.ed-block-fig .accent.big { filter: drop-shadow(0 0 10px var(--glow-hot)) drop-shadow(0 0 34px color-mix(in srgb, var(--glow-hot) 50%, transparent)); }
.ed-block-fig .accent-line { stroke: var(--accent); stroke-width: 1; }
.ed-block-fig .max { stroke-opacity: .6; stroke-dasharray: 5 5; }
/* Orbit: the asteroid's orbit dashed, and both orbits running round (each sets how far a step goes, --run-by:
   one dash and gap, and how long it takes, --run) */
.ed-block-fig .orbit-dash { stroke-dasharray: 6 4; }
.ed-block-fig .orbit-run { animation: ed-orbit-run var(--run, 1s) linear infinite; }
@keyframes ed-orbit-run { from { stroke-dashoffset: 0; } to { stroke-dashoffset: var(--run-by); } }
@media (prefers-reduced-motion: reduce) { .ed-block-fig .orbit-run { animation: none; } }
.ed-block-fig .halo { fill: var(--accent); opacity: .14; }
.ed-block-fig .t-note { font: 400 9.5px var(--mono); letter-spacing: .04em; fill: var(--ink-2); }
.ed-block-fig .t-strong { font: 500 10px var(--mono); letter-spacing: .04em; fill: var(--accent); }
/* the engraved size reference stands in front of the asteroid, printed as it is (silver on both papers) */
.ed-block-fig .ref-img { filter: drop-shadow(0 1px 0 color-mix(in srgb, var(--paper) 60%, transparent)); }

/* legend: filled dot and dashed ring, as in the figure */
.ed-legend { display: flex; flex-wrap: wrap; gap: 26px; justify-content: center; font: 400 13px var(--sans); color: var(--ink-2); }
.ed-legend span { display: flex; align-items: center; gap: 9px; white-space: nowrap; }
/* the swatch keeps its size however narrow the screen: never squeezed into an oval */
.ed-legend i { flex: none; width: 14px; height: 14px; border-radius: 50%; }
.ed-legend i.solid { background: var(--accent); box-shadow: 0 0 10px var(--glow-hot); }
.ed-legend i.dashed { border: 1.2px dashed var(--accent); }
/* Size: the two estimates as switches; the picked one's swatch is filled, the other's a dashed ring */
.ed-block-fig svg .sz-line { transition: stroke .4s, stroke-opacity .4s; }
.ed-block-fig svg.is-big .sz-line { stroke: var(--paper); stroke-opacity: 1; stroke-width: 1.6; }
/* on a narrow screen the two switches stand one above the other rather than wrap their words */
.ed-size-pick { gap: 0 8px; margin-left: -10px; }
.ed-size-pick button { display: flex; align-items: center; gap: 9px; min-height: 44px; padding: 0 10px; border-radius: 22px; font: inherit; color: var(--ink-2); white-space: nowrap; transition: color .25s; }
.ed-size-pick button i { border: 1.2px dashed var(--accent); transition: background .25s, box-shadow .25s, border-color .25s; }
.ed-size-pick button[aria-pressed="true"] { color: var(--ink); }
.ed-size-pick button[aria-pressed="true"] i { background: var(--accent); border-color: transparent; box-shadow: 0 0 10px var(--glow-hot); }
.ed-size-pick button:focus-visible { outline: 1.5px solid var(--accent); outline-offset: 2px; }

/* small numbers under a block, in columns split by hairlines */

/* data quality: ten segments */
.ed-segments { display: grid; grid-template-columns: repeat(10, 1fr); gap: 4px; width: 100%; }
.ed-segments i { height: 28px; border: 1px solid var(--ink); }
.ed-segments i.on { background: var(--ink); }
.ed-seg-scale { display: flex; justify-content: space-between; font: 400 10px var(--mono); color: var(--ink-2); margin-top: 8px; text-transform: uppercase; letter-spacing: .08em; }

.ed-source { display: flex; justify-content: space-between; align-items: center; padding: 18px 0; border-top: 1.2px solid var(--ink); border-bottom: 1.2px solid var(--ink); font: 500 15px var(--sans); }
.ed-source .ed-label { display: block; margin-bottom: 4px; }
.ed-copy .ed-source { margin-top: 22px; } /* the link to the official record, under the last screen's text */

/* a block's parts fall into place one after another as it scrolls in */
.ed-block > * { opacity: 0; }
.ed-block.is-in > * { opacity: 1; animation: ed-fade-in .6s ease both; }
@keyframes ed-fade-in { from { opacity: 0; } }
.ed-block.is-in > :nth-child(2) { animation-delay: .08s; }
.ed-block.is-in > :nth-child(3) { animation-delay: .18s; }
.ed-block.is-in > :nth-child(4) { animation-delay: .3s; }
.ed-block.is-in > :nth-child(5) { animation-delay: .4s; }
@media (prefers-reduced-motion: reduce) { .ed-block > * { opacity: 1; transform: none; animation: none !important; } }

/* Tabs: a quiet row of section names at the bottom, the current one in ink with an accent dot */
.ed-tabs {
  position: absolute; z-index: 3; left: 0; right: 0; bottom: 0; display: flex; justify-content: space-between;
  padding: 10px 12px calc(14px + env(safe-area-inset-bottom)); background: var(--paper);
  opacity: 0; transform: translateY(100%); transition: opacity .35s, transform .45s cubic-bezier(.2, .8, .2, 1);
}
.ed-sheet.is-landed .ed-tabs { opacity: 1; transform: none; }
/* each name takes the room it needs (Overview more than Size) and the spare room is shared between them;
   on a narrow screen the names get smaller with it, down to 10.5px, so the six always fit with air between them */
.ed-tabs button {
  flex: 1 1 auto; position: relative; padding: 12px 0 8px; font: 400 clamp(10.5px, 3.5cqw, 13px)/1 var(--sans); white-space: nowrap;
  color: var(--ink-2); transition: color .25s;
}
.ed-tabs button::after {
  content: ""; position: absolute; left: 50%; top: 0; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 6px var(--glow-hot); opacity: 0; transform: scale(.4); transition: opacity .25s, transform .25s;
}
.ed-tabs button.is-on { color: var(--ink); }
.ed-tabs button.is-on::after { opacity: 1; transform: none; }

/* passes: one row per pass â€” year, a bar as long as the pass was close, the distance */
.ed-passes { list-style: none; margin: 0; padding: 0; width: 100%; font: 400 13px/1 var(--sans); color: var(--ink-2); font-variant-numeric: tabular-nums; }
.ed-passes li { display: grid; grid-template-columns: 44px 1fr 58px; align-items: center; gap: 12px; padding: 11px 0; }
.ed-passes li > span:first-child { text-align: left; }
.ed-passes li > span:last-child { text-align: right; }
.ed-passes li.is-past { opacity: .45; }
.ed-passes li.is-current { color: var(--ink); }
.ed-pass-bar { position: relative; height: 12px; }
.ed-pass-bar::before { content: ''; position: absolute; left: 0; top: 5.5px; height: 1px; width: var(--w); background: currentColor; opacity: .6; }
.ed-pass-bar i { position: absolute; left: var(--w); top: 50%; width: 5px; height: 5px; margin: -2.5px 0 0 -2.5px; border-radius: 50%; background: currentColor; }
.ed-passes li.is-current .ed-pass-bar::before { background: var(--accent); opacity: 1; height: 1.5px; }
.ed-passes li.is-current .ed-pass-bar i { width: 13px; height: 13px; margin: -6.5px 0 0 -6.5px; background: var(--accent); box-shadow: 0 0 8px var(--glow-hot); }
.ed-block-fig .ed-cone { fill: var(--accent); fill-opacity: .1; }
.ed-block-fig .accent-line.faint { stroke-opacity: .5; }


/* ---------------- The menu and its pages (menu.js) ---------------- */
/* each page covers the screen and slides in from the right over the last, which drifts a little left and dims */
/* the ⋯ drops a small glass list from the top right; the screen under it dims a little */
.ed-menu { --spring: linear(0.0, 0.036, 0.124, 0.242, 0.37, 0.498, 0.616, 0.719, 0.807, 0.878, 0.933, 0.974, 1.002, 1.021, 1.032, 1.037, 1.038, 1.036, 1.033, 1.028, 1.023, 1.018, 1.014, 1.01, 1.007, 1.004, 1.002, 1.001, 1.0, 0.999, 0.999, 0.999, 0.999, 0.999, 0.999, 0.999, 0.999, 0.999, 1.0, 1.0, 1); position: absolute; inset: 0; z-index: 20; pointer-events: none; overflow: hidden; }
.ed-menu.is-open { pointer-events: auto; }
.ed-menu-veil { position: absolute; inset: 0; background: rgba(0, 0, 0, 0); transition: background .35s ease; }
.ed-menu.is-open .ed-menu-veil { background: rgba(0, 0, 0, .3); } /* as iOS pull-down menus: a light dim, no blur */
/* the list grows out of the ⋯ (iOS 26): it starts as the button's own glass circle, clipped to it, and opens out
   on a spring; closing, it folds back into the button. menu.js sets --from, the button's shape inside the list */
.ed-drop {
  position: absolute; top: var(--drop-top, calc(var(--safe-top) + 8px)); right: var(--drop-right, 12px); width: 250px; padding: 8px 0;
  display: flex; flex-direction: column; border-radius: 28px;
  /* Liquid Glass: a thin, bright-ish tint that lets the sky through, blurred and lifted in colour */
  background: linear-gradient(160deg, rgba(255, 255, 255, .13), rgba(255, 255, 255, .05) 45%, rgba(255, 255, 255, .08)), rgba(28, 28, 32, .55);
  -webkit-backdrop-filter: blur(22px) saturate(1.8) brightness(1.1); backdrop-filter: blur(22px) saturate(1.8) brightness(1.1);
  clip-path: var(--from, inset(0 0 100% 100% round 28px)); opacity: 0; pointer-events: none;
  transition: clip-path .4s cubic-bezier(.5, 0, .3, 1), opacity .12s linear .3s;
}
/* the glass edge: a hairline that catches the light at the top left and bottom right, dim between */
.ed-drop::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none;
  background: linear-gradient(135deg, rgba(255, 255, 255, .55), rgba(255, 255, 255, .08) 30%, rgba(255, 255, 255, .04) 65%, rgba(255, 255, 255, .3));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
}
.ed-menu.is-drop .ed-drop {
  clip-path: inset(0 round 28px); opacity: 1; pointer-events: auto;
  transition: clip-path .55s var(--spring), opacity 0s;
}
.ed-menu.is-paged .ed-drop { opacity: 0; transition: opacity .2s; }
/* the dots stay where the button was and fade as the list opens; the items come up as it does */
.ed-drop-dots { position: absolute; top: 0; right: 0; display: grid; place-items: center; width: var(--btn, 34px); height: var(--btn, 34px); color: var(--ink); opacity: 1; transition: opacity .25s .15s; pointer-events: none; }
.ed-drop-dots svg { width: 18px; height: 18px; fill: currentColor; }
.ed-menu.is-drop .ed-drop-dots { opacity: 0; transition: opacity .12s; }
/* items: an icon, then the label, 17px on 44px rows; a group gap between the app and the small print */
.ed-drop button {
  display: flex; align-items: center; gap: 12px; height: 44px; margin: 0 8px; padding: 0 12px; border-radius: 16px;
  text-align: left; font: 400 17px/1 var(--sans); letter-spacing: -.01em; color: var(--ink);
  opacity: 0; transform: translateY(-4px); transition: opacity .15s, transform .15s, background .12s;
}
.ed-drop button svg { flex: none; width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.ed-menu.is-drop .ed-drop button { opacity: 1; transform: none; transition: opacity .25s .1s, transform .35s .08s var(--spring), background .12s; }
.ed-drop-sep { height: 1px; margin: 8px 20px; background: rgba(255, 255, 255, .14); }
/* the row under the finger (hovered, or slid onto while pressing) lights as a glass pill */
.ed-drop button.is-hot, .ed-drop:not(.is-tracking) button:hover { background: rgba(255, 255, 255, .14); }
.ed-drop button:focus:not(:focus-visible) { outline: none; }
.ed-drop button:focus-visible { outline: 1.5px solid var(--accent); outline-offset: -1.5px; }
@media (prefers-reduced-motion: reduce) { .ed-drop, .ed-menu-veil { transition: none; } }
.ed-page {
  position: absolute; inset: 0; overflow: hidden; touch-action: pan-y; background: var(--paper); color: var(--ink);
  transform: translateX(100%); transition: transform .45s cubic-bezier(.65, 0, .25, 1), filter .45s cubic-bezier(.65, 0, .25, 1);
  box-shadow: -18px 0 40px rgba(0, 0, 0, .35);
}
/* the same paper grain as the sky's, laid over the page (which scrolls inside it), so the two read as one paper */
.ed-page::after {
  content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none; opacity: var(--grain-opacity); mix-blend-mode: var(--grain-blend);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .5 0 0 0 0 .48 0 0 0 0 .44 0 0 0 .35 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.ed-page-in { height: 100%; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: none; touch-action: pan-y; padding: 0 22px 48px; }
.ed-page-in::-webkit-scrollbar { display: none; }
.ed-page.is-in { transform: none; }
.ed-page.is-in.is-under { transform: translateX(-24%); filter: brightness(.55); }
@media (prefers-reduced-motion: reduce) { .ed-page { transition: none; } }
.ed-page-bar { position: sticky; top: 0; z-index: 1; padding: calc(var(--safe-top) + 6px) 0 10px; }
.ed-page-bar button { color: var(--ink); font: 400 18px/1 var(--sans); padding: 6px 4px; margin-left: -4px; }
.ed-page button:focus:not(:focus-visible) { outline: none; }
.ed-page button:focus-visible { outline: 1.5px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
/* the engraved plate: large in the top right, running off the page's top and right edges and fading out below,
   behind the bar and the title; it scrolls with the page and drifts very slightly as if afloat */
.ed-page-in { position: relative; }
.ed-page-art { position: absolute; top: 0; left: 0; right: 0; height: 400px; margin: 0; overflow: hidden; pointer-events: none;
  -webkit-mask: linear-gradient(#000 72%, transparent); mask: linear-gradient(#000 72%, transparent); }
.ed-page-art img { position: absolute; top: var(--t); right: var(--r); width: var(--w); height: auto; animation: ed-art-float 8s ease-in-out infinite alternate; }
@keyframes ed-art-float { from { transform: translateY(-4px) rotate(-.5deg); } to { transform: translateY(4px) rotate(.5deg); } }
@media (prefers-reduced-motion: reduce) { .ed-page-art img { animation: none; } }
.ed-page-art[data-art="glossary"] { --w: 88%; --r: -26%; --t: -60px; }
.ed-page-art[data-art="settings"] { --w: 78%; --r: -8%; --t: -24px; }
.ed-page-art[data-art="about"] { --w: 135%; --r: -52%; --t: -150px; }
.ed-page-art[data-art="terms"] { --w: 76%; --r: -16%; --t: -70px; }
.ed-page-art + .ed-page-title { position: relative; margin-top: 236px; }
.ed-page-title { font: 700 32px/1.1 var(--sans); letter-spacing: -.02em; margin: 22px 0 22px; }

/* rows: a line of text over a hairline */
.ed-rows { display: flex; flex-direction: column; }
.ed-row {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; width: 100%; min-height: 50px;
  padding: 14px 0; text-align: left; font: 400 15px/1.35 var(--sans); color: var(--ink);
  border-bottom: 1px solid color-mix(in srgb, var(--ink) 11%, transparent); cursor: pointer;
}
.ed-row i { font-style: normal; color: var(--ink-2); transition: transform .2s, color .2s; }
.ed-row:hover i { color: var(--ink); transform: translateX(2px); }

/* settings: the label (and a line on what it does) beside a switch — orange with a dark knob on the right when on */
.ed-setting > span { display: flex; flex-direction: column; gap: 4px; }
.ed-setting small { font: 400 12.5px/1.4 var(--sans); color: var(--ink-2); max-width: 30ch; }
.ed-switch {
  /* the iOS 26 switch: a wide pill track, a white capsule knob; held, the knob swells into a clear glass lens */
  flex: none; position: relative; width: 64px; height: 28px; border-radius: 14px; border: 0; padding: 0;
  background: rgba(120, 120, 128, .32); transition: background .3s;
}
.ed-switch::after {
  content: ""; position: absolute; top: 2px; left: 2px; width: 38px; height: 24px; border-radius: 12px;
  background: #fff; box-shadow: 0 2px 6px rgba(0, 0, 0, .18);
  transition: left .35s cubic-bezier(.3, 1.25, .5, 1), transform .25s cubic-bezier(.3, 1.4, .5, 1), background .2s, box-shadow .2s;
}
.ed-switch[aria-checked="true"] { background: var(--accent); }
.ed-switch[aria-checked="true"]::after { left: 24px; }
.ed-setting:active .ed-switch::after {
  transform: scale(1.3, 1.45); background: rgba(255, 255, 255, .22);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .55), inset 0 1px 2px rgba(255, 255, 255, .5), 0 3px 10px rgba(0, 0, 0, .25);
}

/* glossary: a small letter over each group; a term opens to its meaning */
.ed-gl-letter { font: 400 11px/1 var(--mono); letter-spacing: .08em; color: var(--ink-2); margin: 26px 0 2px; }
.ed-page-title + .ed-gl-letter { margin-top: 4px; }
.ed-gl-item > .ed-row { border-bottom: 0; }
.ed-gl-item { border-bottom: 1px solid color-mix(in srgb, var(--ink) 11%, transparent); }
.ed-gl-def { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .35s cubic-bezier(.65, 0, .25, 1); }
.ed-gl-def > div { overflow: hidden; }
.ed-gl-def p { font: 400 13.5px/1.6 var(--sans); color: var(--ink-2); padding: 0 0 16px; max-width: 46ch; margin: 0; }
.ed-gl-item.is-open .ed-gl-def { grid-template-rows: 1fr; }

/* about and terms: a lead line, then plain paragraphs */
.ed-page-lead { font: 400 15px/1.45 var(--sans); color: var(--ink); margin: 6px 0 18px; }
.ed-page-h { font: 500 14px/1.3 var(--sans); color: var(--ink); margin: 22px 0 6px; }
.ed-page-text { font: 400 13.5px/1.6 var(--sans); color: var(--ink-2); margin: 0 0 12px; max-width: 46ch; }
.ed-page-foot { font: 400 11px/1.4 var(--mono); letter-spacing: .06em; color: var(--ink-2); margin-top: 34px; }

/* the light build (Android): lighter glass — a smaller blur and no colour lift behind the menu and the sheet's buttons */
html.lite .ed-drop { -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); background: linear-gradient(160deg, rgba(255, 255, 255, .13), rgba(255, 255, 255, .05) 45%, rgba(255, 255, 255, .08)), rgba(28, 28, 32, .72); }
html.lite #sheet-close, html.lite .sheet-bar .ed-more { -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
html.lite .ed-mine { -webkit-backdrop-filter: none; backdrop-filter: none; background: color-mix(in srgb, var(--paper, #111) 70%, transparent); }
html.lite .ed-block-fig .accent.big { filter: drop-shadow(0 0 10px var(--glow-hot)); }

/* the light build (Android), the moves on a tap:
   the sky's camera move scales layers made ahead, instead of re-drawing the sky at every step of the zoom */
html.lite .ed-field, html.lite .ed-stars, html.lite .ed-earth { will-change: transform, opacity; }
/* the flying copy: one fixed glow (the flight no longer changes it every frame) */
html.lite .ed-hero-dot.is-ghost { box-shadow: 0 0 12px var(--glow-hot); }
html.lite .ed-hero-dot.is-ghost::after { opacity: 1; }
/* the asteroid on the page: one glow, cheap to re-draw as it moves (a layer of its own only while moving flickered
   each time the layer came and went) */
html.lite .ed-hero-dot { box-shadow: 0 0 12px var(--glow-hot); }
/* the screens fading as the page scrolls: each a layer, so their fade is the compositor's work, not a repaint */
html.lite .sheet-body .ed-block, html.lite .ed-intro, html.lite .ed-hero-orbit { will-change: opacity; }
/* and on the iPhone and iPad (device.js): there each block's fade, set at every frame of a scroll or a tab's glide,
   re-drew the whole block, its figures, masks and shadows and all, at the full pixel density: the tabs stuttered */
html.ios .sheet-body .ed-block, html.ios .ed-intro, html.ios .ed-hero-orbit { will-change: opacity; }
/* no blur behind ← and ⋯ on the page: it was worked out again at every frame of anything moving under them */
html.lite #sheet-close, html.lite .sheet-bar .ed-more { -webkit-backdrop-filter: none; backdrop-filter: none; background-color: color-mix(in srgb, var(--paper) 82%, transparent); }
/* the orbits' running dashes are a repaint every frame for as long as the page is open: still on Android */
/* (the header orbit keeps running: it is a turn of a drawn arc, which the compositor moves without a redraw; its layer
   is there before the landing starts the turn, so it doesn't come into being at that moment and flicker) */
html.lite .ed-block-fig .orbit-run { animation: none; }
html.lite .ed-hero-spin { will-change: transform; }
/* a page under another one slides aside without dimming (a filter over the whole page) */
html.lite .ed-page.is-in.is-under { filter: none; }

/* Your asteroid: the day you were born in three big fields over hairlines (day, month, year), then one button */
.ed-born { margin: 8px 0 26px; }
.ed-born-fields { display: grid; grid-template-columns: 2fr 2fr 3fr; gap: 14px; }
.ed-born-fields label { display: flex; flex-direction: column; gap: 8px; }
.ed-born-fields input {
  width: 100%; min-width: 0; padding: 4px 0 8px; border: 0; border-bottom: 1px solid color-mix(in srgb, var(--ink) 22%, transparent);
  background: none; color: var(--ink); font: 600 40px/1 var(--sans); letter-spacing: -.03em; font-variant-numeric: tabular-nums;
  outline: none; transition: border-color .2s;
}
.ed-born-fields input::placeholder { color: color-mix(in srgb, var(--ink) 18%, transparent); }
.ed-born-fields input:focus { border-bottom-color: var(--accent); }
.ed-born-fields small { font: 400 10px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); }
.ed-born-note { min-height: 20px; margin: 16px 0 6px; font: 400 13px/1.4 var(--sans); color: var(--ink-2); }
.ed-born-go {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; height: 50px; border-radius: 25px; background: var(--accent); color: #fff; font: 500 15px var(--sans);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--accent) 60%, #fff 15%),
    0 0 18px color-mix(in srgb, var(--accent) 70%, transparent),
    0 0 48px color-mix(in srgb, var(--accent) 45%, transparent);
  transition: opacity .2s, box-shadow .3s;
}
.ed-born-go:not(:disabled):hover {
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--accent) 60%, #fff 25%),
    0 0 24px color-mix(in srgb, var(--accent) 85%, transparent),
    0 0 64px color-mix(in srgb, var(--accent) 55%, transparent);
}
.ed-born-go:disabled { opacity: .5; }
/* on Your asteroid's page, beside the birthday: a quiet link back to the date */
.ed-born-change { font: inherit; letter-spacing: inherit; text-transform: inherit; color: var(--ink-2); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: color-mix(in srgb, var(--ink-2) 45%, transparent); }
.ed-born-change:hover { color: var(--ink); }
