/* tokens.css — Notion 차용 디자인 토큰. CSS 변수로 한 곳에서 관리. */

:root {
  /* Primary */
  --color-primary: #5645d4;
  --color-primary-pressed: #4534b3;
  --color-primary-deep: #3a2a99;
  --color-on-primary: #ffffff;

  /* Brand navy (hero 영역) */
  --color-navy: #0a1530;
  --color-navy-deep: #070f24;
  --color-navy-mid: #1a2a52;

  /* Link */
  --color-link: #0075de;
  --color-link-pressed: #005bab;

  /* Surface */
  --color-canvas: #ffffff;
  --color-surface: #f6f5f4;
  --color-surface-soft: #fafaf9;
  --color-hairline: #e5e3df;
  --color-hairline-soft: #ede9e4;
  --color-hairline-strong: #c8c4be;

  /* Text */
  --color-ink-deep: #000000;
  --color-ink: #1a1a1a;
  --color-charcoal: #37352f;
  --color-slate: #5d5b54;
  --color-steel: #787671;
  --color-stone: #a4a097;
  --color-muted: #bbb8b1;
  --color-on-dark: #ffffff;
  --color-on-dark-muted: #a4a097;

  /* Pastel card tints (멤버 색상으로도 재사용) */
  --color-tint-peach: #ffe8d4;
  --color-tint-rose: #fde0ec;
  --color-tint-mint: #d9f3e1;
  --color-tint-lavender: #e6e0f5;
  --color-tint-sky: #dcecfa;
  --color-tint-yellow: #fef7d6;
  --color-tint-yellow-bold: #f9e79f;
  --color-tint-cream: #f8f5e8;
  --color-tint-gray: #f0eeec;

  /* 멤버 색상 채도 강한 변형 (아바타·캘린더 점) */
  --color-member-peach: #f59e6b;
  --color-member-rose: #e36ba0;
  --color-member-mint: #5cbb7a;
  --color-member-lavender: #8a6dc7;
  --color-member-sky: #4ea3e0;
  --color-member-yellow: #d4a93d;

  /* 카테고리 텍스트(파스텔 위) */
  --color-tag-purple: #391c57;
  --color-tag-orange: #793400;
  --color-tag-green: #1aae39;

  /* Semantic */
  --color-success: #1aae39;
  --color-warning: #dd5b00;
  --color-error: #e03131;
  --color-error-bg: #fde7e7;

  /* Typography */
  --font-sans: 'Inter', -apple-system, system-ui, 'Segoe UI', 'Apple SD Gothic Neo',
    'Noto Sans KR', 'Malgun Gothic', sans-serif;
  --font-mono: 'JetBrains Mono', 'SF Mono', Consolas, monospace;

  --fs-hero: 56px;
  --fs-h1: 40px;
  --fs-h2: 32px;
  --fs-h3: 24px;
  --fs-h4: 20px;
  --fs-body-lg: 18px;
  --fs-body: 16px;
  --fs-sm: 14px;
  --fs-caption: 13px;
  --fs-micro: 12px;

  --lh-tight: 1.1;
  --lh-snug: 1.25;
  --lh-normal: 1.5;
  --lh-loose: 1.6;

  /* Spacing */
  --sp-1: 4px;
  --sp-2: 8px;
  --sp-3: 12px;
  --sp-4: 16px;
  --sp-5: 20px;
  --sp-6: 24px;
  --sp-8: 32px;
  --sp-10: 40px;
  --sp-12: 48px;
  --sp-16: 64px;
  --sp-24: 96px;

  /* Radius */
  --r-xs: 4px;
  --r-sm: 6px;
  --r-md: 8px;
  --r-lg: 12px;
  --r-xl: 16px;
  --r-2xl: 20px;
  --r-full: 9999px;

  /* Elevation */
  --shadow-1: 0 1px 2px rgba(15, 15, 15, 0.04);
  --shadow-2: 0 4px 12px rgba(15, 15, 15, 0.08);
  --shadow-3: 0 24px 48px -8px rgba(15, 15, 15, 0.20);
  --shadow-modal: 0 16px 48px -8px rgba(15, 15, 15, 0.16);

  /* Layout */
  --max-w: 1200px;
  --header-h: 64px;

  /* Motion */
  --t-fast: 120ms ease;
  --t-base: 180ms ease;
}

@media (max-width: 640px) {
  :root {
    --fs-hero: 40px;
    --fs-h1: 32px;
    --fs-h2: 24px;
    --fs-h3: 20px;
  }
}
