/* =========================================================
   ZIYAN Design Tokens
   One source of truth for colour, type, space and motion.
   ========================================================= */
:root {
  /* Colour — warm ivory, piano black, parchment, graphite, champagne */
  --c-ivory: #f7f5ef;
  --c-ivory-2: #fbfaf6;
  --c-parchment: #eae5db;
  --c-parchment-2: #e1dacb;
  --c-black: #161616;
  --c-black-2: #222120;
  --c-graphite: #777570;
  --c-graphite-2: #4b4945;
  --c-gold: #b29a72;
  --c-gold-deep: #8f7a55;

  --c-bg: var(--c-ivory);
  --c-text: var(--c-black);
  --c-text-2: var(--c-graphite-2);
  --c-text-3: var(--c-graphite);
  --c-line: rgba(22, 22, 22, 0.14);
  --c-line-soft: rgba(22, 22, 22, 0.07);
  --c-on-dark: #efece4;
  --c-on-dark-2: #a9a59c;
  --c-line-dark: rgba(239, 236, 228, 0.14);

  /* Type families */
  --f-display: "Bodoni Moda", "Didot", "Bodoni 72", Georgia, "Times New Roman", serif;
  --f-serif-cn: "Noto Serif SC", "Source Han Serif SC", "Songti SC", "STSong", "SimSun", serif;
  /* Display Chinese: 风雅宋 — high-contrast, calligraphic; pairs with Bodoni Moda */
  --f-display-cn: "ZY Fengya", "Noto Serif SC", "Songti SC", serif;
  /* 齐伋体 woodblock Ming, for 山海知音录 and seals; 龙藏楷 for handwritten inscriptions */
  --f-qiji: "ZY Qiji", "Noto Serif SC", "Songti SC", serif;
  --f-kai: "ZY Kai", "Kaiti SC", "STKaiti", "KaiTi", serif;
  --f-sans: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", "Helvetica Neue", Arial, sans-serif;
  --f-mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;

  /* Type scale (fluid, ~1.333 ratio) */
  --fs-micro: 0.6875rem;                                  /* 11px — mono labels */
  --fs-small: 0.8125rem;                                  /* 13px */
  --fs-body: clamp(0.9375rem, 0.9rem + 0.15vw, 1.0625rem);/* 15–17px */
  --fs-lead: clamp(1.0625rem, 1rem + 0.4vw, 1.3125rem);   /* 17–21px */
  --fs-h3: clamp(1.25rem, 1.1rem + 0.6vw, 1.625rem);
  --fs-h2: clamp(1.875rem, 1.4rem + 2vw, 3.25rem);
  --fs-h1: clamp(2.5rem, 1.8rem + 3vw, 4.5rem);
  --fs-display: clamp(5.25rem, 1.5rem + 10vw, 12rem);

  --lh-tight: 1.05;
  --lh-head: 1.3;
  --lh-body: 1.9;

  --ls-cn-head: 0.18em;
  --ls-mono: 0.16em;

  /* Space (8pt rhythm) */
  --s-1: 0.5rem;
  --s-2: 1rem;
  --s-3: 1.5rem;
  --s-4: 2rem;
  --s-5: 3rem;
  --s-6: 4rem;
  --s-7: 6rem;
  --s-8: 8rem;
  --section-y: clamp(5rem, 3rem + 8vw, 10rem);
  --gutter: clamp(1rem, 0.5rem + 2.5vw, 3rem);
  --page-max: 1280px;
  --measure: 34em;

  /* Lines */
  --hairline: 1px;

  /* Motion — a slow "andante" tempo */
  --beat: 120ms;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --dur-1: 240ms;
  --dur-2: 600ms;
  --dur-3: 1200ms;

  --nav-h: 72px;
}
