:root {
        --color-dark: #1a1a1a;
        --color-dark-alt: #252525;
        --color-light: #f5f5f5;
        --color-accent-gold: #c7a76e;
        --color-accent-purple: #5c3a7a;
        --color-accent-crimson: #8b0000;
        --color-text-primary: #e0e0e0;
        --color-text-secondary: #b0b0b0;
        --font-heading: 'Cinzel', serif;
        --font-body: 'Crimson Pro', serif;
        --font-alt: 'Montserrat', sans-serif;
    }

    /* Base Styles */
    * {
        box-sizing: border-box;
        margin: 0;
        padding: 0;
    }

    html {
        scroll-behavior: smooth;
    }

    body {
        font-family: var(--font-body);
        line-height: 1.6;
        color: var(--color-text-primary);
        background-color: var(--color-dark);
        overflow-x: hidden;
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
    }

    .container {
        max-width: 1200px;
        margin: 0 auto;
        padding: 2rem 1.5rem;
    }

    img {
        max-width: 100%;
        height: auto;
        display: block;
    }

    /* Typography */
    h1, h2, h3 {
        font-family: var(--font-heading);
        color: var(--color-light);
        margin-bottom: 1rem;
        line-height: 1.2;
    }

    h1 {
        font-size: 3.5rem;
        text-transform: uppercase;
        letter-spacing: 0.15rem;
    }

    h2.section-title {
        font-size: 2.8rem;
        text-align: center;
        margin-bottom: 0.75rem;
        position: relative;
        padding-bottom: 0.5rem;
        letter-spacing: 0.08rem;
    }

    h2.section-title::after {
        content: '';
        position: absolute;
        left: 50%;
        bottom: 0;
        transform: translateX(-50%);
        width: 80px;
        height: 3px;
        background: linear-gradient to right, transparent, var(--color-accent-gold), transparent);
        background: var(--color-accent-gold); /* Fallback */
        border-radius: 2px;
    }

    h3 {
        font-size: 1.8rem;
        font-family: var(--font-alt);
        font-weight: 500;
    }

    .section-subtitle {
        font-family: var(--font-alt);
        font-size: 1.2rem;
        color: var(--color-text-secondary);
        text-align: center;
        margin-bottom: 3rem;
        font-style: italic;
    }

    p {
        margin-bottom: 1rem;
        font-size: 1.1rem;
        color: var(--color-text-secondary);
    }

    /* Header */
    .main-header {
        text-align: center;
        padding: 3rem 1.5rem;
        background: linear-gradient(135deg, var(--color-dark-alt) 0%, var(--color-dark) 100%);
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
        position: sticky;
        top: 0;
        z-index: 1000;
    }

    .site-logo {
        margin: 0;
        font-size: 4rem;
        color: var(--color-accent-gold);
        text-shadow: 0 0 15px rgba(255, 215, 0, 0.3), 0 0 5px rgba(255, 215, 0, 0.6);
        animation: neonGlow 1.5s ease-in-out infinite alternate;
    }

    @keyframes neonGlow {
        from {
            text-shadow: 0 0 5px var(--color-accent-gold), 0 0 10px var(--color-accent-gold), 0 0 20px rgba(199, 167, 110, 0.4);
        }
        to {
            text-shadow: 0 0 10px var(--color-accent-gold), 0 0 20px var(--color-accent-gold), 0 0 30px rgba(199, 167, 110, 0.6);
        }
    }

    .site-tagline {
        font-family: var(--font-alt);
        font-size: 1.5rem;
        color: var(--color-text-primary);
        margin-top: 0.5rem;
        letter-spacing: 0.05rem;
        font-style: italic;
        opacity: 1;.8;
    }

    /* Section Styles */
    section {
        padding: 6rem 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        background-color: var(--color-dark);
        position: relative;
        overflow: hidden; /* Ensure content doesn't bleed outside for effects */
    }

    section:last-of-type {
        border-bottom: none;
    }

    /* Fade-in Animation */
    .fade-in {
        opacity: 1;
        transform: translateY(20px);
        transition: opacity 0.8s ease-out, transform 0.8s ease-out;
    }

    .fade-in.visible {
        opacity: 1;
        transform: translateY(0);
    }

    /* Ember Veil Section */
    .section-ember-veil {
        background: url('images/image_17.jpg') no-repeat center center/cover;
        position: relative;
        min-height: 80vh;
        display: flex;
        align-items: center;
        justify-content: center;
        text-align: center;
        box-shadow: inset 0 0 100px rgba(0, 0, 0, 0.7);
    }

    .section-ember-veil::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.65); /* Dark overlay */
        backdrop-filter: blur(2px);
        z-index: 1;
    }

    .ember-veil-content {
        position: relative;
        z-index: 2;
        max-width: 800px;
        background: rgba(0, 0, 0, 0.4);
        padding: 3rem;
        border-radius: 10px;
        border: 1px solid rgba(199, 167, 110, 0.3);
        box-shadow: 0 0 30px rgba(0, 0, 0, 0.7);
    }

    .ember-veil-content .intro-text {
        font-size: 1.5rem;
        font-family: var(--font-alt);
        color: var(--color-text-primary);
        font-weight: 300;
        line-height: 1.8;
        letter-spacing: 0.03rem;
        text-shadow: 0 0 5px rgba(0, 0, 0, 0.7);
    }

    /* Whisperwood Archives Section */
    .section-whisperwood-archives {
        background-color: var(--color-dark-alt);
    }

    .archive-grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 2.5rem;
    }

    .archive-card {
        background: var(--color-dark);
        border-radius: 10px;
        overflow: hidden;
        box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
        transition: transform 0.3s ease-out, box-shadow 0.3s ease-out;
        border: 1px solid rgba(255, 255, 255, 0.08);
    }

    .archive-card:hover {
        transform: translateY(-10px);
        box-shadow: 0 15px 40px rgba(0, 0, 0, 0.7), 0 0 20px var(--color-accent-purple);
    }

    .archive-card img {
        width: 100%;
        height: 250px;
        object-fit: cover;
        transition: transform 0.3s ease-out;
    }

    .archive-card:hover img {
        transform: scale(1.05);
    }

    .archive-card h3 {
        font-size: 1.6rem;
        margin: 1.5rem 1.5rem 0.5rem;
        color: var(--color-accent-gold);
        font-family: var(--font-alt);
    }

    .archive-card p {
        font-size: 1rem;
        color: var(--color-text-secondary);
        padding: 0 1.5rem 1.5rem;
        margin-bottom: 0;
    }

    /* Nocturne Craft Section */
    .section-nocturne-craft {
        background: linear-gradient(to bottom, var(--color-dark), var(--color-dark-alt));
    }

    .craft-content {
        display: flex;
        align-items: center;
        gap: 4rem;
    }

    .craft-image {
        flex: 1;
        min-width: 400px;
        border-radius: 10px;
        overflow: hidden;
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
        border: 1px solid rgba(199, 167, 110, 0.2);
    }

    .craft-image img {
        display: block;
        width: 100%;
        height: auto;
        transition: transform 0.5s ease-out;
    }

    .craft-image:hover img {
        transform: scale(1.03);
    }

    .craft-text {
        flex: 1;
        padding: 2rem;
        background: rgba(40, 40, 40, 0.7);
        border-radius: 10px;
        box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4);
        border: 1px solid rgba(255, 255, 255, 0.08);
    }

    .craft-text h2.section-title,
    .craft-text .section-subtitle {
        text-align: left;
    }

    .craft-text h2.section-title::after {
        left: 0;
        transform: translateX(0);
    }

    /* Spectral Narratives Section */
    .section-spectral-narratives {
        background-color: var(--color-dark-alt);
    }

    .narrative-blocks {
        display: flex;
        flex-direction: column;
        gap: 6rem;
    }

    .narrative-block {
        display: flex;
        align-items: center;
        gap: 3rem;
        padding: 2rem;
        background: linear-gradient(to right, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.1));
        border-radius: 10px;
        box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
        border: 1px solid rgba(255, 255, 255, 0.05);
    }

    .narrative-block.right {
        flex-direction: row-reverse;
        background: linear-gradient(to left, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.1));
    }

    .narrative-image {
        flex: 1;
        min-width: 45%;
        border-radius: 8px;
        overflow: hidden;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4);
    }

    .narrative-image img {
        width: 100%;
        height: 350px;
        object-fit: cover;
        transition: transform 0.5s ease-out;
    }

    .narrative-image:hover img {
        transform: scale(1.05);
    }

    .narrative-text {
        flex: 1;
        min-width: 45%;
    }

    .narrative-text h3 {
        font-size: 2rem;
        color: var(--color-accent-gold);
        margin-bottom: 1rem;
    }

    /* Moonlit Echoes Section */
    .section-moonlit-echoes {
        background: linear-gradient(to top, var(--color-dark), var(--color-dark-alt));
    }

    .echoes-grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 2rem;
    }

    .echo-card {
        background: var(--color-dark);
        border-radius: 8px;
        overflow: hidden;
        box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4);
        border: 1px solid rgba(255, 255, 255, 0.06);
        transition: transform 0.3s ease-out, box-shadow 0.3s ease-out;
    }

    .echo-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6), 0 0 15px var(--color-accent-gold);
    }

    .echo-card img {
        width: 100%;
        height: 220px;
        object-fit: cover;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .echo-card p {
        font-family: var(--font-alt);
        font-size: 1rem;
        font-style: italic;
        text-align: center;
        padding: 1rem 1.2rem;
        color: var(--color-text-secondary);
        margin-bottom: 0;
    }

    /* Ethereal Pathways Section */
    .section-ethereal-pathways {
        background: url('images/image_18.jpg') no-repeat center center/cover;
        position: relative;
        text-align: center;
        padding: 8rem 0;
        box-shadow: inset 0 0 100px rgba(0, 0, 0, 0.8);
    }

    .section-ethereal-pathways::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.7); /* Darker overlay */
        backdrop-filter: blur(3px);
        z-index: 1;
    }

    .section-ethereal-pathways .container {
        position: relative;
        z-index: 2;
    }

    .pathways-content {
        max-width: 800px;
        margin: 0 auto;
        background: rgba(0, 0, 0, 0.6);
        padding: 3rem;
        border-radius: 10px;
        border: 1px solid rgba(92, 58, 122, 0.3);
        box-shadow: 0 0 30px rgba(0, 0, 0, 0.7);
    }

    .pathways-content p {
        font-size: 1.2rem;
        line-height: 1.8;
        color: var(--color-text-primary);
        font-family: var(--font-alt);
        margin-bottom: 1.5rem;
    }

    .pathways-content p:last-child {
        margin-bottom: 0;
    }

    /* Footer */
    .main-footer {
        text-align: center;
        padding: 3rem 1.5rem;
        background: var(--color-dark-alt);
        color: var(--color-text-secondary);
        font-family: var(--font-alt);
        font-size: 0.9rem;
        border-top: 1px solid rgba(255, 255, 255, 0.05);
    }

    /* Responsive Design */
    @media (max-width: 992px) {
        .main-header {
            padding: 2rem 1rem;
        }

        .site-logo {
            font-size: 3rem;
        }

        .site-tagline {
            font-size: 1.2rem;
        }

        h2.section-title {
            font-size: 2.2rem;
        }

        .section-subtitle {
            font-size: 1rem;
            margin-bottom: 2rem;
        }

        .archive-grid, .echoes-grid {
            grid-template-columns: repeat(2, 1fr);
            gap: 2rem;
        }

        .craft-content {
            flex-direction: column;
            gap: 2.5rem;
        }

        .craft-image, .craft-text {
            min-width: unset;
            width: 100%;
        }

        .narrative-block {
            flex-direction: column;
            gap: 2rem;
        }

        .narrative-block.right {
            flex-direction: column; /* Stacks image on top for mobile */
        }

        .narrative-image, .narrative-text {
            min-width: unset;
            width: 100%;
        }

        .narrative-block .narrative-image {
            order: -1; /* Image always on top for stacked layout */
        }
        .narrative-block.right .narrative-image {
            order: -1;
        }
    }

    @media (max-width: 768px) {
        h1 {
            font-size: 2.5rem;
        }

        h2.section-title {
            font-size: 2rem;
        }
        
        h3 {
            font-size: 1.4rem;
        }

        p {
            font-size: 1rem;
        }

        section {
            padding: 4rem 0;
        }
        
        .ember-veil-content {
            padding: 2rem;
        }

        .ember-veil-content .intro-text {
            font-size: 1.2rem;
        }

        .archive-grid, .echoes-grid {
            grid-template-columns: 1fr; /* Single column for mobile */
            gap: 1.5rem;
        }

        .craft-text, .pathways-content {
            padding: 1.5rem;
        }

        .narrative-blocks {
            gap: 4rem;
        }
    }

    @media (max-width: 480px) {
        .site-logo {
            font-size: 2.5rem;
        }

        .site-tagline {
            font-size: 1rem;
        }

        h2.section-title {
            font-size: 1.8rem;
        }

        .ember-veil-content .intro-text {
            font-size: 1rem;
        }
        
        .narrative-text h3 {
            font-size: 1.5rem;
        }
    }


/* Safe visibility overrides (auto-added) */
:root, html, body, main, header, footer, section, .container, .content {
  opacity: 1 !important;
  visibility: visible !important;
}
