/* butler — a harness, and dressed like one: ivory paper, ink, and a claret
 * accent like the bow tie in its mark; a serif for what people read, Geist for
 * the interface and Geist Mono for commands. Structure comes from system.css;
 * this file sets the palette, the fonts, the mark and the radii, and no
 * lattice, because a page of commands reads best flat.
 */

@import url("system.css");

:root {
  --bg: #f6f3ec;
  --surface: #fffdf8;
  --surface-2: #ede8dd;
  --tint-border: #ddd6c8;
  --fg: #1b1a17;
  --muted: #615b51;
  --border: #ddd6c8;
  --accent: #9b1c31;
  --accent-fg: #ffffff;
  --accent-soft: #f6e4e6;
  --accent-line: #dca5ae;
  --link: #9b1c31;
  --selection: #efcdd2;
  --code-bg: #ede8dd;
  --code-fg: #7d1627;
  --pre-bg: #fffdf8;
  --note: #9b1c31;
  --tip: #2e6b48;
  --warn: #8a5a00;
  --danger: #b3261e;
  --hl-keyword: #9b1c31;
  --hl-string: #2e6b48;
  --hl-number: #6b3fa0;
  --hl-comment: #8c857a;
  --hl-type: #8a5a00;
  --hl-call: #1b1a17;
  --font-body: Charter, "Bitstream Charter", "Sitka Text", Cambria, "Iowan Old Style", Georgia, serif;
  --font-ui: "Geist", system-ui, sans-serif;
  --font-head: var(--font-body);
  --body-size: 1.0625rem;
  --head-weight: 700;
  --head-track: -0.02em;
  --radius: 8px;
  --radius-lg: 10px;
  --pattern: none;
  --mark: url("marks/butler-icon.svg");
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #141311;
    --surface: #1c1a17;
    --surface-2: #24221e;
    --tint-border: #33302a;
    --fg: #ece7dd;
    --muted: #a39c90;
    --border: #33302a;
    --accent: #f07a8c;
    --accent-fg: #1f0a0e;
    --accent-soft: #3a2026;
    --accent-line: #6e3540;
    --link: #f07a8c;
    --selection: #5a2a33;
    --code-bg: #24221e;
    --code-fg: #f5a3af;
    --pre-bg: #181614;
    --note: #f07a8c;
    --tip: #7cc49a;
    --warn: #e0b35a;
    --danger: #ff8a80;
    --hl-keyword: #f07a8c;
    --hl-string: #7cc49a;
    --hl-number: #c79bf2;
    --hl-comment: #7a7368;
    --hl-type: #e0b35a;
    --hl-call: #ece7dd;
    color-scheme: dark;
  }
}

/* The icon carries its own tile, so it does not sit on the system's chip. */
.bar-mark {
  width: 1.75rem; height: 1.75rem; border: 0; border-radius: 6px;
  background: var(--mark) center / contain no-repeat;
}

/* No lattice behind the project page. */
body[data-kind="site"] main::before { display: none; }

.prose pre, .prose .table-wrap { border-radius: 8px; }
.prose code { border-radius: 5px; }
.callout, .prose blockquote, .version-banner { border-radius: 0 8px 8px 0; }
