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


html, body {
    height: 100%;
    width: 100%;
}


body {
    font-family: system-ui, -apple-system, Segoe UI, Roboto, "Helvetica Neue", Arial;
    color: white;
    -webkit-font-smoothing: antialiased;
}

.mt-1 {
    margin-top: 1rem;
}

.mt-2 {
    margin-top: 2rem;
}

.mt-3 {
    margin-top: 3rem;
}

.mt-4 {
    margin-top: 4em;
}

.mt-5 {
    margin-top: 5rem;
}

main {
    height: auto;
}

.title {
    font-size: 5em;
    font-family: "Archivo Black", sans-serif;
    font-style: normal;

    @media (max-width: 600px) {
        font-size: 3em;
    }
}

.song-title {
    font-size: 2em;
    font-family: "Archivo Black", sans-serif;
    font-style: normal;
}

.title-description {
    width: 40%;
    align-content: center;

    @media (max-width: 1000px) {
        width: 80%;
    }
    
}

.panel {
    position: relative;
    min-height: 100vh; /* full viewport */
    width: 100%;
    height: 100%;
    display: flex;
    align-items: stretch;
    justify-content: center;
    background-size: cover; /* ensure cover */
    background-position: center;
    background-repeat: no-repeat;
}

.panel.about {
    color: black;
}

.panel.social {
    min-height: 0;
    height: 200px;
    align-content: end;

    .content {
        padding: 0.5em;
    }
}

.contact {
    padding: 1em;
}

.copyright {
}

/* dark overlay for readable text */
.panel::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0.55));
    pointer-events: none;
}

.panel.white-fade::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.40), rgba(255, 255, 255, 0.45));
    pointer-events: none;
}

.home-link {
    position: absolute;
    top: 1rem;
    left: 1rem;
    z-index: 2;
    font-size: 1rem;
    font-weight: 600;
    color: white;
    text-decoration: none;
    background: rgba(0, 0, 0, 0);
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
}

.content {
    flex: 1;
    z-index: 1;
    display: flex; /* center container */
    flex-direction: column;
    align-items: center; /* horizontal center */
    justify-content: center; /* vertical center */
    text-align: center;
    padding: 2rem;
    height: auto;
    width: 100%;
}

/* Music grid */
.music-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    gap: 1rem;
    width: 60%;

    @media (max-width: 600px) {
        width: 100%;
    }
}

.music-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 1rem;
    border-radius: 0.5rem;
    height: 160px; /* fixed height */
    text-align: center;
}

.music-item h3 {
    margin-bottom: 0.5rem;
    font-size: 2rem;
    display: -webkit-box;
    -webkit-line-clamp: 2; /* limit to 2 lines */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
}

.music-item audio {
    width: 100%;
    margin-top: auto; /* push player to bottom */
}

@media (max-width: 600px) {
    .music-list {
        grid-template-columns: 1fr;
    }

    .music-item {
        height: 180px;
    }
}

.song-preview {
    max-width: 100%;
    object-fit: cover
}

.grid-item {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 2rem;
    align-items: start;
    margin-bottom: 2rem;
    width: 70%;

    @media (max-width: 1000px) {
        width: 100%;
    }
}

.grid-item .text {
    grid-column: span 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
    text-align: center;
}

.grid-item .image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.grid-item .image img {
    grid-column: 1;
    max-width: 100%;
    height: auto;

    border-radius: 4rem;
}

/* Responsive: stack on smaller screens */
@media (max-width: 1000px) {
    .grid-item {
        grid-template-columns: 1fr;
        
        .text {
            grid-column: 1;
        }
    }

    .grid-item .image {
        max-width: 100%;
        margin-top: 1rem;
    }
}

h1 {
    font-size: clamp(1.6rem, 4vw, 3.2rem);
    margin-bottom: 0.5rem
}

p {
    font-size: clamp(1rem, 2.2vw, 1.25rem);
    opacity: 0.95
}

/* responsive tweaks */
@media (max-width: 600px) {
    .content {
        padding: 1.25rem
    }

    .caption {
        font-size: 0.75rem
    }
}

.social-buttons {
    display: flex;
    gap: 1rem;
}

.social-btn {
    color: white; /* logo color */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: transform 0.2s ease;
}

.social-btn:hover {
    transform: scale(1.1);
    color: #ffcc00; /* optional hover color */
}


.contact {
    padding: 1em;
}

.copyright {
}

.legal-links a {
    color: white;
    text-decoration: underline;
    margin: 0 0.5rem;
}

.legal-links {
    margin-top: 1rem;
    font-size: 0.85rem;
    opacity: 0.8;
}
