/* ============================================
   MA POPOTE - Design System Tokens
   Source: dribbble-COMPILED.md (canonical)
   Style: Nature Distilled + Soft UI Evolution
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;0,800;1,400;1,500&family=Karla:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400&display=swap');

:root {
  /* ---- Colors: Light Mode ---- */
  --bg-primary: #F5F0E1;
  --bg-surface: #FFFFFF;
  --bg-warm: #FDF8EE;
  --bg-warm-alt: #FAF5E9;
  --bg-overlay: rgba(45, 32, 20, 0.5);
  --bg-overlay-blur: rgba(45, 32, 20, 0.3);

  --text-primary: #2D2014;
  --text-secondary: #6B5E4F;
  --text-tertiary: #9B8E7F;
  --text-inverse: #F5F0E1;
  --text-on-accent: #FFFFFF;

  --accent-primary: #C67B5C;
  --accent-primary-hover: #B56A4B;
  --accent-primary-light: rgba(198, 123, 92, 0.12);
  --accent-secondary: #B5651D;
  --accent-secondary-hover: #A4570F;
  --accent-cta: #CA8A04;
  --accent-cta-hover: #B87A03;
  --accent-cta-light: rgba(202, 138, 4, 0.12);
  --accent-success: #6B7B3C;
  --accent-success-light: rgba(107, 123, 60, 0.12);
  --accent-error: #C53030;
  --accent-error-light: rgba(197, 48, 48, 0.12);
  --accent-warning: #D97706;
  --accent-warning-light: rgba(217, 119, 6, 0.12);
  --accent-info: #2563EB;
  --accent-info-light: rgba(37, 99, 235, 0.12);

  --border: #E8DFD0;
  --border-strong: #D4C9B8;
  --border-focus: #C67B5C;

  /* ---- Typography ---- */
  --font-heading: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-body: 'Karla', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', 'SF Mono', 'Fira Code', monospace;

  /* Type Scale */
  --text-xs: 0.75rem;     /* 12px */
  --text-sm: 0.875rem;    /* 14px */
  --text-base: 1rem;      /* 16px */
  --text-lg: 1.125rem;    /* 18px */
  --text-xl: 1.5rem;      /* 24px */
  --text-2xl: 1.875rem;   /* 30px */
  --text-3xl: 2.25rem;    /* 36px */
  --text-display: 3rem;   /* 48px */

  /* Line Heights */
  --leading-tight: 1.2;
  --leading-snug: 1.375;
  --leading-normal: 1.5;
  --leading-relaxed: 1.625;

  /* Font Weights */
  --weight-light: 300;
  --weight-normal: 400;
  --weight-medium: 500;
  --weight-semibold: 600;
  --weight-bold: 700;
  --weight-extrabold: 800;

  /* ---- Spacing ---- */
  --space-xs: 0.25rem;    /* 4px */
  --space-sm: 0.5rem;     /* 8px */
  --space-md: 1rem;       /* 16px */
  --space-lg: 1.5rem;     /* 24px */
  --space-xl: 2rem;       /* 32px */
  --space-2xl: 3rem;      /* 48px */
  --space-3xl: 4rem;      /* 64px */
  --space-4xl: 6rem;      /* 96px */

  /* ---- Border Radius ---- */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-2xl: 24px;
  --radius-full: 9999px;

  /* ---- Shadows ---- */
  --shadow-sm: 0 1px 2px rgba(45, 32, 20, 0.05);
  --shadow-md: 0 4px 6px rgba(45, 32, 20, 0.08);
  --shadow-lg: 0 10px 15px rgba(45, 32, 20, 0.1);
  --shadow-xl: 0 20px 25px rgba(45, 32, 20, 0.12);
  --shadow-inner: inset 0 2px 4px rgba(45, 32, 20, 0.06);

  /* ---- Transitions ---- */
  --transition-fast: 150ms ease;
  --transition-base: 200ms ease;
  --transition-slow: 300ms ease-out;
  --transition-spring: 400ms cubic-bezier(0.34, 1.56, 0.64, 1);

  /* ---- Z-Index Scale ---- */
  --z-base: 0;
  --z-dropdown: 100;
  --z-sticky: 200;
  --z-fixed: 300;
  --z-modal-backdrop: 400;
  --z-modal: 500;
  --z-toast: 600;
  --z-tooltip: 700;

  /* ---- Layout ---- */
  --container-sm: 640px;
  --container-md: 768px;
  --container-lg: 1024px;
  --container-xl: 1280px;
  --container-2xl: 1440px;
  --sidebar-width: 260px;
  --header-height: 64px;
  --bottom-nav-height: 72px;
  --touch-target: 44px;
}
