/* ==========================================================================
   PaydayFlow — Design Tokens
   Warm, calm, accessible palette & scale designed for clarity and low friction.
   ========================================================================== */

:root {
  /* Brand & Surface Palette */
  --color-bg: #F4F1E8;            /* Warm cream canvas */
  --color-bg-subtle: #ECE7DA;     /* Slightly deeper warm cream for hover/wells */
  --color-surface: #FFFFFF;       /* Clean white card surface */
  --color-surface-tinted: #F9FBF9;/* Subtle sage-white surface */

  /* Primary Sage */
  --color-primary: #6E8B75;       /* Sage green primary */
  --color-primary-hover: #5D7964; /* Deeper sage on hover */
  --color-primary-active: #4F6855;/* Pressed sage */
  --color-primary-pale: #DCE7DC;  /* Pale sage tint */
  --color-primary-soft: #EDF3ED;  /* Ultra-soft sage tint for subtle highlights */

  /* Text & Ink */
  --color-ink: #303A34;           /* Charcoal primary text */
  --color-ink-muted: #5A645E;     /* Mid charcoal for secondary body text */
  --color-text-secondary: #788078;/* Secondary metadata / captions */
  --color-text-on-primary: #FFFFFF;

  /* Semantic Status (Muted, calm tones) */
  --color-warning: #B57B2C;       /* Muted amber */
  --color-warning-bg: #FAF2E4;    /* Soft amber tint */
  --color-warning-border: #EAD5B0;

  --color-error: #B45F4D;         /* Muted terracotta */
  --color-error-bg: #F9ECE8;      /* Soft terracotta tint */
  --color-error-border: #E8C5BC;

  /* Borders & Dividers */
  --color-border: #E5E0D3;
  --color-border-strong: #D5CFC0;
  --color-border-sage: #C4D6C5;

  /* Shadows — soft and restrained */
  --shadow-xs: 0 1px 2px rgba(48, 58, 52, 0.04);
  --shadow-sm: 0 2px 8px rgba(48, 58, 52, 0.05), 0 1px 2px rgba(48, 58, 52, 0.03);
  --shadow-md: 0 8px 24px rgba(48, 58, 52, 0.07), 0 2px 6px rgba(48, 58, 52, 0.04);
  --shadow-modal: 0 20px 48px rgba(48, 58, 52, 0.16), 0 4px 12px rgba(48, 58, 52, 0.08);

  /* Radii (14–18px for cards) */
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 16px;
  --radius-xl: 18px;
  --radius-pill: 9999px;

  /* Typography */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,
    Oxygen, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif;

  --text-xs: 0.8125rem;   /* 13px — minimum readable label size */
  --text-sm: 0.875rem;    /* 14px */
  --text-base: 1rem;      /* 16px */
  --text-lg: 1.125rem;    /* 18px */
  --text-xl: 1.375rem;    /* 22px */
  --text-2xl: 1.75rem;    /* 28px */
  --text-3xl: 2.25rem;    /* 36px */
  --text-hero: 2.75rem;   /* 44px */

  --leading-tight: 1.2;
  --leading-snug: 1.35;
  --leading-normal: 1.55;
  --leading-relaxed: 1.65;

  /* 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 */

  /* Layout Dimensions */
  --sidebar-width: 256px;
  --topbar-height: 72px;
  --mobile-header-height: 60px;
  --mobile-nav-height: 68px;
  --content-max-width: 1040px;

  /* Motion — gentle & subtle */
  --transition-fast: 140ms ease;
  --transition-base: 200ms ease;
}
