/* Hallmark · genre: atmospheric · macrostructure: custom bespoke (instrument front panel) · theme: custom
 * vibe: "dusk indigo, vermilion beam, vector-scope phosphor"
 * paper oklch(14% 0.03 270) · accent oklch(68% 0.2 32) vermilion · data oklch(86% 0.08 205) ice
 * display: Chakra Petch · body: IBM Plex Sans JP · mono: IBM Plex Mono · nav: N9 edge-aligned · footer: Ft5 statement
 * axes: dark / geometric-sans / warm
 *
 * Canvas と WebGL もこの変数を getComputedStyle で読む。名前を変えるときは js/core.js の token() 呼び出しも合わせる。
 */
:root {
  /* 夜の層：数字が大きいほど手前（明るい） */
  --c-night: oklch(14% 0.03 270);
  --c-night-2: oklch(18% 0.035 270);
  --c-night-3: oklch(23% 0.04 270);
  --c-grid: oklch(24% 0.045 270);
  --c-rule: oklch(34% 0.045 270);
  --c-edge: oklch(56% 0.05 268);

  /* 文字 */
  --c-dim: oklch(76% 0.03 265);
  --c-text: oklch(90% 0.018 260);
  --c-ink: oklch(97% 0.008 260);

  /* 信号：朱（アクセント）と、ビームの芯、データ表示の氷色 */
  --c-signal: oklch(68% 0.2 32);
  --c-signal-hi: oklch(78% 0.15 45);
  --c-core: oklch(96% 0.035 70);
  --c-ice: oklch(86% 0.08 205);
  --c-focus: oklch(80% 0.15 45);

  --font-display: 'Chakra Petch', 'IBM Plex Sans JP', sans-serif;
  --font-body: 'IBM Plex Sans JP', sans-serif;
  --font-mono: 'IBM Plex Mono', 'IBM Plex Sans JP', monospace;

  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-md: 1rem;
  --text-lg: clamp(1.125rem, 0.6vw + 1rem, 1.3rem);
  --text-xl: clamp(1.3rem, 1.3vw + 0.95rem, 1.95rem);
  --text-2xl: clamp(1.75rem, 2.6vw + 1rem, 3.1rem);
  --text-display: clamp(2.6rem, 6vw + 1rem, 6.2rem);
  --text-number: clamp(3.4rem, 7vw + 1.2rem, 8.5rem);

  --space-2xs: 0.25rem;
  --space-xs: 0.5rem;
  --space-sm: 0.75rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4.5rem;
  --space-4xl: 7rem;
  --space-5xl: 10rem;

  --gutter: clamp(1rem, 3.5vw, 3rem);
  --content-max: 82rem;
  --nav-h: 3.75rem;

  --rule-hair: 1px;
  --radius-sm: 2px;
  --radius-md: 4px;

  --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: 480ms;
}
