/* ============================================================
   아가자람 — 디자인 토큰
   라이트/다크 배경·색만 정의. 컴포넌트는 main.css.
   색 값은 design/ci-2026-11/tokens.css(2026-11) 그대로.
   ============================================================ */

:root,
[data-theme="light"] {
  color-scheme: light;
  --bg: #F8F7F2;
  --surface: #EFECE4;
  --surface-2: #FDFCF9;
  --surface-hover: #E7E3D8;
  --text: #222925;
  --muted: #546159;
  --faint: #A0A79F;
  --accent: #2F6356;
  --accent-2: #244F44;
  --accent-soft: #E3ECE8;
  --warm: #8F5B34;
  --warm-soft: #F2E8DF;
  --line: #DCD9CE;
  --line-strong: #B8B4A6;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic",
    sans-serif;
  --font-mono: ui-monospace, "SFMono-Regular", "SF Mono", Menlo, Consolas,
    monospace;
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.3125rem;
  --text-2xl: 1.5625rem;
  --text-3xl: 1.875rem;
  --leading-tight: 1.25;
  --leading-normal: 1.65;
  --tracking-tight: -0.015em;
  --radius-xs: 1px;
  --radius-sm: 2px;
  --radius-md: 4px;
  --max: 76rem;
}

[data-theme="dark"] {
  color-scheme: dark;
  --bg: #161B18;
  --surface: #1E2521;
  --surface-2: #242C27;
  --surface-hover: #29332D;
  --text: #E3E8E4;
  --muted: #9EAE9F;
  --faint: #6E7A73;
  --accent: #76B5A4;
  --accent-2: #92C7B8;
  --accent-soft: #21332E;
  --warm: #D49B6E;
  --warm-soft: #2E251E;
  --line: #2B342E;
  --line-strong: #46544C;
}

/* OS 다크 모드일 때 자동 다크 (data-theme="light" 명시 시 제외) */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #161B18;
    --surface: #1E2521;
    --surface-2: #242C27;
    --surface-hover: #29332D;
    --text: #E3E8E4;
    --muted: #9EAE9F;
    --faint: #6E7A73;
    --accent: #76B5A4;
    --accent-2: #92C7B8;
    --accent-soft: #21332E;
    --warm: #D49B6E;
    --warm-soft: #2E251E;
    --line: #2B342E;
    --line-strong: #46544C;
  }
}
