/* ==========================================================================
   palette-mobile v1 — 실측 토큰 이식
   출처: work/web_50_engines/engines/palette_mobile.py (PRESET palette-mobile-v1)
        라이브 codeb-palette-engine.pages.dev (배포 f769329c) computed style 실측
   규칙: 값을 바꾸면 audit_contrast.py 와 verify_phase0.py 를 다시 돌린다.
   ========================================================================== */

:root {
  color-scheme: dark;

  /* 표면 ------------------------------------------------------------------ */
  --ink: #060A12;
  --ink-1: #08101A;
  --ink-2: #0D1624;
  --ink-3: #13202F;

  /* 글자 ------------------------------------------------------------------ */
  --bone: #E8EDF1;
  --bone-hi: #F5F8FA;
  --bone-2: #DAE2E9;

  /* 액센트 ---------------------------------------------------------------- */
  --flame: #FFB020;
  --flame-soft: #FFC857;
  --mint: #5BE7A9;
  --cyan: #8FE6FF;
  --violet: #5B7CFF;
  --blue: #2B8CFF;

  /* 텍스트 알파 (합성 후 대비는 audit_contrast.py 로 검증) */
  --t-62: rgba(232, 237, 241, .62);
  --t-52: rgba(232, 237, 241, .52);
  --t-ink-64: rgba(6, 10, 18, .64);
  --t-ink-60: rgba(6, 10, 18, .60);

  /* 선 -------------------------------------------------------------------- */
  --line: rgba(232, 237, 241, .14);
  --line-soft: rgba(232, 237, 241, .08);
  --line-ink: rgba(6, 10, 18, .14);
  --line-ink-soft: rgba(6, 10, 18, .07);


  /* 패널 액센트 (.panel.a0~a3) — 엔진 배지 4색 */
  --a0: #6D4AFF;
  --a1: #2B8CFF;
  --a2: #18C98A;
  --a3: #FF5A2B;
  /* a0 는 ink 위 글자로 3.84:1 이라 4.5:1 을 못 넘는다 → 작은 글자용 폴백
     (a0 60% + bone 40% = #9E8BF9, ink 위 7.09:1). palette_mobile 의 대비 가드와 같은 규칙. */
  --a0-text: #9E8BF9;

  /* 타입 ------------------------------------------------------------------ */
  --f-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
  --f-sans: system-ui, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo",
            "Pretendard", "Malgun Gothic", "Noto Sans KR", sans-serif;

  --f-body: clamp(15px, .62vw + 12.6px, 17px);
  --f-lead: clamp(17px, .55vw + 15px, 21px);
  --f-h3: clamp(20px, 1.2vw + 13px, 26px);
  --f-h2: clamp(30px, 3.1vw + 12px, 58px);
  --f-h1: clamp(32px, 8.4vw, 104px);
  --f-giant: clamp(58px, 13vw, 190px);

  /* 타입 스케일 -2 … 5 (size/line-height/weight) */
  --ts-2: 12px;   --ts-2-lh: 1.5;  --ts-2-w: 600;
  --ts-1: 15px;   --ts-1-lh: 1.6;  --ts-1-w: 400;
  --ts0: 17px;    --ts0-lh: 1.6;   --ts0-w: 400;
  --ts1: 22px;    --ts1-lh: 1.45;  --ts1-w: 600;
  --ts2: 28px;    --ts2-lh: 1.2;   --ts2-w: 700;
  --ts3: 40px;    --ts3-lh: 1.15;  --ts3-w: 800;
  --ts4: 58px;    --ts4-lh: 1.08;  --ts4-w: 800;
  --ts5: 104px;   --ts5-lh: 1.04;  --ts5-w: 800;
  --track-tight: -0.012em;   /* 0 이하 크기 */
  --track-tighter: -0.035em; /* 0 초과 크기 */

  /* 간격 ------------------------------------------------------------------ */
  --sp-1: 4px;
  --sp-2: 8px;
  --sp-3: 12px;
  --sp-4: 16px;
  --sp-6: 24px;
  --sp-8: 32px;
  --sp-12: 48px;
  --sp-16: 64px;
  --sp-24: 96px;
  --sp-32: 128px;
  --pad: 20px;          /* 모바일 */
  --max: 1360px;

  /* 라운드 ---------------------------------------------------------------- */
  --r-s: 3px;
  --r-m: 8px;
  --r-l: 16px;
  --r-xl: 28px;
  --r-pill: 999px;

  /* 모션 ------------------------------------------------------------------ */
  --ui: 260ms;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --ease-io: cubic-bezier(.65, .05, .36, 1);
  --ease-out: cubic-bezier(.22, 1, .36, 1);

  /* 셸 치수 (Phase 0 컴포넌트 규격) */
  --rail: 72px;
  --rail-wide: 208px;
  --cmdbar-h: 56px;
  --tabbar-h: 60px;
  --queue-w: 380px;
}

@media (min-width: 768px) {
  :root { --pad: 32px; }   /* 태블릿 */
}
@media (min-width: 1180px) {
  :root { --pad: 48px; --rail: var(--rail-wide); }  /* 데스크톱 */
}

/* 브레이크포인트 계약: 520 · 620 · 700 · 768 · 820 · 900 · 980 · 1180 · 1280 */
