/* tokens.css — 디자인 토큰 (라이트 테마 단일, WCAG AA 대비 기준) */
:root {
  /* 타이포그래피 */
  --font-sans: "Pretendard", "Pretendard Variable", "Apple SD Gothic Neo",
    "Malgun Gothic", "맑은 고딕", "Noto Sans KR", system-ui, -apple-system,
    "Segoe UI", sans-serif;
  --font-mono: "D2Coding", "Consolas", "SFMono-Regular", ui-monospace, monospace;

  --text-xs: 0.78rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.375rem;
  --text-2xl: 1.625rem;

  --leading-tight: 1.3;
  --leading-base: 1.65;

  /* 색 — 본문 #17202e on #ffffff = 15.4:1 */
  --color-bg: #f2f5fa;
  --color-surface: #ffffff;
  --color-surface-alt: #eef2f9;
  --color-surface-sunken: #e6ebf4;

  --color-text: #17202e;
  --color-text-muted: #4b5565; /* on white 7.9:1 */
  --color-text-subtle: #5a6474; /* on white 6.5:1 */
  --color-text-inverse: #ffffff;

  --color-border: #cbd3e1;
  --color-border-strong: #7c889c;

  --color-primary: #1447c9; /* white text = 8.0:1 */
  --color-primary-hover: #0f37a0;
  --color-primary-soft: #e6ecfd;
  --color-primary-ink: #10265f;

  --color-danger: #b3261e; /* white text = 6.5:1 */
  --color-danger-hover: #8f1d17;
  --color-danger-soft: #fdeceb;
  --color-danger-ink: #7a1a15;

  --color-success: #1c6b3c;
  --color-success-soft: #e7f4ec;
  --color-success-ink: #14512c;

  --color-warn-bg: #fff6e3;
  --color-warn-border: #b57a0a;
  --color-warn-ink: #4a3200;

  /* 포커스 */
  --focus-ring: 3px solid #1447c9;
  --focus-offset: 2px;

  /* 간격 */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 40px;
  --space-8: 56px;

  /* 모서리 / 그림자 */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-pill: 999px;

  --shadow-1: 0 1px 2px rgba(16, 24, 40, 0.06), 0 1px 3px rgba(16, 24, 40, 0.08);
  --shadow-2: 0 4px 12px rgba(16, 24, 40, 0.08), 0 2px 4px rgba(16, 24, 40, 0.06);
  --shadow-3: 0 12px 32px rgba(16, 24, 40, 0.18);

  /* 레이아웃 */
  --layout-max: 720px;
  --control-height: 44px;
  --transition-fast: 130ms ease;
}