/* =========================================
   E. HENRY ECKHARDT — MUSIC PAGE
========================================= */

.hm-page {
    --hm-navy: #101b2c;
    --hm-deep: #17263a;
    --hm-gold: #d4b778;
    --hm-cream: #f8f5ed;
    --hm-muted: #667387;
    --hm-white: #fff;

    color: var(--hm-navy);
    overflow: hidden;
}

.hm-page *,
.hm-page *::before,
.hm-page *::after {
    box-sizing: border-box;
}

.hm-page a {
    text-decoration: none;
}

.hm-page a:focus-visible,
.hm-page button:focus-visible,
.hm-page input:focus-visible {
    outline: 3px solid var(--hm-gold);
    outline-offset: 4px;
}

.hm-page em {
    font-family: Georgia, "Times New Roman", serif;
    font-weight: 400;
    font-style: italic;
}


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

.hm-page .hm-hero {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    width: 100%;
    height: auto;
    min-height: 420px;
    padding: 0;
    margin: 0;
    border: none;
    isolation: isolate;
    overflow: hidden;
    background: var(--hm-navy);
    color: #fff;
}


/* Hero image */

.hm-page .hm-hero-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
    pointer-events: none;
}

.hm-page .hm-hero-image picture {
    display: block;
    width: 100%;
    height: 100%;
}

.hm-page .hm-hero-image img {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
    margin: 0;
    padding: 0;
    border: none;
    object-fit: cover;
    object-position: center center;
    filter: none;
    transform: none;
    animation: none;
}


/* Desktop and mobile image switching */

.hm-page .hm-hero-image .hm-desktop-img {
    display: block;
}

.hm-page .hm-hero-image .hm-mobile-img {
    display: none;
}


/* Remove full-banner overlay */

.hm-page .hm-hero-shade {
    display: none;
}


/* Centered hero content */

.hm-page .hm-hero-layout {
    position: relative;
    grid-area: 1 / 1;
    align-self: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-width: 0;
    gap: 0;
    padding: 65px 24px 85px;
    text-align: center;
    z-index: 1;
}


/* Hero content shadow */

.hm-page .hm-hero-copy {
    position: relative;
    width: 100%;
    max-width: 800px;
    min-width: 0;
    margin: 0 auto;
    border-radius: 20px;
    background: rgba(0, 0, 0, 0.35);
    box-shadow: 0 0 60px 40px rgba(0, 0, 0, 0.35);
    animation: hmRise .75s ease both;
}


/* Hero eyebrow */

.hm-eyebrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 13px;
    margin-bottom: 18px;
    color: var(--hm-gold);
    font-size: 11px;
    font-weight: 750;
    letter-spacing: 3px;
}

.hm-eyebrow-line {
    display: block;
    flex: 0 0 39px;
    height: 1px;
    background: var(--hm-gold);
}


/* Hero heading */

.hm-page .hm-hero h1 {
    margin: 0 0 14px;
    color: #fff;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(32px, 4vw, 46px);
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: -1px;
}

.hm-hero h1 em {
    display: block;
    color: var(--hm-gold);
}


/* Hero description */

.hm-page .hm-hero-lead {
    max-width: 560px;
    margin: 0 auto 20px;
    color: #e0e5ed;
    font-size: 16px;
    line-height: 1.75;
}


/* Hero buttons */

.hm-page .hm-hero-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
}

.hm-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-height: 53px;
    padding: 14px 21px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 750;
    transition:
        transform .28s ease,
        box-shadow .28s ease,
        background-color .28s ease;
}

.hm-button:hover {
    transform: translateY(-3px);
}

.hm-button-gold {
    background: var(--hm-gold);
    color: var(--hm-navy);
}

.hm-button-gold:hover {
    background: #e8cd96;
    color: var(--hm-navy);
    box-shadow: 0 12px 25px #0003;
}

.hm-button-navy {
    background: var(--hm-navy);
    color: var(--hm-gold);
}

.hm-button-navy:hover {
    background: #243a53;
    color: #f3deb0;
}

.hm-text-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid rgba(212, 183, 120, .55);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
}

.hm-text-link:hover {
    color: var(--hm-gold);
}


/* Hide decorative vinyl */

.hm-page .hm-hero-visual {
    display: none;
}


/* Scroll indicator */

.hm-page .hm-scroll-cue {
    position: absolute;
    bottom: 24px;
    left: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: max-content;
    max-width: calc(100% - 32px);
    margin: 0;
    transform: translateX(-50%);
    color: #ded7cb;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 2px;
    white-space: nowrap;
    z-index: 2;
}

.hm-scroll-cue:hover {
    color: var(--hm-gold);
}


/* =========================================
   INTRO STRIP
========================================= */

.hm-intro {
    background: var(--hm-gold);
    color: var(--hm-navy);
}

.hm-intro-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 22px;
    min-height: 86px;
    text-align: center;
}

.hm-intro p {
    margin: 0;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(18px, 2.2vw, 27px);
}

.hm-intro p strong {
    font-weight: 700;
}

.hm-intro-icon {
    font-size: 26px;
}

.hm-intro-flourish {
    opacity: .75;
}


/* =========================================
   MUSIC CATALOG
========================================= */

.hm-catalog {
    padding: clamp(72px, 8vw, 112px) 0;
    background: var(--hm-cream);
}

.hm-section-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 45px;
}

.hm-section-kicker {
    display: block;
    margin-bottom: 15px;
    color: #9a7836;
    font-size: 10px;
    font-weight: 850;
    letter-spacing: 2.5px;
}

.hm-section-heading h2,
.hm-subscribe h2 {
    margin: 0 0 13px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(37px, 4.6vw, 62px);
    font-weight: 600;
    line-height: 1.15;
    letter-spacing: -1.2px;
}

.hm-section-heading h2 em {
    color: #99773c;
}

.hm-section-heading p {
    max-width: 560px;
    margin: 0;
    color: var(--hm-muted);
    font-size: 15px;
    line-height: 1.7;
}

.hm-section-mark {
    display: grid;
    place-items: center;
    flex: none;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: #efe5ce;
    color: #987337;
    font-size: 30px;
}


/* Music card grid */

.hm-track-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 27px;
}

.hm-track-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
    border: 1px solid #e8e2d8;
    border-radius: 21px;
    background: #fff;
    box-shadow: 0 12px 30px #101b2c0b;
    transition:
        transform .32s ease,
        box-shadow .32s ease,
        border-color .32s ease;
}

.hm-track-card:hover {
    transform: translateY(-7px);
    border-color: #d5bd89;
    box-shadow: 0 22px 50px #101b2c20;
}

.hm-cover-link {
    position: relative;
    display: block;
    aspect-ratio: 1.38;
    overflow: hidden;
    background: #1a283c;
}

.hm-cover {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .55s ease;
}

.hm-track-card:hover .hm-cover {
    transform: scale(1.07);
}

.hm-cover-placeholder {
    display: grid;
    place-items: center;
    height: 100%;
    background: radial-gradient(circle at 60% 35%,
            #354e68,
            #101b2c 72%);
    color: var(--hm-gold);
    font-size: clamp(65px, 8vw, 105px);
}

.hm-cover-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    padding: 18px;
    background: linear-gradient(0deg,
            #101b2c99,
            transparent 55%);
    opacity: .8;
    transition: opacity .3s ease;
}

.hm-track-card:hover .hm-cover-overlay {
    opacity: 1;
}

.hm-cover-play {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: var(--hm-gold);
    color: var(--hm-navy);
    font-size: 19px;
    transform: translateY(5px);
    transition: transform .3s ease;
}

.hm-track-card:hover .hm-cover-play {
    transform: translateY(0);
}

.hm-track-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 25px 25px 22px;
}

.hm-track-overline {
    color: #9b7e48;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 1.6px;
}

.hm-track-body h3 {
    margin: 12px 0;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(22px, 2vw, 28px);
    font-weight: 700;
    line-height: 1.3;
}

.hm-track-body h3 a {
    color: var(--hm-navy);
}

.hm-track-body h3 a:hover {
    color: #9b7e48;
}

.hm-track-body p {
    flex: 1;
    margin: 0 0 23px;
    color: var(--hm-muted);
    font-size: 13px;
    line-height: 1.8;
}

.hm-track-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 14px;
    padding-top: 17px;
    border-top: 1px solid #eee8df;
}

.hm-track-price {
    color: var(--hm-navy);
    font-size: 19px;
    font-weight: 800;
    white-space: nowrap;
}

.hm-track-price small {
    color: #8e98a6;
    font-size: 9px;
}

.hm-track-action {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #917033;
    font-size: 12px;
    font-weight: 750;
}

.hm-track-action:hover {
    color: var(--hm-navy);
}


/* =========================================
   EMPTY STATE AND PAGINATION
========================================= */

.hm-empty {
    display: flex;
    grid-column: 1 / -1;
    flex-direction: column;
    align-items: center;
    padding: 70px 25px;
    border: 1px solid #e8e2d8;
    border-radius: 22px;
    background: #fff;
    text-align: center;
}

.hm-empty-icon {
    display: grid;
    place-items: center;
    width: 80px;
    height: 80px;
    margin-bottom: 16px;
    border-radius: 50%;
    background: #f5efdf;
    color: #a58443;
    font-size: 34px;
}

.hm-empty h3 {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 30px;
}

.hm-empty p {
    max-width: 510px;
    margin: 0 0 23px;
    color: var(--hm-muted);
    line-height: 1.75;
}

.hm-pagination {
    display: flex;
    justify-content: center;
    margin-top: 36px;
    overflow: auto;
}

.hm-pagination .pagination {
    flex-wrap: wrap;
    gap: 5px;
}

.hm-pagination .page-link {
    border-color: #e3d9c8;
    border-radius: 9px;
    background: #fff;
    color: var(--hm-navy);
}

.hm-pagination .page-item.active .page-link {
    border-color: var(--hm-navy);
    background: var(--hm-navy);
    color: var(--hm-gold);
}


/* =========================================
   QUOTE SECTION
========================================= */

.hm-quote {
    position: relative;
    isolation: isolate;
    padding: 100px 0;
    background: #111e30;
    color: #fff;
    text-align: center;
}

.hm-quote-image {
    position: absolute;
    inset: 0;
    z-index: -2;
}

.hm-quote-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hm-quote::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: #101b2cdd;
}

.hm-quote-ornament {
    display: block;
    color: var(--hm-gold);
    font-family: Georgia, serif;
    font-size: 100px;
    line-height: .6;
    opacity: .75;
}

.hm-quote blockquote {
    max-width: 920px;
    margin: 22px auto;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(31px, 4.8vw, 62px);
    font-weight: 500;
    line-height: 1.28;
}

.hm-quote blockquote em {
    color: var(--hm-gold);
}

.hm-quote p {
    margin: 0;
    color: #d9c394;
    font-size: 12px;
    letter-spacing: 2px;
    text-transform: uppercase;
}


/* =========================================
   DISCOVER CARDS
========================================= */

.hm-stories {
    padding: clamp(76px, 8vw, 110px) 0;
    background: #fff;
}

.hm-section-heading-centered {
    justify-content: center;
    text-align: center;
}

.hm-section-heading-centered p {
    margin: 0 auto;
}

.hm-discover-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 21px;
}

.hm-discover-card {
    padding: 35px 29px 31px;
    border: 1px solid #ebe6db;
    border-radius: 20px;
    background: #f8f7f4;
    transition:
        transform .3s ease,
        background-color .3s ease,
        border-color .3s ease;
}

.hm-discover-card:hover {
    transform: translateY(-6px);
    border-color: #d4b778;
    background: #fcfaf5;
}

.hm-discover-number {
    display: block;
    color: #a18550;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1.6px;
}

.hm-discover-icon {
    display: grid;
    place-items: center;
    width: 59px;
    height: 59px;
    margin: 27px 0 22px;
    border-radius: 17px;
    background: #101b2c;
    color: var(--hm-gold);
    font-size: 25px;
}

.hm-discover-card h3 {
    margin: 0 0 13px;
    color: var(--hm-navy);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 24px;
    font-weight: 700;
    line-height: 1.3;
}

.hm-discover-card p {
    min-height: 70px;
    margin: 0 0 23px;
    color: var(--hm-muted);
    font-size: 13px;
    line-height: 1.8;
}

.hm-discover-card a {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: #8c6d36;
    font-size: 12px;
    font-weight: 800;
}

.hm-discover-card a:hover {
    color: var(--hm-navy);
}


/* =========================================
   NEWSLETTER
========================================= */

.hm-subscribe {
    padding: 0 0 clamp(70px, 8vw, 105px);
    background: #fff;
}

.hm-subscribe-panel {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
    align-items: center;
    gap: 38px;
    padding: clamp(30px, 5vw, 65px);
    overflow: hidden;
    border-radius: 25px;
    background: linear-gradient(125deg, #101b2c, #203852);
    color: #fff;
}

.hm-subscribe-panel::after {
    content: "";
    position: absolute;
    top: -160px;
    right: -100px;
    width: 350px;
    height: 350px;
    border: 1px solid #d4b77845;
    border-radius: 50%;
    pointer-events: none;
}

.hm-subscribe .hm-section-kicker {
    color: var(--hm-gold);
}

.hm-subscribe h2 {
    margin-bottom: 17px;
    color: #fff;
}

.hm-subscribe h2 em {
    color: var(--hm-gold);
}

.hm-subscribe-copy p {
    max-width: 420px;
    margin: 0;
    color: #ccd5df;
    font-size: 14px;
    line-height: 1.8;
}

.hm-subscribe-form label {
    display: block;
    margin-bottom: 12px;
    color: #e6e6e6;
    font-size: 12px;
    font-weight: 700;
}

.hm-email-row {
    position: relative;
    z-index: 1;
    display: flex;
    gap: 8px;
    padding: 7px;
    border-radius: 14px;
    background: #fff;
}

.hm-email-row input {
    flex: 1;
    min-width: 0;
    padding: 13px 14px;
    border: 0;
    border-radius: 9px;
    background: #fff;
    color: var(--hm-navy);
    font-size: 14px;
}

.hm-email-row input:focus-visible {
    outline: 2px solid var(--hm-gold);
    outline-offset: -2px;
}

.hm-email-row button {
    flex: none;
    padding: 12px 18px;
    border: 0;
    border-radius: 9px;
    background: var(--hm-gold);
    color: var(--hm-navy);
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
    transition:
        background .25s ease,
        transform .25s ease;
}

.hm-email-row button:hover {
    transform: translateY(-1px);
    background: #f0d9a6;
}

.hm-subscribe-footnote {
    margin: 12px 0 0;
    color: #aab8c8;
    font-size: 11px;
}

.hm-form-error {
    margin: 8px 0 0;
    color: #ffd7cd;
    font-size: 12px;
}


/* =========================================
   ANIMATIONS
========================================= */

@keyframes hmRise {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* =========================================
   TABLET RESPONSIVE
========================================= */

@media (max-width: 1100px) {

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

    .hm-discover-card {
        padding: 29px 23px;
    }

}

@media (max-width: 800px) {

    .hm-track-grid {
        gap: 18px;
    }

    .hm-discover-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .hm-discover-card p {
        min-height: 0;
    }

    .hm-subscribe-panel {
        grid-template-columns: minmax(0, 1fr);
        gap: 27px;
    }

    .hm-section-mark {
        display: none;
    }

}


/* =========================================
   MOBILE HERO — PORTRAIT IMAGE
========================================= */

@media (max-width: 767px) {

    .hm-page .hm-hero {
        position: relative;
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        width: 100%;
        height: auto;
        min-height: max(560px, 177.7778vw);
        padding: 0;
        margin: 0;
        overflow: hidden;
        border: none;
    }

    .hm-page .hm-hero-image {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        overflow: hidden;
        z-index: 0;
    }

    .hm-page .hm-hero-image picture {
        display: block;
        width: 100%;
        height: 100%;
    }

    .hm-page .hm-hero-image img {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        max-width: none;
        max-height: none;
        object-fit: cover;
        object-position: center center;
        margin: 0;
        padding: 0;
        border: none;
    }

    /* Switch desktop image to mobile image */

    .hm-page .hm-hero-image .hm-desktop-img {
        display: none;
    }

    .hm-page .hm-hero-image .hm-mobile-img {
        display: block;
    }

    /* Center content vertically and horizontally */

    .hm-page .hm-hero-layout {
        position: relative;
        grid-area: 1 / 1;
        align-self: center;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        width: 100%;
        max-width: 100%;
        padding: 40px 20px 75px;
        margin: 0 auto;
        text-align: center;
        z-index: 1;
    }

    .hm-page .hm-hero-copy {
        width: 100%;
        max-width: 100%;
        margin: 0 auto;
        padding: 0;
        text-align: center;
        border-radius: 20px;
        background: rgba(0, 0, 0, 0.25);
        box-shadow: 0 0 40px 25px rgba(0, 0, 0, 0.25);
    }

    .hm-page .hm-hero h1 {
        font-size: clamp(30px, 8vw, 42px);
        line-height: 1.1;
        margin-bottom: 18px;
    }

    .hm-page .hm-hero-lead {
        width: 100%;
        max-width: 100%;
        margin: 0 auto 25px;
        font-size: 15px;
        line-height: 1.75;
        text-align: center;
    }

    .hm-page .hm-eyebrow {
        justify-content: center;
        gap: 9px;
        margin-bottom: 20px;
        font-size: 9px;
        letter-spacing: 2px;
    }

    .hm-page .hm-hero-actions {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 15px;
    }

    .hm-page .hm-hero-actions .hm-button {
        min-width: 210px;
        max-width: 100%;
    }

    .hm-page .hm-scroll-cue {
        bottom: 25px;
        font-size: 9px;
        letter-spacing: 1.5px;
    }

}


/* =========================================
   SMALL MOBILE SCREENS
========================================= */

@media (max-width: 580px) {

    .hm-intro-inner {
        gap: 13px;
        min-height: 75px;
        padding-top: 20px;
        padding-bottom: 20px;
    }

    .hm-intro-icon {
        display: none;
    }

    .hm-track-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .hm-track-body {
        padding: 22px;
    }

    .hm-catalog {
        padding: 65px 0;
    }

    .hm-section-heading {
        margin-bottom: 28px;
    }

    .hm-quote {
        padding: 75px 0;
    }

    .hm-quote blockquote {
        font-size: 35px;
    }

    .hm-stories {
        padding: 70px 0;
    }

    .hm-subscribe-panel {
        padding: 31px 21px;
    }

    .hm-email-row {
        flex-direction: column;
    }

    .hm-email-row button {
        width: 100%;
        min-height: 46px;
    }

}


/* =========================================
   REDUCED MOTION
========================================= */

@media (prefers-reduced-motion: reduce) {

    .hm-page *,
    .hm-page *::before,
    .hm-page *::after {
        animation: none !important;
        transition: none !important;
        scroll-behavior: auto !important;
    }

}
