/*
 * Amethyst edition: the site's green re-pointed at violet so the purple
 * glitter belongs to the page instead of sitting on top of it. Only the
 * colour changes; layout, type and the gold clock rim stay as they are
 * (gold on violet is the classic pairing, and it keeps the timepiece warm).
 *
 * Active while <html data-palette="amethyst">. Same structure as the
 * "Premium timepiece edition" block it overrides: light tokens, then the
 * dark set twice (explicit choice, and OS dark with no choice made).
 */
:root[data-palette="amethyst"] {
  --paper: #f8f5fc;
  --ink: #2c1d45;
  --muted: #6c6280;
  --rust: #6a3fa6;
  --line: #2c1d4524;
  --surface-deep: #2a1747;
  --surface-deep-2: #3b2462;
  --premium-card: #fefcff;
  --premium-soft: #efe8f8;
  --premium-gold: #8a6c36;
  --t-fdf9f3: #fefcff;
  --t-fffdfa: #f3eefa;
  --t-f6ebdf: #f1ebf9;
  --t-fff6ed: #e9e0f5;
  --t-ecdfd0: #eee8f6;
  --t-6d302b-20: #2c1d4520;
  --t-6d302b-16: #2c1d4516;
  --t-6d302b-33: #2c1d4533;
  --t-6d302b-35: #2c1d4535;
  --t-6d302b: #2c1d45;
  --t-b07a5f: #7a5aa8;
  --t-927265: #6c6280;
  --t-eac8b1: #ddd0f0;
  /* the original greens used for small accents (dots, ticks, labels) */
  --t-3b5b37: #4a2f78;
  --t-516d3b: #5b3b8c;
  --t-647c4a: #7550a8;
  --t-678156: #7a5aa8;
  --t-738165: #85739e;
  --t-cdd5ba: #ddd0f0;
  --on-warm: #2c1d45;
  --on-warm-muted: #5e5476;
  --am-button: #3f2770;
  --am-button-hover: #56379a;
  --am-dot: #8b63c9;
  --am-dial: radial-gradient(ellipse at 32% 20%, #4d3678, #28164d 52%, #150a2e);
  --am-dial-shadow: #0d0620;
}
:root[data-palette="amethyst"][data-theme="dark"] {
  --paper: #130c1f; --ink: #ede7f6; --muted: #b5aac8; --rust: #c8b2f0;
  --line: #e4d9f526; --premium-card: #1e1530; --premium-soft: #221838;
  --premium-gold: #d5bd87; --surface-deep: #0d0818; --surface-deep-2: #2e1f4a;
  --t-fdf9f3: #1c1430; --t-fffdfa: #2a1f42; --t-f6ebdf: #251b3b; --t-fff6ed: #31244d;
  --t-ecdfd0: #181026; --t-6d302b: #ede7f6; --t-6d302b-20: #e2d6f520;
  --t-6d302b-16: #e2d6f516; --t-6d302b-33: #e2d6f533; --t-6d302b-35: #e2d6f535;
  --t-b07a5f: #c4adeb; --t-927265: #b5aac8; --t-eac8b1: #3d2a5e;
  --t-3b5b37: #d4c4f2; --t-516d3b: #cbb8ee; --t-647c4a: #a385d6; --t-678156: #a88bd8; --t-738165: #9d8fb5; --t-cdd5ba: #3a2a55;
  --on-warm: #ede7f6; --on-warm-muted: #b5aac8;
  --am-button: #4a2f80; --am-button-hover: #6040a8; --am-dot: #a98be0;
}
@media (prefers-color-scheme: dark) {
  :root[data-palette="amethyst"]:not([data-theme="light"]) {
    --paper: #130c1f; --ink: #ede7f6; --muted: #b5aac8; --rust: #c8b2f0;
    --line: #e4d9f526; --premium-card: #1e1530; --premium-soft: #221838;
    --premium-gold: #d5bd87; --surface-deep: #0d0818; --surface-deep-2: #2e1f4a;
    --t-fdf9f3: #1c1430; --t-fffdfa: #2a1f42; --t-f6ebdf: #251b3b; --t-fff6ed: #31244d;
    --t-ecdfd0: #181026; --t-6d302b: #ede7f6; --t-6d302b-20: #e2d6f520;
    --t-6d302b-16: #e2d6f516; --t-6d302b-33: #e2d6f533; --t-6d302b-35: #e2d6f535;
    --t-b07a5f: #c4adeb; --t-927265: #b5aac8; --t-eac8b1: #3d2a5e;
    --t-3b5b37: #d4c4f2; --t-516d3b: #cbb8ee; --t-647c4a: #a385d6; --t-678156: #a88bd8; --t-738165: #9d8fb5; --t-cdd5ba: #3a2a55;
    --on-warm: #ede7f6; --on-warm-muted: #b5aac8;
    --am-button: #4a2f80; --am-button-hover: #6040a8; --am-dot: #a98be0;
  }
}

/* The premium block hardcodes its greens; re-point each one. */
[data-palette="amethyst"] ::selection { background: #dccdf3; color: #24143f; }
[data-palette="amethyst"] .button,
[data-palette="amethyst"] .demo-punch {
  background: var(--am-button); border-color: var(--am-button);
  box-shadow: 0 5px 14px #3f277022;
}
[data-palette="amethyst"] .button:hover {
  background: var(--am-button-hover); border-color: var(--am-button-hover);
  box-shadow: 0 8px 20px #3f277040;
}
[data-palette="amethyst"] .eyebrow i { background: var(--am-dot); box-shadow: 0 0 0 4px #8b63c91c; }
[data-palette="amethyst"] .live-dot { background: var(--am-dot); box-shadow: 0 0 0 4px #8b63c91c; }
[data-palette="amethyst"] .clock-disc {
  background: var(--am-dial);
  box-shadow: 0 0 0 1px #f7e8be, 0 0 0 3px #8b754b, 0 0 0 7px #d6c596, 0 0 0 9px #97814f,
    0 28px 42px -15px #2a17474a, inset 0 0 0 1px #f2d89777, inset 0 0 25px var(--am-dial-shadow);
}
[data-palette="amethyst"] .cicada-jewel { filter: drop-shadow(0 8px 6px #0d062073); }
[data-palette="amethyst"] .clock-hand { box-shadow: 0 2px 3px #0d0620cc; }
[data-palette="amethyst"] .clock-pin { background: #2c1d45; box-shadow: 0 1px 3px #0d0620; }
[data-palette="amethyst"] .demo-window { box-shadow: 0 28px 65px -30px #2a174750; }
[data-palette="amethyst"] .detail-grid p { color: #cbbfdc; }
[data-palette="amethyst"] .cc-details { color: #f5f0fa; }
[data-palette="amethyst"] .compare-scroll { box-shadow: 0 20px 50px -30px #2a174725; }
