/* ============================================================================
   Marija Deck — Colour Tokens (Joycean)
   Every value is grounded in Joyce's own usage (see research/joyce-motifs.md).
   Not invented decoration: the Greek-flag-blue 1922 Ulysses cover, the warm
   ivory of book stock, sovereign gold, the greys of Dublin, and Joyce's own
   Linati/Gilbert episode schema for section-coding only.
   ----------------------------------------------------------------------------
   WCAG note (verified by scripts/wcag check): body --ink on --paper = 14.3:1 (AAA).
   --color-ink-mute = grey-600 = 5.6:1 (AA). Gold for TEXT must be gold-700 (4.57:1
   AA); gold-500 is DECORATIVE ONLY — the gold→blue gradient ribbon/hairline, never
   readable text. White (--paper) on primary-700+ passes AA (≥8:1).
   ========================================================================== */

:root {
  /* — Ulysses Blue (primary): the Greek-flag blue Joyce obsessed over — */
  --blue-50:  #eaf1f9;
  --blue-100: #cdddf0;
  --blue-200: #9fbee0;
  --blue-300: #6e9bcd;
  --blue-400: #4178b5;
  --blue-500: #245c97;
  --blue-600: #1a4e8a;  /* Ulysses Blue — signature hue */
  --blue-700: #15396b;
  --blue-800: #102a50;
  --blue-900: #0c2038;  /* ink (body text, warm near-black blue) */
  --blue-950: #07131f;

  /* — Ivory ground: warm book stock, never screen-white — */
  --paper:        #f4efe3;  /* default page ground */
  --paper-bright: #faf6ec;  /* raised surface / card */
  --paper-sunk:   #ece5d5;  /* recessed panel */

  /* — Dublin Grey (neutral): cool atmospheric slate, the "grey sheet of water" — */
  --grey-50:  #f2f4f5;
  --grey-100: #e4e7ea;
  --grey-200: #c9cfd4;
  --grey-300: #a7b0b8;
  --grey-400: #828d97;
  --grey-500: #67727c;
  --grey-600: #515a63;
  --grey-700: #3f464d;
  --grey-800: #2a2f35;
  --grey-900: #1a1d21;
  --grey-950: #0f1113;

  /* — Sovereign Gold (accent): Telemachus gold / "House of Gold" — use sparingly — */
  --gold-300: #d8b978;
  --gold-500: #b8893b;  /* hairlines, rules, large display only */
  --gold-700: #8c6526;  /* gold text on ivory (AA small) */
  --gold-900: #5e4317;

  /* — Schema spectrum: Joyce's own Linati/Gilbert episode colours.
       SECTION-CODING ONLY. Muted & literary — never tourist/shamrock green. — */
  --ep-telemachus: var(--gold-500); /* gold/white */
  --ep-nestor:     #6b4e2e;         /* brown */
  --ep-proteus:    #5c6b3c;         /* "snotgreen" — murky olive, not shamrock */
  --ep-calypso:    #c56a1e;         /* orange */
  --ep-aeolus:     #a62a21;         /* red (newspaper) */
  --ep-lestryg:    #7c1f18;         /* blood red */
  --ep-sirens:     #c76b5a;         /* coral */
  --ep-cyclops:    #4d5e33;         /* green */
  --ep-nausicaa:   var(--grey-400); /* grey */
  --ep-circe:      #5b4b8a;         /* violet */
  --ep-penelope:   #b98a7e;         /* dawn */
  /* political accents from A Portrait */
  --parnell-green: #41603a;
  --davitt-maroon: #6e2b32;

  /* — Semantic roles — */
  --color-bg:            var(--paper);
  --color-surface:       var(--paper-bright);
  --color-panel:         var(--paper-sunk);
  --color-ink:           var(--blue-900);   /* primary text */
  --color-ink-soft:      var(--grey-700);   /* secondary text */
  --color-ink-mute:      var(--grey-600);   /* captions / meta — AA (5.6:1) */
  --color-primary:       var(--blue-600);
  --color-primary-deep:  var(--blue-800);
  --color-on-primary:    var(--paper-bright);
  --color-accent:        var(--gold-500);
  --color-accent-ink:    var(--gold-700);
  --color-rule:          var(--gold-500);   /* the gold hairline */
  --color-rule-soft:     var(--grey-200);
  --color-link:          var(--blue-600);
  --color-link-visited:  var(--ep-circe);

  /* — Inverse (ink-blue ground, e.g. title slide quoting the cover) — */
  --color-bg-inverse:    var(--blue-800);
  --color-ink-inverse:   var(--paper-bright);
  --color-accent-inverse:var(--gold-300);
}
