/* Hallmark · genre: editorial (reference) · theme: Almanac voice — light-cool paper, mono labels, dense, tabular
 * design-system: design.md · designed-as-app
 * paper oklch(97.5% 0.006 230) · accent oklch(56% 0.19 32) "seal vermilion"
 * display Noto Serif KR · body IBM Plex Sans KR · data IBM Plex Mono
 */
:root {
  /* ---- colour: one cool anchor (hue 230), one warm accent (the seal's vermilion) ---- */
  --color-paper:      oklch(97.5% 0.006 230);
  --color-paper-2:    oklch(94.8% 0.009 230);
  --color-paper-3:    oklch(91.5% 0.012 230);
  --color-rule:       oklch(86% 0.012 230);
  --color-rule-2:     oklch(72% 0.016 232);
  --color-neutral:    oklch(58% 0.016 234);
  --color-muted:      oklch(44% 0.018 236);
  --color-ink:        oklch(22% 0.02 240);
  --color-link:       oklch(40% 0.085 232);
  --color-accent:     oklch(56% 0.19 32);
  --color-accent-ink: oklch(97.5% 0.006 230);
  --color-focus:      oklch(50% 0.17 255);
  --color-scrim:      oklch(22% 0.02 240 / 0.42);
  --color-shadow:     oklch(22% 0.02 240 / 0.14);
  /* data colours: the five elements, only ever as a small square beside the name */
  --el-0: oklch(72% 0.012 232);
  --el-1: oklch(58% 0.13 245);
  --el-2: oklch(58% 0.19 30);
  --el-3: oklch(52% 0.03 280);
  --el-4: oklch(58% 0.13 145);
  --el-5: oklch(62% 0.11 80);
  --color-warn:       oklch(48% 0.13 55);

  /* ---- type: 2 + 1 ---- */
  --font-display: "Noto Serif KR", "Nanum Myeongjo", "AppleMyungjo", "Batang", ui-serif, serif;
  --font-body:    "IBM Plex Sans KR", "Apple SD Gothic Neo", "Malgun Gothic", ui-sans-serif, sans-serif;
  --font-data:    "IBM Plex Mono", "IBM Plex Sans KR", "Apple SD Gothic Neo", "Malgun Gothic", ui-monospace, monospace;  /* figures and Latin in mono; Hangul falls through to the body face */

  --text-xs:   0.75rem;
  --text-sm:   0.875rem;
  --text-base: 1rem;
  --text-md:   1.25rem;
  --text-lg:   1.5625rem;
  --text-xl:   1.9531rem;
  --text-display: clamp(2.1rem, 2.4vw + 1.25rem, 3.05rem);

  /* ---- space: 4 pt ---- */
  --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;

  --rail: 14.5rem;
  --measure: 42rem;   /* about 40 Hangul to the line */

  /* ---- motion: functional, like a reference book (0.85×) ---- */
  --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: 100ms;
  --dur-short: 190ms;

  --rule-hair: 1px;
  --rule-strong: 2px;
  --text-lead: 1.0625rem;
  --radius-none: 0;
  --radius-key: 3px;

  --z-base: 1;
  --z-sticky: 200;
  --z-modal: 400;
}
