/* Theme Colors - Based on Swift app */
:root {
  /* Brand Colors */
  --brand-primary-light: #D4A574;
  --brand-primary-dark: #E8C9A0;
  --brand-secondary-light: #B8935E;
  --brand-secondary-dark: #F0D9B8;
  
  /* Ochre Grey Palette */
  --ochre-grey-10: #1A1410;
  --ochre-grey-20: #2E2620;
  --ochre-grey-30: #433830;
  --ochre-grey-40: #584A40;
  --ochre-grey-50: #6D5C50;
  --ochre-grey-60: #8A7869;
  --ochre-grey-70: #A79582;
  --ochre-grey-80: #C4B29B;
  --ochre-grey-90: #E1CFB4;
  --ochre-grey-95: #F0E7D9;
  --ochre-grey-99: #FFFBFF;
  
  /* System Colors */
  --background-light: #FFFBFF;
  --background-dark: #1A1410;
  --surface-light: #FFF8F0;
  --surface-dark: #2E2620;
  --text-primary-light: #1A1410;
  --text-primary-dark: #E1CFB4;
  --text-secondary-light: #584A40;
  --text-secondary-dark: #C4B29B;
  
  /* Semantic Colors */
  --error: #BA1A1A;
  --success: #2E7D32;
  --warning: #F57C00;
  
  /* Spacing - Apple's 8-point grid system */
  --spacing-xs: 4px;
  --spacing-sm: 8px;
  --spacing-md: 16px;
  --spacing-lg: 24px;
  --spacing-xl: 32px;
  --spacing-2xl: 48px;

  /* Border Radius - Apple's refined curves */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-xl: 20px;
  --radius-2xl: 28px;

  /* Shadows - Apple's subtle, layered elevation */
  --shadow-xs: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.08), 0 1px 2px 0 rgba(0, 0, 0, 0.02);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -1px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.03);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.08), 0 10px 10px -5px rgba(0, 0, 0, 0.02);

  /* Transitions - Apple's spring-like motion */
  --transition-fast: 200ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-medium: 300ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 500ms cubic-bezier(0.4, 0, 0.1, 1);
  --transition-spring: 400ms cubic-bezier(0.34, 1.56, 0.64, 1);

  /* Typography - Apple's San Francisco scales */
  --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 */

  /* Line Heights */
  --line-height-tight: 1.2;
  --line-height-normal: 1.5;
  --line-height-relaxed: 1.625;
  --line-height-loose: 2;

  /* Font Weights */
  --font-weight-normal: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;
}

/* Dark mode overrides */
@media (prefers-color-scheme: dark) {
  :root {
    --background: var(--background-dark);
    --surface: var(--surface-dark);
    --text-primary: var(--text-primary-dark);
    --text-secondary: var(--text-secondary-dark);
    --brand-primary: var(--brand-primary-dark);
  }
}

/* Light mode overrides */
@media (prefers-color-scheme: light) {
  :root {
    --background: var(--background-light);
    --surface: var(--surface-light);
    --text-primary: var(--text-primary-light);
    --text-secondary: var(--text-secondary-light);
    --brand-primary: var(--brand-primary-light);
  }
}
