/* Hallmark · genre: atmospheric · macrostructure: Workbench (app shell) · theme: Midnight / safelight
 * paper: dark warm charcoal oklch(15.5% 0.009 55) · accent: safelight amber oklch(74% 0.165 55)
 * display: Bai Jamjuree · body: IBM Plex Sans Thai · mono: IBM Plex Mono
 * nav: N3 side-rail (app) · footer: none (app) · enrichment: none — the user's images are the imagery
 */
:root {
  color-scheme: dark;

  /* surfaces — higher = lighter */
  --color-paper:   oklch(15.5% 0.009 55);
  --color-paper-2: oklch(19%   0.010 55);
  --color-paper-3: oklch(23%   0.011 55);
  --color-paper-4: oklch(28%   0.012 55);
  --color-well:    oklch(12.5% 0.008 55);
  --color-rule:    oklch(30%   0.010 55);
  --color-rule-2:  oklch(38%   0.012 55);

  /* text */
  --color-ink:     oklch(95%   0.006 80);
  --color-muted:   oklch(80%   0.008 65);
  --color-neutral: oklch(68%   0.010 60);
  --color-faint:   oklch(54%   0.010 60);

  /* the one accent: darkroom safelight */
  --color-accent:        oklch(74% 0.165 55);
  --color-accent-strong: oklch(81% 0.150 62);
  --color-accent-ink:    oklch(21% 0.045 50);
  --color-focus:         oklch(84% 0.140 66);

  /* semantic status (used small, always with an icon or word) */
  --color-ok:     oklch(77% 0.130 152);
  --color-danger: oklch(69% 0.170 28);
  --color-info:   oklch(78% 0.070 230);

  /* overlay modifiers (not palette colours) */
  --tint-accent:  oklch(74% 0.165 55 / 0.13);
  --tint-accent-2: oklch(74% 0.165 55 / 0.06);
  --tint-danger:  oklch(69% 0.170 28 / 0.12);
  --tint-ok:      oklch(77% 0.130 152 / 0.12);
  --scrim:        oklch(9% 0.008 55 / 0.82);
  --shadow-1: 0 1px 0 oklch(100% 0 0 / 0.04) inset, 0 8px 24px oklch(5% 0.01 55 / 0.35);
  --shadow-glow: 0 10px 40px oklch(74% 0.165 55 / 0.18);
  --bloom-1: oklch(74% 0.165 55 / 0.10);
  --bloom-2: oklch(62% 0.150 30 / 0.06);

  /* type */
  --font-display: "Bai Jamjuree", "IBM Plex Sans Thai", system-ui, sans-serif;
  --font-body: "IBM Plex Sans Thai", "Thonburi", "Sukhumvit Set", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --text-2xs: 11px;
  --text-xs: 12px;
  --text-sm: 13.5px;
  --text-md: 15px;
  --text-lg: 17px;
  --text-xl: 21px;
  --text-2xl: 27px;
  --text-display: clamp(28px, 1.6vw + 18px, 40px);
  --text-stat: clamp(34px, 2.6vw + 18px, 56px);

  /* 4-pt spacing */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-pill: 999px;

  --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-fast: 120ms;
  --dur-med: 200ms;
  --dur-slow: 320ms;

  --rail-w: 232px;
  --panel-w: 420px;
}
