/*
 * Colors of Rock 'n' Roll campaign page (/colorsofrocknroll).
 * Page-namespaced BEM (.crnr-*). Brand accents via var(--brand-*).
 * Product-card + grid styles inherited from catalog.css (loaded first).
 */

.crnr-page {
    color: #212529;
}

/* -- Background-video modules (hero + Art of Sound) ---------------------- */

/*
 * The section paints its poster image as a CSS background (the always-present
 * fallback), the decorative <video> layer covers it while playing, a scrim
 * sits above the video for text contrast, and the copy sits above the scrim.
 * Under prefers-reduced-motion the video is removed and the poster shows.
 */
.crnr-hero,
.crnr-film {
    position: relative;
    overflow: hidden;
    background-color: #101010;
    background-image:
        linear-gradient(to right, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.35) 60%, rgba(0, 0, 0, 0.55) 100%),
        var(--crnr-hero-image, none);
    background-size: cover;
    background-position: center;
}

.crnr-video {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

.crnr-video__el {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.crnr-video__el--mobile {
    display: none;
}

.crnr-hero__scrim {
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        linear-gradient(to right, rgba(0, 0, 0, 0.75) 0%, rgba(0, 0, 0, 0.3) 60%, rgba(0, 0, 0, 0.55) 100%);
    pointer-events: none;
}

/* Copy layer sits above the video + scrim. */
.crnr-hero > .container,
.crnr-film > .container {
    position: relative;
    z-index: 2;
}

/*
 * ADA: honor a reduced-motion preference by removing the moving video
 * entirely; the poster CSS background painted on the section takes over.
 */
@media (prefers-reduced-motion: reduce) {
    .crnr-video {
        display: none;
    }
}

/* -- Hero ---------------------------------------------------------------- */

.crnr-hero {
    display: flex;
    align-items: center;
    min-height: 65vh;
    padding: 4rem 0;
    color: #fff;
}

/* Copy sits on the same 60% black panel the home hero slides use
   (home.css .hero-slide-content), so the white type reads over any frame of
   the video rather than depending on the scrim alone (Jesse, 2026-09-21). */
.crnr-hero__inner,
.crnr-film__inner {
    padding: 2rem 3rem;
    background: rgba(0, 0, 0, 0.6);
}

.crnr-hero__inner {
    max-width: 620px;
}

.crnr-hero__title {
    margin: 0 0 1rem;
    font-size: 3.25rem;
    font-weight: 900;
    line-height: 1.02;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.crnr-hero__subhead {
    margin: 0 0 1.75rem;
    font-size: 1.25rem;
    line-height: 1.4;
    max-width: 32em;
}

/* -- Artist feature ------------------------------------------------------ */

.crnr-legends {
    padding: 4rem 0;
    background-color: #17130f;
    color: #fff;
    text-align: center;
}

.crnr-legends__art {
    width: 100%;
    max-width: 420px;
    margin: 0 auto 1.5rem;
    aspect-ratio: 3 / 2;
    background-image: var(--crnr-slash-image, none);
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
}

.crnr-legends__caption {
    max-width: 42rem;
    margin: 0 auto;
    font-size: 1.125rem;
    line-height: 1.6;
    color: #eaeaea;
}

/* -- Shop Slinky --------------------------------------------------------- */

.crnr-shop {
    padding: 4rem 0;
}

.crnr-shop__intro {
    max-width: 42rem;
    margin: 0 auto 1.5rem;
    font-size: 1.0625rem;
    line-height: 1.6;
    color: #333;
    text-align: center;
}

.crnr-shop__links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
    margin: 0 0 2.5rem;
}

.crnr-shop__grid {
    margin-top: 1rem;
}

/* -- The Art of Sound ---------------------------------------------------- */

.crnr-film {
    display: flex;
    align-items: center;
    min-height: 55vh;
    padding: 4rem 0 5rem;
    color: #fff;
}

.crnr-film__inner {
    max-width: 46rem;
}

.crnr-film__body {
    margin: 0 0 1.75rem;
    font-size: 1.0625rem;
    line-height: 1.7;
    color: #f1f1f1;
}

.crnr-film .section-title {
    color: #fff;
}

/* -- Responsive ---------------------------------------------------------- */

@media (max-width: 575.98px) {
    .crnr-hero__inner,
    .crnr-film__inner {
        padding: 1.5rem 1.25rem;
    }
}

@media (max-width: 991.98px) {
    .crnr-hero__title {
        font-size: 2.5rem;
    }
}

@media (max-width: 767.98px) {
    /* Swap to the mobile video + mobile poster background. */
    .crnr-video__el--desktop {
        display: none;
    }

    .crnr-video__el--mobile {
        display: block;
    }

    .crnr-hero,
    .crnr-film {
        background-image:
            linear-gradient(to right, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.35) 60%, rgba(0, 0, 0, 0.55) 100%),
            var(--crnr-hero-image-mobile, var(--crnr-hero-image, none));
    }

    .crnr-hero {
        min-height: 55vh;
        padding: 3rem 0;
    }

    .crnr-hero__title {
        font-size: 1.875rem;
    }

    .crnr-hero__subhead {
        font-size: 1.0625rem;
    }

    .crnr-legends,
    .crnr-shop {
        padding: 2.5rem 0;
    }

    .crnr-film {
        min-height: auto;
        padding: 2.5rem 0;
    }
}
