/* ==========================================================================
   themes.css  —  氣絶の衆 / Kizetsu no Shu
   Four themes, switched by data-theme on <html>, persisted in
   localStorage key "kizetsu-theme".
     0) deep-azure   (default)  deep blue night / pale sky / old gold
     1) night-bloom             ink ground / dried blood / dull gold
     2) pale-garden             parchment fog / green-black ink
     3) raw-cinnabar            black + vermillion, little gold
   All text colours are checked for WCAG AA against their own surface.
   ========================================================================== */

:root,
[data-theme="deep-azure"] {
  color-scheme: dark;

  --bg:            #071423;   /* deep blue night       */
  --bg-soft:       #0a1b2f;   /* section band          */
  --panel:         #0f2440;   /* card                  */
  --panel-2:       #14304f;   /* card hover / table th */
  --fg:            #e9f0f7;   /* (16.2:1) */
  --fg-dim:        #a9bcd1;   /* ( 9.4:1) */
  --fg-faint:      #8196ae;   /* ( 6.0:1) */

  --accent:        #2a6cb6;   /* 蒼, decorative; white text on it 5.4:1 */
  --accent-text:   #8fc3ff;   /* (10.1:1) */
  --accent-soft:   rgba(42, 108, 182, 0.24);

  --gold:          #c2a25a;
  --gold-text:     #e2c77f;   /* (11.0:1) */
  --gold-soft:     rgba(194, 162, 90, 0.18);

  --petal:         #e8b8c6;   /* the island's flowers */
  --petal-soft:    rgba(232, 184, 198, 0.14);

  --line:          rgba(233, 240, 247, 0.13);
  --line-strong:   rgba(233, 240, 247, 0.26);
  --focus:         #ffd98a;
  --shadow:        0 1px 0 rgba(255, 255, 255, 0.04), 0 18px 40px -24px rgba(0, 0, 0, 0.85);

  --pattern-opacity: 0.06;
  --petal-alpha:     0.42;
  --danger:        #ffa3a3;   /* error text */
}

[data-theme="night-bloom"] {
  color-scheme: dark;

  --bg:            #0a0908;   /* ink ground            */
  --bg-soft:       #100e10;   /* section band          */
  --panel:         #151215;   /* card                  */
  --panel-2:       #1c181c;   /* card hover / table th */
  --fg:            #ece5d8;   /* bone white  (13.9:1)  */
  --fg-dim:        #b0a695;   /* muted body  ( 7.2:1)  */
  --fg-faint:      #8a8174;   /* captions    ( 5.2:1, 4.8:1 on cards) */

  --accent:        #8e1c22;   /* dried blood, decorative  */
  --accent-text:   #e0787c;   /* crimson for text ( 6.4:1) */
  --accent-soft:   rgba(142, 28, 34, 0.22);

  --gold:          #b08d45;   /* dull gold, decorative    */
  --gold-text:     #d6b671;   /* gold for text   ( 8.9:1) */
  --gold-soft:     rgba(176, 141, 69, 0.18);

  --petal:         #e3b8bd;   /* muted petal pink         */
  --petal-soft:    rgba(227, 184, 189, 0.14);

  --line:          rgba(236, 229, 216, 0.14);
  --line-strong:   rgba(236, 229, 216, 0.28);
  --focus:         #f2d98c;
  --shadow:        0 1px 0 rgba(255, 255, 255, 0.03), 0 18px 40px -24px rgba(0, 0, 0, 0.9);

  --pattern-opacity: 0.05;
  --petal-alpha:     0.5;
  --danger:        #ff9e9e;   /* error text */
}

[data-theme="pale-garden"] {
  color-scheme: light;

  --bg:            #ece5d6;   /* parchment / fog       */
  --bg-soft:       #e4dcca;
  --panel:         #f5f0e4;
  --panel-2:       #ebe4d3;
  --fg:            #14201b;   /* deep green-black (13.6:1) */
  --fg-dim:        #3c4a42;   /* ( 8.4:1) */
  --fg-faint:      #4f5a51;   /* ( 5.9:1, 5.3:1 on the soft band) */

  --accent:        #8e1c22;
  --accent-text:   #8a1b21;   /* ( 6.7:1 on parchment) */
  --accent-soft:   rgba(142, 28, 34, 0.14);

  --gold:          #9a7c33;
  --gold-text:     #6d5620;   /* ( 5.6:1) */
  --gold-soft:     rgba(154, 124, 51, 0.18);

  --petal:         #b8676f;
  --petal-soft:    rgba(184, 103, 111, 0.16);

  --line:          rgba(20, 32, 27, 0.16);
  --line-strong:   rgba(20, 32, 27, 0.32);
  --focus:         #7a5a12;
  --shadow:        0 1px 0 rgba(255, 255, 255, 0.6), 0 14px 30px -22px rgba(20, 32, 27, 0.5);

  --pattern-opacity: 0.08;
  --petal-alpha:     0.35;
  --danger:        #9b1c1c;   /* error text */
}

[data-theme="raw-cinnabar"] {
  color-scheme: dark;

  --bg:            #07070a;
  --bg-soft:       #0d0d11;
  --panel:         #121217;
  --panel-2:       #191920;
  --fg:            #f4efe7;   /* (15.6:1) */
  --fg-dim:        #bdb6ac;   /* ( 8.4:1) */
  --fg-faint:      #877f75;   /* ( 4.7:1) */

  --accent:        #d8341b;   /* vermillion */
  --accent-text:   #f46a4a;   /* ( 6.1:1) */
  --accent-soft:   rgba(216, 52, 27, 0.24);

  --gold:          #7d7361;
  --gold-text:     #a99d86;   /* ( 6.4:1) */
  --gold-soft:     rgba(125, 115, 97, 0.16);

  --petal:         #f0a08c;
  --petal-soft:    rgba(240, 160, 140, 0.12);

  --line:          rgba(244, 239, 231, 0.16);
  --line-strong:   rgba(244, 239, 231, 0.34);
  --focus:         #ff8a6a;
  --shadow:        0 1px 0 rgba(255, 255, 255, 0.04), 0 18px 40px -24px #000;

  --pattern-opacity: 0.06;
  --petal-alpha:     0.45;
  --danger:        #ff9e9e;   /* error text */
}
