/* ==========================================================================
   Colour themes  (switch with <html data-theme="...">; default = sunset)
   ========================================================================== */
:root[data-theme="copper"] {
  --ink:#1A1512; --ink-0:#130F0D; --ink-2:#211A16; --ink-3:#2A221D; --ink-4:#362C25; --hero-glow:#7A3A1A;
  --ink-rgb:26,21,18; --ink3-rgb:42,34,29;
  --sun-1:#F2AC48; --sun-2:#D4762A; --sun-3:#B8501C; --sun1-rgb:242,172,72; --sun2-rgb:212,118,42; --sun3-rgb:184,80,28;
  --accent-ink:#9A3C16;
}
:root[data-theme="gold"] {
  --ink:#121110; --ink-0:#0C0B0A; --ink-2:#1A1816; --ink-3:#232019; --ink-4:#2E2A21; --hero-glow:#5C4824;
  --cream:#F6F0E2; --cream-2:#ECE3CF; --cream-3:#DFD3B8; --cream-rgb:246,240,226;
  --ink-rgb:18,17,16; --ink3-rgb:35,32,25;
  --sun-1:#F6E7BE; --sun-2:#D9B26A; --sun-3:#A97C2F; --sun1-rgb:246,231,190; --sun2-rgb:217,178,106; --sun3-rgb:169,124,47;
  --accent-ink:#85601C;
}
:root[data-theme="forest"] {
  --ink:#0F1A14; --ink-0:#0A120E; --ink-2:#14221A; --ink-3:#1B2D22; --ink-4:#253B2D; --hero-glow:#2F5A3E;
  --cream:#F0ECDD; --cream-2:#E4DFCB; --cream-3:#D5CFB6; --cream-rgb:240,236,221;
  --ink-rgb:15,26,20; --ink3-rgb:27,45,34;
  --sun-1:#F6D26B; --sun-2:#E9A23B; --sun-3:#C9742A; --sun1-rgb:246,210,107; --sun2-rgb:233,162,59; --sun3-rgb:201,116,42;
  --accent-ink:#9C5A1C; --muted:#A8B0A2;
}
:root[data-theme="terracotta"] {
  --ink:#1E1512; --ink-0:#150E0C; --ink-2:#271B17; --ink-3:#32231D; --ink-4:#402E26; --hero-glow:#8A4A32;
  --cream:#F7EEE3; --cream-2:#EDE0CF; --cream-3:#E0CFB8; --cream-rgb:247,238,227;
  --ink-rgb:30,21,18; --ink3-rgb:50,35,29;
  --sun-1:#F0B27A; --sun-2:#E07A4F; --sun-3:#C4492F; --sun1-rgb:240,178,122; --sun2-rgb:224,122,79; --sun3-rgb:196,73,47;
  --accent-ink:#A33A22;
}
:root[data-theme="rose"] {
  --ink:#1A1218; --ink-0:#120C10; --ink-2:#221820; --ink-3:#2C1F29; --ink-4:#392935; --hero-glow:#7A3A58;
  --ink-rgb:26,18,24; --ink3-rgb:44,31,41;
  --sun-1:#F7C6A3; --sun-2:#EE8E7A; --sun-3:#D4587A; --sun1-rgb:247,198,163; --sun2-rgb:238,142,122; --sun3-rgb:212,88,122;
  --accent-ink:#A8344F;
}
:root[data-theme="sand"] {
  --ink:#1B1A17; --ink-0:#12110F; --ink-2:#23211D; --ink-3:#2D2A25; --ink-4:#3A362F; --hero-glow:#6E5A3C;
  --cream:#F5EFE4; --cream-rgb:245,239,228;
  --ink-rgb:27,26,23; --ink3-rgb:45,42,37;
  --sun-1:#E8D5A8; --sun-2:#C9A06A; --sun-3:#9C6B3C; --sun1-rgb:232,213,168; --sun2-rgb:201,160,106; --sun3-rgb:156,107,60;
  --accent-ink:#7E5226;
}

/* ---------- Theme picker ---------- */
.themepick { position: fixed; left: 18px; bottom: 18px; z-index: 300; font-family: var(--sans); }
.themepick__btn {
  width: 48px; height: 48px; border-radius: 50%; border: 1px solid rgba(var(--cream-rgb), .35);
  background: rgba(var(--ink-rgb), .85); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  display: grid; place-items: center; cursor: pointer; transition: transform .3s var(--ease);
}
.themepick__btn:hover { transform: scale(1.08); }
.themepick__btn span { width: 22px; height: 22px; border-radius: 50%; background: var(--grad-diag); display: block; }
.themepick__panel {
  position: absolute; left: 0; bottom: 60px; width: 250px; padding: 14px; border-radius: 16px;
  background: rgba(var(--ink-rgb), .94); border: 1px solid rgba(var(--cream-rgb), .16); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  display: none; box-shadow: 0 24px 60px -20px rgba(0,0,0,.7);
}
.themepick.is-open .themepick__panel { display: block; }
.themepick__title { font-size: 11px; letter-spacing: .24em; text-transform: uppercase; color: rgba(var(--cream-rgb), .6); margin: 0 0 10px; }
.themepick__opt {
  display: flex; align-items: center; gap: 12px; width: 100%; padding: 8px 10px; border-radius: 10px; border: 1px solid transparent;
  background: transparent; color: var(--cream); font: inherit; font-size: 14px; cursor: pointer; text-align: left;
}
.themepick__opt:hover { background: rgba(var(--cream-rgb), .07); }
.themepick__opt[aria-pressed="true"] { border-color: rgba(var(--cream-rgb), .4); }
.themepick__sw { width: 34px; height: 20px; border-radius: 10px; flex: none; border: 1px solid rgba(255,255,255,.18); }
