/* Member-chosen appearance. Loaded after theme.css. Default: dark purple. */
:root{color-scheme:dark;--bg:#1a1028;--surface:#241636;--text:#f1eaff;--muted:#b4a6d0;--line:#3a2a55;--accent:#a78bfa;--on-accent:#1a1028;--gold:#d4b25f;--bad:#f97066;--hero-a:#2e1560;--hero-b:#4b2a8a;--hero-c:#7a5f1f}
html[data-mode="light"]{color-scheme:light;--bg:#f6f3fb;--surface:#fffdff;--text:#1f1730;--muted:#6b6280;--line:#e2dbef;--accent:#6d28d9;--on-accent:#fff;--gold:#a8832d;--bad:#b42318;--hero-a:#3b1a7a;--hero-b:#5b2bb0;--hero-c:#8a6a14}

/* Accent colours (violet is the default and needs no rule) */
html[data-accent="rose"][data-mode="dark"]{--accent:#fb7185}
html[data-accent="rose"][data-mode="light"]{--accent:#be123c}
html[data-accent="teal"][data-mode="dark"]{--accent:#2dd4bf}
html[data-accent="teal"][data-mode="light"]{--accent:#0f766e}
html[data-accent="blue"][data-mode="dark"]{--accent:#7ab0ff}
html[data-accent="blue"][data-mode="light"]{--accent:#1d4ed8}
html[data-accent="gold"][data-mode="dark"]{--accent:#e5c35f}
html[data-accent="gold"][data-mode="light"]{--accent:#8a6a14}

/* The home banner used fixed blue colours; it now follows the theme */
.hero-card{background:linear-gradient(135deg,var(--hero-a),var(--hero-b) 60%,var(--hero-c))}
.hero-card .btn{color:var(--hero-a)}
@supports (background:color-mix(in srgb,red,blue)){
  .hero-card{background:linear-gradient(135deg,color-mix(in srgb,var(--accent) 30%,#0b0614),color-mix(in srgb,var(--accent) 45%,#0b0614) 60%,var(--hero-c))}
  .hero-card .btn{color:color-mix(in srgb,var(--accent) 30%,#0b0614)}
}

/* Text size (scales the whole page, like browser zoom) */
html[data-size="large"] body{zoom:1.12}
html[data-size="xl"] body{zoom:1.25}

/* Font style */
html[data-font="serif"] body{font-family:Georgia,"Times New Roman",serif}
html[data-font="readable"] body{font-family:Verdana,Tahoma,"Segoe UI",sans-serif;letter-spacing:.01em}
