/* ==========================================================================
   Royals & Rogues — Color tokens
   A game of The Fellowship of Play, shaped with Kiduna material intelligence.
   Quiet medieval enamel: cold ink-green grounds, emerald action, antique
   cloisonné gold, parchment cream. Complementary to Kiduna AI (warm umber /
   sky / sun-gold) — same dark-UI-native enamel logic, opposite temperature.
   Core eight values are verbatim from kiduna.design/royals-and-rogues.
   ========================================================================== */
:root {
  /* ---- Core palette — published on the R&R site ------------------------ */
  --rr-void:      #030605;   /* deepest ground — behind everything */
  --rr-ink:       #07110f;   /* page ground — green-black ink */
  --rr-malachite: #0e634f;   /* deep enamel green — surfaces + emphasis */
  --rr-emerald:   #159271;   /* core green — primary action */
  --rr-gold:      #e8b24a;   /* antique gold — the cloisonné metal */
  --rr-bright:    #ffd981;   /* bright gold — highlight + links */
  --rr-cream:     #f7eccb;   /* parchment cream — primary text, never pure white */
  --rr-muted:     #a99e88;   /* stone-taupe — secondary text */

  /* ---- Derived ramps (from the core eight, oklch-anchored) ------------- */
  /* Greens — ink → jade */
  --rr-pine:        #0a3d30;  /* between ink and malachite — deep surface accent */
  --rr-emerald-hover: #1cae87;
  --rr-jade:        #3cc79c;  /* text-safe green on ink */
  --rr-emerald-soft: rgba(21, 146, 113, 0.18);
  /* Golds — shadowed metal → bright */
  --rr-gold-deep:   #8a6420;  /* recessed / engraved metal */
  --rr-gold-soft:   rgba(232, 178, 74, 0.14);
  --rr-bright-soft: rgba(255, 217, 129, 0.16);

  /* ---- Heraldic accents — INTENTIONAL ADDITIONS ------------------------
     The site defines no accent hues beyond green + gold; these four are
     derived medieval tinctures (azure, purpure, gules, copper) tuned to sit
     on ink beside the enamel greens. Convention, not restriction. */
  --rr-azure:          #4c7fb8;   /* steel azure */
  --rr-azure-bright:   #7fb0df;
  --rr-amethyst:       #7b5bb5;   /* royal purpure */
  --rr-amethyst-bright:#a98fe0;
  --rr-garnet:         #a83a3f;   /* gules — danger, blood, stakes */
  --rr-garnet-bright:  #d9787c;
  --rr-copper:         #b96a35;   /* trickster copper */
  --rr-copper-bright:  #e29a62;

  /* ---- Court + Class conventions ----------------------------------------
     Courts carry hue; Classes are identified by monogram + art, not color. */
  --court-king:  var(--rr-gold);      /* Wealth */
  --court-queen: var(--rr-amethyst-bright); /* Intellect */
  --court-jack:  var(--rr-azure-bright);    /* Skill */
  --court-joker: var(--rr-copper-bright);   /* Craftiness */

  /* ---- Timing windows — the four moments of play ----------------------- */
  --window-setup:    var(--rr-azure-bright);
  --window-round:    var(--rr-jade);
  --window-showdown: var(--rr-bright);
  --window-counter:  var(--rr-garnet-bright);

  /* ---- Feedback — fixed meanings (shared with Kiduna), retuned to ink -- */
  --rr-error:    #e14b4b;
  --rr-warning:  #f5c542;
  --rr-complete: #2fd98a;

  /* ---- Semantic tokens — dark theme (default, and only) ---------------- */
  --bg:            var(--rr-ink);
  --bg-deep:       var(--rr-void);
  --surface:       #0c1b17;                    /* raised ink card */
  --surface-elev:  #112620;                    /* elevated card */
  --surface-muted: rgba(247, 236, 203, 0.04);

  --fg:        var(--rr-cream);
  --fg-muted:  #d9cfb2;                        /* secondary text */
  --fg-soft:   rgba(247, 236, 203, 0.60);      /* tertiary / captions */
  --fg-dim:    rgba(247, 236, 203, 0.35);

  --border:        rgba(247, 236, 203, 0.12);
  --border-strong: rgba(247, 236, 203, 0.22);
  --hairline:      rgba(232, 178, 74, 0.30);   /* the gold cloison line */

  --accent:       var(--rr-emerald);           /* primary action */
  --accent-hover: var(--rr-emerald-hover);
  --accent-soft:  var(--rr-emerald-soft);
  --accent-metal:      var(--rr-gold);         /* secondary / ceremonial action */
  --accent-metal-soft: var(--rr-gold-soft);

  --link:    var(--rr-bright);
  --success: var(--rr-complete);
  --danger:  var(--rr-error);
}
