/* The shared look's tokens: type roles and the ink-and-paper palette, no accent.
   Both themes are untinted neutrals: dark is the light theme inverted.
   Light is the default. Dark applies under prefers-color-scheme unless the page says
   data-theme="light", under data-theme="dark", and under Zensical's slate scheme.
   Zensical puts data-md-color-scheme on <body>, so its choice overrides :root's. */
:root {
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --title-font: "Forum", var(--serif);
  --logo-font: "Source Serif 4", var(--serif);
  --caption-font: "Source Serif 4", var(--serif);
  --ui-font: "Source Sans 3", var(--sans);
  --mono-font: "Source Code Pro", var(--mono);
}

:root,
[data-md-color-scheme="default"] {
  --bg: #ffffff;
  --fg: #1a1a1a;
  --muted: #6b6b6b;
  --rule: #e5e5e5;
  --ph: #f1f1f1;
  --edge: rgba(0, 0, 0, .13);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #161616;
    --fg: #e8e8e8;
    --muted: #9e9e9e;
    --rule: #333333;
    --ph: #242424;
    --edge: rgba(255, 255, 255, .14);
  }
}

:root[data-theme="dark"],
[data-md-color-scheme="slate"] {
  --bg: #161616;
  --fg: #e8e8e8;
  --muted: #9e9e9e;
  --rule: #333333;
  --ph: #242424;
  --edge: rgba(255, 255, 255, .14);
}
