/* MakerMoe ink-wash theme
   Semantic tokens remain compatible with the editor while the surfaces move
   from neutral workbench chrome to rice paper, soot ink and cinnabar accents. */
:root {
  --inkwash-paper: #eee9dc;
  --inkwash-paper-raised: #f8f4e9;
  --inkwash-paper-deep: #ddd5c4;
  --inkwash-soot: #171813;
  --inkwash-graphite: #69675e;
  --inkwash-cinnabar: #a33a2d;
  --inkwash-moss: #626b58;
  --bg: #eee9dc;
  --bg-deep: #ddd5c4;
  --ink: #171813;
  --muted: #69675e;
  --line: rgba(23, 24, 19, 0.17);
  --card: rgba(248, 244, 233, 0.93);
  --accent: #a33a2d;
  --accent-soft: rgba(163, 58, 45, 0.1);
  --composition-ruler-bg: rgba(242, 237, 224, 0.94);
  --editor-paper: #f8f4e9;
  --editor-paper-muted: #e7e0d1;
  --editor-sidebar-background:
    radial-gradient(circle at 0 100%, color-mix(in srgb, var(--ink) 6%, transparent), transparent 31%),
    repeating-linear-gradient(2deg, transparent 0 8px, color-mix(in srgb, var(--ink) 2%, transparent) 8px 9px),
    color-mix(in srgb, var(--editor-paper) 97%, transparent);
  --editor-canvas-bg: #cbc4b6;
  --editor-canvas-grid: rgba(42, 43, 35, 0.075);
  --editor-wood-grain: rgba(105, 75, 43, 0.045);
  --app-shell-background:
    radial-gradient(circle at 8% 12%, rgba(48, 51, 41, 0.11), transparent 21%),
    radial-gradient(circle at 88% 82%, rgba(48, 51, 41, 0.08), transparent 23%),
    repeating-linear-gradient(3deg, transparent 0 7px, var(--editor-wood-grain) 7px 8px),
    linear-gradient(130deg, rgba(255, 255, 255, 0.25), transparent 43%),
    var(--bg);
  --editor-scrollbar-thumb: rgba(23, 24, 19, 0.32);
  --editor-scrollbar-thumb-hover: rgba(23, 24, 19, 0.52);
  --editor-scrollbar-thumb-active: rgba(163, 58, 45, 0.72);
  --shadow: 0 24px 58px rgba(45, 42, 33, 0.16);
  font-family: var(--type-font-body);
  background:
    radial-gradient(circle at 12% 14%, rgba(54, 57, 46, 0.09), transparent 23%),
    radial-gradient(circle at 84% 78%, rgba(54, 57, 46, 0.075), transparent 21%),
    repeating-linear-gradient(4deg, transparent 0 8px, rgba(62, 57, 44, 0.024) 8px 9px),
    var(--bg);
}

:root[data-theme="dark"] {
  --inkwash-paper: #10110e;
  --inkwash-paper-raised: #1b1d17;
  --inkwash-paper-deep: #080906;
  --inkwash-soot: #eee9dc;
  --inkwash-graphite: #aaa697;
  --inkwash-cinnabar: #c45b49;
  --inkwash-moss: #87907a;
  --bg: #10110e;
  --bg-deep: #080906;
  --ink: #eee9dc;
  --muted: #aaa697;
  --line: rgba(238, 233, 220, 0.16);
  --card: rgba(27, 29, 23, 0.94);
  --accent: #c45b49;
  --accent-soft: rgba(196, 91, 73, 0.13);
  --composition-ruler-bg: rgba(24, 26, 21, 0.95);
  --editor-paper: #1b1d17;
  --editor-paper-muted: #292b23;
  --editor-sidebar-background:
    radial-gradient(circle at 0 100%, rgba(238, 233, 220, 0.04), transparent 31%),
    repeating-linear-gradient(2deg, transparent 0 8px, rgba(238, 233, 220, 0.012) 8px 9px),
    rgba(24, 26, 21, 0.98);
  --editor-canvas-bg: #0c0d0a;
  --editor-canvas-grid: rgba(238, 233, 220, 0.065);
  --editor-wood-grain: rgba(205, 158, 103, 0.065);
  --app-shell-background:
    radial-gradient(circle at 88% 13%, rgba(238, 233, 220, 0.055), transparent 22%),
    repeating-linear-gradient(3deg, transparent 0 8px, var(--editor-wood-grain) 8px 9px),
    linear-gradient(180deg, rgba(22, 24, 19, 0.98), rgba(8, 9, 6, 0.98)),
    var(--bg);
  --editor-scrollbar-thumb: rgba(238, 233, 220, 0.3);
  --editor-scrollbar-thumb-hover: rgba(238, 233, 220, 0.5);
  --editor-scrollbar-thumb-active: rgba(196, 91, 73, 0.78);
  --shadow: 0 24px 58px rgba(0, 0, 0, 0.46);
  background:
    radial-gradient(circle at 86% 18%, rgba(238, 233, 220, 0.055), transparent 22%),
    repeating-linear-gradient(4deg, transparent 0 8px, rgba(238, 233, 220, 0.012) 8px 9px),
    var(--bg);
}
