/* Phase 3 Brand Typography */
@import url('https://fonts.googleapis.com/css2?family=Lora:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500&family=Playfair+Display:wght@400;500;600;700;800&family=Kalam:wght@300;400;700&family=Cormorant+SC:wght@400;500;600;700&family=EB+Garamond:ital,wght@0,400;0,500;0,600;1,400;1,500&family=Inter:wght@300;400;500;600&display=swap');

:root {
    /* ===== PRIMARY BRAND (Gold) ===== */
    --color-primary: #C5A55A;
    --color-primary-dark: #a87f55;
    --color-primary-light: #e8d4b8;

    /* ===== BACKGROUNDS — Warm Parchment ===== */
    --bg-primary: #FDF8EF;
    --bg-secondary: #F5E6C8;
    --bg-nav: #8B6F47;
    --bg-surface: #E8D5B0;
    /* Legacy aliases (used across existing pages) */
    --color-background: #FDF8EF;
    --color-surface: #F5E6C8;
    --color-cream-dark: #E8D5B0;

    /* ===== TEXT — Warm Ink ===== */
    --text-primary: #3B2314;
    --text-secondary: #8B6F47;
    --text-accent: #7A8B6F;
    --text-heading: #5C1A1B;
    /* Legacy aliases */
    --color-text-primary: #3B2314;
    --color-text-secondary: #8B6F47;
    --color-text-muted: #8B6F47;
    --color-text-inverse: #FDF8EF;

    /* ===== ACCENTS ===== */
    --accent-gold: #C5A55A;
    --accent-burgundy: #5C1A1B;
    --accent-sage: #7A8B6F;
    --accent-red: #8B2E2E;

    /* Actions (Buttons, Links, Interactive) */
    --color-action: #C5A55A;
    --color-action-hover: #a87f55;
    --color-action-active: #8b6a47;

    /* Accent (Special highlights, badges) */
    --color-accent: #8b5cf6;
    --color-accent-hover: #7c3aed;

    /* ===== STATUS ===== */
    --color-success: #10b981;
    --color-success-light: #d1fae5;
    --color-warning: #f59e0b;
    --color-warning-light: #fef3c7;
    --color-error: #ef4444;
    --color-error-light: #fee2e2;

    /* ===== PREMIUM ACCENT COLORS ===== */
    --color-sage: #7A8B6F;
    --color-sage-light: #A4B494;
    --color-sage-subtle: #E8EDE1;

    /* Teal (deprecated — moldy bread vibes) */
    --color-teal: #4A8B8B;
    --color-teal-light: #5EACA5;
    --color-teal-subtle: #E0F0EF;

    /* Burgundy Accent - Communion Wine Theme */
    --color-burgundy: #5C1A1B;
    --color-burgundy-light: #8B4049;
    --color-burgundy-dark: #4A1216;
    --color-burgundy-subtle: #F5E6E8;

    /* ===== TEXTURES (with solid-color fallbacks) ===== */
    --texture-paper: url('/assets/backgrounds/bible-paper.png');
    --texture-leather: url('/assets/phase2/textures/1c_leather_light.png');
    --texture-gold-edge: url('/assets/phase2/ui-elements/2d_gold_foil_edge.png');

    /* ===== TYPOGRAPHY ===== */
    --font-body: 'Lora', 'Georgia', serif;
    --font-heading: 'Playfair Display', 'Georgia', serif;
    --font-accent: 'Kalam', 'Bradley Hand', cursive;
    --font-system: 'Inter', 'DM Sans', sans-serif;
    --line-height: 1.7;
    --line-height-tight: 1.3;
    --line-height-loose: 2;

    /* ===== TYPE SCALE ===== */
    --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 */

    /* ===== SPACING 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-10: 2.5rem;    /* 40px */
    --space-12: 3rem;      /* 48px */
    --space-16: 4rem;      /* 64px */

    /* ===== BORDERS & DIVIDERS ===== */
    --color-border: #E8D5B0;
    --color-border-dark: #C5A55A;

    /* ===== SHADOWS ===== */
    --shadow-sm: 0 1px 2px rgba(59, 35, 20, 0.08);
    --shadow-md: 0 4px 6px rgba(59, 35, 20, 0.12);
    --shadow-lg: 0 10px 15px rgba(59, 35, 20, 0.1);
    --shadow-soft: 0 2px 8px rgba(59, 35, 20, 0.12);
    --shadow-medium: 0 4px 16px rgba(59, 35, 20, 0.18);

    /* ===== SPACING & EFFECTS ===== */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 16px;
    --transition-slow: 400ms ease-in-out;
    --transition-medium: 250ms ease-in-out;
}

/* ===== DARK MODE OVERRIDES ===== */
.dark-mode {
    --bg-primary: #2C2118;
    --bg-secondary: #1E1610;
    --bg-nav: #1E1610;
    --bg-surface: #3B2F22;
    --text-primary: #E8D5B0;
    --text-secondary: #C5A55A;
    --text-accent: #9AAB8F;
    --text-heading: #D4A94E;
    --accent-gold: #D4A94E;
    --accent-burgundy: #8B3A3A;
    --texture-paper: url('/assets/dark-mode/dark-mode-paper.png');
    --texture-leather: url('/assets/phase2/textures/1d_leather_dark.png');
    --texture-gold-edge: url('/assets/dark-mode/Dark Mode Gold Edge Strip.png');
    --shadow-soft: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-medium: 0 4px 16px rgba(0, 0, 0, 0.4);
    /* Legacy alias overrides */
    --color-background: #2C2118;
    --color-surface: #1E1610;
    --color-cream-dark: #3B2F22;
    --color-text-primary: #E8D5B0;
    --color-text-secondary: #C5A55A;
    --color-text-muted: #C5A55A;
    --color-border: #3B2F22;
    --color-border-dark: #D4A94E;
}
