/* ========================================
   RIRON.XYZ - STYLES
   A Surrealist Journey Through Theory
   ======================================== */

/* ========================================
   ROOT & GLOBAL STYLES
   ======================================== */

:root {
    /* Color Palette */
    --color-void: #0A0A0F;
    --color-deep-purple: #2A1F3D;
    --color-purple: #6B4F8A;
    --color-gold: #D4AF37;
    --color-tan: #8B7234;
    --color-cream: #E8E0D0;
    --color-light-cream: #F5E6B8;
    --color-black: #141420;

    /* Typography */
    --font-display: 'Cormorant', serif;
    --font-mono: 'Space Mono', monospace;
    --font-body: 'Lora', serif;
    --font-sans: 'Inter', sans-serif;

    /* Spacing */
    --spacing-base: 1rem;
    --spacing-xl: 4rem;
    --spacing-section: 6rem;

    /* Z-Index */
    --z-background: 0;
    --z-content: 10;
    --z-overlay: 20;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--color-void);
    color: var(--color-cream);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    overflow-x: hidden;
}

/* ========================================
   CONSTELLATION INTRO SECTION
   ======================================== */

.constellation-intro {
    position: relative;
    width: 100vw;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--color-void) 0%, var(--color-deep-purple) 100%);
    overflow: hidden;
    z-index: var(--z-content);
}

#constellation-svg {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 1;
}

.subtitle-container {
    position: absolute;
    text-align: center;
    z-index: 2;
    opacity: 0;
    animation: fadeInSubtitle 1s ease-in-out 2.5s forwards;
}

.subtitle-text {
    font-family: var(--font-display);
    font-size: clamp(2rem, 8vw, 5rem);
    font-weight: 700;
    color: var(--color-gold);
    letter-spacing: 0.1em;
    text-shadow: 0 0 30px rgba(212, 175, 55, 0.6);
    margin: 0;
    line-height: 1;
}

.subtitle-small {
    font-family: var(--font-mono);
    font-size: 1.2rem;
    color: var(--color-light-cream);
    margin-top: 0.5rem;
    letter-spacing: 0.05em;
    font-weight: 400;
}

@keyframes fadeInSubtitle {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========================================
   MAIN CONTENT & F-PATTERN LAYOUT
   ======================================== */

.main-content {
    position: relative;
    width: 100%;
    background-color: var(--color-void);
}

.f-section {
    width: 100%;
    padding: var(--spacing-section) var(--spacing-xl);
    border-bottom: 1px solid rgba(212, 175, 55, 0.1);
    position: relative;
}

.f-section-1 {
    /* Full width - top bar of F-pattern */
    width: 100%;
}

.section-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 4vw, 3rem);
    font-weight: 700;
    color: var(--color-gold);
    margin: 0;
}

.celestial-icon {
    width: 80px;
    height: 80px;
    min-width: 80px;
    flex-shrink: 0;
}

.section-content {
    max-width: 90%;
}

.intro-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--color-light-cream);
    font-style: italic;
    font-family: var(--font-display);
    font-weight: 300;
}

/* ========================================
   F-PATTERN: LEFT COLUMN (SECTION 2)
   ======================================== */

.f-section-2 {
    width: 100%;
}

.left-column {
    max-width: 70%;
    margin-left: 0;
}

.subsection-title {
    font-family: var(--font-display);
    font-size: clamp(1.2rem, 3vw, 2.5rem);
    font-weight: 700;
    color: var(--color-cream);
    margin-bottom: 1.5rem;
}

.content-block {
    margin-bottom: 2rem;
    line-height: 1.8;
}

.content-block p {
    color: var(--color-light-cream);
    font-size: 1rem;
}

/* ========================================
   F-PATTERN: RIGHT COLUMN (SECTION 3)
   ======================================== */

.f-section-3 {
    width: 100%;
}

.right-column {
    max-width: 60%;
    margin-left: 20%;
}

/* ========================================
   F-PATTERN: NARROWING SECTIONS
   ======================================== */

.f-section-4 {
    width: 100%;
}

.narrowed-column {
    max-width: 50%;
    margin-left: 30%;
}

.f-section-5 {
    width: 100%;
}

.deeply-narrowed-column {
    max-width: 45%;
    margin-left: 35%;
}

/* ========================================
   F-PATTERN: FINAL SECTION
   ======================================== */

.f-section-6 {
    width: 100%;
    text-align: center;
}

.final-statement {
    max-width: 65%;
    margin: 0 auto;
}

.philosophical-text {
    font-family: var(--font-display);
    font-size: clamp(1.3rem, 3.5vw, 2.2rem);
    font-weight: 300;
    font-style: italic;
    color: var(--color-gold);
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.closing-attribution {
    font-family: var(--font-mono);
    font-size: 0.9rem;
    color: var(--color-tan);
    font-style: italic;
}

/* ========================================
   CONSTELLATION DIVIDERS
   ======================================== */

.constellation-divider {
    width: 100%;
    height: 200px;
    background: linear-gradient(180deg, var(--color-void) 0%, var(--color-deep-purple) 50%, var(--color-void) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-base) var(--spacing-xl);
    border-top: 1px solid rgba(212, 175, 55, 0.15);
    border-bottom: 1px solid rgba(212, 175, 55, 0.15);
    overflow: hidden;
}

.divider-constellation {
    width: 100%;
    height: 100%;
    max-width: 100%;
}

/* ========================================
   HOVER EFFECTS & INTERACTIONS
   ======================================== */

.hover-icon {
    transition: filter 0.3s ease;
    cursor: pointer;
}

.hover-icon:hover .star {
    filter: drop-shadow(0 0 8px var(--color-gold));
}

.hover-icon:hover .connection {
    opacity: 0.8;
    stroke-width: 2;
}

.celestial-icon {
    transition: transform 0.3s ease;
}

.celestial-icon:hover {
    transform: scale(1.05);
}

/* ========================================
   FOOTER
   ======================================== */

.site-footer {
    width: 100%;
    padding: 2rem var(--spacing-xl);
    text-align: center;
    border-top: 1px solid rgba(212, 175, 55, 0.1);
    background-color: var(--color-black);
}

.site-footer p {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--color-tan);
    margin: 0;
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

@media (max-width: 768px) {
    .f-section {
        padding: 3rem 1.5rem;
    }

    .left-column {
        max-width: 100%;
        margin-left: 0;
    }

    .right-column {
        max-width: 100%;
        margin-left: 0;
    }

    .narrowed-column {
        max-width: 100%;
        margin-left: 0;
    }

    .deeply-narrowed-column {
        max-width: 100%;
        margin-left: 0;
    }

    .final-statement {
        max-width: 100%;
    }

    .section-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .section-content {
        max-width: 100%;
    }

    .constellation-intro {
        height: 80vh;
    }

    .philosophical-text {
        font-size: 1.3rem;
    }
}

@media (max-width: 480px) {
    .f-section {
        padding: 2rem 1rem;
    }

    .celestial-icon {
        width: 60px;
        height: 60px;
    }

    .section-title {
        font-size: 1.3rem;
    }

    .subsection-title {
        font-size: 1.1rem;
    }

    .intro-text {
        font-size: 0.95rem;
    }
}

/* ========================================
   ANIMATION UTILITIES
   ======================================== */

@keyframes drawLine {
    from {
        stroke-dashoffset: 1000;
    }
    to {
        stroke-dashoffset: 0;
    }
}

@keyframes starFlare {
    0% {
        r: 3px;
    }
    50% {
        r: 5px;
    }
    100% {
        r: 3px;
    }
}

@keyframes fadeInGold {
    from {
        opacity: 0;
        text-shadow: 0 0 0 rgba(212, 175, 55, 0);
    }
    to {
        opacity: 1;
        text-shadow: 0 0 30px rgba(212, 175, 55, 0.6);
    }
}

/* ========================================
   SCROLLBAR STYLING
   ======================================== */

::-webkit-scrollbar {
    width: 12px;
}

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

::-webkit-scrollbar-thumb {
    background-color: var(--color-tan);
    border-radius: 6px;
}

::-webkit-scrollbar-thumb:hover {
    background-color: var(--color-gold);
}
