/* Design tokens.
 *
 * The first two blocks are copied from the Piper app's tokens
 * (src/renderer/src/tokens.css in the Piper repo), so the site and the app
 * share one look; the pages use the app's moss theme. Only the tokens the
 * site uses are kept. When the app's tokens change, copy the new values here.
 *
 * The last block holds the site's own tokens. */

:root {
  color-scheme: light dark;
  --paper: light-dark(#fbf8f1, #131614);
  --bone: light-dark(#f4f0e6, #191d1a);
  --bone-2: light-dark(#ece5d6, #222824);
  --surface: light-dark(#fffdf8, #1b201d);
  --ink: light-dark(#1a1712, #e9eae4);
  --ink-2: light-dark(#453e34, #c2c6bc);
  --muted: light-dark(#877e6d, #8a9089);
  --faint: light-dark(#a9a091, #71776f);
  --rule: light-dark(#ded5c3, #2c332e);
  --rule-soft: light-dark(#eae3d4, #232926);
  --accent: light-dark(#a03a22, #b4552e);
  --accent-hover: light-dark(#8d3019, #c66235);
  --accent-tint: light-dark(#f2e3da, #302b25);
  --accent-ink: light-dark(#6b2314, #e9eae4);
  --on-accent: light-dark(#fdf6f0, #fbf3ec);
  --mark-from: light-dark(#a03a22, #b4552e);
  --mark-to: light-dark(#c86a3b, #d98555);
  --ok: light-dark(#3f5d4a, #8fb98a);
  --danger: light-dark(#8c2f1d, #dd8c74);
  --viz-1: light-dark(#bf6a37, #a5a2ff);
  --viz-2: light-dark(#5b8c4f, #5eead4);
  --viz-3: light-dark(#4a6fa5, #fbbf24);
  --viz-5: light-dark(#7d6b9e, #c4b5fd);
  --viz-6: light-dark(#3e7d75, #86efac);
  --viz-7: light-dark(#a9772b, #7dd3fc);
  --shadow: light-dark(26 23 18, 0 0 0);
  --r-sm: 9px;
  --r-md: 14px;
  --r-lg: 18px;
  --display: 'Bricolage Grotesque', system-ui, sans-serif;
  --ui: 'Instrument Sans', system-ui, sans-serif;
  --display-weight: 550;
  --t-title: 22px;
  --t-ui: 13px;
  --t-sm: 11.5px;
  --t-xs: 10px;
  --t-micro: 9.5px;
  --s-1: 4px;
  --s-2: 8px;
  --s-3: 12px;
  --s-4: 16px;
  --s-5: 24px;
}
:root[data-theme='moss'] {
  color-scheme: light;
  --paper: #f8f8f3;
  --bone: #eef0e8;
  --bone-2: #e3e7db;
  --surface: #fdfdf9;
  --ink: #1a1f19;
  --ink-2: #3f4a3d;
  --muted: #79826f;
  --faint: #a5ac9c;
  --rule: #d8ddcd;
  --rule-soft: #e7ebdf;
  --accent: #b4552e;
  --accent-hover: #9a4523;
  --accent-tint: #f4e5dc;
  --accent-ink: #7a3419;
  --on-accent: #fdf8f4;
  --ok: #3c6b4a;
  --danger: #8c2f1d;
  --viz-1: #b4552e;
  --viz-2: #5b8c4f;
  --viz-3: #4a6fa5;
  --viz-5: #7d6b9e;
  --viz-6: #3e7d75;
  --viz-7: #a9772b;
  --shadow: 26 31 25;
}

/* The site's own tokens. */
:root {
  /* The white behind app logos and source icons on cards. */
  --logo-tile: #fdfdfb;
  --icon-tile: #fff;

  /* The dark bands ("Delegate anything", "Piper is free"). */
  --dark-paper: #121513;
  --dark-surface: #1b201d;
  --dark-ink: #eceee7;
  --dark-ink-2: #c2c6bc;
  --dark-muted: #8d938b;
  --dark-rule: #2e3530;
  --dark-rule-soft: #242a26;
  --dark-accent: #e0794a;
  --dark-accent-hover: #f3a17c;
  --dark-accent-soft: #eea07c;
  --dark-accent-soft-hover: #f4ad8c;
}
