/*
 * Scaffale: a library for a site that holds many campaigns. Walnut behind
 * the page, an ink-dark header, parchment and brass. Each campaign brings
 * its own colour through extra.ttrpg.bindings, as a book brings its
 * binding to the shelf; this palette is what the pages share.
 *
 * Made for GiDiErre, an anthology of campaigns in different systems.
 * Pairs with Cormorant SC (700) for headings, Alegreya for text,
 * `sidebar: true` and `shelf: true` on the home page.
 */

/* ---------- Light scheme ---------- */
[data-md-color-scheme="default"] {
  --ttrpg-paper: #f3ead6;
  --ttrpg-ink: #2a2018;
  --ttrpg-ink-rgb: 42, 32, 24;
  --ttrpg-muted: #6c5d4c;
  --ttrpg-head: #5e3a1c;
  --ttrpg-strong: #5e3a1c;
  --ttrpg-brass: #a8823f;
  --ttrpg-box: #e9dcc0;
  --ttrpg-rule: #c2a066;
  --ttrpg-bar: #1b130d;
  --ttrpg-bar-ink: #efe3c8;
  --ttrpg-backdrop-1: #4b3121;
  --ttrpg-backdrop-2: #170e08;
  --ttrpg-grain: 0.45;
  --ttrpg-grain-blend: multiply;
}

/* ---------- Dark scheme ---------- */
[data-md-color-scheme="slate"] {
  --ttrpg-paper: #1d1813;
  --ttrpg-ink: #e8dcc5;
  --ttrpg-ink-rgb: 232, 220, 197;
  --ttrpg-muted: #a8977f;
  --ttrpg-head: #d9b878;
  --ttrpg-strong: #e2c48a;
  --ttrpg-brass: #c9a35a;
  --ttrpg-box: #2a221a;
  --ttrpg-rule: #7d6136;
  --ttrpg-bar: #0d0805;
  --ttrpg-bar-ink: #eadcc0;
  --ttrpg-backdrop-1: #2d1d12;
  --ttrpg-backdrop-2: #060302;
  --ttrpg-grain: 0.18;
  --ttrpg-grain-blend: overlay;
  --ttrpg-vignette: rgba(0, 0, 0, 0.35);
  --ttrpg-lift: rgba(0, 0, 0, 0.6);
}

/* ---------- Both schemes ---------- */
[data-md-color-scheme="default"],
[data-md-color-scheme="slate"] {
  /* Scene breaks: a hedera, then a four-petalled flower. */
  --ttrpg-ornament-1: "\2767";
  --ttrpg-ornament-2: "\2725";

  /* Walnut behind the page: long grain in planks. Generated in the browser,
     nothing to download. */
  --ttrpg-backdrop-texture: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='640' height='180'%3E%3Cfilter id='w' x='0' y='0' width='100%25' height='100%25'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.0035 0.11' numOctaves='4' seed='11' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.05 0 0 0 0 0.02 0 0 0 0 0 0 0 0 1.25 -0.5'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23w)'/%3E%3Crect y='178' width='100%25' height='2' fill='%23000' fill-opacity='.35'/%3E%3C/svg%3E");
  --ttrpg-backdrop-size: 640px 180px;
}
