/* 고양이연구소 색 이름표(디자인 토큰) — 사이트 전체의 색은 여기 한 곳에서 (2026-11-13, Claude)
   - 화면 CSS는 색을 직접 쓰지 말고 var(--ds-…)로 부른다(안전하게 var(--ds-primary, #3e634a)처럼 기본값을 같이 적어도 됨).
   - 나중에 사용자가 색 조합(테마)을 고르면 html[data-theme="…"] 에서 아래 값들만 바꾼다(테마 묶음은 2단계).
   - 값은 기존 DS2(css/cfl_design_v2.css .cfl-ds2) 그대로 — 이 파일을 넣어도 화면 색은 바뀌지 않는다. */
:root {
  /* 바탕·종이·글자 */
  --ds-bg: #f7f3ec;          /* 페이지 바탕(크림) */
  --ds-surface: #fffdf9;     /* 상자·카드 종이 */
  --ds-ink: #24352d;         /* 본문 글자 */
  --ds-muted: #59675e;       /* 보조 글자 */
  --ds-line: #ebe4d9;        /* 얇은 선 */
  --ds-control: #7b887d;     /* 입력칸·버튼 테두리 */
  /* 주 색(녹색) */
  --ds-primary: #3e634a;     /* 버튼·강조 */
  --ds-on-primary: #ffffff;  /* 주 색 위 글자 */
  --ds-soft: #e8f0df;        /* 옅은 주 색 바탕(선택됨 등) */
  --ds-soft-strong: #dce8cf; /* 옅은 주 색 눌림·호버 */
  --ds-primary-strong: #2f5d46; /* 더 진한 주 색(첫 등록 화면 등) */
  --ds-mist: #e7ede8;        /* 차가운 옅은 바탕(첫 등록 화면) */
  --ds-line-strong: #d5ddd6; /* 조금 진한 선 */
  --ds-accent: #c9a227;      /* 놋쇠 이름표 */
  --ds-accent-ink: #4a3a08;
  /* 눈금자·막대 */
  --ds-band: #b9d3a8;        /* 알맞은 구간 */
  --ds-band-deep: #8fb57c;   /* 더 엄격한 구간 */
  --ds-track: #ece6dc;       /* 막대 바탕 */
  /* 알림 색 */
  --ds-attn: #b7791f;        /* 주의(벗어남) 글자·점 */
  --ds-attn-ink: #5a4410;    /* 주의 진한 글자 */
  --ds-attn-soft: #fbefc8;   /* 주의 옅은 바탕 */
  --ds-attn-band: #efcf94;   /* 주의 구간 */
  --ds-white: #ffffff;      /* 섞음 공식의 '흰색' — 어두운 테마에선 어두운 종이로 바뀜 */
  --ds-black: #000000;      /* 섞음 공식의 '검은색' — 어두운 테마에선 밝은 쪽으로 */
  /* 판정 의미색 — 테마를 바꿔도 '좋음=녹색' 유지(테마 블록에서 다시 정하지 않음) */
  --ds-good: #3e634a;
  --ds-good-band: #b9d3a8;
  --ds-good-band-deep: #8fb57c;
  --ds-danger: #9a3434;
  --ds-warning: #88511f;
  /* 움직임 이름표(2026-11-13) — 시트·서랍은 이것만 쓴다. 열림은 빠르게 와서 부드럽게 멈추고, 닫힘은 더 빨리 비켜 준다 */
  --ds-ease-sheet: cubic-bezier(.32, .72, 0, 1);   /* 아래에서 올라오는 시트(iOS 시트 곡선) */
  --ds-ease-drawer: cubic-bezier(.22, 1, .36, 1);  /* 옆에서 나오는 서랍 */
  --ds-ease-exit: cubic-bezier(.4, 0, 1, 1);       /* 닫힐 때 */
  --ds-dur-sheet: .32s;
  --ds-dur-drawer: .28s;
  --ds-dur-exit: .2s;
}

/* ---- 사용자가 고르는 색 조합(고양이 털색) — <html data-theme="…">, 기본(녹색)은 위 :root 그대로 · 2026-11-13 ---- */
html[data-theme="russianblue"] { --ds-bg: #f1f4f6; --ds-surface: #fcfdfd; --ds-ink: #1f2b33; --ds-muted: #55636c; --ds-line: #e1e7eb; --ds-line-strong: #cdd7dd; --ds-control: #7a8992; --ds-primary: #3b5f76; --ds-on-primary: #ffffff; --ds-primary-strong: #2c4a5e; --ds-soft: #e2ecf2; --ds-soft-strong: #d2e1ea; --ds-band: #a9c4d6; --ds-band-deep: #7fa5bf; --ds-track: #e4e9ec; --ds-mist: #e6eef2; }  /* 러시안블루 */
html[data-theme="cheese"] { --ds-bg: #fbf6ee; --ds-surface: #fffdf8; --ds-ink: #33281b; --ds-muted: #6d5d49; --ds-line: #efe4d4; --ds-line-strong: #e2d3bd; --ds-control: #9a8668; --ds-primary: #8f5a1c; --ds-on-primary: #ffffff; --ds-primary-strong: #744713; --ds-soft: #f6e7cf; --ds-soft-strong: #efd9b6; --ds-band: #e6c48f; --ds-band-deep: #d3a35c; --ds-track: #f0e7da; --ds-mist: #f6eee2; }  /* 치즈 */
html[data-theme="tuxedo"] { --ds-bg: #f5f5f3; --ds-surface: #ffffff; --ds-ink: #1c1c1c; --ds-muted: #5c5c5a; --ds-line: #e6e6e3; --ds-line-strong: #d4d4d0; --ds-control: #8a8a86; --ds-primary: #262626; --ds-on-primary: #ffffff; --ds-primary-strong: #111111; --ds-soft: #ebebe8; --ds-soft-strong: #dededa; --ds-band: #c4c4bf; --ds-band-deep: #9d9d97; --ds-track: #ececea; --ds-mist: #efefed; }  /* 턱시도 */
html[data-theme="lilacpoint"] { --ds-bg: #f6f3f7; --ds-surface: #fefdfe; --ds-ink: #2a2433; --ds-muted: #655c6e; --ds-line: #e9e3ec; --ds-line-strong: #d9d0de; --ds-control: #8c8394; --ds-primary: #5e4d7a; --ds-on-primary: #ffffff; --ds-primary-strong: #4a3c62; --ds-soft: #ece5f2; --ds-soft-strong: #e0d6ea; --ds-band: #c7b8d9; --ds-band-deep: #a692c2; --ds-track: #ece7ef; --ds-mist: #efe9f3; }  /* 라일락 포인트 */
/* 올블랙(어두운 테마) — 2026-11-13 손질 중. 섞음 공식의 white/black 이 뒤집혀서 옅은 칸은 어두운 칸으로, 진한 글자는 밝은 글자로 */
html[data-theme="allblack"] { color-scheme: dark; --ds-bg: #141a17; --ds-surface: #1c2420; --ds-ink: #e7ede9; --ds-muted: #a3b0a8; --ds-line: #2b3530; --ds-line-strong: #36423b; --ds-control: #6e7c74; --ds-primary: #8fc39b; --ds-on-primary: #0f1a13; --ds-primary-strong: #a8d4b2; --ds-soft: #23322a; --ds-soft-strong: #2c3e33; --ds-band: #3f6a4b; --ds-band-deep: #5b8c67; --ds-track: #28312c; --ds-mist: #1a221e; --ds-accent: #d9b84a; --ds-accent-ink: #f3e3a8; --ds-attn: #e0a64a; --ds-attn-ink: #f3d9a0; --ds-attn-soft: #3a2f17; --ds-attn-band: #6b5320; --ds-white: #1c2420; --ds-black: #ffffff; --ds-good: #8fc39b; --ds-good-band: #3f6a4b; --ds-good-band-deep: #5b8c67; --ds-danger: #e58a8a; --ds-warning: #e0a064; }  /* 올블랙 */

/* 기기에서 "움직임 줄이기"를 켜면 시트·서랍이 바로 열리고 닫힘(2026-11-13) */
@media (prefers-reduced-motion: reduce) { :root { --ds-dur-sheet: .01s; --ds-dur-drawer: .01s; --ds-dur-exit: .01s; } }
