/* ============================================================
   theme-gentle.css — Seven soft palettes besides light / dark.
   Use a palette id on <html data-theme>, with a -dark suffix for its dark variant.

   Every theme sets the same pieces:
     page (--color-bg), recessed areas (--color-bg-secondary),
     inset boxes (--color-bg-subtle), cards and chrome (--color-surface),
     body type, headings, brand ink, and state ink.
   Dark variants inherit the status colors and shadows from theme-dark.css.
   Keep ids in sync with connector.themeToggle.js.
   ============================================================ */

[data-theme="parchment"] {
  color-scheme: light;

  --color-bg:               #F8F1DE;
  --color-bg-secondary:     #F0E4C8;
  --color-bg-subtle:        #E7D7B4;
  --color-surface:          #FFF9EE;
  --color-surface-raised:   #FFFCF6;
  --color-border:           #E4D2AE;

  --color-text:             #3E3426;
  --color-text-primary:     #3E3426;
  --color-text-secondary:   #5C4E3A;
  --color-text-muted:       #6B5944;
  --color-text-inverse:     #FFFCF6;
  --color-heading:          #2C2418;

  --color-brand-primary:    #3E5328;
  --color-brand-secondary:  #2E4020;
  --color-brand-accent:     #C6A86A;
  --color-brand-gold:       #7A4E00;
  --color-accent:           #3E5328;

  --color-success:          #2E5328;
  --color-warning:          #7A4E00;
  --color-error:            #9B2C2C;
  --color-info:             #2A4E78;

  --reader-bg-default:      #F3E7CC;
  --reader-text:            #3A3124;
}

[data-theme="sage"] {
  color-scheme: light;

  --color-bg:               #E7F0E8;
  --color-bg-secondary:     #D5E4D8;
  --color-bg-subtle:        #C5D8C9;
  --color-surface:          #F4F8F4;
  --color-surface-raised:   #FBFDFB;
  --color-border:           #C3D6C8;

  --color-text:             #1E3326;
  --color-text-primary:     #1E3326;
  --color-text-secondary:   #3C5644;
  --color-text-muted:       #3C5444;
  --color-text-inverse:     #FBFDFB;
  --color-heading:          #14281C;

  --color-brand-primary:    #1E5C3C;
  --color-brand-secondary:  #164830;
  --color-brand-accent:     #7EAA8C;
  --color-brand-gold:       #7A5200;
  --color-accent:           #1E5C3C;

  --color-success:          #1B5E3B;
  --color-warning:          #7A4E00;
  --color-error:            #9B2C2C;
  --color-info:             #1E4E78;

  --reader-bg-default:      #DCE8DE;
  --reader-text:            #1C3024;
}

[data-theme="mist"] {
  color-scheme: light;

  --color-bg:               #E8EEF4;
  --color-bg-secondary:     #D5E0EA;
  --color-bg-subtle:        #C5D4E2;
  --color-surface:          #F4F7FA;
  --color-surface-raised:   #FBFCFD;
  --color-border:           #C5D3E0;

  --color-text:             #1E2C3A;
  --color-text-primary:     #1E2C3A;
  --color-text-secondary:   #3C5164;
  --color-text-muted:       #3C5264;
  --color-text-inverse:     #FBFCFD;
  --color-heading:          #152433;

  --color-brand-primary:    #1A5560;
  --color-brand-secondary:  #13424C;
  --color-brand-accent:     #7EA4BE;
  --color-brand-gold:       #7A5200;
  --color-accent:           #1A5560;

  --color-success:          #1B5E4A;
  --color-warning:          #7A4E00;
  --color-error:            #9B2C2C;
  --color-info:             #1D4E89;

  --reader-bg-default:      #DCE6EF;
  --reader-text:            #1C2A38;
}

[data-theme="blush"] {
  color-scheme: light;

  --color-bg:               #F8ECEC;
  --color-bg-secondary:     #F0DCDC;
  --color-bg-subtle:        #E4CCCC;
  --color-surface:          #FDF6F6;
  --color-surface-raised:   #FFFBFA;
  --color-border:           #E4CACA;

  --color-text:             #3A2428;
  --color-text-primary:     #3A2428;
  --color-text-secondary:   #5C3E46;
  --color-text-muted:       #6A4A52;
  --color-text-inverse:     #FFFBFA;
  --color-heading:          #2A161A;

  --color-brand-primary:    #6E3040;
  --color-brand-secondary:  #542430;
  --color-brand-accent:     #D4A0A6;
  --color-brand-gold:       #7A4800;
  --color-accent:           #6E3040;

  --color-success:          #2E5C3A;
  --color-warning:          #7A4800;
  --color-error:            #9B1C2C;
  --color-info:             #3A3A78;

  --reader-bg-default:      #F3E0E0;
  --reader-text:            #361F24;
}

[data-theme="sand"] {
  color-scheme: light;

  --color-bg:               #F3EADF;
  --color-bg-secondary:     #E7D9C4;
  --color-bg-subtle:        #DCCBB0;
  --color-surface:          #FBF6EE;
  --color-surface-raised:   #FFFCF7;
  --color-border:           #DCCBB3;

  --color-text:             #3A3024;
  --color-text-primary:     #3A3024;
  --color-text-secondary:   #5A4C3C;
  --color-text-muted:       #5A4A3C;
  --color-text-inverse:     #FFFCF7;
  --color-heading:          #2A2218;

  --color-brand-primary:    #5C4528;
  --color-brand-secondary:  #453420;
  --color-brand-accent:     #C9A87A;
  --color-brand-gold:       #7A4E00;
  --color-accent:           #5C4528;

  --color-success:          #3E5328;
  --color-warning:          #7A4E00;
  --color-error:            #9B2C2C;
  --color-info:             #3A4A68;

  --reader-bg-default:      #EADFCB;
  --reader-text:            #362C22;
}

[data-theme="lilac"] {
  color-scheme: light;

  --color-bg:               #F0EAF6;
  --color-bg-secondary:     #E2D6EE;
  --color-bg-subtle:        #D4C6E4;
  --color-surface:          #F8F4FB;
  --color-surface-raised:   #FCFAFE;
  --color-border:           #D4C6E2;

  --color-text:             #2C2438;
  --color-text-primary:     #2C2438;
  --color-text-secondary:   #4C425C;
  --color-text-muted:       #504668;
  --color-text-inverse:     #FCFAFE;
  --color-heading:          #1E1830;

  --color-brand-primary:    #4A3868;
  --color-brand-secondary:  #382850;
  --color-brand-accent:     #B9A4D0;
  --color-brand-gold:       #7A4800;
  --color-accent:           #4A3868;

  --color-success:          #2E5C40;
  --color-warning:          #7A4800;
  --color-error:            #9B2C4A;
  --color-info:             #2E3E88;

  --reader-bg-default:      #E6DDF0;
  --reader-text:            #282034;
}

[data-theme="tide"] {
  color-scheme: light;

  --color-bg:               #E5F2EF;
  --color-bg-secondary:     #D0E6E0;
  --color-bg-subtle:        #BEDAD2;
  --color-surface:          #F3FAF8;
  --color-surface-raised:   #F8FCFB;
  --color-border:           #BFD9D2;

  --color-text:             #16332E;
  --color-text-primary:     #16332E;
  --color-text-secondary:   #2E524C;
  --color-text-muted:       #3E625A;
  --color-text-inverse:     #F8FCFB;
  --color-heading:          #0E2420;

  --color-brand-primary:    #145E56;
  --color-brand-secondary:  #0E4842;
  --color-brand-accent:     #7EB8AC;
  --color-brand-gold:       #7A5200;
  --color-accent:           #145E56;

  --color-success:          #14604A;
  --color-warning:          #7A4E00;
  --color-error:            #9B2C2C;
  --color-info:             #1A4E78;

  --reader-bg-default:      #D7EBE6;
  --reader-text:            #14302C;
}

[data-theme="parchment-dark"] {
  --gentle-dark-bg:      #211B12;
  --gentle-dark-surface: #332A1C;
  --gentle-dark-accent:  #CCD896;
}

[data-theme="sage-dark"] {
  --gentle-dark-bg:      #142019;
  --gentle-dark-surface: #23352A;
  --gentle-dark-accent:  #ACD5AC;
}

[data-theme="mist-dark"] {
  --gentle-dark-bg:      #17212C;
  --gentle-dark-surface: #273748;
  --gentle-dark-accent:  #ADD4E5;
}

[data-theme="blush-dark"] {
  --gentle-dark-bg:      #27191D;
  --gentle-dark-surface: #3C282D;
  --gentle-dark-accent:  #EDB7C4;
}

[data-theme="sand-dark"] {
  --gentle-dark-bg:      #241E19;
  --gentle-dark-surface: #3A3028;
  --gentle-dark-accent:  #E8C49C;
}

[data-theme="lilac-dark"] {
  --gentle-dark-bg:      #201A2A;
  --gentle-dark-surface: #332941;
  --gentle-dark-accent:  #D6BDEC;
}

[data-theme="tide-dark"] {
  --gentle-dark-bg:      #122321;
  --gentle-dark-surface: #203834;
  --gentle-dark-accent:  #9DD9CD;
}

[data-theme$="-dark"] {
  --color-bg:               var(--gentle-dark-bg);
  --color-bg-secondary:     color-mix(in srgb, var(--gentle-dark-surface) 70%, var(--gentle-dark-bg));
  --color-bg-subtle:        color-mix(in srgb, var(--gentle-dark-bg) 85%, black);
  --color-surface:          var(--gentle-dark-surface);
  --color-surface-raised:   color-mix(in srgb, var(--gentle-dark-surface) 88%, var(--gentle-dark-accent));
  --color-border:           color-mix(in srgb, var(--gentle-dark-surface) 73%, var(--gentle-dark-accent));

  --color-text:             var(--color-text-primary);
  --color-text-primary:     color-mix(in srgb, #F7FAFC 80%, var(--gentle-dark-accent));
  --color-text-secondary:   color-mix(in srgb, #E2E8F0 75%, var(--gentle-dark-accent));
  --color-text-muted:       color-mix(in srgb, #C5D0DC 75%, var(--gentle-dark-accent));
  --color-text-inverse:     var(--gentle-dark-bg);
  --color-heading:          var(--color-text-primary);
  --color-brand-primary:    var(--gentle-dark-accent);
  --color-brand-secondary:  color-mix(in srgb, var(--gentle-dark-accent) 78%, white);
  --color-brand-accent:     var(--gentle-dark-accent);
  --color-accent:           var(--gentle-dark-accent);

  --reader-bg-default:      var(--color-bg-secondary);
  --reader-text:            var(--color-text-secondary);
}
