/* Remember Design System 토큰 (remember-md v2.0) — Monochrome Authority: 블랙/화이트 기본, 오렌지는 CTA·활성 상태 전용 */
@import url('https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/variable/pretendardvariable.min.css');
@import 'tailwindcss';
@import 'tw-animate-css';

@custom-variant dark (&:is(.dark *));

@theme inline {
  --font-sans:
    'Pretendard Variable', Pretendard, -apple-system, BlinkMacSystemFont,
    system-ui, Roboto, 'Helvetica Neue', 'Segoe UI', 'Apple SD Gothic Neo',
    'Noto Sans KR', sans-serif;
  --radius-sm: calc(var(--radius) - 4px);
  --radius-md: calc(var(--radius) - 2px);
  --radius-lg: var(--radius);
  --radius-xl: calc(var(--radius) + 4px);
  --color-background: var(--background);
  --color-foreground: var(--foreground);
  --color-card: var(--card);
  --color-card-foreground: var(--card-foreground);
  --color-popover: var(--popover);
  --color-popover-foreground: var(--popover-foreground);
  --color-primary: var(--primary);
  --color-primary-foreground: var(--primary-foreground);
  --color-secondary: var(--secondary);
  --color-secondary-foreground: var(--secondary-foreground);
  --color-muted: var(--muted);
  --color-muted-foreground: var(--muted-foreground);
  --color-accent: var(--accent);
  --color-accent-foreground: var(--accent-foreground);
  --color-destructive: var(--destructive);
  --color-border: var(--border);
  --color-input: var(--input);
  --color-ring: var(--ring);
  --color-chart-1: var(--chart-1);
  --color-chart-2: var(--chart-2);
  --color-chart-3: var(--chart-3);
  --color-chart-4: var(--chart-4);
  --color-chart-5: var(--chart-5);
  --color-sidebar-ring: var(--sidebar-ring);
  --color-sidebar-border: var(--sidebar-border);
  --color-sidebar-accent-foreground: var(--sidebar-accent-foreground);
  --color-sidebar-accent: var(--sidebar-accent);
  --color-sidebar-primary-foreground: var(--sidebar-primary-foreground);
  --color-sidebar-primary: var(--sidebar-primary);
  --color-sidebar-foreground: var(--sidebar-foreground);
  --color-sidebar: var(--sidebar);
}

/* 값의 출처: remember-md tokens.css — background=bg-200, card=bg-100, border=divider-lite,
   input=divider, muted-foreground=contents-150, ring=secondary-100(활성 상태), chart=role 컬러 */
:root {
  --radius: 0.5rem;
  --background: #fafafa;
  --foreground: #000000;
  --card: #ffffff;
  --card-foreground: #000000;
  --popover: #ffffff;
  --popover-foreground: #000000;
  --primary: #000000;
  --primary-foreground: #ffffff;
  --secondary: #f2f2f2;
  --secondary-foreground: #424242;
  --muted: #f2f2f2;
  --muted-foreground: #6b6b6b;
  --accent: #f2f2f2;
  --accent-foreground: #000000;
  --destructive: #df1717;
  --border: #ebebeb;
  --input: #8c8c8c;
  --ring: #f15c00;
  --chart-1: #ff6a0d;
  --chart-2: #2679ed;
  --chart-3: #239e7b;
  --chart-4: #fdb100;
  --chart-5: #8133ff;
  --sidebar: #ffffff;
  --sidebar-foreground: #424242;
  --sidebar-primary: #000000;
  --sidebar-primary-foreground: #ffffff;
  --sidebar-accent: #fff4ed;
  --sidebar-accent-foreground: #bd4900;
  --sidebar-border: #ebebeb;
  --sidebar-ring: #f15c00;
}

.dark {
  --background: #000000;
  --foreground: #ffffff;
  --card: #1a1a1a;
  --card-foreground: #ffffff;
  --popover: #2e2e2e;
  --popover-foreground: #ffffff;
  --primary: #ffffff;
  --primary-foreground: #000000;
  --secondary: #2e2e2e;
  --secondary-foreground: #ebebeb;
  --muted: #2e2e2e;
  --muted-foreground: #bdbdbd;
  --accent: #2e2e2e;
  --accent-foreground: #ffffff;
  --destructive: #e57878;
  --border: #2e2e2e;
  --input: #6a6a6a;
  --ring: #ff6a0d;
  --chart-1: #ff6a0d;
  --chart-2: #085dd4;
  --chart-3: #21c798;
  --chart-4: #d1ad36;
  --chart-5: #a770ff;
  --sidebar: #1a1a1a;
  --sidebar-foreground: #ebebeb;
  --sidebar-primary: #ffffff;
  --sidebar-primary-foreground: #000000;
  --sidebar-accent: #331d0f;
  --sidebar-accent-foreground: #ff6a0d;
  --sidebar-border: #2e2e2e;
  --sidebar-ring: #ff6a0d;
}

@layer base {
  * {
    @apply border-border outline-ring/50;
  }
  body {
    @apply bg-background text-foreground;
  }
}
