/* =====================================================
   CHERRY SOUND RECORDS
===================================================== */

:root {
    --cream: #f2eadf;
    --cream-light: #f7f2eb;
    --mahogany: #5a3326;
    --mahogany-dark: #3a2118;
    --red: #7a1c1c;
    --red-hover: #991f1f;
    --text-dark: #302923;
}


/* =====================================================
   RESET
===================================================== */

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


html {
    scroll-behavior: smooth;
}


body {
    margin: 0;
    background: var(--cream);
    color: var(--text-dark);
    font-family: Arial, Helvetica, sans-serif;
    overflow-x: hidden;
}


a {
    color: inherit;
}


img {
    display: block;
    max-width: 100%;
}


button {
    font: inherit;
}


/* =====================================================
   ACCESSIBILITY
===================================================== */

.skip-link {
    position: fixed;
    top: 10px;
    left: 10px;

    z-index: 99999;

    padding: 12px 16px;

    background: #111;
    color: #fff;

    text-decoration: none;

    transform: translateY(-200%);
}


.skip-link:focus {
    transform: translateY(0);
}


/* =====================================================
   DESKTOP SIDEBAR
===================================================== */

.side-nav {
    position: fixed;
    top: 0;
    left: 0;

    z-index: 20;

    display: flex;
    flex-direction: column;

    width: 260px;
    height: 100vh;

    padding: 55px 45px 40px;

    background: #f6eee5;
}


.records-logo {
    display: block;
    text-decoration: none;
}


.records-logo img {
    width: 150px;
    height: auto;

    margin: 0 auto 55px;
}


.side-nav ul {
    list-style: none;
}


.side-nav li {
    margin-bottom: 26px;
}


.side-nav li a {
    color: var(--mahogany);
    text-decoration: none;

    font-size: 13px;
    line-height: 1.45;
    letter-spacing: 1.5px;

    text-transform: uppercase;

    transition:
        opacity 0.2s ease,
        transform 0.2s ease;
}


.side-nav li a:hover {
    opacity: 0.6;
}


.side-nav-bottom {
    margin-top: auto;
}


.side-line {
    width: 55px;
    height: 2px;

    margin: 28px 0;

    background: var(--red);
}


.side-nav-bottom p {
    color: #4a2727;

    font-family: Arial, Helvetica, sans-serif;
    font-size: 15px;
    line-height: 1.7;
}


.side-contact {
    display: inline-block;

    color: var(--red);

    text-decoration: none;
    font-size: 12px;
    font-weight: 700;

    letter-spacing: 1.5px;
    text-transform: uppercase;

    transition: opacity 0.2s ease;
}


.side-contact:hover {
    opacity: 0.6;
}


/* =====================================================
   MOBILE / TABLET HEADER
===================================================== */

.site-header {
    display: none;
}


/* =====================================================
   MAIN PAGE
===================================================== */

.records-page {
    width: calc(100% - 260px);
    margin-left: 260px;
}


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

.records-hero {
    min-height: 520px;

    display: flex;
    align-items: center;

    padding: 80px;

    background-image:
        linear-gradient(
            to right,
            rgba(0, 0, 0, 0.66),
            rgba(0, 0, 0, 0.10)
        ),
        url("../img/backgroundhomegradient.jpg");

    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}


.records-hero-text {
    max-width: 520px;
    color: #fff;
}


.records-hero h1 {
    margin: 0;

    font-family: Garamond, Georgia, "Times New Roman", serif;
    font-size: 52px;
    font-weight: 700;

    line-height: 1.15;
    letter-spacing: 1px;
}


.hero-line {
    width: 70px;
    height: 2px;

    margin: 28px 0;

    background: var(--red);
}


.records-hero p {
    margin: 0 0 28px;

    font-size: 17px;
    line-height: 1.7;
}


.red-button {
    display: inline-block;

    padding: 16px 32px;

    background: var(--red);
    color: #fff;

    border-radius: 6px;

    text-decoration: none;

    font-size: 13px;
    font-weight: 600;

    letter-spacing: 1.5px;

    transition:
        background 0.25s ease,
        transform 0.25s ease;
}


.red-button:hover {
    background: var(--red-hover);
    transform: translateY(-2px);
}


/* =====================================================
   CONTENT
===================================================== */

.records-content {
    display: grid;

    grid-template-columns: 280px minmax(0, 1fr);

    gap: 70px;

    padding: 55px 80px 80px;
}


.records-content h4 {
    margin: 0 0 28px;

    color: var(--red);

    font-size: 13px;
    line-height: 1.3;

    letter-spacing: 4px;
}


.about-label h2,
.latest-releases h2 {
    margin: 0 0 25px;

    font-family: Garamond, Georgia, "Times New Roman", serif;

    line-height: 1.05;
}


.about-label h2 {
    font-size: 30px;
}


.latest-releases h2 {
    font-size: 32px;
}


.about-label p {
    margin: 0 0 35px;

    font-size: 16px;
    line-height: 1.7;
}


.about-label a {
    color: var(--red);

    text-decoration: none;

    font-size: 13px;
    font-weight: 600;

    letter-spacing: 2px;
}


.about-label a:hover {
    opacity: 0.65;
}


.releases-intro {
    max-width: 700px;

    margin: 0 0 35px;

    font-size: 16px;
    line-height: 1.6;
}


/* =====================================================
   RELEASE GRID
===================================================== */

.release-grid {
    display: grid;

    grid-template-columns: repeat(4, minmax(0, 1fr));

    gap: 28px;
}


.release-card {
    appearance: none;

    width: 100%;

    padding: 0;

    background: transparent;
    color: inherit;

    border: 0;

    text-align: left;

    cursor: pointer;
}


.release-card:hover .release-placeholder {
    background: #ded0c1;
}


.release-card:focus-visible {
    outline: 2px solid var(--mahogany);
    outline-offset: 5px;
}


.release-placeholder {
    aspect-ratio: 1 / 1;

    display: flex;
    align-items: center;
    justify-content: center;

    margin-bottom: 14px;

    background: #e8ddd1;
    color: var(--mahogany);

    font-size: 0.8rem;
    letter-spacing: 0.12em;

    transition: background 0.2s ease;
}


.release-card h3 {
    margin: 0 0 6px;

    color: var(--mahogany);

    font-size: 14px;
    letter-spacing: 2px;
}


.release-card p {
    margin: 0;

    font-size: 13px;
    line-height: 1.6;
}


/* =====================================================
   RELEASE MODAL
===================================================== */

.release-modal {
    position: fixed;
    inset: 0;

    z-index: 2000;

    display: none;
}


.release-modal.is-open {
    display: block;
}


.release-modal-backdrop {
    position: absolute;
    inset: 0;

    background: rgba(0, 0, 0, 0.72);
}


.release-modal-panel {
    position: relative;
    z-index: 1;

    width: min(1000px, calc(100% - 40px));
    max-height: calc(100vh - 60px);

    margin: 30px auto;
    padding: 36px;

    overflow-y: auto;

    background: var(--cream);
    color: var(--mahogany);
}


.release-modal-close {
    position: absolute;
    top: 16px;
    right: 18px;

    border: 0;
    background: transparent;

    color: var(--mahogany);

    font-size: 2rem;
    line-height: 1;

    cursor: pointer;
}


.release-modal-layout {
    display: grid;

    grid-template-columns:
        minmax(260px, 0.9fr)
        minmax(0, 1.1fr);

    gap: 40px;

    align-items: start;
}


.release-modal-artwork .release-placeholder {
    width: 100%;
    margin: 0;
}


.release-modal-label {
    margin: 0 0 10px;

    font-size: 0.75rem;
    letter-spacing: 0.14em;
}


.release-modal-content h2 {
    margin: 0 0 8px;

    font-family: Garamond, Georgia, "Times New Roman", serif;

    font-size: clamp(2rem, 4vw, 3.5rem);
    line-height: 1;
}


.release-modal-artist {
    margin: 0 0 8px;

    font-size: 1.2rem;
    font-weight: 600;
}


.release-modal-meta {
    margin: 0 0 24px;

    font-size: 0.9rem;
    opacity: 0.75;
}


.release-modal-description {
    max-width: 620px;

    line-height: 1.7;
}


.release-track-list {
    margin-top: 32px;
}


.release-track-heading {
    margin-bottom: 16px;

    font-size: 0.8rem;
    font-weight: 700;

    letter-spacing: 0.12em;
}


.release-track {
    padding-top: 16px;

    border-top: 1px solid rgba(93, 44, 44, 0.25);
}


.release-track span {
    display: block;

    margin-bottom: 10px;
}


.release-track audio {
    width: 100%;
}


/* =====================================================
   TABLET / SMALL LAPTOP
===================================================== */

@media screen and (max-width: 1100px) {

    .side-nav {
        display: none;
    }


    .records-page {
        width: 100%;
        margin-left: 0;
    }


    .site-header {
        position: absolute;
        top: 0;
        left: 0;

        z-index: 1000;

        display: flex;
        align-items: flex-start;
        justify-content: space-between;

        width: 100%;

        padding: 25px 30px;

        pointer-events: none;
    }


    .mobile-logo {
        position: relative;
        z-index: 1002;

        display: block;

        pointer-events: auto;
    }


    .mobile-logo img {
        width: 120px;
        height: auto;
    }


    .menu-icon {
        position: relative;
        z-index: 1002;

        width: 42px;
        height: 32px;

        display: flex;
        flex-direction: column;
        justify-content: space-between;

        padding: 0;

        border: 0;
        background: transparent;

        cursor: pointer;
        pointer-events: auto;
    }


    .menu-icon span {
        display: block;

        width: 100%;
        height: 3px;

        background: #fff;

        border-radius: 999px;

        transition:
            transform 0.3s ease,
            opacity 0.3s ease;
    }


    .menu-icon.active span:nth-child(1) {
        transform: translateY(14px) rotate(45deg);
    }


    .menu-icon.active span:nth-child(2) {
        opacity: 0;
    }


    .menu-icon.active span:nth-child(3) {
        transform: translateY(-14px) rotate(-45deg);
    }


    .navi {
        position: fixed;
        top: 0;
        right: -100%;

        z-index: 1001;

        width: 100%;
        height: 100vh;

        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;

        gap: 34px;

        padding: 110px 30px 50px;

        list-style: none;

        background: rgba(25, 12, 10, 0.97);

        transition: right 0.4s ease;

        pointer-events: auto;
    }


    .navi.active {
        right: 0;
    }


    .navi a {
        color: #fff;

        text-decoration: none;

        font-size: 17px;
        font-weight: 600;

        letter-spacing: 2px;

        text-align: center;
        text-transform: uppercase;
    }


    .navi a:hover {
        opacity: 0.65;
    }


    .records-hero {
        min-height: 570px;

        padding: 150px 30px 70px;
    }


    .records-hero h1 {
        font-size: 42px;
    }


    .records-content {
        grid-template-columns: 1fr;

        padding: 55px 30px 70px;
    }


    .release-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }


    .release-modal-close {
        top: 18px;
        right: 18px;

        width: 44px;
        height: 44px;

        display: flex;
        align-items: center;
        justify-content: center;

        background: var(--mahogany);
        color: var(--cream);

        border-radius: 50%;

        font-size: 1.7rem;
    }


    .release-modal-panel {
        padding-top: 76px;
    }
}


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

@media screen and (max-width: 700px) {

    .site-header {
        padding: 20px;
    }


    .mobile-logo img {
        width: 95px;
    }


    .menu-icon {
        width: 38px;
        height: 30px;
    }


    .menu-icon.active span:nth-child(1) {
        transform: translateY(13px) rotate(45deg);
    }


    .menu-icon.active span:nth-child(3) {
        transform: translateY(-13px) rotate(-45deg);
    }


    .navi {
        gap: 28px;
    }


    .navi a {
        font-size: 16px;
    }


    .records-hero {
        min-height: 620px;

        padding: 145px 25px 70px;

        background-position: center;
    }


    .records-hero h1 {
        font-size: 38px;
    }


    .records-content {
        gap: 55px;

        padding: 50px 25px 65px;
    }


    .release-grid {
        grid-template-columns: 1fr;
    }


    .release-modal-panel {
        width: calc(100% - 24px);
        max-height: calc(100vh - 24px);

        margin: 12px auto;

        padding:
            70px
            20px
            24px;
    }


    .release-modal-layout {
        grid-template-columns: 1fr;

        gap: 28px;
    }


    .release-modal-artwork {
        width: 100%;
        max-width: 420px;

        margin: 0 auto;
    }
}