/* ========================================
   Home Variables
======================================== */

:root {
    --font-about-us: "Yesteryear", cursive;
    --section-padding: clamp(3rem, 5vw, 5rem);
}

/* ========================================
   Home Buttons
======================================== */

.streaming-button {
    padding: 0.3125rem 0.75rem;
    font-family: var(--font-button-alt);
    font-size: 1.125rem;
    letter-spacing: 0.05rem;
    white-space: nowrap;
}

/* ========================================
   Latest Release
======================================== */

.latest-release {
    width: min(100%, var(--content-max));
    margin-inline: auto;
    padding: clamp(4rem, 8vw, 8.75rem) var(--page-gutter);

    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: clamp(2rem, 4vw, 4rem);
    align-items: stretch;
}

.release-artwork-link {
    display: block;
    color: inherit;
    text-decoration: none;
    transition:
        transform 0.2s ease,
        filter 0.2s ease;
}

.release-artwork-link:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 0.5rem;
}

.release-artwork img {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: cover;
}

.release-info {
    min-width: 0;

    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: clamp(2rem, 4vw, 4rem);
}

.release-title {
    margin: clamp(1rem, 2vw, 2.5rem) 0 1rem;

    font-size: clamp(2.5rem, 4vw, 3.75rem);
    line-height: 1.1;

    text-align: center;
    text-wrap: balance;
}

.release-date {
    margin: 0;
    font-size: clamp(1.125rem, 2vw, 1.75rem);
    text-align: right;
}

.release-listen-button {
    align-self: center;
}

.listen-section {
    text-align: center;
}

.listen-section h2 {
    margin: 0 0 clamp(1.5rem, 3vw, 2.5rem);
    font-size: clamp(1.75rem, 2.5vw, 2.25rem);
}

.streaming-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
}

.release-cta {
    align-self: flex-end;
}

/* ========================================
   Shared Home Sections
======================================== */

.home-section {
    width: min(100%, var(--content-max));
    margin-inline: auto;
    padding: var(--section-padding) var(--page-gutter);

    display: flex;
    flex-direction: column;
    align-items: center;
}

.section-title {
    margin: 0 0 clamp(1.875rem, 3vw, 3.125rem);
    font-size: clamp(2.25rem, 4vw, 3.75rem);
    line-height: 1.1;
    text-align: center;
    text-wrap: balance;
}

.section-media {
    width: 100%;
    height: auto;
}

.section-media-frame {
    position: relative;
    width: 100%;
    overflow: hidden;

    border: 0.3125rem solid transparent;
    border-radius: 0.5rem;

    background-image: linear-gradient(
        135deg,
        #f7fbff 0%,
        #8f969b 9%,
        #f9ffff 17%,
        #585f65 28%,
        #dfe8ee 42%,
        #333940 54%,
        #fbffff 68%,
        #777f86 82%,
        #f4f8fb 100%
    );
    background-origin: border-box;
    background-clip: border-box;

    box-shadow:
        0 1rem 2rem rgba(0, 0, 0, 0.32),
        0 0 0 1px rgba(255, 255, 255, 0.18),
        inset 0 0 0 1px rgba(255, 255, 255, 0.42);
}

.section-media-frame::before,
.section-media-frame::after {
    content: "";
    position: absolute;
    z-index: 2;
    pointer-events: none;
}

.section-media-frame::before {
    inset: 0.25rem;
    border: 1px solid rgba(255, 255, 255, 0.65);
    border-radius: 0.25rem;
    box-shadow:
        inset 0 0 0 1px rgba(39, 43, 47, 0.5),
        0 0 0 1px rgba(20, 22, 24, 0.55);
}

.section-media-frame::after {
    top: 0.3125rem;
    right: 1.25rem;
    left: 1.25rem;
    height: 0.1875rem;
    border-radius: 999px;
    background: linear-gradient(
        to right,
        transparent,
        rgba(255, 255, 255, 0.82) 18%,
        rgba(255, 255, 255, 0.18) 38%,
        rgba(255, 255, 255, 0.9) 58%,
        transparent
    );
}

.section-media-frame .section-media {
    position: relative;
    z-index: 1;
    border-radius: 0.1875rem;
}

.section-cta {
    align-self: flex-end;
    margin-top: clamp(1.5rem, 3vw, 2.5rem);
}

/* ========================================
   Chrome Parchment
======================================== */

.home-section .show-list,
.biography {
    position: relative;

    border: 0.3125rem solid transparent;
    border-radius: 0.5rem;

    background-color: var(--color-parchment);
    background-image:
        linear-gradient(
            145deg,
            rgba(255, 248, 226, 0.38),
            rgba(178, 150, 95, 0.16) 52%,
            rgba(255, 250, 231, 0.26)
        ),
        var(--chrome-parchment-image),
        linear-gradient(
            135deg,
            #f7fbff 0%,
            #8f969b 9%,
            #f9ffff 17%,
            #585f65 28%,
            #dfe8ee 42%,
            #333940 54%,
            #fbffff 68%,
            #777f86 82%,
            #f4f8fb 100%
        );
    background-position: center, var(--chrome-parchment-position), center;
    background-repeat: no-repeat, var(--chrome-parchment-repeat), no-repeat;
    background-size: auto, var(--chrome-parchment-size), auto;
    background-origin: padding-box, padding-box, border-box;
    background-clip: padding-box, padding-box, border-box;

    box-shadow:
        0 1rem 2rem rgba(0, 0, 0, 0.32),
        0 0 0 1px rgba(255, 255, 255, 0.18),
        inset 0 0 0 1px rgba(255, 255, 255, 0.42),
        inset 0 0 1.5rem rgba(73, 48, 18, 0.16);
}

.home-section .show-list {
    --chrome-parchment-image: var(--show-parchment-image);
    --chrome-parchment-position: top;
    --chrome-parchment-repeat: repeat-y;
    --chrome-parchment-size: 100% auto;
}

.biography {
    --chrome-parchment-image: url("../Images/HomePage/AboutUs/parchment.png");
    --chrome-parchment-position: center;
    --chrome-parchment-repeat: no-repeat;
    --chrome-parchment-size: cover;
}

.home-section .show-list::before,
.home-section .show-list::after,
.biography::before,
.biography::after {
    content: "";
    position: absolute;
    pointer-events: none;
}

.home-section .show-list::before,
.biography::before {
    inset: 0.25rem;
    border: 1px solid rgba(255, 255, 255, 0.65);
    border-radius: 0.25rem;
    box-shadow:
        inset 0 0 0 1px rgba(39, 43, 47, 0.5),
        0 0 0 1px rgba(20, 22, 24, 0.55);
}

.home-section .show-list::after,
.biography::after {
    top: 0.3125rem;
    right: 1.25rem;
    left: 1.25rem;
    height: 0.1875rem;
    border-radius: 999px;
    background: linear-gradient(
        to right,
        transparent,
        rgba(255, 255, 255, 0.82) 18%,
        rgba(255, 255, 255, 0.18) 38%,
        rgba(255, 255, 255, 0.9) 58%,
        transparent
    );
}

/* ========================================
   About Us
======================================== */

.biography {
    width: min(68.75rem, 85vw);
    min-height: clamp(20rem, 58vw, 28rem);
    aspect-ratio: 16 / 9;
    color: #111;
}

.bio-text {
    position: absolute;
    inset: 9% 11% 10%;

    display: grid;
    grid-template-rows: 0.2fr auto 1fr;

    z-index: 1;
    overflow: hidden;
}

.bio-text .section-title {
    grid-row: 2;
    margin-bottom: clamp(0.75rem, 2vw, 2rem);

    font-family: var(--font-about-us);
    font-size: clamp(2rem, 4.2vw, 4.75rem);
}

.bio-text p {
    grid-row: 3;
    align-self: start;

    margin: 0 clamp(0.25rem, 4vw, 5rem);
    font-size: clamp(0.875rem, 1.65vw, 1.5rem);
    line-height: 1.65;
}

/* ========================================
   Contact
======================================== */

.contact-title {
    position: relative;
    padding-bottom: 12px;
}

.contact-title::after {
    content: "";
    position: absolute;

    left: 50%;
    bottom: 0;

    width: 70%;
    height: 2px;

    transform: translateX(-50%);

    background: linear-gradient(
        to right,
        transparent 0%,
        #8a8a8a 20%,
        #8a8a8a 80%,
        transparent 100%
    );
}

.contact a {
    color: var(--color-text);
    font-size: clamp(1rem, 2vw, 1.5rem);
    text-decoration: none;
    overflow-wrap: anywhere;
}

.contact a:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 4px;
}

@media (hover: hover) {
    .release-artwork-link:hover {
        transform: translateY(-2px);
        filter: brightness(1.08);
    }

    .contact a:hover {
        color: #aaa;
    }
}

/* ========================================
   Home Responsive Layout
======================================== */

@media (max-width: 56.25rem) {
    .latest-release {
        grid-template-columns: 1fr;
    }

    .release-artwork {
        width: min(100%, 42rem);
        justify-self: center;
    }
}

@media (max-width: 40rem) {
    .latest-release {
        padding-top: 2rem;
        padding-bottom: 3rem;
        gap: 1.5rem;
    }

    .release-artwork {
        width: min(100%, 22rem);
        justify-self: center;
    }

    .release-info {
        gap: 1.4rem;
    }

    .release-title {
        margin: 0 0 0.6rem;
        font-size: clamp(2rem, 10vw, 2.65rem);
    }

    .release-date {
        font-size: 1.05rem;
        text-align: center;
    }

    .release-listen-button,
    .release-cta,
    .section-cta {
        align-self: center;
        width: min(100%, 22rem);
    }

    .listen-section h2 {
        margin-bottom: 1rem;
        font-size: 1.45rem;
    }

    .streaming-links {
        display: grid;
        grid-template-columns: 1fr;
        gap: 0.55rem;
        width: min(100%, 22rem);
        margin-inline: auto;
    }

    .streaming-button {
        display: flex;
        align-items: center;
        justify-content: center;
        min-height: 2.35rem;
        padding: 0.45rem 0.55rem;
        line-height: 1.05;
        white-space: normal;
    }

    .home-section {
        padding-top: 2.75rem;
        padding-bottom: 2.75rem;
    }

    .section-title {
        margin-bottom: 1.4rem;
        font-size: clamp(2rem, 9vw, 2.65rem);
    }

    .section-media-frame {
        border-width: 0.22rem;
        border-radius: 0.4rem;
    }

    .section-cta {
        margin-top: 1.25rem;
    }

    .biography {
        width: 100%;
        min-height: 0;
        aspect-ratio: auto;
        padding: 1.35rem 1.25rem 1.5rem;
    }

    .bio-text {
        position: relative;
        inset: auto;

        display: block;

        overflow: visible;
    }

    .bio-text .section-title {
        margin: 0 0 0.75rem;
        font-size: clamp(1.75rem, 8vw, 2.5rem);
    }

    .bio-text p {
        margin: 0;
        font-size: 0.95rem;
        line-height: 1.55;
    }
}

@media (max-width: 30rem) {
    .streaming-button {
        font-size: 1rem;
    }
}
