/* ====================================
   ZODIAC COZY DESIGN TOKENS
   Cozy, Editorial, Mystical "Book + Ritual" Aesthetic
   ==================================== */

:root {
    /* ========================================
       BACKGROUND COLORS (Warm, Cozy)
       ======================================== */
    
    /* Parchment: creamy ivory (not gray) */
    --bg-parchment: #FAF8F5;
    
    /* Mist: very light lavender-tinted neutral for section alternation */
    --bg-mist: #F5F3FF;
    
    /* Clear: transparent/no background */
    --bg-clear: transparent;
    
    /* ========================================
       INK COLORS (Cosmic Ink + Candle Glow)
       ======================================== */
    
    /* Strong ink: dark text for headings and important content */
    --ink-strong: #1A1A1A;
    
    /* Soft ink: secondary text */
    --ink-soft: #4A4A4A;
    
    /* Violet ink: brand violet treated as ink, not UI primary */
    --violet-ink: #6B46C1;
    
    /* ========================================
       WARM ACCENTS (Restrained, Cozy)
       ======================================== */
    
    /* Gold warm: muted gold/amber for separators, micro-highlights, rating stars, "Ritual" callouts */
    --gold-warm: #D4AF37;
    
    /* Gold subtle: lighter gold for highlights */
    --gold-subtle: #F4E4A6;
    
    /* ========================================
       BORDER TOKENS (Soft, Paper-like)
       ======================================== */
    
    /* Faint: soft hairlines */
    --border-faint: rgba(0, 0, 0, 0.08);
    
    /* Paper: paper-like borders */
    --border-paper: rgba(0, 0, 0, 0.12);
    
    /* ========================================
       TYPOGRAPHY TOKENS
       ======================================== */
    
    /* Serif font for headings (editorial/ritual feel) */
    --font-serif: 'Cormorant Garamond', 'Crimson Text', Georgia, serif;
    
    /* Sans font for body (current clean sans, but warmer) */
    --font-sans: 'Source Sans 3', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    
    /* Body text line-height: more breathable, less UI (editorial feel) */
    --line-height-body: 1.75;
    --line-height-body-tight: 1.6;
    
    /* Heading line-height: generous spacing */
    --line-height-heading: 1.2;
    
    /* Letter spacing: slightly warmer tracking */
    --letter-spacing-body: 0.01em;
    --letter-spacing-heading: -0.01em;
    
    /* ========================================
       TYPOGRAPHY SCALE (Editorial)
       ======================================== */
    
    /* Larger heading sizes for editorial feel */
    --font-size-h1: clamp(2.5rem, 5vw, 4rem);
    --font-size-h2: clamp(2rem, 4vw, 3rem);
    --font-size-h3: clamp(1.5rem, 3vw, 2.25rem);
    --font-size-h4: clamp(1.25rem, 2.5vw, 1.75rem);
    --font-size-body: clamp(1rem, 1.5vw, 1.125rem);
    --font-size-small: clamp(0.875rem, 1.25vw, 1rem);
    
    /* ========================================
       SPACING (Intentional, Authored)
       ======================================== */
    
    /* Larger vertical gaps between chapters */
    --space-chapter: 4rem;
    --space-chapter-mobile: 3rem;
    
    /* Tighter spacing within chapters (reads as one unit) */
    --space-section: 2rem;
    --space-section-mobile: 1.5rem;
    
    /* Element spacing within sections */
    --space-element: 1.5rem;
    --space-element-mobile: 1rem;
    
    /* ========================================
       SHADOWS (Soft, Paper-like)
       ======================================== */
    
    /* Paper lift: gentle shadow for paper cards */
    --shadow-paper: 0 2px 8px rgba(0, 0, 0, 0.04), 0 1px 3px rgba(0, 0, 0, 0.06);
    
    /* Paper lift hover: softer shadow on hover */
    --shadow-paper-hover: 0 4px 12px rgba(0, 0, 0, 0.06), 0 2px 4px rgba(0, 0, 0, 0.08);
    
    /* Inset: for paper sheet effect in accordions */
    --shadow-inset: inset 0 1px 2px rgba(0, 0, 0, 0.04);
    
    /* ========================================
       MOTION (Ritual Pace, Calm)
       ======================================== */
    
    /* Slow, eased motion for ritual feel */
    --motion-ritual: 450ms;
    --motion-ritual-slow: 600ms;
    
    /* Easing: calm, premium */
    --ease-ritual: cubic-bezier(0.4, 0, 0.2, 1);
    --ease-paper: cubic-bezier(0.25, 0.46, 0.45, 0.94);
    
    /* Transform limits: subtle paper lift */
    --transform-paper-lift: translateY(-2px);
    
    /* ========================================
       TEXTURE & ORNAMENTS
       ======================================== */
    
    /* Grain overlay: subtle texture for hero + big section bands */
    --grain-opacity: 0.03;
    
    /* Constellation line opacity: very subtle */
    --ornament-opacity: 0.15;
    
    /* ========================================
       COMPONENT-SPECIFIC TOKENS
       ======================================== */
    
    /* Paper card: soft edges, faint borders */
    --paper-radius: 12px;
    --paper-border: 1px solid var(--border-faint);
    --paper-bg: var(--bg-parchment);
    
    /* Outline panel: quiet container */
    --outline-border: 1px solid var(--border-paper);
    --outline-bg: rgba(245, 243, 255, 0.5);
    
    /* Ritual card: warm, cozy */
    --ritual-bg: var(--bg-parchment);
    --ritual-accent: var(--gold-warm);
    
    /* Pull quote: editorial */
    --quote-size: clamp(1.25rem, 2.5vw, 1.75rem);
    --quote-color: var(--ink-soft);
    
    /* Dual panel: light/shadow */
    --dual-panel-divider: 1px solid var(--border-faint);
    --dual-panel-warm-bg: rgba(244, 228, 166, 0.2);
    --dual-panel-cool-bg: rgba(245, 243, 255, 0.3);
}

/* ========================================
   PROSE UTILITY CLASS
   For long-form text blocks (editorial)
   ======================================== */

.prose-velora {
    max-width: 65ch; /* Comfortable line length */
    line-height: var(--line-height-body);
    letter-spacing: var(--letter-spacing-body);
    color: var(--ink-strong);
}

.prose-velora p {
    margin-bottom: 1.5em;
}

.prose-velora p:last-child {
    margin-bottom: 0;
}

.prose-velora h2,
.prose-velora h3,
.prose-velora h4 {
    font-family: var(--font-serif);
    font-weight: 600;
    line-height: var(--line-height-heading);
    letter-spacing: var(--letter-spacing-heading);
    color: var(--ink-strong);
    margin-top: 2em;
    margin-bottom: 1em;
}

.prose-velora ul,
.prose-velora ol {
    margin: 1.5em 0;
    padding-left: 1.5em;
}

.prose-velora li {
    margin-bottom: 0.75em;
}

.prose-velora blockquote {
    border-left: 3px solid var(--gold-warm);
    padding-left: 1.5em;
    margin: 2em 0;
    font-style: italic;
    color: var(--ink-soft);
}

.prose-velora strong {
    font-weight: 600;
    color: var(--ink-strong);
}

/* ========================================
   RESPONSIVE ADJUSTMENTS
   ======================================== */

@media (max-width: 768px) {
    :root {
        --space-chapter: var(--space-chapter-mobile);
        --space-section: var(--space-section-mobile);
        --space-element: var(--space-element-mobile);
    }
    
    .prose-velora {
        max-width: 100%;
    }
}

/* ========================================
   REDUCED MOTION SUPPORT
   ======================================== */

@media (prefers-reduced-motion: reduce) {
    :root {
        --motion-ritual: 0ms;
        --motion-ritual-slow: 0ms;
    }
}


