/* ============================================================
   Lingual — Bulletin theme tokens
   The worship bulletin is themeable per church with EXACTLY FOUR
   colors. Everything else (muted text, hairline rules, faint
   surfaces) is derived from those four via color-mix, so a church
   sets four values and the whole bulletin re-themes coherently.

   THE FOUR (override these on a .bulletin element, or per-church
   in the live bulletin via tenants.bulletin_theme):
     --bulletin-bg        page / paper background
     --bulletin-text      body text  (also the weight-only "All" bold)
     --bulletin-quote-bg  fill behind scripture quotations
     --bulletin-accent    the one pop color — headings, order labels,
                          rubric instructions, role labels, hymn
                          numbers, references, the mast ornament

   Defaults alias the global rubric-on-paper palette (tokens/colors.css)
   so an un-themed bulletin is identical to today's. The derived muted/
   rule values also default to the hand-tuned --ink-muted/--rule so the
   un-themed bulletin renders with the same computed colours as before (the
   CSS text uses var indirection, but no colour changes); a custom theme
   re-derives them from its own four colors via color-mix.
   ============================================================ */
.bulletin {
  /* The four inputs — default to the Lingual rubric-on-paper palette. */
  --bulletin-bg:        var(--paper, #FAF6EE);
  --bulletin-text:      var(--ink, #1A1612);
  --bulletin-quote-bg:  var(--highlight, #F2E9D5);
  --bulletin-accent:    var(--rubric, #8B1A1A);

  /* Derived — never set these directly; they follow the four above.
     Default to the curated neutrals so the un-themed bulletin is
     unchanged; a custom theme overrides them with the color-mix form. */
  --bulletin-muted: var(--ink-muted, #6B5D52);
  --bulletin-rule:  var(--rule, #C9BDA8);
  --bulletin-faint: color-mix(in oklab, var(--bulletin-text) 6%, var(--bulletin-bg));

  background: var(--bulletin-bg);
  color: var(--bulletin-text);
}

/* ---- Church presets — each is exactly the four themeable inputs; muted/rule
   re-derive from them via color-mix so the whole bulletin stays coherent.
   Rubric is the default (above); the other three ship for common traditions. */
.bulletin--sky,
.bulletin--sage,
.bulletin--ink {
  --bulletin-muted: color-mix(in oklab, var(--bulletin-text) 60%, var(--bulletin-bg));
  --bulletin-rule:  color-mix(in oklab, var(--bulletin-text) 22%, var(--bulletin-bg));
}
.bulletin--sky  { --bulletin-bg:#FBFAF7; --bulletin-text:#1C2A39; --bulletin-quote-bg:#EAF0F6; --bulletin-accent:#2C5E8A; } /* Presbyterian blue */
.bulletin--sage { --bulletin-bg:#FAFAF6; --bulletin-text:#23291F; --bulletin-quote-bg:#E9EEE2; --bulletin-accent:#3E6B43; } /* Anglican green */
.bulletin--ink  { --bulletin-bg:#F7F5F0; --bulletin-text:#1B1B1F; --bulletin-quote-bg:#ECEAE3; --bulletin-accent:#6A4A2B; } /* warm brown */
