/* Blackfyre for Obsidian: a colour theme, dark and light. Fonts and layout stay Obsidian's. */
/* Dark: ink surfaces, paper text, signal orange for the accent, Tokyo Night for code and callouts. */
/* Light: paper surfaces, ink text, signal on paper for links, Tokyo Night Day for code and callouts,
   darkened to 4.5:1 on paper. */

.theme-dark,
.theme-light {
  --accent-h: 17;
  --accent-s: 77%;
  --accent-l: 50%;
  --interactive-accent: #e2551d;
  --interactive-accent-hover: #ea6630;
  --text-on-accent: #1b1b19;
  --text-on-accent-inverted: #f3f2ee;
  --caret-color: #e2551d;
  --text-selection: rgba(226, 85, 29, 0.3);
  --text-highlight-bg: rgba(226, 85, 29, 0.25);
  --tag-background: rgba(226, 85, 29, 0.12);
  --tag-background-hover: rgba(226, 85, 29, 0.2);
  --tag-border-color: rgba(226, 85, 29, 0.3);
  --tag-border-color-hover: rgba(226, 85, 29, 0.5);
}

.theme-dark {
  --color-base-00: #1b1b19;
  --color-base-05: #1e1e1c;
  --color-base-10: #242421;
  --color-base-20: #242421;
  --color-base-25: #2c2c29;
  --color-base-30: #3a3935;
  --color-base-35: #4a4944;
  --color-base-40: #5e5c56;
  --color-base-50: #8f8c84;
  --color-base-60: #a19e96;
  --color-base-70: #c9c6bf;
  --color-base-100: #f3f2ee;

  --color-red: #ff6a4c;
  --color-red-rgb: 255, 106, 76;
  --color-orange: #ff8a4c;
  --color-orange-rgb: 255, 138, 76;
  --color-yellow: #e0af68;
  --color-yellow-rgb: 224, 175, 104;
  --color-green: #9ece6a;
  --color-green-rgb: 158, 206, 106;
  --color-cyan: #7dcfff;
  --color-cyan-rgb: 125, 207, 255;
  --color-blue: #7aa2f7;
  --color-blue-rgb: 122, 162, 247;
  --color-purple: #bb9af7;
  --color-purple-rgb: 187, 154, 247;

  --text-accent: #ff8a4c;
  --text-accent-hover: #f3f2ee;

  --code-background: #121211;
  --code-normal: #e6e4df;
  --code-comment: #8f8c84;
  --code-function: #7aa2f7;
  --code-important: #ff8a4c;
  --code-keyword: #bb9af7;
  --code-operator: #a19e96;
  --code-property: #7dcfff;
  --code-punctuation: #a19e96;
  --code-string: #9ece6a;
  --code-tag: #e2551d;
  --code-value: #ff8a4c;
}

.theme-light {
  --color-base-00: #f3f2ee;
  --color-base-05: #f3f2ee;
  --color-base-10: #e6e4df;
  --color-base-20: #e6e4df;
  --color-base-25: #dedbd4;
  --color-base-30: #d3d0c9;
  --color-base-35: #bfbbb3;
  --color-base-40: #b9b5ad;
  --color-base-50: #68665f;
  --color-base-60: #5e5c56;
  --color-base-70: #4a4944;
  --color-base-100: #1b1b19;

  --color-red: #c2301f;
  --color-red-rgb: 194, 48, 31;
  --color-orange: #a3390c;
  --color-orange-rgb: 163, 57, 12;
  --color-yellow: #7c5f36;
  --color-yellow-rgb: 124, 95, 54;
  --color-green: #4e6a32;
  --color-green-rgb: 78, 106, 50;
  --color-cyan: #006283;
  --color-cyan-rgb: 0, 98, 131;
  --color-blue: #1e5abb;
  --color-blue-rgb: 30, 90, 187;
  --color-purple: #7a3fd0;
  --color-purple-rgb: 122, 63, 208;

  --text-accent: #a3390c;
  --text-accent-hover: #1b1b19;

  --code-background: #e6e4df;
  --code-normal: #33322e;
  --code-comment: #68665f;
  --code-function: #1e5abb;
  --code-important: #a3390c;
  --code-keyword: #7a3fd0;
  --code-operator: #5e5c56;
  --code-property: #006283;
  --code-punctuation: #5e5c56;
  --code-string: #4e6a32;
  --code-tag: #a3390c;
  --code-value: #a3390c;
}

/* List bullets in signal orange, as the site marks its lists. */
.markdown-rendered .list-bullet::after,
.cm-formatting-list-ul .list-bullet::after {
  background-color: var(--interactive-accent);
}
