/* ============================================
   DESIGN TOKENS
   Shared CSS variables for all apps
   ============================================ */

:root {
  /* =========================================
   * Colors — Text
   * ========================================= */
  --ink: #000000;
  --ink-light: #464545;
  --ink-muted: #707070;
  --ink-disabled: #6d6d6d;

  /* =========================================
   * Colors — Background
   * ========================================= */
  --surface: #ffffff;
  --canvas: #f5f5f5;
  --canvas-warm: #ebe9e5;
  --bg-base: #f7f7f5;
  --bg-layer1: #ffffff;
  --bg-layer2: #edede8;
  --bg-disabled: #898989;

  /* =========================================
   * Colors — Border
   * ========================================= */
  --border: #e5e7eb;
  --border-hover: #d1d5db;
  --border-input: #707070;
  --border-accent: #c6c6bc;
  --border-error: #df3e3e;
  --border-muted: #979797;          /* Bohomes filter area border */

  /* =========================================
   * Colors — Placeholder
   * ========================================= */
  --placeholder: #767676;           /* Input placeholder text — WCAG 4.54:1 */
  --placeholder-light: #9ca3af;     /* Light placeholder (no-image text) */

  /* =========================================
   * Colors — Gray Scale
   * ========================================= */
  --gray-50: hsl(0, 0%, 93%);   /* xlight */
  --gray-100: hsl(0, 0%, 85%);  /* light */
  --gray-400: hsl(0, 0%, 58%);  /* medium */
  --gray-500: #6b7280;
  --gray-600: #4b5563;

  /* =========================================
   * Colors — Brand
   * ========================================= */
  --brand-rose: #faf1f1;
  --brand-rose-dark: #f8e5e5;
  --brand-rose-btn: #f6e3e4;
  --brand-greige: #f5f4f2;
  --brand-greige-dark: #ebe9e5;
  --brand-greige-btn: #ebe9e5;
  --brand-terracotta: #643335;
  --brand-brown: #4b3030;
  --brand-blush: #f0d2d2;
  --brand-gold: #c8af8c;

  /* =========================================
   * Colors — Semantic
   * ========================================= */
  --error: #dc2626;
  --error-light: #d95757;
  --success: #16a34a;
  --success-light: #98c93c;
  --warning: #d97706;
  --info: #3279a6;

  /* =========================================
   * Colors — Actions
   * ========================================= */
  /* Primary (dark) */
  --primary: #000000;
  --primary-hover: #464545;
  --primary-press: #595858;
  --on-primary: #ffffff;

  /* Secondary (light) */
  --secondary: #edede8;
  --secondary-hover: #e4e4da;
  --secondary-press: #d6d6c7;
  --on-secondary: #000000;

  /* States & Overlays */
  --state-hover: rgba(0, 0, 0, 0.06);
  --state-press: rgba(0, 0, 0, 0.12);
  --overlay-dark: rgba(0, 0, 0, 0.6);

  /* Focus */
  --focus-ring: #84caff;

  /* =========================================
   * Typography — Fonts
   * ========================================= */
  --font-family: 'Gotham SSm A', 'Gotham SSm B', system-ui, sans-serif;
  --font-family-serif: 'freight-display-pro', serif;

  /* =========================================
   * Typography — Font Weights
   * ========================================= */
  --font-weight-light: 300;
  --font-weight-book: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;
  --font-weight-heavy: 900;

  /* =========================================
   * Typography — Font Sizes
   * ========================================= */
  --font-size-2xs: 0.625rem;    /* 10px */
  --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: 2.625rem;    /* 42px */

  /* Component-specific */
  --font-size-label: 0.8125rem; /* 13px */
  --font-size-data: 0.9375rem;  /* 15px */
  --font-size-h1-mobile: 1.625rem; /* 26px - BoFi mobile */
  --font-size-h1: 1.875rem;     /* 30px - BoFi desktop */

  /* Bohomes H1 (larger) */
  --font-size-h1-bohomes: 2.5rem;        /* 40px - Bohomes desktop */
  --font-size-h1-bohomes-mobile: 1.75rem; /* 28px - Bohomes mobile */

  /* =========================================
   * Typography — Presets
   * ========================================= */
  /* Title Large */
  --title-lg-size: 1.75rem;     /* 28px */
  --title-lg-line: 2.375rem;    /* 38px */
  --title-lg-weight: 700;
  --title-lg-tracking: 0.5px;

  /* Title Medium */
  --title-md-size: 1.25rem;     /* 20px */
  --title-md-line: 1.875rem;    /* 30px */
  --title-md-weight: 700;
  --title-md-tracking: 0;

  /* Title Small */
  --title-sm-size: 1rem;        /* 16px */
  --title-sm-line: 1.5rem;      /* 24px */
  --title-sm-weight: 700;
  --title-sm-tracking: 0;

  /* Body */
  --body-size: 1rem;            /* 16px */
  --body-line: 1.5rem;          /* 24px */
  --body-weight: 400;
  --body-tracking: 0;

  /* Button */
  --button-size: 0.875rem;      /* 14px */
  --button-line: 1.125rem;      /* 18px */
  --button-weight: 500;
  --button-tracking: 1px;
  --button-transform: uppercase;

  /* =========================================
   * Spacing (4px 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-9: 2.25rem;           /* 36px */
  --space-10: 2.5rem;           /* 40px */
  --space-12: 3rem;             /* 48px */
  --space-14: 3.5rem;           /* 56px */
  --space-16: 4rem;             /* 64px */
  --space-20: 5rem;             /* 80px */

  /* =========================================
   * Layout — Widths
   * ========================================= */
  --width-xs: 20rem;            /* 320px */
  --width-sm: 24rem;            /* 384px */
  --width-md: 28rem;            /* 448px */
  --width-lg: 32rem;            /* 512px */
  --width-xl: 36rem;            /* 576px */
  --width-2xl: 42rem;           /* 672px */
  --width-content: 45rem;       /* 720px */
  --width-content-wide: 56.25rem; /* 900px */
  --width-page: 75rem;          /* 1200px */
  --width-page-wide: 90rem;     /* 1440px */

  /* =========================================
   * Layout — Breakpoints
   * Note: CSS custom properties can't be used in @media queries directly.
   * These are documented here for reference and used via PostCSS/Sass.
   * ========================================= */
  --breakpoint-sm: 640px;           /* Mobile landscape */
  --breakpoint-md: 768px;           /* Tablet */
  --breakpoint-lg: 1024px;          /* Desktop */
  --breakpoint-xl: 1280px;          /* Large desktop */

  /* =========================================
   * Layout — Bohomes Search Page
   * ========================================= */
  --bohomes-content-max: 65rem;     /* 1040px - main content area */
  --bohomes-form-col-max: 31rem;    /* 496px - single form column */
  --bohomes-range-max: 48.75rem;    /* 780px - range input max-width */
  --bohomes-sort-select-w: 22.125rem; /* 354px - sort dropdown width */

  /* =========================================
   * Layout — BoFi Search Page
   * ========================================= */
  --bofi-content-max: 78rem;        /* 1248px - main content area (original) */

  /* =========================================
   * Layout — Aspect Ratios
   * ========================================= */
  --ratio-square: 1;
  --ratio-4-3: 4 / 3;
  --ratio-3-4: 3 / 4;
  --ratio-3-2: 3 / 2;
  --ratio-2-3: 2 / 3;
  --ratio-16-9: 16 / 9;
  --ratio-9-16: 9 / 16;

  /* =========================================
   * Effects — Border Radius
   * ========================================= */
  --radius-sm: 0.25rem;         /* 4px */
  --radius-md: 0.5rem;          /* 8px */
  --radius-lg: 0.75rem;         /* 12px */
  --radius-xl: 1rem;            /* 16px */
  --radius-2xl: 1.5rem;         /* 24px */
  --radius-full: 9999px;

  /* =========================================
   * Effects — Shadows
   * ========================================= */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.07);
  --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.15);

  /* Decorative */
  --shadow-natural: 6px 6px 9px rgba(0, 0, 0, 0.2);
  --shadow-deep: 12px 12px 50px rgba(0, 0, 0, 0.4);
  --shadow-sharp: 6px 6px 0 rgba(0, 0, 0, 0.2);
  --shadow-crisp: 6px 6px 0 rgba(0, 0, 0, 1);

  /* =========================================
   * Effects — Transitions
   * ========================================= */
  --transition-fast: 0.1s ease;
  --transition-base: 0.15s ease;
  --transition-medium: 0.2s ease;    /* Card hover (original value) */
  --transition-slow: 0.3s ease;

  /* =========================================
   * Component — Slider (noUiSlider)
   * ========================================= */
  --slider-track: #D1D1D1;          /* Slider track background */
  --slider-connect: #707070;        /* Slider active segment */
  --slider-handle: #000000;         /* Slider handle */

  /* =========================================
   * Component — Card
   * ========================================= */
  --card-no-image: #e5e5e5;         /* No image placeholder background */
}
