/**
 * The Salt Rim V2 - Design Tokens
 *
 * CSS custom properties (variables) defining the design system.
 * Includes color palette, typography scales, spacing system,
 * border radius, shadows, transitions, and z-index layers.
 *
 * Usage: var(--token-name)
 */

/* Brand refresh 2026-04-23: primary color changed from black to navy. --black is retained as an alias. */

:root {
  /* ==================== COLOR PALETTE ==================== */

  /* Primary Neutrals */
  --cream: #F2EDE4;
  --cream-dark: #E8E0D4;
  --cream-darker: #D9CEBC;
  --black: #131E35;       /* Keep var name for backward compat; value is now navy */
  --black-light: #1F2D4A; /* a slightly lighter navy tint for hover/accent states */
  --navy: #131E35;        /* New alias — prefer this going forward */
  --navy-light: #1F2D4A;
  --white: #FFFFFF;

  /* Accent Colors */
  --gold: #C9A84C;
  --gold-light: #DFC070;
  --gold-dark: #A8893A;

  /* Grays */
  --gray-100: #F7F4F0;
  --gray-200: #EDE9E2;
  --gray-300: #DDD8CF;
  --gray-400: #9E9589;
  --gray-500: #857C72;
  --gray-600: #6B6259;
  --gray-700: #544C44;
  --gray-800: #3D3730;

  /* ==================== TYPOGRAPHY ==================== */

  /* Font Families */
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Font Sizes — Static scale */
  --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 */

  /* Fluid Typography — clamp(min, preferred, max) */
  --fluid-xs: clamp(0.75rem, 0.7rem + 0.2vw, 0.875rem);
  --fluid-sm: clamp(0.875rem, 0.8rem + 0.3vw, 1rem);
  --fluid-base: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  --fluid-lg: clamp(1.125rem, 1rem + 0.5vw, 1.25rem);
  --fluid-xl: clamp(1.25rem, 1.1rem + 0.7vw, 1.5rem);
  --fluid-2xl: clamp(1.5rem, 1.2rem + 1.2vw, 2rem);
  --fluid-3xl: clamp(1.75rem, 1.4rem + 1.5vw, 2.5rem);
  --fluid-4xl: clamp(2rem, 1.5rem + 2vw, 3rem);
  --fluid-5xl: clamp(2.5rem, 1.8rem + 3vw, 3.75rem);

  /* Touch-friendly sizing */
  --touch-target-min: 48px;
  --input-height-mobile: 48px;
  --input-font-min: 16px;      /* Prevents iOS auto-zoom */

  /* ==================== SPACING SYSTEM ==================== */

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

  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  /* ==================== SHADOWS ==================== */

  --shadow-sm: 0 1px 3px rgba(19, 30, 53, 0.08);
  --shadow-md: 0 4px 16px rgba(19, 30, 53, 0.10);
  --shadow-lg: 0 8px 32px rgba(19, 30, 53, 0.12);
  --shadow-xl: 0 16px 48px rgba(19, 30, 53, 0.16);
  --shadow-gold: 0 4px 20px rgba(201, 168, 76, 0.25);

  /* ==================== TRANSITIONS ==================== */

  --transition-fast: 150ms ease;
  --transition-base: 250ms ease;
  --transition-slow: 400ms ease;

  /* ==================== Z-INDEX LAYERS ==================== */

  --z-dropdown: 100;
  --z-sticky: 200;
  --z-modal: 300;
  --z-toast: 400;

  /* ==================== MAX WIDTHS ==================== */

  --max-width-sm: 640px;
  --max-width-md: 768px;
  --max-width-lg: 1024px;
  --max-width-xl: 1280px;
  --max-width-2xl: 1440px;
}
