/* Site palettes; structural theme design lives in theme-layouts.css. */
:root,.theme-swatch[data-theme=default]{--bg:#151617;--surface:#242526;--border:#54575a;--text:#e7e4df;--muted:#bdbbb7;--accent:#ef6862;--link:#f18b83;--input:#191a1b;--header:#1c1d1f;--hover:#363234;--button:#a52732;--button-hover:#bf3440;--button-text:#fff;--notice:#3b2225;--notice-text:#ffe4df}
:root[data-theme=midnight],.theme-swatch[data-theme=midnight]{--bg:#080a0c;--surface:#14171b;--border:#454e59;--text:#eff6f5;--muted:#b2bdc5;--accent:#43e8ef;--link:#70f2eb;--input:#0b0e12;--header:#101216;--hover:#232931;--button:#116a70;--button-hover:#1a828a;--notice:#192f35;--notice-text:#d9fcff}
:root[data-theme=parchment],.theme-swatch[data-theme=parchment]{color-scheme:light;--bg:#b8aa89;--surface:#e0d2af;--border:#8a7651;--text:#30291f;--muted:#443720;--accent:#652c17;--link:#602812;--input:#eee1c4;--header:#cbbb97;--hover:#c7b58e;--button:#794022;--button-hover:#5f3018;--notice:#d7c095;--notice-text:#493317}
:root[data-theme=forest],.theme-swatch[data-theme=forest]{--bg:#0e1a17;--surface:#172c24;--border:#476b59;--text:#ecf5df;--muted:#bbcebb;--accent:#b1ce88;--link:#c4dfa0;--input:#102219;--header:#13251d;--hover:#2c4635;--button:#3e643e;--button-hover:#507d4a;--notice:#30482b;--notice-text:#edf5dc}

:root[data-theme=obsidian],.theme-swatch[data-theme=obsidian]{--bg:#08090c;--surface:#14161c;--border:#535762;--text:#ebeef4;--muted:#b6bbc7;--accent:#bbaed4;--link:#c4b5dd;--input:#0d0f14;--header:#101116;--hover:#25232e;--button:#544965;--button-hover:#67587d;--notice:#262331;--notice-text:#e8dff9}
:root[data-theme=ivory],.theme-swatch[data-theme=ivory]{color-scheme:light;--bg:#eeeff2;--surface:#fcfcfe;--border:#a7a7b6;--text:#292936;--muted:#59596c;--accent:#7d3554;--link:#78334e;--input:#fff;--header:#e3e3e9;--hover:#d6d6e1;--button:#78334e;--button-hover:#5e263c;--notice:#eadce3;--notice-text:#5d293f}
:root[data-theme=sanguine],.theme-swatch[data-theme=sanguine]{--bg:#101215;--surface:#1d2228;--border:#aab4bf;--text:#f0f1f3;--muted:#c2c8ce;--accent:#e87a6d;--link:#f69a8d;--input:#15181d;--header:#292e36;--hover:#333a44;--button:#983e37;--button-hover:#b64b40;--notice:#3c2628;--notice-text:#ffded7}
:root[data-theme=amethyst],.theme-swatch[data-theme=amethyst]{--bg:#181020;--surface:#281b34;--border:#705583;--text:#f6eefa;--muted:#cbb7d8;--accent:#d5a8ee;--link:#e0b7f5;--input:#1d1327;--header:#22162e;--hover:#463050;--button:#70438a;--button-hover:#8655a2;--notice:#442b52;--notice-text:#f3dafa}
:root[data-theme=steel],.theme-swatch[data-theme=steel]{--bg:#090d0f;--surface:#141b1f;--border:#52636a;--text:#e0e8e8;--muted:#aabfc0;--accent:#88d0c5;--link:#a0ded5;--input:#0d1316;--header:#10171b;--hover:#26353a;--button:#2b635e;--button-hover:#367a73;--notice:#203739;--notice-text:#d7f1ed}
:root[data-theme=ember],.theme-swatch[data-theme=ember]{--bg:#191b1e;--surface:#2b2e33;--border:#767b83;--text:#f1f2f4;--muted:#c2c5cb;--accent:#ff574b;--link:#ff897e;--input:#202226;--header:#23262a;--hover:#3b3e44;--button:#b62b2b;--button-hover:#d73631;--notice:#41282b;--notice-text:#ffe0da}

body{background:var(--bg);color:var(--text)}a{color:var(--link)}a:hover{color:var(--text)}.site-header{background:var(--header)}.brand{color:var(--text)}.nav-links a:hover,.profile-toggle:hover,.nav-links [aria-current=page],.profile-menu button:hover{background:var(--hover);color:var(--text)}.lede,.site-footer,.list-link small,.link-button{color:var(--muted)}.button{background:var(--button);border-color:var(--button);color:var(--button-text)}.button:hover{background:var(--button-hover);color:var(--button-text)}.button.secondary{background:transparent;color:var(--link);border-color:var(--border)}.editor input:not([type=checkbox]):not([type=hidden]),.editor select,.editor textarea,.form-control,.form-select{background:var(--input);color:var(--text);border-color:var(--border)}.notice,.errorlist{background:var(--notice);color:var(--notice-text);border-color:var(--border)}.dots{color:var(--text)}.track-box{border-color:var(--text)}
:root:not([data-theme=default]) .character-sheet{--bg:inherit;--surface:inherit;--border:inherit;--text:inherit;--muted:inherit;--accent:inherit}
.theme-picker{display:flex;align-items:center;flex-wrap:wrap;gap:10px;margin:20px 0}.theme-picker select{background:var(--input);color:var(--text);border:1px solid var(--border);border-radius:5px;padding:8px;min-height:42px}.theme-picker label{font-weight:600}.theme-picker .button{padding:8px 14px}

.theme-gallery{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px}.theme-option{border:1px solid var(--border);border-radius:12px;overflow:hidden;background:var(--surface)}.theme-description{padding:24px}.theme-description h2{font-size:1.35rem}.theme-description p{color:var(--muted);min-height:3.4em}.theme-swatch{padding:26px;background:radial-gradient(ellipse at top right,color-mix(in srgb,var(--accent),transparent 90%),transparent 70%),var(--bg);color:var(--text);border-bottom:1px solid var(--border)}.theme-swatch strong{display:block;font-family:Georgia,serif;font-size:26px;margin:15px 0}.swatch-kicker{font-size:10px;letter-spacing:.2em;color:var(--accent)}.swatch-panel{background:var(--surface);border:1px solid var(--border);border-radius:6px;padding:16px;margin-bottom:18px;display:flex;align-items:center;gap:5px}.swatch-panel span{margin-right:auto;color:var(--muted);font-size:13px}.swatch-panel i{width:9px;height:9px;border-radius:50%;background:var(--accent)}.swatch-button{display:inline-block;background:var(--button);color:var(--button-text);border-radius:4px;padding:8px 12px;font-size:12px;font-weight:600}
.hero{position:relative}.hero:before{content:"";pointer-events:none;position:absolute;z-index:-1;inset:0 -10% 0 20%;background:radial-gradient(ellipse at center,color-mix(in srgb,var(--accent),transparent 94%),transparent 68%)}
@media(max-width:650px){.theme-gallery{grid-template-columns:1fr}.theme-description p{min-height:0}}
@media print{.theme-picker{display:none!important}}

/* The default sheet follows the same stone-and-crimson palette as the site. */
:root[data-theme=default] .character-sheet{--bg:#151617;--surface:#242526;--border:#54575a;--text:#e7e4df;--muted:#bdbbb7;--accent:#ef6862}
