@charset "utf-8";

/* ==========================================================================
   🎨 Design Tokens — 라이트 모드, Pretendard 베이스
   ========================================================================== */
:root {
  /* === Backgrounds === */
  --bg-primary: #ffffff;
  --bg-secondary: #fafafa;
  --bg-tertiary: #f4f4f5;
  --bg-elevated: #ffffff;       /* 카드 등 떠있는 요소 */

  /* === Borders === */
  --border-subtle: rgba(0, 0, 0, 0.06);
  --border-default: rgba(0, 0, 0, 0.10);
  --border-strong: rgba(0, 0, 0, 0.18);

  /* === Brand (Dev 모드 — 블루) === */
  --brand-primary: #2563eb;     /* 차분한 블루 */
  --brand-secondary: #0ea5e9;   /* 시안 */
  --brand-light: #3b82f6;
  --brand-soft: #eff6ff;        /* 배경용 연한 블루 */

  /* === Text === */
  --text-primary: #18181b;
  --text-secondary: #52525b;
  --text-tertiary: #71717a;
  --text-muted: #a1a1aa;

  /* === Spacing === */
  --sp-1: 4px; --sp-2: 8px; --sp-3: 16px; --sp-4: 24px;
  --sp-5: 32px; --sp-6: 48px; --sp-7: 64px; --sp-8: 96px; --sp-9: 128px;

  /* === Radius === */
  --r-sm: 6px; --r-md: 10px; --r-lg: 14px; --r-xl: 20px; --r-full: 9999px;

  /* === Typography === */
  --font-body: 'Pretendard', 'Noto Sans KR', system-ui, sans-serif;
  --font-display: 'Pretendard', 'Noto Sans KR', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', 'Courier New', monospace;

  /* === Easing === */
  --ease-out: cubic-bezier(0.4, 0, 0.2, 1);
  --t-fast: 0.18s var(--ease-out);
  --t-base: 0.32s var(--ease-out);
  --t-slow: 0.6s var(--ease-out);

  /* === Shadows === */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.08);

  /* === Z-Index === */
  --z-base: 1;
  --z-sticky: 40;
  --z-modal: 9999;
}

/* ==========================================================================
   💻 DEV MODE — 차분한 블루 (기본)
   ========================================================================== */
body[data-mode="dev"] {
  --brand-primary: #2563eb;
  --brand-secondary: #0ea5e9;
  --brand-light: #3b82f6;
  --brand-soft: #eff6ff;

  --bg-primary: #ffffff;
  --bg-secondary: #fafafa;
}

/* ==========================================================================
   🎨 DESIGN MODE — 따뜻한 핑크/퍼플
   ========================================================================== */
body[data-mode="design"] {
  --brand-primary: #ec4899;     /* 핑크 */
  --brand-secondary: #a855f7;   /* 퍼플 */
  --brand-light: #f472b6;
  --brand-soft: #fdf2f8;

  --bg-primary: #fffefe;
  --bg-secondary: #fdf9fb;       /* 살짝 따뜻한 톤 */
}

/* ==========================================================================
   🔄 Reset
   ========================================================================== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 80px;
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--text-primary);
  background: var(--bg-primary);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background-color var(--t-base);
}

li { list-style: none; }
a {
  text-decoration: none;
  color: inherit;
  transition: color var(--t-fast);
}
button {
  background: none;
  border: none;
  color: inherit;
  font: inherit;
  cursor: pointer;
}
img {
  display: block;
  max-width: 100%;
  height: auto;
}
input, textarea, select { font: inherit; }

/* ==========================================================================
   📦 Layout
   ========================================================================== */
.inner {
  max-width: 1320px;
  width: 100%;
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 64px);
  position: relative;
}

/* ==========================================================================
   ✨ Selection & Scrollbar
   ========================================================================== */
::selection {
  background: var(--brand-soft);
  color: var(--brand-primary);
}

::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg-secondary); }
::-webkit-scrollbar-thumb {
  background: var(--border-default);
  border-radius: var(--r-full);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--border-strong);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
