/* ==========================================================================
   theme-light.css — THE LOOK in use: every color, in its light and its dark form.

   Same site, different values: browsing pages on a light ground, and a blue
   accent close to the old site's. To try it, set  'theme' => 'theme-light.css'
   in app/brand.php. To go back, set it to 'theme.css'.

   November 2026: the values now follow the brand kit (Design Guide v1.0):
     navy #0E2A44 · deep red #A20618 · red on dark #E21B2D · white
     web "standard" ink #14212D · web "dark" ink #0C141B · muted #52677A · pale #EEF3F7
   The blue stays the site's working color (links, buttons, Scripture references).
   The red is the trumpet in the logo, the curved line between dark and light, and three
   or four small touches (the reference under the home page verse, a short rule under page
   titles). Keep it to that: it only works while it is rare.
   ========================================================================== */

:root {
  --c-ink:           #14212D;   /* the dark ground of the header, the top of the home page, the footer (brand: web standard) */
  --c-navy:          #0E2A44;   /* the brand navy: the big panels (Kingdom of Heaven, the sunrise band) */
  --c-red:           #A20618;   /* the brand red, on light. The logo's trumpet and the curved edge only. */
  --c-slate:         #223344;
  --c-accent:        #24597A;   /* the one color: links, buttons, Scripture references */
  --c-accent-on-ink: #3B7CA3;
  --c-link-on-ink:   #A9D3EC;
  --c-on-accent:     #FFFFFF;
  --c-depth:         #2E6E96;   /* how much teaching a Bible book has: more teaching, more of this blue */
  --c-mark:          #F6E6B0;   /* the highlight behind a found word in search results */
  --c-page:          #EEF3F7;   /* a faint tint for panels and cards (brand: pale) */
  --c-paper:         #FFFFFF;   /* the page itself */

  --c-text:          #15202B;
  --c-text-muted:    #44535F;
  --c-text-on-ink:   #E9EEF2;
  --c-muted-on-ink:  #A7B6C2;
  --c-line:          #D5DDE3;
  --c-line-on-ink:   #2E3F4E;

  /* Browsing pages and reading pages share one white ground; panels sit on the tint. */
  --index-bg:      var(--c-paper);
  --index-surface: var(--c-page);
  --index-text:    var(--c-text);
  --index-muted:   var(--c-text-muted);
  --index-line:    var(--c-line);
  --index-link:    var(--c-accent);
  --index-accent:  var(--c-accent);
  --index-focus:   var(--c-accent);

  --read-bg:       var(--c-paper);
  --read-surface:  var(--c-page);
  --read-text:     var(--c-text);
  --read-muted:    var(--c-text-muted);
  --read-line:     var(--c-line);
  --read-link:     var(--c-accent);
  --read-accent:   var(--c-accent);
  --read-focus:    var(--c-accent);

  --header-bg:     var(--c-ink);
  --header-text:   var(--c-text-on-ink);
  --header-line:   var(--c-line-on-ink);
  --header-link:   var(--c-link-on-ink);
  --header-accent: var(--c-accent-on-ink);

  --refcard-bg:    var(--c-accent);
  --refcard-text:  #FFFFFF;

  --font-ui:   "Inter", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --font-read: "Noto Serif", Georgia, "Times New Roman", serif;
  --text-size: 1.0625rem;

  --radius:      8px;
  --logo-height: 54px;
  --wrap:        1120px;
  --measure:     66ch;
}

/* --------------------------------------------------------------------------
   THE DARK LOOK. The same names with dark values. It is used when a visitor's
   phone or computer is set to dark, or when they press the small moon in the
   header. The block appears twice on purpose (once for "the device says dark",
   once for "the visitor chose dark here"): if you change a value, change both.
   To switch the dark look off altogether, set 'dark_mode' => false in brand.php.
   -------------------------------------------------------------------------- */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --c-ink: #0C141B; --c-navy: #0B2238; --c-red: #E21B2D; --c-slate: #18242F; --c-accent: #33769F; --c-accent-on-ink: #33769F; --c-link-on-ink: #A9D3EC;
    --c-depth: #4A93BF; --c-mark: #5E4E14; --c-page: #18232D; --c-paper: #10181F; --footer-from: #10181F;
    --c-text: #E4EAEF; --c-text-muted: #A2B2BF; --c-line: #283745; --c-line-on-ink: #22303C;
    --index-link: #9CCBEA; --read-link: #9CCBEA; --index-focus: #9CCBEA; --read-focus: #9CCBEA;
    --refcard-bg: #24506C;
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --c-ink: #0C141B; --c-navy: #0B2238; --c-red: #E21B2D; --c-slate: #18242F; --c-accent: #33769F; --c-accent-on-ink: #33769F; --c-link-on-ink: #A9D3EC;
  --c-depth: #4A93BF; --c-mark: #5E4E14; --c-page: #18232D; --c-paper: #10181F; --footer-from: #10181F;
  --c-text: #E4EAEF; --c-text-muted: #A2B2BF; --c-line: #283745; --c-line-on-ink: #22303C;
  --index-link: #9CCBEA; --read-link: #9CCBEA; --index-focus: #9CCBEA; --read-focus: #9CCBEA;
  --refcard-bg: #24506C;
}
:root[data-theme="light"] { color-scheme: light; }
