/* Design tokens — the single source for colour/space/type (SRS §2).
   Seeded minimally; the tokens task fills the full Saasto palette. */
:root {
  /*
   * ====================================
   * Color Palette
   * ====================================
   */

  /* Primary Colors (Violet — Saasto brand) */
  --color-primary-50: #EBE8FA; /* Derived from #7562e0 */
  --color-primary-100: #D8D0F5;
  --color-primary-200: #C4B9F0;
  --color-primary-300: #B1A2EB;
  --color-primary-400: #9D8BE6;
  --color-primary-500: #7562e0; /* Main primary shade */
  --color-primary-600: #5746be; /* Derived from #7562e0 */
  --color-primary-700: #3A2C9C; /* Derived from #7562e0 */
  --color-primary-800: #1C1079;
  --color-primary-900: #000057;
  /* Alias for backward compatibility */
  --color-primary: var(--color-primary-500);

  /* Accent Colors (Red shades as an example, adjust as per Saasto palette) */
  --color-accent-50: #F2F0FC; /* Derived from #8976fd */
  --color-accent-100: #E5E1F9;
  --color-accent-200: #CCC3F3;
  --color-accent-300: #A996E9;
  --color-accent-400: #8B72DE;
  --color-accent-500: #8976fd; /* Main accent shade */
  --color-accent-600: #6A5BDD;
  --color-accent-700: #4B40BC;
  --color-accent-800: #2C259B;
  --color-accent-900: #0D0A7A;

  /* Neutral/Grayscale Colors (as an example, adjust as per Saasto palette) */
  --color-neutral-50: #f9fafb; /* Keep light neutrals close to original for surface, unless explicitly changed */
  --color-neutral-100: #f3f4f6;
  --color-neutral-200: #e5e7eb;
  --color-neutral-300: #d1d5db;
  --color-neutral-400: #9ca3af;
  --color-neutral-500: #6b7280;
  --color-neutral-600: #5e587a; /* Using new text-light directly for this shade */
  --color-neutral-700: #374151;
  --color-neutral-800: #332c5c; /* Using new text-dark directly for this shade */
  --color-neutral-900: #111827; /* Keep darkest neutral for footer background */

  /* Semantic Colors - keeping original values as no specific changes mentioned */
  --color-success-50: #ecfdf5;
  --color-success-500: #10b981; /* Default success color */
  --color-success-700: #047857;

  --color-warning-50: #fffbeb;
  --color-warning-500: #f59e0b; /* Default warning color */
  --color-warning-700: #b45309;

  --color-error-50: #fef2f2;
  --color-error-500: #ef4444; /* Default error color */
  --color-error-700: #b91c1c;

  --color-info-50: #eff6ff;
  --color-info-500: #3b82f6; /* Default info color */
  --color-info-700: #1d4ed8;

  /* Text Colors - now directly use the new hex values */
  --color-text-base: #332c5c; /* Replaces var(--color-neutral-800) */
  --color-text-light: #5e587a; /* Replaces var(--color-neutral-600) */
  --color-text-dark: #332c5c; /* Replaces var(--color-neutral-900), now matching text-base */
  /* Aliases for backward compatibility */
  --color-text: var(--color-text-base);
  --color-text-muted: var(--color-text-light);

  /* Surface Colors */
  --color-surface-base: var(--color-neutral-50);
  --color-surface-muted: var(--color-neutral-100);
  --color-surface-dark: var(--color-neutral-200);
  /* Alias for backward compatibility */
  --color-surface: var(--color-surface-base);

  /*
   * ====================================
   * Typography
   * ====================================
   */

  /* Font Families */
  --font-family-sans: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
  --font-family-serif: ui-serif, Georgia, Cambria, "Times New Roman", Times, serif;
  --font-family-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  /* Alias for backward compatibility */
  --font-sans: var(--font-family-sans);

  /* Font Sizes (based on a responsive scale, e.g., 1rem = 16px) */
  --font-size-xs: 0.75rem;   /* 12px */
  --font-size-sm: 0.875rem;  /* 14px */
  --font-size-base: 1rem;    /* 16px */
  --font-size-lg: 1.125rem;  /* 18px */
  --font-size-xl: 1.25rem;   /* 20px */
  --font-size-2xl: 1.5rem;   /* 24px */
  --font-size-3xl: 1.875rem; /* 30px */
  --font-size-4xl: 2.25rem;  /* 36px */
  --font-size-5xl: 3rem;     /* 48px */
  --font-size-6xl: 3.75rem;  /* 60px */

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

  /* Line Heights */
  --line-height-none: 1;
  --line-height-tight: 1.25;
  --line-height-snug: 1.375;
  --line-height-normal: 1.5;
  --line-height-relaxed: 1.625;
  --line-height-loose: 2;

  /*
   * ====================================
   * Spacing System (8-point grid, using rem units)
   * ====================================
   */

  --space-px: 1px;
  --space-0-5: 0.125rem; /* 2px */
  --space-1: 0.25rem;   /* 4px */
  --space-1-5: 0.375rem; /* 6px */
  --space-2: 0.5rem;    /* 8px */
  --space-2-5: 0.625rem; /* 10px */
  --space-3: 0.75rem;   /* 12px */
  --space-3-5: 0.875rem; /* 14px */
  --space-4: 1rem;      /* 16px */
  --space-5: 1.25rem;   /* 20px */
  --space-6: 1.5rem;    /* 24px */
  --space-7: 1.75rem;   /* 28px */
  --space-8: 2rem;      /* 32px */
  --space-9: 2.25rem;   /* 36px */
  --space-10: 2.5rem;   /* 40px */
  --space-11: 2.75rem;   /* 44px */
  --space-12: 3rem;     /* 48px */
  --space-14: 3.5rem;   /* 56px */
  --space-16: 4rem;     /* 64px */
  --space-20: 5rem;     /* 80px */
  --space-24: 6rem;     /* 96px */
  --space-28: 7rem;     /* 112px */
  --space-32: 8rem;     /* 128px */
  --space-36: 9rem;     /* 144px */
  --space-40: 10rem;    /* 160px */
  --space-44: 11rem;    /* 176px */
  --space-48: 12rem;    /* 192px */
  --space-52: 13rem;    /* 208px */
  --space-56: 14rem;    /* 224px */
  --space-60: 15rem;    /* 240px */
  --space-64: 16rem;    /* 256px */
  --space-72: 18rem;    /* 288px */
  --space-80: 20rem;    /* 320px */
  --space-96: 24rem;    /* 384px */

  /* Aliases for backward compatibility */
  /* --space-1, --space-2, --space-4, --space-8 are already defined within the comprehensive scale above. */

  /*
   * ====================================
   * Border Radius
   * ====================================
   */

  --radius-none: 0px;
  --radius-sm: 0.125rem; /* 2px */
  --radius-md: 0.25rem;  /* 4px */
  --radius-lg: 0.5rem;   /* 8px */
  --radius-xl: 0.75rem;  /* 12px */
  --radius-2xl: 1rem;    /* 16px */
  --radius-3xl: 1.5rem;  /* 24px */
  --radius-full: 9999px; /* Fully rounded */
  /* Alias for backward compatibility */
  --radius: var(--radius-md);

  /*
   * ====================================
   * Responsive Breakpoints
   * ====================================
   */

  --breakpoint-sm: 640px;  /* Small screens, e.g., phones (landscape) */
  --breakpoint-md: 768px;  /* Medium screens, e.g., tablets */
  --breakpoint-lg: 1024px; /* Large screens, e.g., laptops */
  --breakpoint-xl: 1280px; /* Extra large screens, e.g., desktops */
  --breakpoint-2xl: 1536px;/* Double extra large screens */
}
