/* =========================================================
   STORIES PAGE
========================================================= */

.stories-page {
    min-height: 100vh;
    background: var(--background);
    color: var(--text-primary);
}


/* =========================================================
   HERO
========================================================= */

.stories-hero {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 55vh;
    padding: 9rem 1.5rem 5rem;
    overflow: hidden;
}

.stories-hero::before {
    content: "";
    position: absolute;
    inset: 0;

    background:
        radial-gradient(
            circle at 50% 40%,
            rgba(199, 179, 122, 0.11),
            transparent 46%
        );

    pointer-events: none;
}

.stories-hero-inner {
    position: relative;
    width: min(100%, 900px);
    margin: 0 auto;
    text-align: center;
}

.stories-hero .eyebrow {
    margin: 0 0 1.25rem;

    font-size: 0.92rem;
    font-weight: 600;
    letter-spacing: 0.34em;
}

.stories-hero h1 {
    margin: 0 0 1.25rem;
    
    font-family:
        "Cormorant Garamond",
        Georgia,
        serif;

    font-size: clamp(3.2rem, 9vw, 7rem);
    font-weight: 500;
    line-height: 0.95;
}

.stories-introduction {
    max-width: 650px;
    margin: 0 auto;

    color: var(--text-secondary);
    font-size: clamp(1.05rem, 2vw, 1.25rem);
    line-height: 1.8;
}


/* =========================================================
   WORLDS SECTION
========================================================= */

.worlds-section {
    width: min(100% - 3rem, 1100px);
    margin: 0 auto;
    padding: 5rem 0 8rem;
}

.worlds-section-heading {
    max-width: 720px;
    margin-bottom: 3rem;
}

.worlds-section-heading h2 {
    margin: 0.45rem 0 1rem;

    font-family:
        "Cormorant Garamond",
        Georgia,
        serif;

    font-size: clamp(2.2rem, 5vw, 4rem);
    font-weight: 500;
    line-height: 1.08;
}

.worlds-section-heading > p:last-child {
    max-width: 62ch;
    color: var(--text-secondary);
    line-height: 1.8;
}


/* =========================================================
   WORLD COMPONENT
========================================================= */

.world-list {
    display: grid;
    gap: 1rem;
}

.world-entry {
    overflow: hidden;

    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 0.8rem;

    background: rgba(255, 255, 255, 0.025);
}

.world-summary {
    width: 100%;

    display: grid;
    grid-template-columns:
        4rem
        minmax(0, 1fr)
        auto;
    gap: 1.5rem;
    align-items: center;

    padding: 1.8rem 2rem;

    border: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    text-align: left;

    cursor: pointer;

    transition:
        background 200ms ease;
}

.world-summary:hover {
    background:
        linear-gradient(
            90deg,
            rgba(199, 179, 122, 0.065),
            transparent
        );
}

.world-summary:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: -2px;
}

.world-number {
    color: var(--accent);
    font-size: 0.72rem;
    letter-spacing: 0.14em;
}

.world-heading {
    display: block;
}

.world-title {
    display: block;

    font-family:
        "Cormorant Garamond",
        Georgia,
        serif;

    font-size: clamp(1.65rem, 3vw, 2.35rem);
    line-height: 1.15;
}

.world-threshold {
    display: block;
    margin-top: 0.45rem;

    color: var(--accent);

    font-family:
        "Cormorant Garamond",
        Georgia,
        serif;

    font-size: clamp(1.05rem, 1.8vw, 1.25rem);
    font-style: italic;
    line-height: 1.45;
}

.world-chevron {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    color: var(--accent);
    font-size: 1.45rem;
    line-height: 1;

    transition:
        transform 220ms ease,
        color 220ms ease;
}

.world-entry:hover .world-chevron {
    color: #dfc487;
}

.world-entry.is-open .world-chevron {
    transform: rotate(180deg);
}


/* =========================================================
   EXPANDED WORLD
========================================================= */

.world-content[hidden] {
    display: none;
}

.world-content {
    padding:
        0
        2rem
        2rem
        7.5rem;
}

.world-content-inner {
    max-width: 690px;
    padding-top: 1.6rem;

    border-top:
        1px solid
        rgba(255, 255, 255, 0.08);
}

.world-content p {
    margin: 0;

    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.9;
}

.world-content .world-last-echo {
    margin-top: 1.5rem;

    color: var(--text-primary);

    font-family:
        "Cormorant Garamond",
        Georgia,
        serif;

    font-size: 1.2rem;
    font-style: italic;
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 700px) {

    .stories-hero {
        min-height: 48vh;
        padding:
            8rem
            1.25rem
            4rem;
    }

    .worlds-section {
        width: min(100% - 2rem, 1100px);
        padding:
            4rem
            0
            6rem;
    }

    .world-summary {
        grid-template-columns:
            2.5rem
            minmax(0, 1fr);
        gap: 1rem;

        padding:
            1.5rem
            1rem;
    }

    .world-chevron {
        grid-column: 2;
        justify-self: start;
        margin-top: 0.25rem;
    }

    .world-content {
        padding:
            0
            1rem
            1.8rem
            4.5rem;
    }
}