/* Hallmark tokens · custom theme "白场杂志" · paper light / classical-serif / warm rouge */
@font-face {
  font-family: "H5 Serif";
  src: url("assets/fonts/serif-400.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "H5 Serif";
  src: url("assets/fonts/serif-700.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}

:root {
  /* colour · anchor hue 75 (warm oat), accent rouge hue 20 */
  --color-paper:   oklch(96.5% 0.010 80);
  --color-paper-2: oklch(93%   0.013 78);
  --color-rule:    oklch(84%   0.012 75);
  --color-neutral: oklch(50%   0.012 70);
  --color-muted:   oklch(38%   0.012 65);
  --color-ink:     oklch(20%   0.012 55);
  --color-accent:  oklch(46%   0.150 20);
  --color-accent-ink: oklch(97% 0.010 80);
  --color-focus:   oklch(46%   0.150 20);
  --color-danger:  oklch(48%   0.170 28);

  /* type */
  --font-display: "H5 Serif", "Songti SC", "STSong", "Noto Serif SC", "Source Han Serif SC", serif;
  --font-body: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --text-xs:  0.75rem;
  --text-sm:  0.875rem;
  --text-md:  1rem;
  --text-lg:  1.125rem;
  --text-xl:  1.375rem;
  --text-2xl: 1.75rem;
  /* "WorkBuddy 来帮你" ≈ 8.9em wide; 9vw keeps it on one line from 320px up */
  --text-display: clamp(1.75rem, 9vw, 3.75rem);

  /* space · 4pt */
  --space-3xs: 0.125rem;
  --space-2xs: 0.25rem;
  --space-xs:  0.5rem;
  --space-sm:  0.75rem;
  --space-md:  1rem;
  --space-lg:  1.5rem;
  --space-xl:  2.5rem;
  --space-2xl: 4rem;
  --space-3xl: 6rem;
  --page-gutter: clamp(1rem, 5vw, 2rem);
  --measure: 40rem;

  /* rules, radius */
  --rule-hair: 1px;
  --radius-sm: 2px;

  /* motion */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in: cubic-bezier(0.7, 0, 0.84, 0);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --dur-micro: 120ms;
  --dur-short: 220ms;
  --dur-long: 420ms;
}
