/* ==========================================================================
   KEZENCIA — DESIGN SYSTEM TOKENS
   Theme: Warm Editorial Light (Restrained, Premium SaaS, Commercial Utility)
   ========================================================================== */

:root {
  /* --- Color Palette: Backgrounds (Warm Alabaster & Editorial Creams) --- */
  --bg-primary: #FAF8F5;          /* Warm alabaster canvas */
  --bg-surface: #FFFFFF;          /* Pure crisp surface for cards */
  --bg-surface-elevated: #FFFFFF; /* High-elevation card surface */
  --bg-subtle: #F3EFEA;           /* Soft tint for secondary panels */
  --bg-muted: #EBE5DC;            /* Form input bg, card hover */
  --bg-inverse: #181716;          /* Deep carbon dark surface */

  /* --- Color Palette: Typography (Deep Carbon & Warm Grays) --- */
  --text-primary: #181716;        /* Deep warm carbon text */
  --text-secondary: #57534E;      /* Editorial stone gray */
  --text-muted: #78716C;          /* Muted labels & timestamps */
  --text-subtle: #A8A29E;         /* Placeholder text */
  --text-inverse: #FAF8F5;        /* Light text on dark bg */

  /* --- Brand & Intent Accents --- */
  --accent-primary: #181716;       /* Primary graphite button */
  --accent-primary-hover: #292524;
  --accent-warm: #C2410C;          /* Terracotta / Amber accent */
  --accent-warm-light: #FFEDD5;
  --accent-warm-subtle: #FFF7ED;
  --accent-warm-border: #FDBA74;

  /* --- Semantic Status Colors --- */
  --status-success: #15803D;
  --status-success-bg: #F0FDF4;
  --status-success-border: #BBF7D0;

  --status-warning: #B45309;
  --status-warning-bg: #FFFBEB;
  --status-warning-border: #FDE68A;

  --status-danger: #B91C1C;
  --status-danger-bg: #FEF2F2;
  --status-danger-border: #FECACA;

  --status-info: #0369A1;
  --status-info-bg: #F0F9FF;
  --status-info-border: #BAE6FD;

  /* --- Borders & Dividers --- */
  --border-subtle: #EBE5DC;       /* Hairline card & divider borders */
  --border-default: #DDD5C9;      /* Standard form & UI element borders */
  --border-strong: #A8A29E;       /* Active input / emphasized border */
  --border-focus: #181716;        /* Focus ring */

  /* --- Typography System --- */
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-serif: 'Newsreader', Georgia, 'Times New Roman', serif;
  --font-mono: 'JetBrains Mono', SFMono-Regular, Menlo, Monaco, Consolas, monospace;

  /* Font Sizes */
  --text-xs: 0.75rem;     /* 12px */
  --text-sm: 0.875rem;    /* 14px */
  --text-base: 1rem;       /* 16px */
  --text-lg: 1.125rem;    /* 18px */
  --text-xl: 1.25rem;     /* 20px */
  --text-2xl: 1.5rem;     /* 24px */
  --text-3xl: 1.875rem;   /* 30px */
  --text-4xl: 2.25rem;    /* 36px */
  --text-5xl: 3rem;       /* 48px */
  --text-6xl: 3.75rem;    /* 60px */

  /* Font Weights */
  --fw-regular: 400;
  --fw-medium: 500;
  --fw-semibold: 600;
  --fw-bold: 700;
  --fw-extrabold: 800;

  /* Letter Spacing */
  --tracking-tight: -0.025em;
  --tracking-normal: 0em;
  --tracking-wide: 0.025em;
  --tracking-wider: 0.05em;

  /* --- Spacing Scale --- */
  --space-1: 0.25rem;   /* 4px */
  --space-2: 0.5rem;    /* 8px */
  --space-3: 0.75rem;   /* 12px */
  --space-4: 1rem;      /* 16px */
  --space-5: 1.25rem;   /* 20px */
  --space-6: 1.5rem;    /* 24px */
  --space-8: 2rem;      /* 32px */
  --space-10: 2.5rem;   /* 40px */
  --space-12: 3rem;     /* 48px */
  --space-16: 4rem;     /* 64px */
  --space-20: 5rem;     /* 80px */
  --space-24: 6rem;     /* 96px */

  /* --- Border Radii --- */
  --radius-xs: 6px;
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 26px;
  --radius-full: 9999px;

  /* --- Shadows (Soft, Warm, Multi-layer) --- */
  --shadow-xs: 0 1px 2px rgba(24, 23, 22, 0.04);
  --shadow-sm: 0 2px 4px rgba(24, 23, 22, 0.04), 0 1px 2px rgba(24, 23, 22, 0.02);
  --shadow-md: 0 6px 16px -2px rgba(24, 23, 22, 0.06), 0 2px 6px -1px rgba(24, 23, 22, 0.03);
  --shadow-lg: 0 16px 36px -4px rgba(24, 23, 22, 0.08), 0 4px 12px -2px rgba(24, 23, 22, 0.03);
  --shadow-xl: 0 24px 48px -8px rgba(24, 23, 22, 0.12);
  --shadow-card-hover: 0 12px 28px -4px rgba(24, 23, 22, 0.08), 0 4px 10px -2px rgba(24, 23, 22, 0.04);

  /* --- Transitions & Timing --- */
  --transition-fast: 150ms cubic-bezier(0.16, 1, 0.3, 1);
  --transition-normal: 220ms cubic-bezier(0.16, 1, 0.3, 1);
  --transition-slow: 350ms cubic-bezier(0.16, 1, 0.3, 1);

  /* --- Layout & Containers --- */
  --container-max: 1200px;
  --container-narrow: 860px;
  --container-reading: 720px;
  --header-height: 72px;

  /* --- Z-index Scale --- */
  --z-badge: 10;
  --z-dropdown: 100;
  --z-sticky: 500;
  --z-drawer: 900;
  --z-modal-backdrop: 1000;
  --z-modal: 1050;
  --z-toast: 1100;
}
