/* ============================================
   LETHE — Refined Visual Direction
   Art Basel-Inspired Dark Gallery Aesthetic
   ============================================ */

/* CSS Custom Properties - COLORFUL VERSION for Chanel */
:root {
    /* Foundation - Lighter, more colorful */
    --color-background: #1a1520;           /* Deep plum/purple instead of black */
    --color-background-secondary: #2d1f3d; /* Rich purple */
    --color-background-tertiary: #3d2a52;  /* Brighter purple */
    
    /* Jewel Tone Accents - MORE COLORFUL */
    --color-jewel-red: #E74C3C;            /* Vibrant crimson red */
    --color-jewel-blue: #3498DB;           /* Bright steel blue */
    --color-jewel-purple: #9B59B6;         /* Vibrant purple */
    --color-jewel-gold: #F1C40F;           /* Bright gold */
    --color-jewel-emerald: #2ECC71;        /* Vibrant emerald green */
    --color-jewel-coral: #FF6B6B;          /* NEW: Coral pink */
    --color-jewel-teal: #1ABC9C;           /* NEW: Teal */
    --color-jewel-pink: #E91E63;           /* NEW: Hot pink */
    --color-jewel-lavender: #B39DDB;       /* NEW: Lavender */
    
    /* Typography */
    --font-display: 'Cormorant Garamond', Georgia, serif;
    --font-body: 'EB Garamond', Georgia, serif;
    --font-sans: 'Inter', -apple-system, sans-serif;
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 8rem;
    
    /* Transitions */
    --transition-smooth: 0.6s cubic-bezier(0.25, 0.1, 0.25, 1);
    --transition-slow: 1.2s cubic-bezier(0.25, 0.1, 0.25, 1);
}

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

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

body {
    background-color: var(--color-background);
    color: #e8e8e8;
    font-family: var(--font-body);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Navigation */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-md) var(--spacing-lg);
    background: linear-gradient(to bottom, rgba(10, 10, 10, 0.95), transparent);
    transition: var(--transition-smooth);
}

.nav-brand {
    letter-spacing: 0.3em;
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 500;
}

.nav-logo {
    color: var(--color-jewel-gold);
    opacity: 0.9;
    transition: var(--transition-smooth);
}

.nav-logo:hover {
    opacity: 1;
    text-shadow: 0 0 20px rgba(139, 115, 85, 0.5);
}

.nav-links {
    display: flex;
    gap: var(--spacing-lg);
}

.nav-link {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #888;
    text-decoration: none;
    transition: var(--transition-smooth);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--color-jewel-gold);
    transition: var(--transition-smooth);
}

.nav-link:hover {
    color: #e8e8e8;
}

.nav-link:hover::after {
    width: 100%;
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(ellipse at center, #1a1a1a 0%, #0a0a0a 70%),
        linear-gradient(to bottom, #111 0%, #0a0a0a 100%);
}

.hero-image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><filter id="noise"><feTurbulence type="fractalNoise" baseFrequency="0.8" numOctaves="4" stitchTiles="stitch"/></filter></defs><rect width="100" height="100" filter="url(%23noise)" opacity="0.08"/></svg>');
    opacity: 0.5;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: var(--spacing-lg);
    max-width: 800px;
}

.hero-subtitle {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    letter-spacing: 0.4em;
    text-transform: uppercase;
    color: #666;
    margin-bottom: var(--spacing-md);
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 1s ease forwards 0.3s;
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(3rem, 10vw, 8rem);
    font-weight: 300;
    line-height: 1;
    letter-spacing: -0.02em;
    color: #e8e8e8;
    margin-bottom: var(--spacing-md);
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s ease forwards 0.5s;
    text-shadow: 0 0 80px rgba(232, 232, 232, 0.1);
}

.hero-tagline {
    font-family: var(--font-sans);
    font-size: 0.875rem;
    letter-spacing: 0.5em;
    color: var(--color-jewel-gold);
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 1s ease forwards 0.7s;
}

.hero-accent {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 1px;
    height: 80px;
    background: linear-gradient(to bottom, transparent, var(--color-jewel-red));
    opacity: 0.6;
}

/* Main Content */
main {
    background: var(--color-background);
}

/* Chapter Sections */
.chapter {
    position: relative;
    padding: var(--spacing-xl) var(--spacing-lg);
    min-height: 60vh;
    display: flex;
    opacity: 0;
    transform: translateY(40px);
    transition: var(--transition-slow);
}

.chapter.visible {
    opacity: 1;
    transform: translateY(0);
}

.chapter-marker {
    position: absolute;
    left: var(--spacing-lg);
    top: var(--spacing-lg);
    font-family: var(--font-sans);
    font-size: 0.75rem;
    letter-spacing: 0.3em;
    color: #444;
    writing-mode: vertical-rl;
    text-orientation: mixed;
    transform: rotate(180deg);
}

.chapter-content {
    max-width: 700px;
    margin: 0 auto;
    padding-left: 100px;
}

.chapter-text {
    font-family: var(--font-body);
    font-size: 1.25rem;
    font-weight: 300;
    line-height: 2;
    color: #c8c8c8;
    margin-bottom: var(--spacing-md);
    opacity: 0;
    transform: translateY(20px);
    transition: var(--transition-smooth);
}

.chapter.visible .chapter-text {
    opacity: 1;
    transform: translateY(0);
}

.chapter-text:nth-child(2) { transition-delay: 0.1s; }
.chapter-text:nth-child(3) { transition-delay: 0.2s; }
.chapter-text:nth-child(4) { transition-delay: 0.3s; }

.chapter-heading {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 4rem);
    font-weight: 400;
    font-style: italic;
    color: var(--color-jewel-gold);
    margin-bottom: var(--spacing-md);
    letter-spacing: 0.1em;
    opacity: 0;
    transform: translateY(20px);
    transition: var(--transition-smooth);
}

.chapter.visible .chapter-heading {
    opacity: 1;
    transform: translateY(0);
}

.chapter-divider {
    width: 60px;
    height: 1px;
    background: var(--color-jewel-red);
    margin: var(--spacing-lg) auto;
    opacity: 0.7;
}

/* Image Containers */
.chapter-image-container {
    margin: var(--spacing-lg) 0;
}

.chapter-image {
    position: relative;
    aspect-ratio: 16/9;
    background: var(--color-background-secondary);
    border: 1px solid #222;
    overflow: hidden;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.chapter-image:hover {
    border-color: var(--color-jewel-gold);
    transform: scale(1.02);
}

.image-placeholder {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: var(--font-sans);
    font-size: 0.75rem;
    letter-spacing: 0.3em;
    color: #444;
    text-transform: uppercase;
}

.chapter-text-block {
    border-left: 1px solid var(--color-jewel-blue);
    padding-left: var(--spacing-md);
    margin: var(--spacing-md) 0;
    opacity: 0.8;
}

/* Special Sections */
.presence-section {
    background: linear-gradient(135deg, var(--color-background) 0%, var(--color-background-secondary) 100%);
}

.enclosure-section {
    border-top: 1px solid #222;
    border-bottom: 1px solid #222;
    background: var(--color-background-secondary);
}

.final-section {
    min-height: 80vh;
    display: flex;
    align-items: center;
}

.final-section .chapter-content {
    text-align: center;
}

/* Newsletter Section */
.newsletter {
    padding: var(--spacing-xl) var(--spacing-lg);
    background: var(--color-background-tertiary);
    text-align: center;
}

.newsletter-content {
    max-width: 500px;
    margin: 0 auto;
}

.newsletter-text {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--color-jewel-gold);
    margin-bottom: var(--spacing-xs);
}

.newsletter-subtext {
    font-family: var(--font-body);
    font-size: 1rem;
    color: #888;
    margin-bottom: var(--spacing-md);
}

.newsletter-form {
    display: flex;
    gap: var(--spacing-sm);
}

.newsletter-input {
    flex: 1;
    padding: var(--spacing-sm) var(--spacing-md);
    background: transparent;
    border: 1px solid #333;
    color: #e8e8e8;
    font-family: var(--font-sans);
    font-size: 0.875rem;
    letter-spacing: 0.1em;
    transition: var(--transition-smooth);
}

.newsletter-input:focus {
    outline: none;
    border-color: var(--color-jewel-gold);
}

.newsletter-input::placeholder {
    color: #555;
}

.newsletter-button {
    padding: var(--spacing-sm) var(--spacing-md);
    background: transparent;
    border: 1px solid var(--color-jewel-gold);
    color: var(--color-jewel-gold);
    font-family: var(--font-sans);
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.newsletter-button:hover {
    background: var(--color-jewel-gold);
    color: var(--color-background);
}

/* Footer */
.footer {
    padding: var(--spacing-md) var(--spacing-lg);
    background: var(--color-background);
    border-top: 1px solid #1a1a1a;
}

.footer-content {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--spacing-md);
}

.footer-title {
    font-family: var(--font-display);
    font-size: 0.875rem;
    letter-spacing: 0.2em;
    color: #444;
}

.footer-year {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    color: #333;
}

/* Animations */
@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes subtlePulse {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 0.8; }
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--color-background);
}

::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #444;
}

/* Selection */
::selection {
    background: var(--color-jewel-gold);
    color: var(--color-background);
}

/* Focus States */
a:focus, button:focus, input:focus {
    outline: 1px solid var(--color-jewel-gold);
    outline-offset: 2px;
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}