/*
  Communion '27 · America: the two looks.

  Why this file exists. Shane called the first navy, crimson and gold design "a Claude classic" and asked to see
  different colour patterns. Five looks were drawn, and on 25 Nov 2026 he decided: "bridal dawn is the choice for
  sure", and "the jasper and gold would be a good back up perhaps with the round buttons of bridal and dawn and
  fonts of dark pages". So the site now carries two looks, and this file is still the only place where a colour or
  a typeface is named. Every page, stylesheet and 3D module reads these tokens and nothing else, which is what
  lets the whole site change its look at once, and lets the backup be deleted from one file if it is never used.

    1. BRIDAL DAWN (bridal): THE CHOICE, and the default. Pearl pages, deep wine ink, rose and rose gold; the film
       travels from a wine-dark Friday night through a blush Saturday to a coral and pale-gold Sunday sunrise.
       Instrument Serif for headlines and Scripture, Figtree for reading. The packs print in this look only.
    2. JASPER AND GOLD (jasper): THE BACKUP. The jewels of Revelation 21 on green-black pages: an emerald opening,
       amethyst Friday, sapphire Saturday, gold Sunday. Its colours are exactly as they were drawn. Its corners
       are Bridal Dawn's ("the round buttons of bridal"), and its type is that of the dark-paged look that was
       called Three Days ("fonts of dark pages"): light, wide capitals in Jost, with the verses in Spectral.
       (Shane confirmed that reading of "dark pages" on 25 Nov 2026: "yes the thin wide capitals".)
       That evening, after seeing the backup on the preview, he asked for Bridal Dawn's lettering instead ("yes
       change lettering please"): so the backup now sets its type exactly as Bridal Dawn does, and the two looks
       differ in colour only.

  How a look is applied. Put data-look="ID" on any element and everything inside it wears that look. The page's
  html element carries it for the whole site; looks.html puts one look on each of its two columns to show them side
  by side. The default look (Bridal Dawn) is also written on the root, so a page with no data-look still works.
  The first block must stay first: the root and an attribute weigh the same, so the later block wins.

  What the tokens are for.
    Pages (the practical block and the inner pages)
      bg, bg-2        the page, and the alternate band behind every second section
      surface         a raised panel: a card, a form field
      ink, ink-2      text, and quieter text. Both pass 4.5 to 1 on bg, bg-2 and surface
      line            hairlines and dividers. It is decoration: draw a form field's edge in ink-2, not in line
      accent          the one loud colour: buttons, large display words, underlines. It passes 3 to 1 on the
                      page, which is enough for controls and large type but NOT for small text, so a link in
                      running text is ink with an accent underline
      on-accent       text on an accent button (4.5 to 1)
      accent-2        the second colour, used sparingly (3 to 1 on bg, bg-2 and surface, like accent); in both
                      looks either accent or accent-2 also reads on dark-bg (the checker says which)
      focus           the keyboard focus ring: 3 to 1 on bg, bg-2, surface and dark-bg, so one ring works
                      everywhere
      danger          the words of a form error (4.5 to 1 on bg, bg-2 and surface)
      dark-bg, on-dark, on-dark-2    the dark band and the footer
    Type
      font-display    headlines; font-text: everything else; font-scripture: the King James verses. The
                      campaign's facts are numbers (50, '27, March 26, 6:00), so a display or reading face must
                      have plain upright figures; a verse's reference is set in the reading face, not this one
      display-weight, display-stretch, display-tracking, display-transform    how a headline is set
      kicker-tracking the letter spacing of the small label above a headline
    Shape
      radius, radius-lg, border-w    the same in both looks: softly rounded, a fine one-pixel edge
    The story (ACT is pro, fri, sat, sun or epi; the wave beat uses fri)
      story-ACT-ink, -ink-2, -kicker    the words laid over the 3D
      story-ACT-scrim                   a veil laid BEHIND the words so they stay readable over any part of the
                                        sky, the glow included (the star and the ring sit right behind the words
                                        of the prologue and the epilogue, so those two veils are the strongest).
                                        In both looks and every act the veil is dark and the words are light: a
                                        light veil with dark words read as a card pasted on the picture and hid
                                        the 3D. Lay the scrim only behind the copy, never over the whole picture.
    The 3D (plain six-digit hex only: the 3D reads them itself)
      fx-ACT-sky-top, -sky-mid, -sky-low    the sky from overhead down to the horizon. The top is always dark
                                            enough for points of light to show
      fx-ACT-glow                           the light in the sky: the sun, the horizon, the halo behind the subject.
                                            The 3D ADDS it to the sky, so over a black sky a pale glow can only
                                            make grey: on a dark act give the glow a colour, not white
      fx-ACT-light, -light-2, -accent       the host of lights: most points, the warmer second tone, the rare hot one
      fx-ACT-form                           set dressing drawn in light: the cross, the table, streets, the stone
      fx-ACT-fog                            the land below the horizon and the haze of distance. It is always
                                            dark, even at sunrise, because the host of lights stands on it

  Colour tells the story. In both looks Friday, Saturday and Sunday have their own sky and their own light, and
  the three are meant to be felt as a journey from the cross to the empty tomb.

  Check any change with: python tools/check_looks.py
*/

/* ------------------------------------------------------------------------------------------------------------
   1. BRIDAL DAWN: the choice and the default. Light and radiant: pearl, blush and rose gold, with deep wine for
   Friday. The page is nearly white pearl, the one loud colour is rose wine, and the corners are only softly
   rounded (soft round corners on cream made it a wedding invitation). Friday is wine and plum; Saturday is a
   daybreak of rose and mauve; on Sunday the sky runs from wine through coral to pale gold. Type: a tall, graceful
   serif with a flowing italic (Instrument Serif), and a clean, light sans for reading (Figtree).
   ------------------------------------------------------------------------------------------------------------ */
:root,
[data-look="bridal"] {
  color-scheme: light;

  --bg: #FFFAF8;
  --bg-2: #F7E5DE;
  --surface: #FFFFFF;
  --ink: #3B0D1E;
  --ink-2: #6C4150;
  --line: #E7CBC1;
  --accent: #A63257;
  --on-accent: #FFF8F3;
  --accent-2: #B4654A;
  --focus: #C2456B;
  --danger: #A3182F;
  --dark-bg: #3B0D1E;
  --on-dark: #FFFAF8;
  --on-dark-2: #E6C9C3;

  --font-display: "Instrument Serif", "Didot", "Bodoni 72", "Times New Roman", serif;
  --font-text: "Figtree", "Segoe UI", system-ui, sans-serif;
  --font-scripture: "Instrument Serif", "Didot", Georgia, serif;
  --display-weight: 400;
  --display-stretch: 100%;
  --display-tracking: 0em;
  --display-transform: none;
  --kicker-tracking: 0.24em;

  --radius: 3px;
  --radius-lg: 6px;
  --border-w: 1px;

  /* Prologue: the last of the night, plum and rose. */
  --story-pro-ink: #FCF6F2;
  --story-pro-ink-2: #EBD5CE;
  --story-pro-kicker: #F2C2AC;
  --story-pro-scrim: rgba(18, 4, 12, 0.68);
  --fx-pro-sky-top: #12040C;
  --fx-pro-sky-mid: #2A0A1E;
  --fx-pro-sky-low: #4C1634;
  --fx-pro-glow: #E8B4A0;
  --fx-pro-light: #FFF4EC;
  --fx-pro-light-2: #F0CFC4;
  --fx-pro-accent: #E8A07E;
  --fx-pro-form: #F6DDD3;
  --fx-pro-fog: #1A0612;

  /* Friday: deep wine. */
  --story-fri-ink: #FCF6F2;
  --story-fri-ink-2: #EDD6D0;
  --story-fri-kicker: #F6B9B4;
  --story-fri-scrim: rgba(20, 4, 14, 0.56);
  --fx-fri-sky-top: #170513;
  --fx-fri-sky-mid: #3B0D2A;
  --fx-fri-sky-low: #74204E;
  --fx-fri-glow: #D2567E;
  --fx-fri-light: #FFF4EC;
  --fx-fri-light-2: #F0CFC4;
  --fx-fri-accent: #F0647E;
  --fx-fri-form: #FBE6DC;
  --fx-fri-fog: #230816;

  /* Saturday: daybreak in rose and mauve. */
  --story-sat-ink: #FFF8F3;
  --story-sat-ink-2: #F6E0DC;
  --story-sat-kicker: #FFD0C4;
  --story-sat-scrim: rgba(46, 12, 40, 0.66);
  --fx-sat-sky-top: #3A1838;
  --fx-sat-sky-mid: #8E4A6E;
  --fx-sat-sky-low: #E8A6A0;
  --fx-sat-glow: #FFD2C0;
  --fx-sat-light: #FFFFFF;
  --fx-sat-light-2: #FFDCE0;
  --fx-sat-accent: #FFC59E;
  --fx-sat-form: #FFF1E8;
  --fx-sat-fog: #45203E;

  /* Sunday: wine overhead, coral, then pale gold. The words stay light, on a veil of wine. */
  --story-sun-ink: #FFF8F3;
  --story-sun-ink-2: #F8E2DC;
  --story-sun-kicker: #FFD8C4;
  --story-sun-scrim: rgba(46, 12, 30, 0.68);
  --fx-sun-sky-top: #5A1836;
  --fx-sun-sky-mid: #F08A72;
  --fx-sun-sky-low: #FFE2BE;
  --fx-sun-glow: #FFFFFF;
  --fx-sun-light: #FFFFFF;
  --fx-sun-light-2: #FFE9DC;
  --fx-sun-accent: #FFD9A8;
  --fx-sun-form: #FFFFFF;
  --fx-sun-fog: #4A1830;

  /* Epilogue: the ring, rose gold in wine. */
  --story-epi-ink: #FFF8F3;
  --story-epi-ink-2: #F0DAD3;
  --story-epi-kicker: #FFD0B0;
  --story-epi-scrim: rgba(30, 6, 18, 0.66);
  --fx-epi-sky-top: #2A0A18;
  --fx-epi-sky-mid: #6A1E38;
  --fx-epi-sky-low: #C0705A;
  --fx-epi-glow: #FFE3D0;
  --fx-epi-light: #FFFFFF;
  --fx-epi-light-2: #FFE2D0;
  --fx-epi-accent: #FFC98A;
  --fx-epi-form: #FFF1E8;
  --fx-epi-fog: #3A1020;
}

/* ------------------------------------------------------------------------------------------------------------
   2. JASPER AND GOLD: the backup. The jewels of Revelation 21: obsidian, crystal, and colour like stained glass.
   The sky stays close to black and each day is a different stone held up to the light: amethyst and sardius on
   Friday, sapphire and jasper green on Saturday, gold and crystal on Sunday. The look leads with the stone it is
   named for: the pages are green-black, the buttons are jasper green and gold is the second colour, and the
   story opens in emerald. (It first opened in dark blue with gold buttons, which was the first design again.)
   Every colour below is exactly as it was drawn in the first wave.
   Shape: Bridal Dawn's softly rounded corners, as Shane asked. Type: Bridal Dawn's (Instrument Serif and
   Figtree; Shane, 25 Nov evening). Until then it was light, wide capitals like the title card of
   a film (Jost, for headlines and reading), with the verses in a fine, light serif (Spectral): the type of the
   dark-paged look that was called Three Days. (Its own first type, Cinzel, Outfit and Cormorant, is gone.)
   ------------------------------------------------------------------------------------------------------------ */
[data-look="jasper"] {
  color-scheme: dark;

  --bg: #04100D;
  --bg-2: #081915;
  --surface: #0D211D;
  --ink: #F3F0E8;
  --ink-2: #ABB2C0;
  --line: #1F3A34;
  --accent: #19D3A2;
  --on-accent: #04130E;
  --accent-2: #F2C14E;
  --focus: #7FB0FF;
  --danger: #FF8093;
  --dark-bg: #063A2E;
  --on-dark: #F3F0E8;
  --on-dark-2: #B4C9C1;

  --font-display: "Instrument Serif", "Didot", "Bodoni 72", "Times New Roman", serif;
  --font-text: "Figtree", "Segoe UI", system-ui, sans-serif;
  --font-scripture: "Instrument Serif", "Didot", Georgia, serif;
  --display-weight: 400;
  --display-stretch: 100%;
  --display-tracking: 0em;
  --display-transform: none;
  --kicker-tracking: 0.24em;

  --radius: 3px;
  --radius-lg: 6px;
  --border-w: 1px;

  /* Prologue: obsidian, one star in a halo of jasper green. */
  --story-pro-ink: #F3F0E8;
  --story-pro-ink-2: #C9CEDA;
  --story-pro-kicker: #6FE8C6;
  --story-pro-scrim: rgba(3, 4, 8, 0.69);
  --fx-pro-sky-top: #020308;
  --fx-pro-sky-mid: #04120F;
  --fx-pro-sky-low: #082B26;
  --fx-pro-glow: #19D3A2;
  --fx-pro-light: #F3F0E8;
  --fx-pro-light-2: #A8F0DC;
  --fx-pro-accent: #F2C14E;
  --fx-pro-form: #C9F2E6;
  --fx-pro-fog: #04060A;

  /* Friday: amethyst, with the red of sardius. */
  --story-fri-ink: #F6EEF4;
  --story-fri-ink-2: #D9CBE6;
  --story-fri-kicker: #D2B3FF;
  --story-fri-scrim: rgba(6, 3, 14, 0.58);
  --fx-fri-sky-top: #04060A;
  --fx-fri-sky-mid: #1B0A3D;
  --fx-fri-sky-low: #4A1C96;
  --fx-fri-glow: #9B5CFF;
  --fx-fri-light: #F6ECF4;
  --fx-fri-light-2: #C9A6FF;
  --fx-fri-accent: #F0405A;
  --fx-fri-form: #DCC6FF;
  --fx-fri-fog: #0B0618;

  /* Saturday: sapphire, with the green of jasper. */
  --story-sat-ink: #F0F6F4;
  --story-sat-ink-2: #C3D3E6;
  --story-sat-kicker: #4FE3BB;
  --story-sat-scrim: rgba(2, 6, 18, 0.58);
  --fx-sat-sky-top: #030A1E;
  --fx-sat-sky-mid: #072058;
  --fx-sat-sky-low: #1246A8;
  --fx-sat-glow: #19D3A2;
  --fx-sat-light: #EFFFF8;
  --fx-sat-light-2: #19D3A2;
  --fx-sat-accent: #F2C14E;
  --fx-sat-form: #7FB0FF;
  --fx-sat-fog: #041420;

  /* Sunday: gold, clear as crystal. */
  --story-sun-ink: #FFFAEC;
  --story-sun-ink-2: #EFE2C4;
  --story-sun-kicker: #F7D57A;
  --story-sun-scrim: rgba(8, 6, 2, 0.64);
  --fx-sun-sky-top: #0B0A08;
  --fx-sun-sky-mid: #B8791A;
  --fx-sun-sky-low: #F2C14E;
  --fx-sun-glow: #FFF6DC;
  --fx-sun-light: #FFFFFF;
  --fx-sun-light-2: #FFE39A;
  --fx-sun-accent: #7FE9CF;
  --fx-sun-form: #FFF3D0;
  --fx-sun-fog: #2A1E08;

  /* Epilogue: every stone at once, around a ring of gold. The sky is amethyst over jasper, never dark blue. */
  --story-epi-ink: #F3F0E8;
  --story-epi-ink-2: #D2CCE0;
  --story-epi-kicker: #F2C14E;
  --story-epi-scrim: rgba(4, 4, 12, 0.69);
  --fx-epi-sky-top: #04060A;
  --fx-epi-sky-mid: #1A0F3C;
  --fx-epi-sky-low: #0E4A4A;
  --fx-epi-glow: #F2C14E;
  --fx-epi-light: #FFFFFF;
  --fx-epi-light-2: #F2C14E;
  --fx-epi-accent: #19D3A2;
  --fx-epi-form: #E9DDBB;
  --fx-epi-fog: #060C18;
}
