/* Amber Design Tokens */

:root {
  /* ==================== Colors ==================== */

  /* Primary Palette */
  --color-amber-gold: #D4A253;
  --color-deep-brown: #4A3728;
  --color-soft-cream: #F5EDE0;
  --color-rich-black: #1A1614;

  /* Extended Palette */
  --color-warm-white: #FAF8F5;
  --color-amber-light: #E8C78A;
  --color-amber-dark: #B8863D;
  --color-brown-light: #6B5442;
  --color-brown-dark: #2D1F17;

  /* Semantic Colors */
  --color-primary: var(--color-amber-gold);
  --color-secondary: var(--color-deep-brown);
  --color-background: var(--color-rich-black);
  --color-surface: var(--color-brown-dark);
  --color-text-primary: var(--color-soft-cream);
  --color-text-secondary: var(--color-brown-light);
  --color-accent: var(--color-amber-gold);

  /* State Colors */
  --color-hover: var(--color-amber-light);
  --color-active: var(--color-amber-dark);
  --color-focus: var(--color-amber-gold);

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

  /* Font Families */
  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Source Serif 4', 'Source Serif Pro', Georgia, serif;
  --font-ui: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Font Sizes */
  --text-xs: 0.75rem;    /* 12px */
  --text-sm: 0.875rem;   /* 14px */
  --text-base: 1rem;     /* 16px */
  --text-lg: 1.125rem;   /* 18px */
  --text-xl: 1.25rem;    /* 20px */
  --text-2xl: 1.5rem;    /* 24px */
  --text-3xl: 2.25rem;   /* 36px */
  --text-4xl: 3rem;      /* 48px */
  --text-5xl: 4.5rem;    /* 72px */

  /* Line Heights */
  --leading-none: 1;
  --leading-tight: 1.1;
  --leading-snug: 1.25;
  --leading-normal: 1.5;
  --leading-relaxed: 1.6;
  --leading-loose: 1.75;

  /* Font Weights */
  --font-regular: 400;
  --font-medium: 500;
  --font-semibold: 600;
  --font-bold: 700;

  /* Letter Spacing */
  --tracking-tight: -0.02em;
  --tracking-normal: 0;
  --tracking-wide: 0.02em;

  /* ==================== Spacing ==================== */

  --space-px: 1px;
  --space-0: 0;
  --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 */
  --space-32: 8rem;     /* 128px */

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

  --radius-none: 0;
  --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;

  /* ==================== Shadows ==================== */

  --shadow-sm: 0 1px 2px rgba(26, 22, 20, 0.2);
  --shadow-md: 0 4px 8px rgba(26, 22, 20, 0.25);
  --shadow-lg: 0 8px 24px rgba(26, 22, 20, 0.3);
  --shadow-xl: 0 16px 48px rgba(26, 22, 20, 0.35);

  /* Glow Effects */
  --glow-amber: 0 0 20px rgba(212, 162, 83, 0.4);
  --glow-amber-strong: 0 0 40px rgba(212, 162, 83, 0.6);

  /* ==================== Transitions ==================== */

  --duration-fast: 150ms;
  --duration-normal: 200ms;
  --duration-slow: 300ms;
  --duration-slower: 400ms;

  --ease-default: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-in: cubic-bezier(0.4, 0, 1, 1);
  --ease-out: cubic-bezier(0, 0, 0.2, 1);
  --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);

  /* ==================== Z-Index ==================== */

  --z-base: 0;
  --z-dropdown: 100;
  --z-sticky: 200;
  --z-modal: 300;
  --z-tooltip: 400;
  --z-toast: 500;

  /* ==================== Breakpoints (reference) ==================== */
  /*
   * --bp-sm: 640px;
   * --bp-md: 768px;
   * --bp-lg: 1024px;
   * --bp-xl: 1280px;
   * --bp-2xl: 1536px;
   */
}

/* ==================== Light Mode Override ==================== */

[data-theme="light"] {
  --color-background: var(--color-warm-white);
  --color-surface: var(--color-soft-cream);
  --color-text-primary: var(--color-rich-black);
  --color-text-secondary: var(--color-deep-brown);
}

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

.text-display {
  font-family: var(--font-display);
  font-size: var(--text-5xl);
  font-weight: var(--font-bold);
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-tight);
}

.text-h1 {
  font-family: var(--font-display);
  font-size: var(--text-4xl);
  font-weight: var(--font-semibold);
  line-height: var(--leading-tight);
}

.text-h2 {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: var(--font-semibold);
  line-height: var(--leading-snug);
}

.text-h3 {
  font-family: var(--font-ui);
  font-size: var(--text-2xl);
  font-weight: var(--font-semibold);
  line-height: var(--leading-snug);
}

.text-h4 {
  font-family: var(--font-ui);
  font-size: var(--text-xl);
  font-weight: var(--font-semibold);
  line-height: var(--leading-normal);
}

.text-body-lg {
  font-family: var(--font-body);
  font-size: var(--text-lg);
  font-weight: var(--font-regular);
  line-height: var(--leading-relaxed);
}

.text-body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: var(--font-regular);
  line-height: var(--leading-relaxed);
}

.text-small {
  font-family: var(--font-ui);
  font-size: var(--text-sm);
  font-weight: var(--font-regular);
  line-height: var(--leading-normal);
}

.text-caption {
  font-family: var(--font-ui);
  font-size: var(--text-xs);
  font-weight: var(--font-medium);
  line-height: var(--leading-normal);
}
