/**
 * CSS Variables (Design Tokens)
 * Global design system: colors, typography, spacing, etc.
 */

:root {
    /* ========================================
     * Colors - Warm, Christian Theme
     * ======================================== */

    /* Primary - Warm Brown (Grounded, Earthy) */
    --color-primary: #8B6F47;
    --color-primary-light: #A58A68;
    --color-primary-dark: #6B5537;

    /* Secondary - Gold (Scripture, Divine) */
    --color-secondary: #D4AF37;
    --color-secondary-light: #E5C76B;
    --color-secondary-dark: #B8941F;

    /* Neutrals */
    --color-white: #FFFFFF;
    --color-gray-50: #FAFAF9;
    --color-gray-100: #F5F5F4;
    --color-gray-200: #E7E5E4;
    --color-gray-300: #D6D3D1;
    --color-gray-400: #A8A29E;
    --color-gray-500: #78716C;
    --color-gray-600: #57534E;
    --color-gray-700: #44403C;
    --color-gray-800: #292524;
    --color-gray-900: #1C1917;
    --color-black: #000000;

    /* Semantic Colors */
    --color-success: #16A34A;
    --color-error: #DC2626;
    --color-warning: #EA580C;
    --color-info: #2563EB;

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

    /* Font Families */
    --font-sans: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --font-serif: Georgia, Cambria, 'Times New Roman', Times, serif;
    --font-mono: 'Courier New', Courier, monospace;

    /* Font Sizes (Mobile-First) */
    --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: 1.875rem;  /* 30px */
    --text-4xl: 2.25rem;   /* 36px */

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

    /* Line Heights */
    --leading-tight: 1.25;
    --leading-normal: 1.5;
    --leading-relaxed: 1.75;

    /* ========================================
     * Spacing (Mobile-First, 4px Grid)
     * ======================================== */
    --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 */

    /* ========================================
     * Layout
     * ======================================== */
    --container-max-width: 1200px;
    --content-max-width: 800px;
    --sidebar-width: 300px;

    /* ========================================
     * Borders & Radii
     * ======================================== */
    --border-radius-sm: 0.25rem;   /* 4px */
    --border-radius-md: 0.5rem;    /* 8px */
    --border-radius-lg: 1rem;      /* 16px */
    --border-radius-full: 9999px;

    --border-width: 1px;
    --border-color: var(--color-gray-300);

    /* ========================================
     * Shadows
     * ======================================== */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);

    /* ========================================
     * Transitions
     * ======================================== */
    --transition-fast: 150ms ease-in-out;
    --transition-base: 250ms ease-in-out;
    --transition-slow: 350ms ease-in-out;

    /* ========================================
     * Z-Index Scale
     * ======================================== */
    --z-dropdown: 1000;
    --z-sticky: 1020;
    --z-fixed: 1030;
    --z-modal-backdrop: 1040;
    --z-modal: 1050;
    --z-popover: 1060;
    --z-tooltip: 1070;
}

/* ========================================
 * Desktop Adjustments (768px+)
 * ======================================== */
@media (min-width: 768px) {
    :root {
        /* Larger text on desktop */
        --text-base: 1.125rem;   /* 18px */
        --text-lg: 1.25rem;      /* 20px */
        --text-xl: 1.5rem;       /* 24px */
        --text-2xl: 1.875rem;    /* 30px */
        --text-3xl: 2.25rem;     /* 36px */
        --text-4xl: 3rem;        /* 48px */
    }
}
