/* ==========================================================================
   Design System: CSS Custom Properties
   CrearSoftware.com — Editorial premium cálida
   ========================================================================== */

:root {
  /* Colors */
  --color-bg: #FAFAF8;
  --color-text: #2C2C2C;
  --color-accent: #B35A2B;
  --color-accent-hover: #8A4420;
  --color-secondary: #6B8E5A;
  --color-border: #E8E6E1;
  --color-code-bg: #F5F3EE;
  --color-link: #B35A2B;
  --color-link-hover: #8A4420;
  --color-white: #FFFFFF;
  --color-text-muted: #6B6B6B;
  --color-bg-alt: #F5F3EE;

  /* Typography — Families */
  --font-heading: 'Libre Baskerville', Georgia, 'Times New Roman', serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-code: 'IBM Plex Mono', 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;

  /* Typography — Sizes */
  --text-base: 1.125rem;    /* 18px */
  --text-sm: 0.875rem;      /* 14px */
  --text-xs: 0.75rem;       /* 12px */
  --text-lg: 1.25rem;       /* 20px */
  --text-xl: 1.5rem;        /* 24px */
  --text-h1: 2.5rem;        /* 40px */
  --text-h2: 1.8rem;        /* ~29px */
  --text-h3: 1.4rem;        /* ~22px */

  /* Typography — Line heights */
  --leading-body: 1.7;
  --leading-heading: 1.3;
  --leading-tight: 1.2;

  /* Typography — Weights */
  --weight-normal: 400;
  --weight-medium: 500;
  --weight-bold: 700;

  /* Spacing scale (4px base) */
  --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 */

  /* Layout widths */
  --width-article: 720px;
  --width-guide: 900px;
  --width-grid: 1200px;
  --width-nav: 1200px;

  /* Border radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(44, 44, 44, 0.05);
  --shadow-md: 0 4px 12px rgba(44, 44, 44, 0.08);
  --shadow-lg: 0 8px 24px rgba(44, 44, 44, 0.1);

  /* Transitions */
  --transition-fast: 0.15s ease;
  --transition-base: 0.2s ease;
  --transition-slow: 0.3s ease;

  /* Z-index scale */
  --z-sticky: 100;
  --z-nav: 200;
  --z-overlay: 300;
  --z-modal: 400;
}

/* Breakpoint tokens (used as reference; actual media queries use px values)
   - Mobile: 0 - 767px (base styles)
   - Tablet: 768px+
   - Desktop: 1024px+
   - Wide: 1200px+
*/
