/* 
   TafsirHub Design System - "The Observatory"
   Deep, contemplative space for scholarly study.
*/

:root {
    /* 
       COLOR PALETTE 
       Deep space backgrounds with warm, illuminated accents.
    */
    --bg-primary: #0a0e17;        /* Midnight ink */
    --bg-secondary: #111827;      /* Deep charcoal */
    --bg-elevated: #1a2234;       /* Card surfaces */
    --bg-overlay: rgba(10, 14, 23, 0.85);

    /* Accents - Antique Gold */
    --accent-primary: #d4a853;    /* Antique gold */
    --accent-secondary: #b8860b;  /* Dark goldenrod */
    --accent-glow: rgba(212, 168, 83, 0.15);
    --accent-muted: rgba(212, 168, 83, 0.4);

    /* Text */
    --text-primary: #f4f1ea;      /* Warm white */
    --text-secondary: #9ca3af;    /* Muted gray */
    --text-muted: #6b7280;        /* Deep gray */
    --text-gold: #e5c176;

    /* Borders & Shadows */
    --border-subtle: rgba(212, 168, 83, 0.2);
    --border-active: rgba(212, 168, 83, 0.5);
    --shadow-gold: 0 0 40px rgba(212, 168, 83, 0.1);
    --shadow-card: 0 10px 30px -10px rgba(0, 0, 0, 0.5);

    /* Typography */
    --font-heading: 'Cormorant Garamond', serif;
    --font-body: 'Crimson Pro', serif;
    --font-mono: 'JetBrains Mono', monospace;

    /* Spacing */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 2rem;
    --space-lg: 4rem;
    --space-xl: 8rem;

    /* Transitions */
    --transition-fast: 200ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-smooth: 400ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* RESET & BASE */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    min-height: 100vh;
}

/* Background Atmosphere */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(ellipse at 20% 30%, rgba(212, 168, 83, 0.03) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 70%, rgba(139, 92, 246, 0.02) 0%, transparent 50%),
        linear-gradient(180deg, #0a0e17 0%, #111827 100%);
    pointer-events: none;
    z-index: -1;
}

/* Scoped Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 500;
    line-height: 1.1;
    color: var(--text-primary);
}

h1 {
    font-size: clamp(3rem, 5vw, 5rem);
    letter-spacing: -0.02em;
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
}

.mono {
    font-family: var(--font-mono);
    font-size: 0.9em;
    letter-spacing: -0.05em;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition-fast);
}

button {
    border: none;
    background: none;
    font-family: inherit;
    color: inherit;
    cursor: pointer;
}
