/* Shared by the app and static site. Public delivery follows the source symlink. */
/* Baskerville's middle dot sits low and off-centre, opening a gap before “·” in
   titles; borrow only that glyph from the Charcoal display face. */
@font-face {
  font-family: "MH Display Dot";
  src: local("Iowan Old Style"), local("IowanOldStyle-Roman");
  unicode-range: U+00B7;
}
@layer base {
  /* Desk's type scale, one size per role in every appearance (roles:
     src/ui/AGENTS.md, "Type"; lint: desk-type). Here so the site's theme
     picker resolves it too. */
  :root {
    --mh-text-meta: 12px;
    --mh-text-body: 14px;
    --mh-text-title: 16px;
    --mh-text-heading: 20px;
    --mh-text-page: 24px;
    --mh-text-display: 32px;
  }

  :root,
  [data-mmui-theme="charcoal-paper"] {
    --mh-popover-radius: 10px;
    --mh-popover-shadow: 0 12px 36px rgb(0 0 0 / 0.2);
    --mh-paper: 18 18 16;
    --mh-charcoal: 29 27 24;
    --mh-graphite: 116 103 82;
    --mh-ash: 151 133 100;
    --mh-moon: 232 222 195;
    --mh-vellum: 206 190 151;
    --mh-eraser: 168 151 117;
    --mh-brass: 232 158 56;
    --mh-oxidized: 134 184 125;
    --mh-vermilion: 224 107 96;
    --mh-blueprint: 104 185 217;
    --mh-candle: 238 174 94;
    --mh-surface-alpha: 0.78;
    --mh-sheet-alpha: 0.82;
    --mh-rule-blend: screen;
    --mh-rule-opacity: 0.16;
    --mh-fiber-alpha: 0.048;
    --mh-brush-alpha: 0.12;
    --mh-construction-alpha: 0.032;
    --mh-stain-alpha: 0;
    --mh-wash-alpha: 0.62;
    --mh-lamp-alpha: 0.22;
    --mh-accent-mark-alpha: 0;
    --mh-shadow-draft:
      0 22px 68px rgb(0 0 0 / 0.5), inset 0 1px 0 rgb(var(--mh-candle) / 0.045);
    --mh-font-display: "Iowan Old Style", "Palatino", "Georgia", serif;
    --mh-font-ui:
      "Avenir Next", ui-sans-serif, system-ui, -apple-system,
      BlinkMacSystemFont, "Segoe UI", sans-serif;
    --mh-font-data:
      ui-monospace, "SFMono-Regular", "Menlo", "Monaco", "Consolas", monospace;
    color-scheme: dark;
  }

  [data-mmui-theme="architect-paper"] {
    --mh-popover-radius: 10px;
    --mh-popover-shadow: 0 12px 36px rgb(0 0 0 / 0.2);
    --mh-paper: 220 211 192;
    --mh-charcoal: 240 232 216;
    --mh-graphite: 103 91 72;
    --mh-ash: 82 72 56;
    --mh-moon: 45 39 30;
    --mh-vellum: 68 58 43;
    --mh-eraser: 82 70 52;
    --mh-brass: 128 65 16;
    --mh-oxidized: 27 100 73;
    --mh-vermilion: 160 32 50;
    --mh-blueprint: 7 91 99;
    --mh-candle: 238 174 94;
    --mh-surface-alpha: 0.72;
    --mh-sheet-alpha: 0.8;
    --mh-rule-blend: multiply;
    --mh-rule-opacity: 0.13;
    --mh-fiber-alpha: 0.068;
    --mh-brush-alpha: 0.034;
    --mh-construction-alpha: 0.064;
    --mh-stain-alpha: 0.13;
    --mh-wash-alpha: 0.025;
    --mh-lamp-alpha: 0;
    --mh-accent-mark-alpha: 0.09;
    --mh-shadow-draft:
      0 20px 54px rgb(92 78 48 / 0.14), inset 0 1px 0 rgb(255 255 255 / 0.3);
    --mh-font-display:
      "MH Display Dot", "Baskerville", "Hoefler Text", "Iowan Old Style",
      "Georgia", serif;
    --mh-font-ui:
      "Avenir Next", "Helvetica Neue", ui-sans-serif, system-ui, -apple-system,
      BlinkMacSystemFont, "Segoe UI", sans-serif;
    --mh-font-data:
      "SFMono-Regular", "Menlo", "Monaco", "Consolas", ui-monospace, monospace;
    color-scheme: light;
  }
}
