/* getbuck.me colour tokens, light and dark. Dark follows the system setting (prefers-color-scheme).
   Light is the in-game BuckMe ivory and lilac; dark is the same palette at night: a deep violet-tinted ground,
   lilac-tinted ivory for ink, and the brand violet lifted enough to read as text.
   Load after styles.css; site.css, landing.css and demo.css only read these. */

:root {
  color-scheme: light dark;
}

/* ---------- light ---------- */
:root,
.page {
  --ground: #e7e3dc;
  --sheet: #faf8f5;
  --ink: #221c27;
  --soft: #6f6874;
  --hair: #e6e0d9;
  --buck: #702cb3; /* violet used as text and thin accents */
  --card: #fff; /* raised surface on the sheet */
  --chip: #f1e9e0; /* quiet filled control */
  --chip-edge: #e1d6ca;
  --chip-hover: #ebe0d4;
  --veil: rgb(34 28 39 / 0.06); /* translucent ink: pills, hovers */
  --veil-strong: rgb(34 28 39 / 0.1);
  --veil-faint: rgb(34 28 39 / 0.04);
  --tint: rgb(112 44 179 / 0.08); /* translucent violet: inline code, callouts */
  --tint-strong: rgb(112 44 179 / 0.14);
  --code-ink: #4b2a73;
  --code-bg: #221c27; /* code blocks are dark in both themes */
  --table-head: #f6f2ec;
  --pill-hover: #000;
  --ring: #3f2c42; /* focus-style ring on selected chips */
  --notice-bg: rgb(255 255 255 / 0.84);
  --screen-ground: #ede4d9; /* behind app screenshots while they load */
  --err: #b3392f;
  --ok: #2f8f6b;
  --sheet-edge: rgb(255 255 255 / 0.8);
  --link: #5a289a;
  --link-hover: #2e1650;

  /* styles.css palette, used by the docs components */
  --paper: #f6f0e7;
  --paper-deep: #eee4d8;
  --lilac-soft: #efe5ea;
  --text: #42392f;
  --muted: #857b70;
  --line: #d9cfc3;
  --plum: #3f2c42;
  --violet-deep: #2e1650;
}

/* ---------- dark ---------- */
@media (prefers-color-scheme: dark) {
  :root,
  .page {
    --ground: #110c18;
    --sheet: #1a1224;
    --ink: #f1eaf7;
    --soft: #a99dba;
    --hair: #302540;
    --buck: #b890f2;
    --card: #251b32;
    --chip: #2a2037;
    --chip-edge: #3a2d4c;
    --chip-hover: #33273f;
    --veil: rgb(241 234 247 / 0.08);
    --veil-strong: rgb(241 234 247 / 0.14);
    --veil-faint: rgb(241 234 247 / 0.05);
    --tint: rgb(184 144 242 / 0.14);
    --tint-strong: rgb(184 144 242 / 0.22);
    --code-ink: #dcc6fb;
    --code-bg: #0f0a16;
    --table-head: #221a2d;
    --pill-hover: #fff;
    --ring: #b890f2;
    --notice-bg: rgb(37 27 50 / 0.84);
    --screen-ground: #241a30;
    --err: #ff8f84;
    --ok: #6fd1a6;
    --sheet-edge: rgb(255 255 255 / 0.06);
    --link: #c3a2f5;
    --link-hover: #f1eaf7;

    --paper: #1a1224;
    --paper-deep: #221a2d;
    --lilac-soft: #2a2037;
    --text: #cfc4dc;
    --muted: #a99dba;
    --line: #302540;
    --plum: #dcc6fb;
    --violet-deep: #e9dcfb;

    /* the BuckMe pay widget reads these */
    --buckme-surface: #1f1630;
    --buckme-ink: #f1eaf7;
  }
}
