/* =========================================================================
   tokens.css — Design Tokens (Phase 7, "Scryn Clinical")

   화이트(#ffffff) + Scryn Blue(#1275E7 / #49B3EF) 기반의 임상 포렌식 팔레트.
   Noto Sans(한글+영문) 단일 서체 원칙 — 단, verdict 숫자 한 곳만 Noto Serif KR
   예외 (P7 §3 결정 사항 참조).

   Load order: tokens.css → base.css → components.css → legacy.css.
   ========================================================================= */

:root {
  /* --- Palette: Scryn Clinical ----------------------------------------- */
  --bg-0: #ffffff;          /* page base */
  --bg-1: #f5f8fc;          /* panel / card surface */
  --bg-2: #eaf1f9;          /* hover / active */
  --bg-3: #dbe7f4;          /* raised (tooltip) */

  --rule: #d4dde8;          /* 1px hairline */
  --rule-strong: #9fb2c8;   /* focus / emphasized divider */

  --ink-0: #0a1628;         /* primary text — near-black with blue cast */
  --ink-1: #38465a;         /* body secondary */
  --ink-2: #6b7a8f;         /* labels, meta — AA (4.5:1) on #ffffff */
  --ink-3: #9aa6b5;         /* disabled / hint */

  /* Scryn blue — brand primary */
  --blue-600: #0f5fbf;      /* hover / pressed */
  --blue-500: #1275e7;      /* PRIMARY — CTA, active, progress fill */
  --blue-400: #49b3ef;      /* SECONDARY — info, live pulse, AI-edge ROI */
  --blue-100: #e2f1fb;      /* tinted background for blue-context chips */

  /* Severity */
  --sev-high: #d92d3b;
  --sev-high-bg: #fdeaec;
  --sev-med: #d98e00;
  --sev-med-bg: #fcf3df;
  --sev-ok: #2f9c6a;
  --sev-ok-bg: #e5f4ec;

  /* Back-compat aliases — 기존 components.css 에서 참조하는 토큰명.
     P7a-7 정리 완료 후 제거 예정. */
  --paper-0: var(--bg-0);
  --paper-1: var(--bg-1);
  --paper-2: var(--bg-2);
  --paper-3: var(--bg-3);
  --ink: var(--ink-0);
  --ink-muted: var(--ink-1);
  --ink-dim: var(--ink-2);
  --stamp-red: var(--sev-high);
  --stamp-amber: var(--sev-med);
  --stamp-green: var(--sev-ok);
  --seal-blue: var(--blue-500);
  --marker: var(--blue-400);
  --accent: var(--blue-500);

  /* --- Typography: Noto Sans 단일 (verdict 숫자만 Noto Serif KR 예외) -- */
  --font-sans:  "Noto Sans KR", "Noto Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono:  "Noto Sans Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --font-serif: "Noto Serif KR", "Noto Serif", Georgia, serif; /* verdict score 전용 */

  --fs-1: 0.72rem;
  --fs-2: 0.82rem;
  --fs-3: 0.95rem;
  --fs-4: 1.125rem;
  --fs-5: 1.5rem;
  --fs-verdict: 2rem;       /* P7e 압축 — 3.5rem 에서 축소 */

  --fw-regular: 400;
  --fw-medium: 500;
  --fw-semibold: 600;
  --fw-bold: 700;

  --lh-tight: 1.2;
  --lh-body: 1.5;

  --ls-meta: 0.08em;
  --ls-caps: 0.18em;
  --ls-tight: -0.01em;

  /* --- Geometry -------------------------------------------------------- */
  --radius-none: 0;
  --radius-sm: 2px;
  --radius-md: 4px;

  --header-h: 52px;
  --left-w: 224px;          /* P7b 좌측 tool-panel */
  --right-w: 520px;
  --section-h: 44px;
  --ctrl-h: 48px;
  --verdict-bar-h: 72px;    /* P7e 상단 compact bar */
  --doc-type-h: 40px;       /* P7e doc-type strip */

  --rule-w: 1px;
  --grid-x: 8px;

  /* --- Motion ---------------------------------------------------------- */
  --ease-clinical: cubic-bezier(0.2, 0.6, 0.2, 1);
  --ease-archive: var(--ease-clinical); /* back-compat alias */
  --dur-fast: 120ms;
  --dur-reveal: 240ms;
  --dur-stamp: 240ms;       /* back-compat */
  --dur-stagger: 40ms;

  /* --- Shadow (라이트 테마 전용 레이어) -------------------------------- */
  --shadow-1: 0 1px 2px rgba(10, 22, 40, 0.04), 0 2px 6px rgba(10, 22, 40, 0.04);
  --shadow-2: 0 4px 12px rgba(10, 22, 40, 0.06), 0 12px 32px rgba(18, 117, 231, 0.06);

  /* --- Textures -------------------------------------------------------- */
  --grain-opacity: 0.015;   /* 라이트 테마 — multiply 모드 */
}
