html {
    height: 100%;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

header {
    width: 100%;
    display: flex;
    justify-content: center;
}

header img {
    width: clamp(220px, 35vw, 360px);
    max-width: 100%;
    height: auto;
}

header .header-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.2rem;
    width: min(1100px, calc(100% - 2rem));
}

/* Hamburger button — hidden on desktop */
.nav-toggle {
    display: none;
}

header nav ul {
    list-style: none;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
    padding: 0;
    margin: 0;
}

header nav li a {
    color: #fff;
    padding: 0.75rem 1.25rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: clamp(1rem, 1vw + 0.85rem, 1.2rem);
    text-decoration: none;
    font-family: 'Courier New', Courier, monospace;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.35);
    min-width: clamp(120px, 18vw, 180px);
    text-align: center;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

header nav li a:hover,
header nav li a:focus-visible {
    color: #ffd;
    border-color: rgba(255, 255, 255, 0.6);
    background: rgba(0, 0, 0, 0.5);
}

header nav li a.active {
    color: #ffd;
    border-color: rgba(255, 255, 200, 0.7);
    background: rgba(0, 0, 0, 0.55);
    font-weight: 600;
}

.page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4rem;
}

.bg1,
.bg3 {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-image: url('/static/img/bg2.JPG');
}

.bg3 {
    background-image: url('/static/img/bg3.JPG');
}

/* Tablets portrait */
@media (max-width: 1024px) and (orientation: portrait) {
    .bg1 {
        background-image: url('/static/img/bg2-3x4.JPG');
    }

    .bg3 {
        background-image: url('/static/img/bg3-3x4.JPG');
    }
}

/* Phones portrait */
@media (max-width: 768px) and (orientation: portrait) {
    .bg1 {
        background-image: url('/static/img/bg2-9x16.JPG');
    }

    .bg3 {
        background-image: url('/static/img/bg3-16x9.JPG');
    }
}

.content {
    width: min(960px, calc(100% - 2rem));
    background: rgba(0, 0, 0, 0.55);
    color: #fff;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(2px);
    line-height: 1.6;
    font-family: 'Courier New', Courier, monospace;
}

.content-white {
    background: #fff;
    color: #1c1c1c;
}

.content h1,
.content h2,
.content h3 {
    margin-top: 0;
    margin-bottom: 0.5rem;
}

.content p {
    margin: 0 0 1rem 0;
}

.band-container {
    display: flex;
    flex-direction: column;
    margin: 2rem;
}

.band-members {
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    gap: 1.5rem;
}

.band-member {
    displaY: flex;
    flex-direction: row;
    gap: 2em;
    flex: 1 1 0;
}

.band-member img {
    width: clamp(180px, 25vw, 250px);
    height: auto;
    border-radius: 8px;
    margin-top: 0.75rem;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
}

@media (max-width: 900px) {
    body {
        justify-content: flex-start;
    }

    header {
        padding-top: 1rem;
    }

    .band-members {
        flex-direction: column;
        align-items: center;
    }

    .band-member {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .band-member:last-of-type {
        flex-direction: column-reverse;
    }
}

/* Mobile nav — hamburger */
@media (max-width: 640px) {
    .nav-toggle {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        align-items: center;
        position: fixed;
        top: 0.9rem;
        right: 0.9rem;
        z-index: 200;
        width: 3.25rem;
        height: 3.25rem;
        background: rgba(255, 255, 255, 0.14);
        border: 1px solid rgba(255, 255, 255, 0.45);
        border-radius: 999px;
        box-shadow: 0 8px 18px rgba(0, 0, 0, 0.35);
        backdrop-filter: blur(8px);
        cursor: pointer;
        padding: 0.8rem 0.72rem;
    }

    .nav-toggle span {
        display: block;
        width: 100%;
        height: 4px;
        background: linear-gradient(
            135deg,
            #ffffff 0,
            #ffffff 35%,
            #eadfca 35%,
            #eadfca 50%,
            #ffffff 50%,
            #ffffff 85%,
            #d6cab2 85%,
            #d6cab2 100%
        );
        background-size: 12px 12px;
        border-radius: 999px;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.28);
        transition: transform 0.25s ease, opacity 0.25s ease;
    }

    .nav-toggle.open span:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }

    .nav-toggle.open span:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.open span:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }

    header nav ul {
        display: none;
        flex-direction: column;
        align-items: stretch;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 190;
        background: rgba(0, 0, 0, 0.92);
        backdrop-filter: blur(6px);
        padding: 4rem 1.5rem 1.5rem;
        gap: 0.5rem;
    }

    header nav.open ul {
        display: flex;
    }

    header nav li a {
        min-width: unset;
        display: flex;
        border-radius: 8px;
        font-size: 1.1rem;
        padding: 0.9rem 1rem;
    }
}

@media (max-width: 640px) {
    body {
        gap: 1.5rem;
    }

    header img {
        width: clamp(240px, 60vw, 360px);
    }

    .content {
        width: min(900px, calc(100% - 1.5rem));
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    header {
        padding: 0;
    }

    .content {
        padding: 1.25rem;
        width: auto;
        border-radius: 0;
    }
}
