/* Responsive Design - Mobile and Tablet Breakpoints */

@media (max-width: 750px) {
    /* Music toggle - flows in nav flexbox on mobile */
    .music-toggle {
        position: static; /* Part of nav flow, not fixed */
        width: 32px;
        height: 32px;
        margin-left: 12px; /* Gap between @fleetingbits and music button */
        box-shadow: none; /* Cleaner look in nav */
    }

    .music-toggle .music-icon {
        font-size: 14px;
    }

    .music-toggle.muted::after {
        width: 20px;
    }

    /* Navigation mobile adjustments */
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: var(--page-bg);
        flex-direction: column;
        padding: 20px;
        border-bottom: 1px solid var(--sage);
        transition: background-color var(--transition-theme);
    }

    .nav-links.active {
        display: flex;
    }

    .hamburger {
        display: flex;
        margin-left: auto; /* Push hamburger to right, keeps left items grouped */
    }

    .nav-container {
        padding: 0 20px;
        justify-content: space-between;
    }

    /* Layout adjustments */
    .container {
        padding: 80px 20px;
    }

    /* Typography scaling */
    h1 {
        font-size: 36px;
        text-align: center;
    }

    .intro-text {
        text-align: center;
    }

    .section-navigation h2 {
        text-align: center;
    }

    /* Section-specific mobile adjustments */
    .souls-explainer {
        max-width: 42ch;          /* shorter measure on narrow screens */
    }

    .souls-quotes {
        padding: 1.25rem;         /* harmonises with smaller screens */
    }

    .souls-quotes li {
        font-size: 1rem;          /* ~16px; denser without crowding */
    }

}

/* Tablet breakpoint */
@media (max-width: 1024px) and (min-width: 751px) {
    .container {
        padding: 100px 30px;
    }
    
    .nav-container {
        padding: 0 30px;
    }
}

/* Large screen optimizations */
@media (min-width: 1400px) {
    .container {
        max-width: 800px;
    }
}