/* ============================================================
   DAWNFALL - design tokens

   The site's design system (direction chosen by the owner on
   2026-11-17). The only file where a raw value may be written.
   Every other stylesheet of the system reads these names and
   nothing else, which Website/tools/check-design-tokens.mjs
   enforces: a raw colour, size, opacity or duration outside this
   file fails the check, and so does a token nothing uses.

   Three layers, each built on the one above it:

     1. Fonts
     2. Primitives   raw colours, named for what they are
     3. Scales       opacity, spacing, type, shape, motion, layout
     4. Semantics    what a colour is FOR; components read these
     5. Pictures     the night sky at the top of the public pages,
                     the launcher card the admin panel previews
     6. Dark theme   the semantics that change, and nothing else

   Adding a component: read layer 4 and the scales. A new raw value
   is almost never needed; when it is, it gets a name here first.
   ============================================================ */


/* ── 1. Fonts ────────────────────────────────────────────────
   Onest, SIL Open Font License 1.1, variable weight, Latin subset, from Fontsource.
   base-ds.html preloads this exact URL, so the two must move together. */

@font-face { font-family: "Onest"; src: url("../../fonts/onest.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }


:root {

  /* ── 2. Primitives ───────────────────────────────────────── */

  /* The lotus, from its cyan heart to its mint tips */
  --lotus-1: #1bbbc9;
  --lotus-2: #34d1c8;
  --lotus-3: #61e5c2;
  --lotus-4: #90f8b5;

  /* Light theme grounds and its ink */
  --mint-50:  #f3faf8;
  --mint-100: #e2f5f0;
  --white:    #ffffff;
  --ink:      #0c1f1e;
  --ink-deep: #05211f;

  /* Dark theme grounds and its ink */
  --pine-950: #061413;
  --pine-900: #0a1e1c;
  --pine-800: #0f2927;
  --pine-700: #163a37;
  --frost:    #e9f7f4;

  /* Status hues */
  --green: #22c55e;
  --amber: #f59e0b;
  --red:   #dc2626;

  /* A role's hue and a grade's metal, the colours /account draws them in (styles/colors.css):
     the player blue, the partner the status green, the administrator violet. */
  --blue:   #1984ff;
  --violet: #9451d3;
  --bronze: #cd7f32;
  --silver: #94a3b8;
  --gold:   #c9971f;

  /* What a shadow is tinted with */
  --shade-light: #0c3c38;
  --shade-dark:  #000000;

  /* The night sky, from the zenith down */
  --night-1: #060a18;
  --night-2: #0c1836;
  --night-3: #1a4468;
  /* Two faint clouds of colour high in the night */
  --night-violet: #3a2b7d;
  --night-teal:   #0e5c6e;

  /* A star's colour by its B-V index, the five stops of the game's menu; the constellation
     lines, the Milky Way and a shooting star. sky.js reads them by name: a canvas cannot read var(). */
  --sky-star-1: #9bb0ff;
  --sky-star-2: #cad7ff;
  --sky-star-3: #fff4ea;
  --sky-star-4: #ffd2a1;
  --sky-star-5: #ffb56c;
  --sky-line:      #a7daf8;
  --sky-milky-way: #b9c8ff;
  --sky-meteor:    #ffffff;

  /* The spheres of the solar system of /new-nations. Each body has a plain shade, its lit side, and
     a deep one, its outline and its night side: a deep shade stands at 3:1 on the ground of either
     theme (WCAG 1.4.11), so the same pair draws the body in both, Terra's lit side in the site's own
     lotus. The star runs from a pale core through yellow and amber to a deep rim, in a pale or a
     yellow glow. Primitives rather than color-mix() of the site's hues:
     orrery.js draws them on a canvas, which reads a token's value and cannot resolve a color-mix(). */
  --sun-pale:   #fff7d6;
  --sun-halo:   #fff3b8;
  --sun-yellow: #ffdf5c;
  --sun-amber:  #f5a524;
  --sun-deep:   #b25b00;
  /* The site's gold as the limited pack's ribbon draws it, in three steps as the lotus is drawn, from
     its amber heart to its pale tips: the deep steps under white words on the light ground, the
     bright ones under ink on the dark ground, where the first step is the site's own gold. */
  --gold-deep-1:   #8f5512;
  --gold-deep-2:   #8a6410;
  --gold-deep-3:   #866d0a;
  --gold-bright-2: #dcb238;
  --gold-bright-3: #efcd60;
  --lotus-deep: #0e7c86;
  --sand:       #d8c48e;
  --sand-deep:  #8a6c30;
  --rust:       #d9805a;
  --rust-deep:  #ad5a3c;
  --stone:      #b3bfbc;
  --stone-deep: #6b7674;
  --slate:      #7f8b89;
  --slate-deep: #636e6d;

  /* The Launcher's own colours, which the admin panel's preview of a launcher card redraws
     (Launcher/src-tauri/frontend/launcher-cards.css): the sponsored aura, the placeholder art,
     the development tint. */
  --lotus-gold:   #fdce94;
  --lotus-violet: #c9b0e9;
  --lotus-cyan:   #a7daf8;

  /* The two flags a launcher card shows for its languages, in their own colours */
  --flag-fr-blue: #002395;
  --flag-fr-red:  #ef4135;
  --flag-us-red:  #b31942;
  --flag-us-blue: #0a3161;

  /* == tokens: mask == used by: home, game == */
  --mask-opaque: #000000;   /* [primitive] what a mask draws fully opaque; only its alpha counts, never its hue */
  /* == tokens: hero == used by: home == */
  --dawn-1: #46a9a4;   /* [primitive] the teal of the first light, from the prototype (proto/design-directions tokens.css) */
  --dawn-2: #f3c79d;   /* [primitive] the peach under it */
  /* == tokens: provider-buttons == used by: auth == */
  /* [primitive] Third-party sign-in buttons keep each provider's own colours, in both themes (brand rules of the providers; the values are the ones styles/colors.css has shipped). White on the Discord and Twitch purples is 4.61:1 and 4.64:1: AA, with little to spare, which is why no tint is mixed in. */
  --discord-blurple:       #5865f2;
  --discord-blurple-hover: #4752c4;
  --google-surface:        #ffffff;
  --google-surface-hover:  #f2f2f2;
  --google-ink:            #1f1f1f;
  --google-edge:           #747775;
  --twitch-purple:         #9146ff;
  --twitch-purple-hover:   #772ce8;

  /* ── 3. Scales ───────────────────────────────────────────── */

  /* Opacity: how much of a colour is laid over what is behind it */
  --a-wash:          6%;
  --a-line:          10%;
  --a-tint:          16%;
  /* An open row's wash: clearly more than a hovered row's tint, under its words at AA */
  --a-select:        24%;
  --a-line-strong:   30%;
  /* How much of the ink a dialog's edge takes on the night: enough that it stands at 3:1 (WCAG
     1.4.11) on what the scrim leaves of the page and of a panel; at 40% the narrower is the panel's
     (tests/site/design-system-contrast.test.js) */
  --a-edge:          40%;
  --a-faint:         50%;
  --a-scrim:         55%;
  --a-soft:          72%;
  --a-night-soft:    84%;
  --a-nebula:        26%;
  --a-glass:         88%;
  --a-shadow:        8%;
  --a-shadow-strong: 18%;
  --a-glow:          28%;
  --a-glow-strong:   40%;
  /* How much a chip laid on a picture hides of it: enough that white words on it read at AA over
     the whitest picture (tests/site/design-system-contrast.test.js) */
  --a-picture-chip:  80%;
  /* How much of the ink a scrollbar's thumb takes: enough that it stands at 3:1 on every ground a
     box that scrolls has, in both themes (tests/site/design-system-contrast.test.js) */
  --a-thumb:         55%;
  /* How much of a hue is kept when it has to be read as text on its own wash */
  --mix-ink:         50%;
  /* How much of the accent the focus ring keeps, the rest the ink: as much of the brand as still
     stands at 3:1 (WCAG 1.4.11) on every ground a control stands on, in both themes; at 70% the
     narrowest is 3.37:1, the wash on the light page (tests/site/design-system-contrast.test.js) */
  --mix-ring:        70%;

  /* Spacing */
  --sp-1: 0.25rem;
  --sp-2: 0.5rem;
  --sp-3: 0.75rem;
  --sp-4: 1rem;
  --sp-5: 1.5rem;
  --sp-6: 2rem;
  --sp-7: 3rem;
  --sp-8: 4rem;
  --sp-9: 6rem;
  --sp-10: 8rem;

  /* Type */
  --font-body: "Onest", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  /* What is read character by character: an identifier, a log line, a stack trace, a document */
  --font-mono: ui-monospace, "Cascadia Code", "SFMono-Regular", Consolas, monospace;
  --fs-label:   0.75rem;
  --fs-small:   0.875rem;
  --fs-body:    1rem;
  --fs-lead:    clamp(1.0625rem, 0.4vw + 1rem, 1.25rem);
  --fs-h3:      1.1875rem;
  --fs-h2:      clamp(1.875rem, 2.4vw + 1rem, 3rem);
  --fs-display: clamp(2.75rem, 6.2vw + 0.75rem, 6rem);
  --fw-body:    400;
  --fw-strong:  600;
  --fw-label:   650;
  --fw-heading: 680;
  --fw-display: 720;
  --lh-control: 1;
  --lh-tight:   1.02;
  --lh-heading: 1.12;
  --lh-body:    1.6;
  --ls-display: -0.035em;
  --ls-heading: -0.02em;
  --ls-label:   0.12em;

  /* Shape */
  --r-xs:    0.375rem;
  /* The corner a browser paints on a checkbox, which a page cannot change: written so the focus
     ring and an error's outline round the box with it (components.css, "A box beside its words") */
  --r-check: 0.125rem;
  --r-md:    1rem;
  --r-lg:    1.5rem;
  --r-pill:  62rem;
  --r-round: 50%;
  --bw-hair:   1px;
  --bw-strong: 2px;
  --focus-offset: 2px;
  /* The box of what only a screen reader reads: one pixel, clipped away (.visually-hidden) */
  --hidden-box: 1px;
  /* The middle of a box: where a layer is centred on it, and where a hard colour stop falls */
  --centre: 50%;
  --eighth-turn:        45deg;
  --three-eighths-turn: 135deg;
  --quarter-turn:       90deg;
  --half-turn:          180deg;
  /* Where the rule-of-thirds lines of a framing stage fall */
  --third:      33.333%;
  --two-thirds: 66.667%;

  /* Motion */
  --dur-fast:    120ms;
  --dur-normal:  220ms;
  --dur-theme:   700ms;
  --dur-bounce:  1.2s;
  /* One pass of the segment an unmeasured progress bar runs */
  --dur-scan:    1.2s;
  /* One slow swing of the night sky from one side to the other */
  --dur-sky-drift: 90s;
  --ease-out:    cubic-bezier(0.22, 1, 0.36, 1);
  --lift:        -2px;
  --brighten:    1.04;

  /* Layout */
  --w-page:        76rem;
  --w-form:        44rem;
  --w-lead:        36rem;
  --w-dialog:      35rem;
  --nav-h:         4rem;
  --page-min-h:    100vh;
  /* The visible height, which a phone's toolbars change: what a drawer is capped to */
  --viewport-h:    100dvh;
  --viewport-w:    100vw;
  --gutter:        clamp(var(--sp-4), 4vw, var(--sp-6));
  --section-pad:   clamp(var(--sp-8), 9vw, var(--sp-10));
  --card-min:      15rem;
  /* The second column of a grid, by its line number: where a whole set of four puts its even cards */
  --column-second: 2;
  /* Wide enough for the longest search prompt of the panels (54 characters at the small size, which
     the layout audit measured 16.8px wider than 28rem held); tests/site/design-system-forms.test.js
     fails when a longer prompt is written. */
  --search-w:      29.5rem;
  --benefit-min:   18rem;
  --partner-card:  11rem;
  --menu-w:        13rem;
  /* The label column of a list of facts, each label beside its value */
  --fact-label-w:  12rem;
  --dialog-text-h: 40vh;
  /* The tallest an article's cover stands above its text */
  --cover-max-h:   20rem;

  /* The admin panel and the partner space */
  /* The workspace's column (owner decision, 2026-11-20): its tables and lists take about 1500px of
     a wide screen, its running text and its forms keep a measure of about 75 characters, and the
     header's content stands on the column's edges, whatever the window's width. */
  --w-workspace:    calc(94rem + 2 * var(--gutter));
  --w-measure:      38rem;
  --w-measure-pair: calc(2 * var(--w-measure) + var(--sp-5));
  /* What a paragraph or a form of the workspace leaves after its measure, its box still the column's
     width: the rest of that width, or nothing; a form in two columns has two measures and a gap */
  --measure-room:   max(0px, 100% - var(--w-measure));
  --measure-room-pair: max(0px, 100% - var(--w-measure-pair));
  --workspace-inset: max(var(--gutter), calc((100% - var(--w-workspace)) / 2 + var(--gutter)));
  --w-modal:        26.25rem;
  --w-modal-wide:   38.75rem;
  --w-prose:        45rem;
  --modal-max-h:    calc(var(--viewport-h) - 2 * var(--sp-7));
  --toast-w:        min(30rem, calc(var(--viewport-w) - 2 * var(--gutter)));
  --preview-max-h:  65dvh;
  /* A mail's preview frame (ds/panel.css, .adm-mail-frame): its document cannot tell the panel its
     height, so the frame holds most of the window and the mail scrolls inside it */
  --mail-frame-h:   70dvh;
  --picker-max-h:   40dvh;
  /* A row's menu: the window less the gap it keeps off each edge (ds/panel.css, .row-menu) */
  --row-menu-max-h: calc(var(--viewport-h) - 2 * var(--sp-2));
  /* As wide as its longest entry up to a phone's width less a card's inset each side, so that laid
     from its button's start it still ends inside the window (ds/panel.css, .row-menu) */
  --row-menu-max-w: min(20rem, calc(var(--viewport-w) - 2 * var(--sp-5)));
  --lightbox-max-h: 75dvh;
  /* The enlarged thumbnail's dialog: the picture fitted to the window, and the dialog's padding */
  --w-lightbox:     calc(var(--lightbox-max-h) * var(--ratio-thumb) + 2 * var(--sp-5));
  /* A table's columns (ds/panel.css, "Tables"): the least an identifier keeps before it breaks,
     and the column of names a stacked row's cells stand beside */
  --cell-code-min:  8rem;
  /* The least height a header cell is given so that its sort button can fill it (ds/panel.css,
     .sort-button): the row grows past it to its tallest name */
  --cell-fill-floor: 1px;
  /* The widest the Players list draws a mode's identifier, past which it breaks */
  --cell-mode-max:  14rem;
  --cell-label-w:   9rem;
  /* The Logs table's columns, the same on every page of it (ds/panel.css): a precise moment, a
     username of sixteen characters, an action's badge, an address up to a compressed IPv6 one;
     the target takes what they leave */
  --log-col-moment: 11rem;
  --log-col-admin:  12rem;
  --log-col-action: 14rem;
  --log-col-ip:     15rem;
  /* How much wider a frame a table of six or seven columns, and one of eight and more, needs before
     its rows stand as a table rather than as cards: measured on the widest content each of the
     workspaces' tables shows (the Servers table needs 59rem, the server requests 67rem, which
     leaves their description five words wide, so they stand as cards up to 90rem) */
  --table-span-wide:    1.6;
  --table-span-widest:  2.25;
  /* How much larger a frame sets its type when what it holds, laid as a table, would not fit it:
     enough to move its breakpoint, in its own em, past any window (40em, 60em: ten times those
     stand past 6400px), so its rows stand as cards (admin/modules/frame-fit.js) */
  --frame-span-stacked: 10;
  /* A field in a run of fields */
  --field-min-w:    11.25rem;
  --log-h:          16.25rem;
  --document-min-h: 20rem;
  /* How many cells follow a list's main one. list-detail.js sets it on the list from the screen's
     own columns, which no stylesheet can know; one when a list says nothing. */
  --list-trailing:  1;
  /* The least room a list's main cell keeps before the list stands its rows as cards: a name on two
     or three lines, never a column of single words (ds/panel.css, .adm-list-trailing) */
  --list-main-min:  16rem;
  /* The rows a form's grid gives each of its fields: the label, the control, the notes under it
     (modules/form.js writes exactly these three; a public field writes two, or three with a hint). */
  --field-rows:     3;
  /* The line of those rows a field's control starts on, under its label: a control of one line
     lays its notes from there to the field's foot (components.css, "A form's rows"). */
  --field-control-line: 2;
  /* A picture's shapes: a mode's thumbnail (the 2560 x 1440 the upload route takes), a card's
     page background (CARD_BACKGROUND_WIDTH x CARD_BACKGROUND_HEIGHT, src/config.rs), and the
     stage a picture is framed on. */
  --ratio-thumb:    16 / 9;
  --ratio-banner:   16 / 5;
  --ratio-stage:    4 / 3;
  /* One card of the Launcher's grid, about a fifth of its window, and a card page header's icon */
  --thumb-w:        15rem;
  --header-icon-w:  7.5rem;
  /* The rows a header picture lays out (modules/header-images.js): its title, its hint, the
     picture or the line saying there is none, its buttons */
  --header-image-rows: 4;
  /* A tile of a Mods screen's jar grid: its name holds on three lines of the small text */
  --jar-name-lines: 3;
  --jar-lock:       0.875rem;
  /* How far a tile's badges stand in from its corner, clear of its round edge, and the room they have */
  --jar-badge-inset:  var(--sp-2);
  --jar-badges-max-w: calc(100% - 2 * var(--jar-badge-inset));
  /* The longest badge a tile shows, on one line (« Verified on Modrinth », 8.4rem in the label type),
     and the tile that holds it inside its badges' inset and its own padding: a pill stays one line */
  --jar-badge-w:    8.5rem;
  --jar-tile-w:     calc(var(--jar-badge-w) + 2 * var(--jar-badge-inset) + 2 * var(--sp-2));
  /* The lines of a card's checklist step on a phone, which its rank stands beside: its words, its state */
  --card-step-lines: 2;
  /* The launcher card preview's chip over the art: one line of the label text between its two
     pads, a flag as tall at its 3:2 ratio, the row of two flags, the struck-through AI badge. */
  --lcard-chip-h:   calc(var(--fs-label) + 2 * var(--sp-1));
  --lcard-flag-w:   calc(var(--lcard-chip-h) * 3 / 2);
  --lcard-flags-w:  calc(2 * var(--lcard-flag-w) + var(--sp-1));
  --lcard-badge-w:  var(--sp-8);
  --lcard-strike:   -30deg;
  /* How far the chips stand in from the picture's edges, the room a chip has, and the room the
     credit keeps beside the flags */
  --lcard-inset:      var(--sp-2);
  --lcard-chip-max:   calc(100% - 2 * var(--lcard-inset));
  --lcard-credit-max: calc(var(--lcard-chip-max) - var(--lcard-flags-w) - var(--sp-1));
  /* The segment an unmeasured upload bar runs: a third of the bar, crossing it from just off its
     left end to just off its right one, a translation in its own widths (100 / 30). */
  --scan-w:         30%;
  --scan-travel:    334%;
  /* The widths under which a layout changes. A media query cannot read a custom property, so
     the stylesheet repeats each value and the check compares the two.
       --bp-stack   two columns become one.
       --bp-drawer  the header's links move into the full-screen drawer. In pixels because
                    public/scripts/nav.js measures the window in pixels against the same number
                    (_NAV_MOBILE_MAX_WIDTH_PX), and the two must move together.
       --bp-phone   the Kara panel takes the whole width, and a report's button stands under its
                    outcome rather than squeeze it (ds/panel.css).
       --bp-table   a table's frame under which its rows become cards: a container query on the
                    frame's own width, in the frame's own em, which a table of many columns sets
                    larger by --table-span-* (ds/panel.css, "Tables").
       --bp-table-narrow a stacked table's frame under which a cell's name stands over its words;
                    as a window, the width every phone held upright is under, where a select's
                    open list keeps its field's width (ds/components.css).
       --bp-players the Players list's frame under which each player stands as a card (a
                    container query on the list's screen, in the screen's own em, which a list too
                    wide for it sets larger: ds/panel.css, "Screens").
       --bp-cards-whole a .cards--whole grid's own width under which its three cards stand in one
                    column: three cards at --card-min and their two --sp-5 gaps (ds/components.css,
                    "Content blocks").
       --bp-cards-four  the width under which a whole set of four stands two by two: four cards at
                    --card-min and their three gaps.
       --bp-cards-pair  the width under which a whole set of four stands in one column: two cards at
                    --card-min and their gap. */
  --bp-stack:      56rem;
  --bp-drawer:     820px;
  --bp-phone:      25rem;
  --bp-table:      40em;
  --bp-table-narrow: 30rem;
  --bp-players:    60em;
  --bp-cards-whole: 48rem;
  --bp-cards-four:  64.5rem;
  --bp-cards-pair:  31.5rem;

  /* Controls: one scale of heights, and every control on it
     (tests/site/design-system-control-scale.test.js).
       --control-h       a field, a button: the full height, and a bar of tabs
       --control-h-lg    the large button of a page's call to action
       --control-h-sm    the compact button and field of a toolbar, a header, a dialog's foot, and
                         a bar of small tabs. On a touch screen it is the full height (below), since
                         a field draws nothing outside its box for a finger to hit.
       --control-h-inset what stands inside a full-height frame's --sp-1 inset: a tab in its bar, a
                         chip in a field of chips, the password field's eye
       --control-h-xs    what stands inside a compact frame's --sp-1 inset: a tab of a small bar, a
                         tag chip
     A text area is no control of this scale: it is as tall as the lines it wants (--field-area-h,
     --field-area-tall-h, --document-min-h), which the layout audit holds text areas to alone. */
  --control-h:       2.75rem;
  --control-h-lg:    3.375rem;
  --control-h-sm:    2.25rem;
  --control-h-inset: calc(var(--control-h) - 2 * var(--sp-1));
  --control-h-xs:    calc(var(--control-h-sm) - 2 * var(--sp-1));
  /* A button's room each side of its label: the small button's at the 320 pixel reflow width
     (WCAG 1.4.10), so the longest label holds in a form card there, the full room from 480 */
  --control-pad:  clamp(var(--sp-4), 5vw, var(--sp-5));
  --field-area-h: 6.5rem;
  /* The least a finger is given to tap, whatever size the control is drawn at (WCAG 2.5.8) */
  --touch-target: 2.75rem;
  --icon:         1.125rem;
  --icon-lg:      1.5rem;
  /* The arrow beside a column's name that sorts, a step under the panel's icons so that it stands
     beside the name's small letters without making its line taller (ds/panel.css, .sort-button) */
  --icon-sm:      0.875rem;
  /* A scrollbar: its width, the clear ground kept round its thumb, and how far its track stands in
     from each end of its edge, the largest radius a box that scrolls is drawn with, so that the
     thumb never reaches a rounded corner (tests/site/design-system-scrollbars.test.js) */
  --scrollbar-w:     0.625rem;
  --scrollbar-gap:   0.125rem;
  --scrollbar-inset: var(--r-lg);
  --logo-nav:     2.25rem;
  --tile:         3rem;
  --tile-lg:      4.5rem;
  /* A game's logo beside its title in a head: as tall as the title's letters are set */
  --head-logo:    var(--fs-display);
  /* The bar of a share of work done */
  --meter-h:      var(--sp-2);
  --avatar:       1.5rem;
  /* The chevron a drop-down list draws at its end, and the room kept for it */
  --chevron-size: 0.3125rem;
  --chevron-room: 2.5rem;
  /* One line of the small text a field and a checkbox are set in, and what lines a control up
     with it: a box on the first line of its words, a box on a control's line, a control under its
     field's label (the line, then the field's gap). */
  --line-small:         calc(var(--fs-small) * var(--lh-body));
  /* The room a card's action zone keeps: a large button and a line of small text under it */
  --card-action-h:      calc(var(--control-h-lg) + var(--sp-3) + var(--line-small));
  --check-first-line:   calc((var(--line-small) - var(--icon)) / 2);
  --check-in-control:   calc((var(--control-h) - var(--icon)) / 2);
  --field-control-top:  calc(var(--line-small) + var(--sp-2));

  /* The Kara chat panel */
  --chat-w:        21.25rem;
  --chat-h:        min(32.5rem, calc(100vh - 7rem));
  --chat-input-h:  6rem;
  --chat-bubble-w: 86%;
  --chat-dot:      0.375rem;
  --chat-hop:      -0.3125rem;
  --chat-delay-2:  0.2s;
  --chat-delay-3:  0.4s;
  /* Kara's floating button, the public widget's bubble and the partner space's pill (components.css,
     kara-fab): its place from the window's bottom end, the safe area of a phone's notch or bar
     added (0 where the page is not laid under them), and the room the page's foot keeps under it */
  --fab-end:          calc(var(--sp-5) + env(safe-area-inset-right, 0px));
  --fab-bottom:       calc(var(--sp-7) + env(safe-area-inset-bottom, 0px));
  --fab-end-phone:    calc(var(--sp-4) + env(safe-area-inset-right, 0px));
  --fab-bottom-phone: calc(var(--sp-6) + env(safe-area-inset-bottom, 0px));
  --fab-room:         calc(var(--control-h-lg) + var(--fab-bottom) + var(--sp-4));
  --fab-face:         32px;   /* [scale] Kara's head on the pill, at its canvas's bitmap size (32), so each of the skin's 8 pixels stays 4 wide */
  /* Kara's panel in the partner space (ds/panel.css, .kara-panel): wide enough for a code block */
  --kara-panel-w:  30rem;
  --kara-panel-max-w: calc(100% - 2 * var(--sp-3));
  /* Kara's panel in full screen (ds/panel.css, .kara-panel--full): its blocks keep the measure of
     running prose in one column centred in the window, and never come nearer the window's edges
     than a panel's own inset. */
  --kara-full-w:     var(--w-prose);
  --kara-full-inset: max(var(--sp-5), calc((100% - var(--kara-full-w)) / 2));
  /* The alerts above Kara's thread (ds/panel.css, .kara-alerts): a third of a tall panel at most,
     so the thread under them keeps the room and the scroll. */
  --kara-alerts-max-h: 14rem;

  /* Layers */
  --z-content:  1;
  --z-float:    10;   /* a control floating over a workspace's content, under the header, its drawer and every layer above */
  --z-nav:      20;
  --z-backdrop: 22;
  --z-menu:     25;
  --z-chat:     30;
  --z-skip:     40;
  --z-modal:    50;
  --z-toast:    55;

  /* == tokens: hero == used by: home == */
  --hero-min-h: calc(100svh - var(--nav-h));   /* [scale] the least the hero stands: what the first screen leaves under the nav, so the next section starts below the fold (owner, 2026-11-21). The small viewport unit, so a phone's toolbars sliding away do not resize it. It grows with its text, never shrinks under this */
  --hero-dawn-room: 12rem;   /* [scale] the least the hero keeps between its lead and its foot. The light night's last stop sits there (--g-night-hero) and the dark one's lower, so the text on the night never reaches the dawn: white on --dawn-1 is 2.9:1, under AA */
  --w-hero-text: 40rem;   /* [scale] the width of the hero's title */
  --hero-next-icon: 2.5rem;   /* [scale] the chevron that leads down the page: its glyph fills half its box, so it reads as wide as a small button's label is tall */
  --hero-next-travel: 0.1875rem;   /* [scale] how far that chevron rises over its place, and sinks under it */
  --dur-hero-next: 900ms;   /* [scale] one way of that chevron's rise or fall */
  /* == tokens: lotus-art == used by: home == */
  --lotus-img: min(18rem, 70%);   /* [scale] the Lotus Shards picture beside its text: capped on a phone */
  /* == tokens: stats == used by: home == */
  --fs-stat: clamp(2rem, 2vw + 1.25rem, 3rem);   /* [scale] a figure that stands alone in a card, between the h2 and the display sizes' ends */
  /* == tokens: gallery == used by: home, game == */
  --gallery-min: 15rem;   /* [scale] the narrowest a picture of a gallery is drawn: two of them side by side fit the form column (44rem) */
  /* == tokens: half == used by: auth, community, game == */
  --half: 0.5;   /* [scale] the half of a length, as a plain number: a calc that centres something cannot divide by a raw 2 outside this file (check-design-tokens.mjs) */
  /* == tokens: icon-line-offset == used by: auth, community, game == */
  /* needs token section: half */
  /* [scale] how far an icon sits below the top of a text line so that it is centred on the FIRST line of a wrapped text: half of (the body's line height - the icon). `1em` is read where the token is used, so it follows the font size of the element that uses it. */
  --icon-line-offset: calc((var(--lh-body) * 1em - var(--icon)) * var(--half));
  /* == tokens: input-tall == used by: community == */
  --field-area-tall-h: 11rem;   /* [scale] a message box that wants room for several lines (about seven); --field-area-h stays the default */
  /* == tokens: avatar-lg == used by: info == */
  --avatar-lg: 80px;   /* [scale] a team member's face, at its canvas's bitmap size (about.html, 80): in pixels, so each of the skin's 8 pixels stays the same width whatever the visitor's font size */
  /* == tokens: affiliate == used by: info == */
  --platform-label-w: 11rem;   /* [scale] the label column of the affiliate form's platform rows */
  /* == tokens: dot == used by: game == */
  --dot: 0.5rem;   /* [scale] a carousel dot and a status dot */
  /* == tokens: pack == used by: game == */
  --pack-min: 12.5rem;   /* [scale] the narrowest a shop pack is drawn; five of them fit the page's width, and when one wraps the shop turns into its carousel */
  --pack-icon: 3.5rem;   /* [scale] the lotus beside a pack's amount */
  --pack-carousel-w: min(calc(var(--viewport-w) * 0.78), 17rem);   /* [scale] one pack in the carousel: most of the screen, a neighbour showing at each side, and never wider than a card of the grid */
  --dot-active-w: 1.5rem;   /* [scale] the carousel dot of the pack shown, drawn as a short bar */
  --pack-rows: 5;   /* [scale] the rows every pack of a row shares, one line each across the row: its name, its amount, its bonus, its price, its button */
  --pack-amount-em: 2.75;   /* [scale] the widest amount a pack shows ("3 000"), in ems of its own type: Onest at the display weight and tracking measures 2.70 (tests/site/boutique-packs.test.js) */
  --fs-pack-amount: min(var(--fs-h2), calc((100cqi - var(--pack-icon) - var(--sp-2)) / var(--pack-amount-em)));   /* [scale] a pack's amount: the h2 size, or less when the widest amount and its lotus would not hold on one line of the pack (100cqi, the width of the amount's line, which is the pack's) */
  /* == tokens: card-cover == used by: game == */
  --cover-art-h: 12rem;   /* [scale] the height of a card page's cover picture; the text starts under it, on the plain night, so it keeps AA whatever the picture is */
  --cover-fade-h: 6rem;   /* [scale] how far the picture takes to vanish into the night at the foot of its band */
  /* == tokens: account == used by: account == */
  --account-side-w: 17rem;   /* [scale] the column of the player's identity and the tabs, beside the open tab (the prototype's sidebar) */
  --skin-view-w: 160px;   /* [scale] the skin preview, at the bitmap skinview3d draws (account.js, SKIN_VIEW_WIDTH_PX): in pixels, as the canvas is */
  --skin-view-h: 280px;   /* [scale] the skin preview's height, at its bitmap (account.js, SKIN_VIEW_HEIGHT_PX) */
  --skin-stage-w: 25rem;   /* [scale] the skin's stage: the preview, an arrow close at each side, and as wide as the row of the skin's controls under it, so the two read as one block */
  --skin-rotate-step: 30;   /* [scale] the degrees an arrow of the skin preview turns it by, as a plain number account.js reads */
  --qr-size: 11.75rem;   /* [scale] the second factor's QR code with its light margin, the room a phone's camera needs */
  --shimmer-size: 300% 100%;   /* [scale] the band that runs across the balance: three times as wide as the figure, so it crosses it whole */
  --dur-shimmer: 3s;   /* [scale] one pass of the band across the balance */
  --mix-between: 50%;   /* [scale] a colour halfway between two others */

  /* ── 4. Semantics ────────────────────────────────────────── */

  /* What the browser draws its own controls for: date pickers, scrollbars, list pop-ups */
  --color-scheme: light;

  /* Grounds */
  --c-bg:      var(--mint-50);
  --c-bg-alt:  var(--mint-100);
  --c-surface: var(--white);
  --c-field:   var(--white);
  /* What stands one step above a surface: the chosen tab of a row */
  --c-raised:  var(--white);

  /* Text: one ink, laid at two strengths on the page. The soft one is the least a text is given:
     it holds WCAG AA (4.5:1) on every ground of both themes, a field's placeholder included
     (tests/site/design-system-contrast.test.js). */
  --c-text:       var(--ink);
  --c-text-soft:  color-mix(in srgb, var(--c-text) var(--a-soft), var(--c-bg));

  /* Lines and the neutral wash, the same ink again */
  --c-line:        color-mix(in srgb, var(--c-text) var(--a-line), transparent);
  --c-line-strong: color-mix(in srgb, var(--c-text) var(--a-line-strong), transparent);
  --c-wash:        color-mix(in srgb, var(--c-text) var(--a-wash), transparent);

  /* Accent */
  --c-accent:      var(--lotus-1);
  --c-accent-ink:  color-mix(in srgb, var(--c-accent) var(--mix-ink), var(--c-text));
  --c-accent-wash: color-mix(in srgb, var(--lotus-2) var(--a-tint), transparent);
  /* An open row of a list: a stronger wash than a hovered one (ds/panel.css) */
  --c-accent-select: color-mix(in srgb, var(--lotus-2) var(--a-select), transparent);
  --c-on-accent:   var(--ink-deep);
  --g-accent:      linear-gradient(135deg, var(--lotus-2), var(--lotus-3) 55%, var(--lotus-4));
  --c-ring:        color-mix(in srgb, var(--c-accent) var(--mix-ring), var(--c-text));
  /* A scrollbar's thumb, and the same under the pointer or while it is dragged */
  --c-thumb:        color-mix(in srgb, var(--c-text) var(--a-thumb), transparent);
  --c-thumb-strong: color-mix(in srgb, var(--c-text) var(--a-soft), transparent);

  /* Status: a hue as text, and the wash it sits on */
  --c-success-ink:  color-mix(in srgb, var(--green) var(--mix-ink), var(--c-text));
  --c-success-wash: color-mix(in srgb, var(--green) var(--a-tint), transparent);
  --c-warn-ink:     color-mix(in srgb, var(--amber) var(--mix-ink), var(--c-text));
  --c-warn-wash:    color-mix(in srgb, var(--amber) var(--a-tint), transparent);
  --c-danger-ink:   color-mix(in srgb, var(--red) var(--mix-ink), var(--c-text));
  --c-danger-wash:  color-mix(in srgb, var(--red) var(--a-tint), transparent);
  /* A toast's ground in its tone, opaque over whatever it covers (ds/panel.css) */
  --c-toast-ok:     color-mix(in srgb, var(--green) var(--a-tint), var(--c-surface));
  --c-toast-err:    color-mix(in srgb, var(--red) var(--a-tint), var(--c-surface));
  --c-online:       var(--green);

  /* A role and a grade, as a status is: the hue as text, and the wash it sits on */
  --c-role-player-ink:   color-mix(in srgb, var(--blue) var(--mix-ink), var(--c-text));
  --c-role-player-wash:  color-mix(in srgb, var(--blue) var(--a-tint), transparent);
  --c-role-partner-ink:  color-mix(in srgb, var(--green) var(--mix-ink), var(--c-text));
  --c-role-partner-wash: color-mix(in srgb, var(--green) var(--a-tint), transparent);
  --c-role-admin-ink:    color-mix(in srgb, var(--violet) var(--mix-ink), var(--c-text));
  --c-role-admin-wash:   color-mix(in srgb, var(--violet) var(--a-tint), transparent);
  --c-grade-bronze-ink:  color-mix(in srgb, var(--bronze) var(--mix-ink), var(--c-text));
  --c-grade-bronze-wash: color-mix(in srgb, var(--bronze) var(--a-tint), transparent);
  --c-grade-silver-ink:  color-mix(in srgb, var(--silver) var(--mix-ink), var(--c-text));
  --c-grade-silver-wash: color-mix(in srgb, var(--silver) var(--a-tint), transparent);
  --c-grade-gold-ink:    color-mix(in srgb, var(--gold) var(--mix-ink), var(--c-text));
  --c-grade-gold-wash:   color-mix(in srgb, var(--gold) var(--a-tint), transparent);

  /* The nav lets the page show through */
  --c-nav:    color-mix(in srgb, var(--c-bg) var(--a-glass), transparent);
  --nav-blur: blur(14px);

  /* What dims the page behind a drawer or a dialog */
  --c-scrim: color-mix(in srgb, var(--shade) var(--a-scrim), transparent);
  /* A dialog's edge, a hairline ring in its shadow (components.css: the site's dialogs and the
     workspaces' .df-modal). On the day a dialog's white ground stands out of the teal scrim by
     itself, and the ring draws nothing; the night sets it. */
  --c-dialog-edge: transparent;

  /* Shadows: these five, and no others */
  --shade:          var(--shade-light);
  --sh-raised:      0 var(--sp-1) var(--sp-2) color-mix(in srgb, var(--shade) var(--a-shadow-strong), transparent);
  --sh-card:        0 var(--sp-3) var(--sp-6) color-mix(in srgb, var(--shade) var(--a-shadow), transparent);
  --sh-menu:        0 var(--sp-4) var(--sp-7) color-mix(in srgb, var(--shade) var(--a-shadow-strong), transparent);
  --sh-glow:        0 var(--sp-2) var(--sp-5) color-mix(in srgb, var(--c-accent) var(--a-glow), transparent);
  --sh-glow-strong: 0 var(--sp-3) var(--sp-6) color-mix(in srgb, var(--c-accent) var(--a-glow-strong), transparent);

  /* == tokens: provider-buttons == used by: auth == */
  --c-on-brand: var(--white);   /* [semantic] the ink on a third party's own colour. The brand colours above are read by the provider buttons directly: they have no other role, so no semantic layer sits between them and the button */

  /* == tokens: pack == used by: game == */
  /* [semantic] The ground of the three packs the shop puts forward, each its hue laid on the card's surface at the strength of the system's other tints: the featured pack the accent's cyan, the premium pack the violet, the limited edition the gold (the tints styles/colors.css gave them, --pack-*-bg). Opaque, so a pack's words are judged on one colour (tests/site/design-system-contrast.test.js). */
  --c-pack-featured: color-mix(in srgb, var(--lotus-1) var(--a-tint), var(--c-surface));
  --c-pack-premium:  color-mix(in srgb, var(--violet) var(--a-tint), var(--c-surface));
  --c-pack-limited:  color-mix(in srgb, var(--gold) var(--a-tint), var(--c-surface));
  /* [semantic] The gold ribbon on that pack (.badge--gold): a gradient laid as --g-accent is, its words at AA on every step of it and every step at 3:1 on the limited pack's tint (tests/site/design-system-contrast.test.js). The deep gold on the light ground, the site's gold on the dark one. */
  --g-ribbon-gold:    linear-gradient(135deg, var(--gold-deep-1), var(--gold-deep-2) 55%, var(--gold-deep-3));
  --c-on-ribbon-gold: var(--white);

  /* == tokens: button-success == used by: auth == */
  --c-success: var(--green);   /* [semantic] a solid success: the Launcher-link button once it is linked. --c-success-ink and --c-success-wash stay for text and for a wash */

  /* == tokens: account == used by: account == */
  --c-qr-ground: var(--white);   /* [semantic] the ground of the second factor's QR code, light in both themes: a camera reads dark modules on light */
  /* [semantic] The password meter's five levels, weakest first, the bar and the words alike: red, halfway to amber, amber, green, the lotus. Each an ink of the system, so the words hold AA on a panel (tests/site/design-system-contrast.test.js). */
  --c-strength-very-weak:   var(--c-danger-ink);
  --c-strength-weak:        color-mix(in srgb, var(--c-danger-ink) var(--mix-between), var(--c-warn-ink));
  --c-strength-fair:        var(--c-warn-ink);
  --c-strength-strong:      var(--c-success-ink);
  --c-strength-very-strong: var(--c-accent-ink);
  /* [semantic] The band of colour that runs across a Lotus Shards balance from its first tier: the lotus, then the violet, then the gold, as inks; the figure is in the page's ink everywhere else. */
  --c-shards-tier-1: var(--c-accent-ink);
  --c-shards-tier-2: color-mix(in srgb, var(--violet) var(--mix-ink), var(--c-text));
  --c-shards-tier-3: color-mix(in srgb, var(--gold) var(--mix-ink), var(--c-text));
  --g-shimmer: linear-gradient(90deg, var(--c-text) 40%, currentColor 47%, currentColor 53%, var(--c-text) 60%);   /* [semantic] the band, in the tier's colour (currentColor, which the tier sets) */


  /* ── 5. Pictures: the night sky ──────────────────────────── */

  /* The two clouds of colour, laid over the night's gradient */
  --c-nebula-violet: color-mix(in srgb, var(--night-violet) var(--a-nebula), transparent);
  --c-nebula-teal:   color-mix(in srgb, var(--night-teal) var(--a-nebula), transparent);
  --g-nebula: radial-gradient(60% 55% at 18% 12%, var(--c-nebula-violet), transparent 70%), radial-gradient(50% 50% at 86% 28%, var(--c-nebula-teal), transparent 70%);
  --g-night-head: var(--g-nebula), linear-gradient(180deg, var(--night-1) 0%, var(--night-2) 70%, var(--night-3) 100%);
  /* How far the sky slides each way, as a share of its header's width */
  --sky-overscan: 5cqw;
  --c-night-text:      var(--white);
  --c-night-text-soft: color-mix(in srgb, var(--white) var(--a-night-soft), transparent);
  --c-night-eyebrow:   var(--lotus-4);
  --c-night-brand:     var(--lotus-3);


  /* ── 5. Pictures: the solar system of /new-nations ───────── */

  /* The game's solar system seen from above at an angle (scripts/orrery.js), which reads these
     tokens by name: a canvas cannot read var(). Each sphere in its own colour, every body the game
     has never spoken of in the same ones; a sphere's lit side is its lit shade, the same hue
     brighter, lifted towards the light colour, its night side its colour mixed with the night
     colour, at the shares below. The star runs from its lit centre through its colour to its rim,
     in a glow of the glow colour laid at the glow share under its centre. orrery.js caps how
     strongly the ink is laid for the orbits and the names; tests/site/design-system-contrast.test.js
     holds the names at AA, the lines and every sphere's outline at 3:1 on the section's ground, the
     star's rim at 3:1 on its glow, the glow never darker than the ground, and the star's centre
     brighter than any lit side. */
  --c-orrery-sol:         var(--sun-amber);
  --c-orrery-sol-lit:     var(--sun-yellow);
  --c-orrery-sol-rim:     var(--sun-deep);
  --c-orrery-glow:        var(--sun-halo);
  --orrery-glow-share:    0.9;
  --c-orrery-terra:       var(--lotus-deep);
  --c-orrery-terra-lit:   var(--lotus-1);
  --c-orrery-venus:       var(--sand-deep);
  --c-orrery-venus-lit:   var(--sand);
  --c-orrery-martius:     var(--rust-deep);
  --c-orrery-martius-lit: var(--rust);
  --c-orrery-luna:        var(--stone-deep);
  --c-orrery-luna-lit:    var(--stone);
  --c-orrery-unknown:     var(--slate-deep);
  --c-orrery-unknown-lit: var(--slate);
  --c-orrery-lit:     var(--white);
  --c-orrery-night:   var(--ink-deep);
  --orrery-lit-share:   0.3;
  --orrery-night-share: 0.35;
  /* How far above the orbits' plane the diagram is seen from: they look sin(tilt) as tall as wide */
  --orrery-tilt: 35deg;
  /* The widest the diagram stands, as wide as its column up to this, and its width to its height */
  --orrery-w: 40rem;
  --orrery-aspect: 3 / 2;
  /* A sphere's radius as a share of the outermost orbit's, so it scales with the diagram: the
     star, Venus and Terra, the moon and Martius, and every masked body alike. */
  --orrery-disc-star:    0.07;
  --orrery-disc-rocky:   0.035;
  --orrery-disc-small:   0.025;
  --orrery-disc-unknown: 0.03;
  /* How seldom the moving bodies are looked at: one crosses a pixel in about half an hour */
  --dur-orrery-look: 60s;


  /* ── 5. Pictures: the launcher card preview ──────────────── */

  /* What lies on a picture: the chip of the artist's credit, and the words on it. The chip is the
     same in both themes, since the picture under it is: its ground is its own, never the scrim,
     which lets the picture show through. */
  --c-lcard-chip:       color-mix(in srgb, var(--ink-deep) var(--a-picture-chip), transparent);
  --c-on-scrim:         var(--white);
  --c-lcard-aura:       var(--lotus-gold);
  --sh-lcard-aura:      0 0 var(--sp-3) color-mix(in srgb, var(--lotus-gold) var(--a-glow), transparent);
  --g-lcard-placeholder: linear-gradient(135deg, color-mix(in srgb, var(--lotus-cyan) var(--a-glow-strong), transparent), color-mix(in srgb, var(--lotus-violet) var(--a-nebula), transparent));
  --c-lcard-development: color-mix(in srgb, var(--lotus-violet) var(--a-tint), transparent);
  --c-flag-fr-blue:     var(--flag-fr-blue);
  --c-flag-fr-red:      var(--flag-fr-red);
  --c-flag-us-red:      var(--flag-us-red);
  --c-flag-us-blue:     var(--flag-us-blue);
  --c-flag-white:       var(--white);

  /* The ring a focused control draws on the night. The system's ring is a light, half-clear accent
     made for the page's grounds and reads at 2:1 on the night; the night's own ink holds the 3:1 of
     WCAG 1.4.11 on every stop of it, and on the first of the hero's dawn under its buttons. */
  --c-night-ring:      var(--c-night-text);


  /* == tokens: hero == used by: home == */
  --mask-horizon: linear-gradient(180deg, var(--mask-opaque) 50%, transparent 84%);   /* [night sky] the stars are whole above the middle of the hero and gone before the dawn */
  /* [night sky] The dawn is measured from the FOOT of the hero, not as shares of its height, so it keeps its size when the hero grows (a phone, where the buttons stack) and the text above it stays on the night. At the prototype's 46rem these lengths are its 54, 74, 87 and 95 per cent: the look the owner validated. */
  --g-night-hero: var(--g-nebula), linear-gradient(180deg, var(--night-1) 0%, var(--night-2) calc(100% - 21.2rem), var(--night-3) calc(100% - var(--hero-dawn-room)), var(--dawn-1) calc(100% - 6rem), var(--dawn-2) calc(100% - 2.3rem), var(--c-bg) 100%);
  /* == tokens: card-cover == used by: game == */
  --mask-cover: linear-gradient(180deg, var(--mask-opaque) calc(var(--cover-art-h) - var(--cover-fade-h)), transparent var(--cover-art-h));   /* [night sky] the picture is whole at the top and gone at --cover-art-h */
}

/* On a touch screen the compact control is the finger's size (WCAG 2.5.5): a field can widen its
   hit area by its box alone, and a compact button stands beside it in one row at one height. What
   is built on the compact height grows with it: a small tab and a tag chip (--control-h-xs) are
   36px there instead of 28, still under the finger's size, so they take the taps on a layer
   (components.css, section 10), as an icon and a link do at the size they are drawn. What stands
   inside a full-height frame (--control-h-inset) keeps its size. The mouse sees the scale above
   unchanged. */
@media (pointer: coarse) {
  :root { --control-h-sm: var(--touch-target); }
}


/* ── 6. Dark theme ─────────────────────────────────────────────
   Grounds, ink and shade change, and the strength of a shadow and of a tint. Every colour built
   from them in layer 4 follows on its own.

   The site's theme is dark unless the visitor chose light: public/scripts/lang.js writes
   data-theme="light" for the day and removes the attribute for the night, and every page of the
   site reads it that way. Keyed on "not light" so a page converted to this system opens in the
   theme the visitor already had on the page before it. */

:root:not([data-theme="light"]) {
  --color-scheme: dark;
  --c-bg:      var(--pine-950);
  --c-bg-alt:  var(--pine-900);
  --c-surface: var(--pine-800);
  --c-field:   var(--pine-900);
  --c-raised:  var(--pine-700);
  --c-text:    var(--frost);
  --shade:     var(--shade-dark);
  /* A dialog on the night's black scrim: no shadow shows on black, and no ground of the dialog
     stands out of it at 3:1 short of a grey box, so its edge does */
  --c-dialog-edge: color-mix(in srgb, var(--c-text) var(--a-edge), transparent);
  --a-shadow:        30%;
  --a-shadow-strong: 45%;
  /* A hue laid on the night lifts its ground more than on the day: a badge's wash over a hovered
     or open row's accent wash, at the day's strength, took the badge's words under AA. */
  --a-tint:          12%;
  /* An open row's wash, a step over a hovered row's: any more and a badge's words fall under AA on it */
  --a-select:        14%;

  /* The page below is dark too: the sky is a deeper night above it. */
  --night-1: #04060d;
  --night-2: #081027;
  --night-3: #0e2440;

  /* The limited pack's ribbon on the dark ground: the site's gold, brightening, under ink. */
  --g-ribbon-gold:    linear-gradient(135deg, var(--gold), var(--gold-bright-2) 55%, var(--gold-bright-3));
  --c-on-ribbon-gold: var(--ink-deep);
  /* The solar system on the dark ground: the same spheres, a lit side that lifts further towards
     the light and a night side that keeps its deep shade, which the night would take under 3:1; the
     star a step paler, in a yellow glow. */
  --c-orrery-sol:         var(--sun-yellow);
  --c-orrery-sol-lit:     var(--sun-pale);
  --c-orrery-sol-rim:     var(--sun-amber);
  --c-orrery-glow:        var(--sun-yellow);
  --orrery-glow-share:    0.5;
  --c-orrery-night:   var(--pine-950);
  --orrery-lit-share:   0.3;
  --orrery-night-share: 0.05;

  /* == tokens: hero == used by: home == */
  /* [dark] the dark theme's dawn is a glow on the horizon: a darker teal, no peach, a shorter band (the prototype's 56, 80 and 93 per cent) */
  --dawn-1: #15424f;
  --g-night-hero: var(--g-nebula), linear-gradient(180deg, var(--night-1) 0%, var(--night-2) calc(100% - 20.2rem), var(--night-3) calc(100% - 9.2rem), var(--dawn-1) calc(100% - 3.2rem), var(--c-bg) 100%);
}
