:root,
:root[data-palette="violeta"],
:root[data-palette="violet"] {
  --page: #07091c;
  --surface: #10152c;
  --surface-raised: #171e38;
  --surface-hover: #202947;
  --surface-section: #0b1024;
  --surface-tabs: #0a1025;
  --surface-selected: #242042;
  --surface-preview: #0b1024;
  --text: #f3f4ff;
  --text-heading: #e5e9fc;
  --text-soft: #c6cfea;
  --muted: #abb5d5;
  --placeholder: #96a1c2;
  --accent: #a58bff;
  --accent-hover: #c0adff;
  --accent-soft: #292447;
  --line: #303a58;
  --line-soft: #222b45;
  --line-strong: #465376;
  --line-hover: #8874c3;
  --line-selected: #8c6aff;
  --line-visual: #3a4266;
  --line-contact: #5e5189;
  --line-dialog: #615782;
  --link-line: #706398;
  --icon: #b4a4eb;
  --primary-start: #6037d7;
  --primary-end: #3659d9;
  --primary-hover-start: #6b43df;
  --primary-hover-end: #4264df;
  --primary-border: #8669e3;
  --on-primary: #ffffff;
  --primary-shadow: rgb(76 45 176 / 20%);
  --title-start: #b19aff;
  --title-end: #82c9ff;
  --art-glow: rgb(111 81 204 / 17%);
  --shadow: rgb(0 0 10 / 40%);
  --dialog-shadow: rgb(0 0 10 / 56%);
  --backdrop: rgb(3 4 17 / 80%);
  --print-text: #151d2a;
  --print-page: #ffffff;
}

:root[data-palette="azul"],
:root[data-palette="blue"] {
  --page: #090c12;
  --surface: #111722;
  --surface-raised: #151d2a;
  --surface-hover: #1d293c;
  --surface-section: #0c1018;
  --surface-tabs: #0d121b;
  --surface-selected: #1b293e;
  --surface-preview: #0d131d;
  --text: #e9eef7;
  --text-heading: #e0e8f4;
  --text-soft: #bcc9dd;
  --muted: #a2b0c5;
  --placeholder: #94a3bc;
  --accent: #8aafff;
  --accent-hover: #adc7ff;
  --accent-soft: #202f49;
  --line: #2a3649;
  --line-soft: #1d2735;
  --line-strong: #3b4c65;
  --line-hover: #607caa;
  --line-selected: #709cff;
  --line-visual: #34445f;
  --line-contact: #425d85;
  --line-dialog: #526d94;
  --link-line: #526d94;
  --icon: #9cb5da;
  --primary-start: #3659d9;
  --primary-end: #4844c7;
  --primary-hover-start: #4264df;
  --primary-hover-end: #534ed0;
  --primary-border: #6c85e9;
  --on-primary: #ffffff;
  --primary-shadow: rgb(37 68 165 / 20%);
  --title-start: #99b7ff;
  --title-end: #a3a4ff;
  --art-glow: rgb(58 83 126 / 17%);
  --shadow: rgb(0 0 0 / 40%);
  --dialog-shadow: rgb(0 0 0 / 56%);
  --backdrop: rgb(3 6 11 / 80%);
}

:root[data-palette="cian"],
:root[data-palette="cyan"] {
  --page: #061219;
  --surface: #0d1b25;
  --surface-raised: #132632;
  --surface-hover: #1b3341;
  --surface-section: #091721;
  --surface-tabs: #091923;
  --surface-selected: #14313e;
  --surface-preview: #091923;
  --text: #effaff;
  --text-heading: #e4f4fc;
  --text-soft: #c0dce8;
  --muted: #a3c2cf;
  --placeholder: #8fb2c1;
  --accent: #66dcff;
  --accent-hover: #a0eaff;
  --accent-soft: #173b49;
  --line: #284451;
  --line-soft: #1d333f;
  --line-strong: #3d5c6c;
  --line-hover: #5b9ab1;
  --line-selected: #51bbda;
  --line-visual: #345767;
  --line-contact: #3c7185;
  --line-dialog: #477d91;
  --link-line: #477d91;
  --icon: #91c9dc;
  --primary-start: #08617f;
  --primary-end: #354fbd;
  --primary-hover-start: #0a6b8b;
  --primary-hover-end: #3e59c7;
  --primary-border: #3999b9;
  --on-primary: #ffffff;
  --primary-shadow: rgb(0 84 114 / 20%);
  --title-start: #66dcff;
  --title-end: #a2b7ff;
  --art-glow: rgb(44 143 176 / 15%);
  --shadow: rgb(0 5 9 / 40%);
  --dialog-shadow: rgb(0 5 9 / 56%);
  --backdrop: rgb(1 10 15 / 80%);
}

.palette-option[data-palette-option="violeta"] {
  --swatch-page: #07091c;
  --swatch-accent: #8c6aff;
  --swatch-secondary: #66dcff;
}
.palette-option[data-palette-option="azul"] {
  --swatch-page: #090c12;
  --swatch-accent: #709cff;
  --swatch-secondary: #94b5ff;
}
.palette-option[data-palette-option="cian"] {
  --swatch-page: #061219;
  --swatch-accent: #66dcff;
  --swatch-secondary: #a2b7ff;
}

/* Alternating surfaces keep each section distinct while sharing one palette. */
:root[data-palette="violeta"],
:root[data-palette="violet"] {
  --section-light: #f0edf8;
  --light-text: #28243b;
  --light-muted: #5e5872;
  --light-accent: #6846af;
  --light-line: #c8bed9;
  --light-surface: #f9f6ff;
  --light-raised: #ffffff;
  --light-hover: #e8e1f2;
  --light-selected: #e4d9f3;
  --light-placeholder: #736989;
  --light-line-strong: #9b8eaf;
  --section-dark: #111124;
  --dark-text: #f3f4ff;
  --dark-muted: #b9bed7;
  --dark-accent: #bca6ff;
  --dark-line: #3c3b5d;
  --dark-surface: #1a1b35;
  --dark-raised: #242443;
  --dark-hover: #2d2c4b;
  --dark-selected: #342d53;
  --dark-placeholder: #a49cbd;
  --dark-line-strong: #6a6081;
  --photo-overlay: rgb(8 13 20 / 24%);
}

:root[data-palette="azul"],
:root[data-palette="blue"] {
  --section-light: #edf1f6;
  --light-text: #213047;
  --light-muted: #536179;
  --light-accent: #2e55a8;
  --light-line: #c1ccda;
  --light-surface: #f6f8fc;
  --light-raised: #ffffff;
  --light-hover: #e1e8f2;
  --light-selected: #dbe4f3;
  --light-placeholder: #697a91;
  --light-line-strong: #8a9cb5;
  --section-dark: #101725;
  --dark-text: #e9eef7;
  --dark-muted: #b3c1d6;
  --dark-accent: #a9c4ff;
  --dark-line: #35445b;
  --dark-surface: #182235;
  --dark-raised: #213048;
  --dark-hover: #2b3c55;
  --dark-selected: #2a3c59;
  --dark-placeholder: #9aadc9;
  --dark-line-strong: #637c9f;
  --photo-overlay: rgb(8 13 20 / 24%);
}

:root[data-palette="cian"],
:root[data-palette="cyan"] {
  --section-light: #e9f2f4;
  --light-text: #213b46;
  --light-muted: #4e6873;
  --light-accent: #136d84;
  --light-line: #bad0d8;
  --light-surface: #f3f9fb;
  --light-raised: #ffffff;
  --light-hover: #dcecf0;
  --light-selected: #d5e9ef;
  --light-placeholder: #657d88;
  --light-line-strong: #83a6b4;
  --section-dark: #0d202b;
  --dark-text: #effaff;
  --dark-muted: #b5d0da;
  --dark-accent: #86e3ff;
  --dark-line: #315461;
  --dark-surface: #142c39;
  --dark-raised: #1d3948;
  --dark-hover: #264858;
  --dark-selected: #204651;
  --dark-placeholder: #96b5c2;
  --dark-line-strong: #5a8799;
  --photo-overlay: rgb(8 13 20 / 24%);
}

:root[data-palette="perla"],
:root[data-palette="pearl"],
:root[data-palette="lavanda"] {
  --page: #eeedf4;
  --surface: #fbfaff;
  --surface-raised: #ffffff;
  --surface-hover: #e8e4f4;
  --surface-section: #e2dfed;
  --surface-tabs: #e5e2ec;
  --surface-selected: #e5def7;
  --surface-preview: #f3f1f8;
  --text: #22232d;
  --text-heading: #171923;
  --text-soft: #414351;
  --muted: #5d5c6d;
  --placeholder: #696778;
  --accent: #6545ba;
  --accent-hover: #4f329c;
  --accent-soft: #e8e1f7;
  --line: #c3bdcf;
  --line-soft: #d9d4e1;
  --line-strong: #9b91ad;
  --line-hover: #7e6aab;
  --line-selected: #795ab6;
  --line-visual: #c0b6d3;
  --line-contact: #afa2c6;
  --line-dialog: #b8acc9;
  --link-line: #847398;
  --icon: #6e5890;
  --primary-start: #6545ba;
  --primary-end: #4c469a;
  --primary-hover-start: #55369f;
  --primary-hover-end: #3c3983;
  --primary-border: #6545ba;
  --on-primary: #ffffff;
  --primary-shadow: rgb(86 59 157 / 16%);
  --title-start: #6545ba;
  --title-end: #394676;
  --art-glow: rgb(110 84 183 / 15%);
  --shadow: rgb(42 32 68 / 12%);
  --dialog-shadow: rgb(22 19 40 / 25%);
  --backdrop: rgb(22 19 40 / 60%);
  --section-light: #f7f5fc;
  --light-text: #22232d;
  --light-muted: #5d5c6d;
  --light-accent: #6545ba;
  --light-line: #cbc3da;
  --light-surface: #fbfaff;
  --light-raised: #ffffff;
  --light-hover: #e8e4f4;
  --light-selected: #e5def7;
  --light-placeholder: #696778;
  --light-line-strong: #9b91ad;
  --section-dark: #171628;
  --dark-text: #f5f1ff;
  --dark-muted: #c5bfd4;
  --dark-accent: #c6b2ff;
  --dark-line: #4b435f;
  --dark-surface: #212038;
  --dark-raised: #2b2845;
  --dark-hover: #35314f;
  --dark-selected: #3a3157;
  --dark-placeholder: #aaa0be;
  --dark-line-strong: #71647f;
  --photo-overlay: rgb(8 13 20 / 24%);
  color-scheme: light;
}

:root[data-palette="oliva"],
:root[data-palette="olive"] {
  --page: #eee9dc;
  --surface: #faf7ef;
  --surface-raised: #fffdf8;
  --surface-hover: #e4e0ce;
  --surface-section: #dedcc8;
  --surface-tabs: #e8e4d5;
  --surface-selected: #dce0c8;
  --surface-preview: #f1eee2;
  --text: #242a20;
  --text-heading: #1d261c;
  --text-soft: #404b38;
  --muted: #58614d;
  --placeholder: #626953;
  --accent: #4c6039;
  --accent-hover: #35462a;
  --accent-soft: #dce3c9;
  --line: #bdc1aa;
  --line-soft: #d8d8c7;
  --line-strong: #909b7e;
  --line-hover: #61734d;
  --line-selected: #647c47;
  --line-visual: #a5ad91;
  --line-contact: #9aa68d;
  --line-dialog: #a0ab91;
  --link-line: #7a8a68;
  --icon: #566d3f;
  --primary-start: #4c6039;
  --primary-end: #37492b;
  --primary-hover-start: #3d502c;
  --primary-hover-end: #2b3d23;
  --primary-border: #4c6039;
  --on-primary: #ffffff;
  --primary-shadow: rgb(56 75 39 / 17%);
  --title-start: #4c6039;
  --title-end: #756036;
  --art-glow: rgb(97 111 68 / 17%);
  --shadow: rgb(45 52 30 / 12%);
  --dialog-shadow: rgb(30 38 24 / 26%);
  --backdrop: rgb(21 29 19 / 62%);
  --section-light: #f7f3e6;
  --light-text: #242a20;
  --light-muted: #58614d;
  --light-accent: #4c6039;
  --light-line: #c4c8b1;
  --light-surface: #faf7ef;
  --light-raised: #fffdf8;
  --light-hover: #e4e0ce;
  --light-selected: #dce0c8;
  --light-placeholder: #626953;
  --light-line-strong: #909b7e;
  --section-dark: #20291e;
  --dark-text: #f4f0df;
  --dark-muted: #c4cbb6;
  --dark-accent: #cad598;
  --dark-line: #53604a;
  --dark-surface: #2b3527;
  --dark-raised: #354030;
  --dark-hover: #3e4b37;
  --dark-selected: #455139;
  --dark-placeholder: #a6b493;
  --dark-line-strong: #7f8c6a;
  --photo-overlay: rgb(8 13 20 / 24%);
  color-scheme: light;
}

:root[data-palette="cobre"],
:root[data-palette="copper"] {
  --page: #f3e9df;
  --surface: #fdf8f0;
  --surface-raised: #fffaf4;
  --surface-hover: #eadbcd;
  --surface-section: #e9d8c8;
  --surface-tabs: #eee0d3;
  --surface-selected: #efd9c8;
  --surface-preview: #f7ede3;
  --text: #30231c;
  --text-heading: #271b15;
  --text-soft: #554034;
  --muted: #6e5545;
  --placeholder: #7e6251;
  --accent: #984522;
  --accent-hover: #7a3318;
  --accent-soft: #f0d7c3;
  --line: #ceb29e;
  --line-soft: #e4cdbb;
  --line-strong: #ad886b;
  --line-hover: #9e6847;
  --line-selected: #b5663d;
  --line-visual: #c39b7b;
  --line-contact: #b8825e;
  --line-dialog: #bb9272;
  --link-line: #aa734f;
  --icon: #a4562c;
  --primary-start: #984522;
  --primary-end: #793e26;
  --primary-hover-start: #813819;
  --primary-hover-end: #63301c;
  --primary-border: #984522;
  --on-primary: #ffffff;
  --primary-shadow: rgb(138 67 31 / 17%);
  --title-start: #984522;
  --title-end: #70422d;
  --art-glow: rgb(166 94 44 / 16%);
  --shadow: rgb(66 37 21 / 13%);
  --dialog-shadow: rgb(47 26 15 / 27%);
  --backdrop: rgb(35 21 14 / 64%);
  --section-light: #fcf5e9;
  --light-text: #30231c;
  --light-muted: #6e5545;
  --light-accent: #984522;
  --light-line: #d7b9a0;
  --light-surface: #fdf8f0;
  --light-raised: #fffaf4;
  --light-hover: #eadbcd;
  --light-selected: #efd9c8;
  --light-placeholder: #7e6251;
  --light-line-strong: #ad886b;
  --section-dark: #351f17;
  --dark-text: #fff1e1;
  --dark-muted: #d9bfa9;
  --dark-accent: #f1b685;
  --dark-line: #73503b;
  --dark-surface: #432b20;
  --dark-raised: #523426;
  --dark-hover: #60402e;
  --dark-selected: #67432d;
  --dark-placeholder: #c9a88b;
  --dark-line-strong: #a77c58;
  --photo-overlay: rgb(8 13 20 / 24%);
  color-scheme: light;
}

:root[data-palette="cacao"],
:root[data-palette="espresso"],
:root[data-palette="chocolate"] {
  --page: #ede5d8;
  --surface: #f9f2e5;
  --surface-raised: #fff8ed;
  --surface-hover: #e4d8c8;
  --surface-section: #e0d2bf;
  --surface-tabs: #e6dccb;
  --surface-selected: #e3d3bc;
  --surface-preview: #f2e9db;
  --text: #30251f;
  --text-heading: #251b17;
  --text-soft: #55483d;
  --muted: #665649;
  --placeholder: #796958;
  --accent: #775237;
  --accent-hover: #5a3b27;
  --accent-soft: #e8d9c3;
  --line: #c3b09a;
  --line-soft: #dacebb;
  --line-strong: #a18a71;
  --line-hover: #876346;
  --line-selected: #98724f;
  --line-visual: #b49a7d;
  --line-contact: #a08362;
  --line-dialog: #ad9175;
  --link-line: #8e6f50;
  --icon: #805c39;
  --primary-start: #775237;
  --primary-end: #55402d;
  --primary-hover-start: #64422c;
  --primary-hover-end: #453223;
  --primary-border: #775237;
  --on-primary: #ffffff;
  --primary-shadow: rgb(94 63 34 / 17%);
  --title-start: #775237;
  --title-end: #534637;
  --art-glow: rgb(131 96 55 / 17%);
  --shadow: rgb(51 35 21 / 14%);
  --dialog-shadow: rgb(37 23 14 / 28%);
  --backdrop: rgb(30 20 13 / 64%);
  --section-light: #f8f1e3;
  --light-text: #30251f;
  --light-muted: #665649;
  --light-accent: #775237;
  --light-line: #ccbaa0;
  --light-surface: #f9f2e5;
  --light-raised: #fff8ed;
  --light-hover: #e4d8c8;
  --light-selected: #e3d3bc;
  --light-placeholder: #796958;
  --light-line-strong: #a18a71;
  --section-dark: #271c17;
  --dark-text: #f5ead5;
  --dark-muted: #d0c1a8;
  --dark-accent: #e4c28c;
  --dark-line: #65503d;
  --dark-surface: #33251e;
  --dark-raised: #403025;
  --dark-hover: #4d3c2e;
  --dark-selected: #59432e;
  --dark-placeholder: #c0ad8e;
  --dark-line-strong: #9a7b57;
  --photo-overlay: rgb(8 13 20 / 24%);
  color-scheme: light;
}

.palette-option[data-palette-option="perla"] {
  --swatch-page: #eeedf4;
  --swatch-accent: #6545ba;
  --swatch-secondary: #171628;
}
.palette-option[data-palette-option="oliva"] {
  --swatch-page: #eee9dc;
  --swatch-accent: #4c6039;
  --swatch-secondary: #20291e;
}
.palette-option[data-palette-option="cobre"] {
  --swatch-page: #f3e9df;
  --swatch-accent: #984522;
  --swatch-secondary: #351f17;
}
.palette-option[data-palette-option="cacao"] {
  --swatch-page: #ede5d8;
  --swatch-accent: #775237;
  --swatch-secondary: #271c17;
}

/* Obsidiana eléctrica: the six reference pigments and their readable surface tones. */
:root[data-palette="obsidiana"] {
  --electric-cobalt: #3d5afe;
  --synth-magenta: #ff2fa3;
  --toxic-amber: #ff8a1e;
  --titanium-fog: #aeb6c2;
  --holographic-pearl: #f5f7ff;
  --page: #06070a;
  --surface: #10131f;
  --surface-raised: #181e30;
  --surface-hover: #202944;
  --surface-section: #0c1020;
  --surface-tabs: #0d1120;
  --surface-selected: #242b50;
  --surface-preview: #0d1120;
  --text: #f5f7ff;
  --text-heading: #f5f7ff;
  --text-soft: #c8cfdb;
  --muted: #aeb6c2;
  --placeholder: #aeb6c2;
  --accent: #9caaff;
  --accent-hover: #c7cfff;
  --accent-soft: #1e2547;
  --line: #343b55;
  --line-soft: #23293d;
  --line-strong: #606d92;
  --line-hover: #9caaff;
  --line-selected: #9caaff;
  --line-visual: #606d92;
  --line-contact: #606d92;
  --line-dialog: #606d92;
  --link-line: #9caaff;
  --icon: #9caaff;
  --primary-start: #3d5afe;
  --primary-end: #6a2e9d;
  --primary-hover-start: #4b68ff;
  --primary-hover-end: #8236ad;
  --primary-border: #9caaff;
  --on-primary: #ffffff;
  --primary-shadow: rgb(61 90 254 / 24%);
  --title-start: #9caaff;
  --title-end: #ff2fa3;
  --art-glow: rgb(61 90 254 / 16%);
  --shadow: rgb(0 0 0 / 44%);
  --dialog-shadow: rgb(0 0 0 / 68%);
  --backdrop: rgb(6 7 10 / 84%);
  --section-light: #f5f7ff;
  --light-text: #151925;
  --light-muted: #4f586c;
  --light-accent: #3d5afe;
  --light-line: #c0c8dc;
  --light-surface: #f5f7ff;
  --light-raised: #ffffff;
  --light-hover: #e2e8fc;
  --light-selected: #e2e8ff;
  --light-placeholder: #5b6478;
  --light-line-strong: #8c99b4;
  --section-dark: #090a12;
  --dark-text: #f5f7ff;
  --dark-muted: #aeb6c2;
  --dark-accent: #9caaff;
  --dark-line: #363a50;
  --dark-surface: #111421;
  --dark-raised: #1b2034;
  --dark-hover: #242b43;
  --dark-selected: #29284b;
  --dark-placeholder: #aeb6c2;
  --dark-line-strong: #637093;
  color-scheme: dark;
}
.palette-option[data-palette-option="obsidiana"] {
  --swatch-page: #06070a;
  --swatch-accent: #3d5afe;
  --swatch-secondary: #ff2fa3;
}
