body[data-palette] {
  --gold: #e8c989;
  --cream: #f1f3fb;
  --palette-silver: #c9d2e3;
  --palette-indigo: #1d2655;
  --palette-plum: #321b50;
  --palette-flare: #6549bd;
  --palette-accent: #c3d7ff;
  --metal-gold: linear-gradient(154deg,#784610 0%,#c69843 17%,#fff1b4 36%,#e2b65c 49%,#a46724 52%,#ebc374 74%,#fff0b6 88%,#bd883b 100%);
  --metal-silver: linear-gradient(145deg,#657390,#ecf3ff 32%,#a8b7d3 50%,#f4f7ff 71%,#7889a7);
  background: var(--palette-indigo);
}
body[data-palette="pink"] {
  --palette-flare: #86468d;
  --palette-accent: #efc9e4;
}
.palette-switch {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 9px;
  padding: 14px 6vw;
  background: #f1f3fb;
  color: #172346;
  font-size: 13px;
}
.palette-switch button {
  padding: 9px 12px;
  cursor: pointer;
  background: white;
  border: 1px solid #64769d;
  border-radius: 3px;
  color: #172346;
}
.palette-switch button[aria-pressed="true"] { background: #233e83; color: white; }
.palette-switch a { color: #233e83; margin-inline-start: auto; }
body[data-palette] .site-header { background: linear-gradient(110deg,var(--palette-plum),var(--palette-indigo) 65%,#24215a); border-bottom: 2px solid transparent; border-image: var(--metal-silver) 1; }
body[data-palette] .site-header .brand { color: var(--gold); }
body[data-palette] .site-header a, body[data-palette] .site-header summary { color: #edf2ff; }
body[data-page="doors"] .site-header { background: linear-gradient(110deg,#17102f,#211744 65%,#30204a); }
body[data-page="doors"] .site-header .brand { color:#efd38c; }
body[data-page="doors"] .site-header a, body[data-page="doors"] .site-header summary { color:#f4efff; }
body[data-palette] .site-header details div { background: #1e2a55; }
body[data-palette] .hero {
  background: radial-gradient(ellipse at 76% 13%, var(--palette-flare), transparent 51%), radial-gradient(ellipse at 88% 80%, #254bc9, transparent 55%), linear-gradient(112deg,var(--palette-plum) 8%,var(--palette-indigo) 52%,#252c78);
}
body[data-palette] .hero h1 em { color: var(--palette-accent); }
body[data-palette] .hero .lead { color: #e4eafd; }
body[data-palette] .hero-glow { border-color: #c9d2e366; box-shadow: 0 0 70px #a7b3f055; }
body[data-palette] .hero-tarot { background: linear-gradient(155deg,#223c7d,var(--palette-indigo) 65%,var(--palette-flare)) padding-box, var(--metal-gold) border-box; border: 2px solid transparent; color: var(--palette-silver); box-shadow: 0 20px 60px #21103e99, inset 0 0 0 4px #b7c9f029; }
body[data-palette] .profile-form, body[data-palette] .chart-invite { background: linear-gradient(135deg,#30204ff5,#202c60f5); border-color: #c9d2e399; }
body[data-palette] .profile-form label, body[data-palette] .profile-form summary, body[data-palette] .profile-form small { color: #dbe5fd; }
body[data-palette] .profile-form input:not([type="checkbox"]) { background: #f7f8ff; color: #141f49; border-color: #afc3ef; }
body[data-palette] .primary { background: linear-gradient(155deg,#c79847,#fff0bb 29%,#e8bd6d 51%,#d7a755 55%,#f9e0a1 85%,#cc9c4e); color: #171323; box-shadow: inset 0 1px #fff7dc,0 7px 18px #24133c66; }
body[data-palette] .page-directory a { background: linear-gradient(145deg,#fcfdff,#e1e8f6 60%,#c3cfe5); }
body[data-palette] .page-directory { background: #e8edf7; color: #18264f; }
body[data-palette] .page-directory a { color: #223e80; border-color: #748cb980; }
body[data-palette] .page-directory h2,
body[data-palette] .page-directory .directory-copy strong { color: #18264f; }
body[data-palette] .page-directory .directory-intro,
body[data-palette] .page-directory .directory-copy > span { color: #344363; }
body[data-palette] .page-directory .eyebrow,
body[data-palette] .page-directory .directory-copy small { color: #4e376e; }
body[data-palette] .page-directory .directory-copy em { color: #243e83; }
body[data-palette] .matrix-dashboard { background: #e9edf8; color: #18264f; }
body[data-palette] .matrix-dashboard .complete-profile { background: linear-gradient(135deg, #f8faff, #dfe1f8); border-color: #98a7cf; }
body[data-palette] .matrix-dashboard .profile-story-grid article { background: #f8faff; border-color: #b2bedb; }
body[data-palette] .matrix-dashboard .complete-profile .eyebrow { color: #3c4f86; }
body[data-palette] footer { background: var(--palette-indigo); color: var(--palette-silver); }
