/* Shared design tokens: colours, type, motion. Every stylesheet builds on these. */
:root {
  /* 墨 — the darkest tones are a warm plum-charcoal, never pure black */
  --sumi: #3d3338;
  --sumi-soft: #5a4d54;
  --kon: #3b3a5a;
  --kon-deep: #2c2b45;
  --ai: #6d7fae;
  --ai-light: #9fb0d6;

  /* 薄紅 — rose is the accent: seals, markers, primary buttons */
  --shu: #d4687c;
  --shu-bright: #e88ea0;
  --beni: #b34d66;

  /* 霞 — the dawn haze that frames the pages (sidebar, opening curtain) */
  --kasumi-top: #fdeef0;
  --kasumi-mid: #f8e1ea;
  --kasumi-low: #e9e0f4;
  --kasumi-edge: #d9c7e6;

  /* legacy frame names, kept so older rules resolve to the new haze */
  --torii: #e7a3b5;
  --torii-light: #f4c6d2;
  --torii-deep: #c9788f;
  --urushi: #6b5560;

  /* 金 — champagne gold leaf */
  --kin: #cfae78;
  --kin-light: #f3e3bf;
  --kin-deep: #a5854f;
  --kin-foil: linear-gradient(135deg, #a5854f 0%, #f3e3bf 28%, #d9b98a 52%, #fbefd3 74%, #b8976a 100%);
  --kin-rose: linear-gradient(135deg, #c98a8f 0%, #f6d9cf 30%, #e2b29c 55%, #fbe6dc 78%, #c9958a 100%);
  /* the same foils, deep enough to read as lettering on pale paper */
  --kin-ink: linear-gradient(135deg, #8a6a3a 0%, #c4a168 30%, #9c7b45 55%, #caa973 78%, #86673a 100%);
  --rose-ink: linear-gradient(135deg, #a4566a 0%, #cc8a80 32%, #ad6278 58%, #c68d70 82%, #9a5064 100%);

  /* 白木 — pale wood for beams and rods */
  --wood-pale: #f8efe2;
  --wood-mid: #ead9c2;
  --wood-deep: #cdb497;

  /* 和紙 — paper */
  --washi: #faf5ee;
  --washi-deep: #f0e7da;
  --kinari: #fffdf9;
  --paper-edge: #e6d9c6;

  /* 桜 / 若草 / 苔 / 藤 / 水 / 山吹 */
  --sakura: #f8d7de;
  --sakura-deep: #e9a3b6;
  --wakakusa: #c3d8a8;
  --matsu: #7fa086;
  --koke: #5f7f5a;
  --fuji: #a99bcf;
  --fuji-light: #ddd5ef;
  --mizu: #bfe0e8;
  --yamabuki: #f2cf8a;

  /* text */
  --ink: #453a40;
  --ink-soft: #75686e;
  --ink-faint: #a3979b;
  --on-dark: #fff8f3;
  --on-dark-soft: #e9d9dc;

  /* type */
  --font-brush: "Yuji Syuku", "Shippori Mincho B1", "Noto Serif SC", "Songti SC", serif;
  --font-heading: "Shippori Mincho B1", "Shippori Mincho", "Noto Serif SC", "Songti SC", serif;
  --font-body: "Shippori Mincho", "Noto Serif SC", "Songti SC", Georgia, serif;
  --font-latin: "Cormorant Garamond", "Shippori Mincho", Georgia, serif;
  --font-ui: "Zen Maru Gothic", "Shippori Mincho", "Noto Sans SC", system-ui, sans-serif;

  /* motion: slower and softer than a snap, nothing should startle */
  --ease-brush: cubic-bezier(.22, 1, .36, 1);
  --ease-fold: cubic-bezier(.65, 0, .35, 1);
  --ease-float: cubic-bezier(.45, .05, .55, .95);
  --ease-stamp: cubic-bezier(.34, 1.56, .64, 1);
  --dur-fast: 200ms;
  --dur-mid: 460ms;
  --dur-slow: 1000ms;

  /* layout */
  --sidebar-w: 280px;
  --radius: 14px;
  --radius-sm: 8px;
  --radius-lg: 20px;
  --shadow-paper: 0 1px 0 rgba(255, 255, 255, .7) inset, 0 14px 34px -18px rgba(120, 78, 96, .38);
  --shadow-lift: 0 26px 50px -22px rgba(120, 78, 96, .46);
  --shadow-float: 0 1px 0 rgba(255, 255, 255, .8) inset, 0 30px 70px -30px rgba(120, 78, 96, .5), 0 8px 22px -14px rgba(120, 78, 96, .3);
  --ring: 0 0 0 3px rgba(232, 142, 160, .34);
  --scrim: rgba(205, 172, 196, .38);

  /* stacking */
  --z-ambient: 1;
  --z-content: 10;
  --z-sidebar: 40;
  --z-overlay: 80;
  --z-transition: 100;
  --z-cursor: 120;
}
