/* waterrise — its own planning pages (waterrise/static/app.css): this site's
 * home look, quiet paper and a serif for what people read, with waterrise's
 * blue as the one accent; Geist for the interface and Geist Mono for ids,
 * 10px cards and 999px badges, hairlines and no shadows. Structure comes from
 * system.css; this file sets the palette, the fonts, the mark and the radii,
 * and no lattice, because waterrise's pages are flat.
 *
 * Its pages are dark by default and light on request; here they follow the
 * reader's preference like every other theme.
 */

@import url("system.css");

:root {
  --bg: #f5f6f8;
  --surface: #ffffff;
  --surface-2: #eceef2;
  --tint-border: #dde0e6;
  --fg: #121417;
  --muted: #5b616c;
  --border: #dde0e6;
  --accent: #2f5bd3;
  --accent-fg: #ffffff;
  --accent-soft: #e8eefc;
  --accent-line: #a9bdf0;
  --link: #2f5bd3;
  --selection: #c9d6f7;
  --code-bg: #eceef2;
  --code-fg: #2f5bd3;
  --pre-bg: #ffffff;
  --note: #2f5bd3;
  --tip: #2e7d4f;
  --warn: #8a5a00;
  --danger: #b3261e;
  --hl-keyword: #2f5bd3;
  --hl-string: #2e7d4f;
  --hl-number: #7a3fb0;
  --hl-comment: #8a909b;
  --hl-type: #8a5a00;
  --hl-call: #121417;
  --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: 10px;
  --radius-lg: 12px;
  --pattern: none;
  --mark: url("marks/waterrise-icon.svg");
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1115;
    --surface: #161920;
    --surface-2: #1c2029;
    --tint-border: #262a33;
    --fg: #eceef2;
    --muted: #9aa1ad;
    --border: #262a33;
    --accent: #7ea2ff;
    --accent-fg: #0b1020;
    --accent-soft: #232c44;
    --accent-line: #3b4d7d;
    --link: #7ea2ff;
    --selection: #2b3a63;
    --code-bg: #1c2029;
    --code-fg: #a9c0ff;
    --pre-bg: #12141a;
    --note: #7ea2ff;
    --tip: #6cc596;
    --warn: #e0b35a;
    --danger: #ff8a80;
    --hl-keyword: #7ea2ff;
    --hl-string: #6cc596;
    --hl-number: #c79bf2;
    --hl-comment: #6b7280;
    --hl-type: #e0b35a;
    --hl-call: #eceef2;
    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; waterrise's own pages are flat. */
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 10px 10px 0; }
