/**
 * RAK & ROLL Episodes Hub
 */

.hub-page {
    min-height: 100vh;
    color: var(--rr-charcoal);
    background: #111;
}

.hub-shell {
    width:
        min(
            calc(
                100%
                - (2 * var(--rr-gutter))
            ),
            var(--rr-content)
        );

    margin-inline: auto;
}


/* HERO */

.hub-hero {
    min-height:
        clamp(480px,65vh,680px);

    display: flex;
    align-items: flex-end;

    color: var(--rr-white);

    background:
        radial-gradient(
            circle at 80% 25%,
            rgba(184,90,52,.24),
            transparent 28rem
        ),
        linear-gradient(
            135deg,
            #111,
            var(--rr-charcoal)
        );
}

.hub-hero__inner {
    padding:
        9rem
        0
        clamp(8rem,12vw,11rem);
}

.hub-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;

    margin-bottom:
        clamp(2rem,5vw,4rem);

    color:
        rgba(255,255,255,.58);

    font-size: .82rem;
}

.hub-breadcrumb a {
    color:
        rgba(255,255,255,.82);
}

.hub-hero .eyebrow {
    color: var(--rr-sand);
}

.hub-hero h1 {
    max-width: 880px;

    margin: 0;

    font-family:
        var(--rr-display);

    font-size:
        clamp(3.2rem,6.5vw,6.6rem);

    font-weight: 400;
    line-height: .94;
    letter-spacing: -.035em;

    text-wrap: balance;
}

.hub-hero__intro {
    max-width: 650px;

    margin: 1.5rem 0 0;

    color:
        rgba(255,255,255,.72);

    font-size:
        clamp(1.05rem,1.6vw,1.28rem);
}


/* SHEET */

.hub-sheet {
    position: relative;
    z-index: 2;

    margin-top: -5rem;

    padding:
        clamp(1.25rem,2.5vw,2.25rem)
        clamp(1.25rem,2.5vw,2.25rem)
        clamp(4rem,8vw,7rem);

    background:
        linear-gradient(
            180deg,
            var(--rr-off-white),
            #eee7df
        );

    border-radius:
        22px 22px 0 0;

    box-shadow:
        0 30px 90px
        rgba(0,0,0,.28);
}

.hub-label {
    margin: .2rem 0 1rem;

    color: var(--rr-copper);

    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
}


/* FEATURE */

.hub-feature-section {
    margin-bottom:
        clamp(4rem,8vw,7rem);
}

.hub-feature {
    overflow: hidden;

    display: grid;
    grid-template-columns:
        minmax(0,1.25fr)
        minmax(320px,.85fr);

    color: var(--rr-white);

    background:
        linear-gradient(
            135deg,
            #252525,
            var(--rr-charcoal)
        );

    border:
        1px solid
        rgba(255,255,255,.08);

    border-radius: 16px;

    box-shadow:
        0 22px 55px
        rgba(26,26,26,.2);
}

.hub-feature__media {
    min-height: 420px;

    overflow: hidden;

    background: #000;
}

.hub-feature__media img {
    width: 100%;
    height: 100%;

    object-fit: cover;

    transition:
        transform .3s ease;
}

.hub-feature:hover
.hub-feature__media img {
    transform: scale(1.02);
}

.hub-feature__content {
    display: flex;
    flex-direction: column;
    justify-content: center;

    padding:
        clamp(2rem,4vw,4rem);
}

.hub-meta {
    display: flex;
    flex-wrap: wrap;
    gap: .4rem 1rem;

    margin-bottom: 1.2rem;

    color:
        rgba(255,255,255,.52);

    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.hub-feature h2 {
    margin: 0;

    font-family:
        var(--rr-display);

    font-size:
        clamp(2rem,3.3vw,3.6rem);

    font-weight: 400;
    line-height: .99;
    letter-spacing: -.025em;
}

.hub-feature h2 a {
    color: var(--rr-white);
    text-decoration: none;
}

.hub-feature h2 a:hover {
    color: var(--rr-sand);
}

.hub-feature__dek {
    margin: 1.3rem 0 0;

    color:
        rgba(255,255,255,.72);
}

.hub-detail {
    margin: 1rem 0 0;

    color:
        rgba(255,255,255,.63);

    font-size: .84rem;
}

.hub-detail strong {
    color: var(--rr-sand);
}

.hub-button {
    align-self: flex-start;

    display: inline-flex;
    align-items: center;
    gap: .6rem;

    margin-top: 1.7rem;
    padding: .75rem 1rem;

    color: var(--rr-white);
    background: var(--rr-copper);

    border-radius:
        var(--rr-button-radius);

    font-weight: 750;
    text-decoration: none;
}

.hub-button:hover {
    background:
        var(--rr-copper-hover);
}


/* ARCHIVE */

.hub-heading-row {
    display: grid;

    grid-template-columns:
        minmax(0,1fr)
        minmax(250px,.65fr);

    gap: 2rem;

    align-items: end;

    margin-bottom:
        clamp(2rem,4vw,3.5rem);
}

.hub-heading-row h2 {
    margin: 0;

    font-family:
        var(--rr-display);

    font-size:
        clamp(2.3rem,4vw,4rem);

    font-weight: 400;
    line-height: 1;
}

.hub-heading-row > p {
    margin: 0;

    color: var(--rr-slate);
}

.hub-grid {
    display: grid;

    grid-template-columns:
        repeat(
            3,
            minmax(0,1fr)
        );

    gap:
        clamp(1rem,2vw,1.5rem);
}


/* CARD */

.hub-card {
    overflow: hidden;

    display: flex;
    flex-direction: column;

    background: var(--rr-white);

    border:
        1px solid
        rgba(26,26,26,.1);

    border-radius: 13px;

    box-shadow:
        0 10px 28px
        rgba(26,26,26,.07);

    transition:
        transform .2s ease,
        box-shadow .2s ease;
}

.hub-card:hover {
    transform:
        translateY(-5px);

    box-shadow:
        0 20px 44px
        rgba(26,26,26,.13);
}

.hub-card__media,
.hub-card__placeholder {
    aspect-ratio: 16 / 9;

    overflow: hidden;

    background:
        var(--rr-charcoal);
}

.hub-card__media img {
    width: 100%;
    height: 100%;

    object-fit: cover;

    transition:
        transform .25s ease;
}

.hub-card:hover
.hub-card__media img {
    transform: scale(1.025);
}

.hub-card__placeholder {
    display: grid;
    place-items: center;

    color: var(--rr-white);

    font-family:
        var(--rr-display);

    font-size: 1.35rem;
}

.hub-card__placeholder span {
    color: var(--rr-copper);
}

.hub-card__content {
    display: flex;
    flex-direction: column;
    flex: 1;

    padding: 1.2rem;
}

.hub-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: .3rem .7rem;

    margin-bottom: .8rem;

    color: var(--rr-taupe);

    font-size: .68rem;
    font-weight: 750;
    letter-spacing: .05em;
    text-transform: uppercase;
}

.hub-card h2 {
    margin: 0;

    font-family:
        var(--rr-display);

    font-size:
        clamp(1.4rem,2vw,1.8rem);

    font-weight: 400;
    line-height: 1.06;
}

.hub-card h2 a {
    text-decoration: none;
}

.hub-card h2 a:hover {
    color: var(--rr-copper);
}

.hub-card__dek {
    margin: .9rem 0 0;

    color: var(--rr-slate);

    font-size: .88rem;
}

.hub-card__guest {
    margin: 1rem 0 0;

    font-size: .82rem;
    font-weight: 700;
}

.hub-card__context {
    margin: .3rem 0 0;

    color: var(--rr-taupe);

    font-size: .76rem;
}

.hub-card__link {
    align-self: flex-start;

    margin-top: auto;
    padding-top: 1.15rem;

    color: var(--rr-copper);

    font-size: .82rem;
    font-weight: 800;
    text-decoration: none;
}

.hub-card__link:hover {
    color:
        var(--rr-copper-hover);
}


/* EMPTY */

.hub-empty {
    padding:
        clamp(3rem,7vw,6rem);

    text-align: center;

    background: var(--rr-white);

    border-radius: 14px;
}

.hub-empty h2 {
    margin: 0;

    font-family:
        var(--rr-display);

    font-size:
        clamp(2rem,4vw,3.5rem);

    font-weight: 400;
}

.hub-empty--small {
    padding: 2rem;
}


/* ERROR */

.hub-error {
    min-height: 100vh;

    display: grid;
    place-items: center;

    padding: var(--rr-gutter);

    background:
        var(--rr-off-white);
}

.hub-error > div {
    width:
        min(
            100%,
            720px
        );
}


/* TABLET */

@media (max-width: 1020px) {

    .hub-grid {
        grid-template-columns:
            repeat(
                2,
                minmax(0,1fr)
            );
    }
}


/* MOBILE */

@media (max-width: 760px) {

    .hub-hero {
        min-height: 560px;
    }

    .hub-hero__inner {
        padding:
            7rem
            0
            8rem;
    }

    .hub-hero h1 {
        font-size:
            clamp(
                2.8rem,
                12vw,
                4.6rem
            );
    }

    .hub-sheet {
        margin-top: -3.5rem;

        padding-left: 1rem;
        padding-right: 1rem;

        border-radius:
            18px 18px 0 0;
    }

    .hub-feature {
        grid-template-columns: 1fr;
    }

    .hub-feature__media {
        min-height: 0;

        aspect-ratio: 16 / 9;
    }

    .hub-heading-row {
        grid-template-columns: 1fr;
        align-items: start;
    }

    .hub-grid {
        grid-template-columns: 1fr;
    }
}


/* REDUCED MOTION */

@media
    (prefers-reduced-motion: reduce) {

    .hub-card,
    .hub-card__media img,
    .hub-feature__media img {
        transition: none;
    }

    .hub-card:hover,
    .hub-card:hover
    .hub-card__media img,
    .hub-feature:hover
    .hub-feature__media img {
        transform: none;
    }
}



/* BEGIN RR HUB VISUAL V2 */


/* ==========================================================
   PAGE FRAME
   ========================================================== */

.hub-page {
    background:
        linear-gradient(
            180deg,
            #111 0%,
            var(--rr-charcoal) 42%,
            #111 100%
        );
}


/* ==========================================================
   CINEMATIC HUB HERO
   ========================================================== */

.hub-hero {
    min-height:
        clamp(620px,78svh,820px);

    position: relative;
    isolation: isolate;

    align-items: flex-end;

    background:
        linear-gradient(
            90deg,
            rgba(0,0,0,.87) 0%,
            rgba(0,0,0,.72) 38%,
            rgba(0,0,0,.34) 65%,
            rgba(0,0,0,.12) 100%
        ),
        linear-gradient(
            180deg,
            rgba(0,0,0,.08) 0%,
            rgba(0,0,0,.18) 60%,
            rgba(0,0,0,.76) 100%
        ),
        url(
            "/assets/images/brand/rak-roll-desert-microphone.webp"
        )
        68% center / cover no-repeat;
}


.hub-hero::after {
    content: "";

    position: absolute;
    z-index: -1;
    inset: auto 0 0;

    height: 32%;

    background:
        linear-gradient(
            180deg,
            transparent,
            #111
        );
}


.hub-hero__inner {
    padding:
        9rem
        0
        clamp(9rem,14vw,12rem);
}


.hub-breadcrumb {
    margin-bottom:
        clamp(2.5rem,6vw,5rem);
}


.hub-hero h1 {
    max-width: 880px;

    font-size:
        clamp(3.5rem,7vw,7rem);

    line-height: .9;
}


.hub-hero__intro {
    max-width: 610px;

    font-size:
        clamp(1.08rem,1.7vw,1.35rem);

    color:
        rgba(255,255,255,.78);
}


/* ==========================================================
   REMOVE "SHEET INSIDE PAGE" FEELING
   ========================================================== */

.hub-sheet {
    position: relative;

    margin-top: -5.5rem;

    padding:
        0
        0
        clamp(5rem,9vw,8rem);

    background: transparent;

    border-radius: 0;

    box-shadow: none;
}


.hub-label {
    color: var(--rr-sand);

    margin-bottom: 1rem;
}


/* ==========================================================
   LATEST EPISODE
   IMAGE MOVED TO RIGHT
   ========================================================== */

.hub-feature-section {
    margin-bottom:
        clamp(5rem,9vw,8rem);
}


.hub-feature {
    width: 100%;

    min-height:
        clamp(470px,48vw,600px);

    grid-template-columns:
        minmax(330px,.82fr)
        minmax(0,1.28fr);

    color: var(--rr-white);

    background:
        linear-gradient(
            135deg,
            #232323,
            #151515
        );

    border:
        1px solid
        rgba(255,255,255,.09);

    border-radius: 18px;

    box-shadow:
        0 30px 75px
        rgba(0,0,0,.33);
}


/*
 * DOM contains media first, content second.
 * Explicit grid placement lets us reverse the visual layout
 * without touching the PHP.
 */

.hub-feature__content {
    grid-column: 1;
    grid-row: 1;

    padding:
        clamp(2.2rem,4vw,4.5rem);
}


.hub-feature__media {
    grid-column: 2;
    grid-row: 1;

    min-height: 100%;

    position: relative;
}


.hub-feature__media::after {
    content: "";

    position: absolute;
    inset: 0;

    background:
        linear-gradient(
            90deg,
            rgba(21,21,21,.28),
            transparent 28%
        );

    pointer-events: none;
}


.hub-feature__media img {
    width: 100%;
    height: 100%;

    object-fit: cover;
}


.hub-feature h2 {
    max-width: 520px;

    font-size:
        clamp(2.5rem,4vw,4.5rem);

    line-height: .94;
}


.hub-feature__dek {
    max-width: 500px;

    font-size: .98rem;
}


.hub-button {
    margin-top: 2rem;

    min-height: 48px;

    padding:
        .8rem
        1.1rem;
}


/* ==========================================================
   ARCHIVE HEADING
   ========================================================== */

.hub-archive {
    position: relative;
}


.hub-heading-row {
    padding:
        0
        0
        clamp(2.2rem,4vw,3.5rem);

    border-bottom:
        1px solid
        rgba(255,255,255,.12);
}


.hub-heading-row h2 {
    color: var(--rr-white);

    font-size:
        clamp(2.7rem,5vw,5rem);
}


.hub-heading-row > p {
    color:
        rgba(255,255,255,.58);
}


/* ==========================================================
   FULL-WIDTH EPISODE SECTIONS
   ========================================================== */

.hub-grid {
    display: grid;

    grid-template-columns: 1fr;

    gap:
        clamp(1.4rem,2vw,2rem);

    padding-top:
        clamp(2rem,4vw,3rem);

    counter-reset:
        rr-hub-episode;
}


.hub-card {
    counter-increment:
        rr-hub-episode;

    position: relative;

    overflow: hidden;

    display: grid;

    grid-template-columns:
        minmax(0,.92fr)
        minmax(0,1.08fr);

    min-height: 340px;

    width: 100%;

    background: var(--rr-off-white);

    border: 0;

    border-radius: 16px;

    box-shadow:
        0 18px 42px
        rgba(0,0,0,.19);

    transform: none;

    isolation: isolate;
}


/*
 * Large editorial episode number.
 */

.hub-card::before {
    content:
        counter(
            rr-hub-episode,
            decimal-leading-zero
        );

    position: absolute;
    z-index: 0;

    right: 1.5rem;
    bottom: -1.7rem;

    color:
        rgba(184,90,52,.08);

    font-family:
        var(--rr-display);

    font-size:
        clamp(7rem,13vw,13rem);

    font-weight: 700;
    line-height: 1;

    pointer-events: none;
}


.hub-card:hover {
    transform:
        translateY(-4px);

    box-shadow:
        0 28px 60px
        rgba(0,0,0,.26);
}


/* ==========================================================
   ARCHIVE MEDIA
   ========================================================== */

.hub-card__media,
.hub-card__placeholder {
    grid-column: 1;
    grid-row: 1;

    min-height: 100%;

    aspect-ratio: auto;

    background:
        var(--rr-charcoal);
}


.hub-card__media img {
    width: 100%;
    height: 100%;

    object-fit: cover;
}


.hub-card__content {
    position: relative;
    z-index: 1;

    grid-column: 2;
    grid-row: 1;

    justify-content: center;

    padding:
        clamp(2rem,4vw,4rem);
}


/*
 * Alternate image/text directions.
 */

.hub-card:nth-child(even)
.hub-card__media,

.hub-card:nth-child(even)
.hub-card__placeholder {
    grid-column: 2;
}


.hub-card:nth-child(even)
.hub-card__content {
    grid-column: 1;
}


/*
 * Alternating editorial surfaces.
 */

.hub-card:nth-child(even) {
    background: var(--rr-sand);
}


.hub-card:nth-child(3n) {
    color: var(--rr-white);

    background:
        linear-gradient(
            135deg,
            #292929,
            var(--rr-charcoal)
        );
}


.hub-card:nth-child(3n)
.hub-card__dek,

.hub-card:nth-child(3n)
.hub-card__context {
    color:
        rgba(255,255,255,.65);
}


.hub-card:nth-child(3n)
.hub-card__guest {
    color: var(--rr-sand);
}


.hub-card:nth-child(3n)
h2 a {
    color: var(--rr-white);
}


.hub-card:nth-child(3n)
h2 a:hover {
    color: var(--rr-sand);
}


.hub-card:nth-child(3n)
.hub-card__meta {
    color:
        rgba(255,255,255,.48);
}


.hub-card h2 {
    max-width: 620px;

    font-size:
        clamp(2rem,3.3vw,3.5rem);

    line-height: .98;
}


.hub-card__dek {
    max-width: 610px;

    margin-top: 1.15rem;

    font-size: .94rem;
}


.hub-card__guest {
    margin-top: 1.35rem;
}


.hub-card__link {
    margin-top: 1.6rem;

    padding-top: 0;

    font-size: .85rem;
}


/* ==========================================================
   EMPTY STATE
   ========================================================== */

.hub-empty {
    color: var(--rr-charcoal);

    background:
        var(--rr-off-white);

    box-shadow:
        0 20px 50px
        rgba(0,0,0,.18);
}


/* ==========================================================
   ANIMATION
   ========================================================== */

@media
    (hover:hover)
    and
    (prefers-reduced-motion:no-preference) {

    .hub-feature,
    .hub-card {
        transition:
            transform .22s ease,
            box-shadow .22s ease;
    }


    .hub-feature:hover {
        transform:
            translateY(-4px);

        box-shadow:
            0 38px 85px
            rgba(0,0,0,.4);
    }


    .hub-feature__media img,
    .hub-card__media img {
        transition:
            transform .35s ease;
    }


    .hub-feature:hover
    .hub-feature__media img,

    .hub-card:hover
    .hub-card__media img {
        transform:
            scale(1.025);
    }
}


/* ==========================================================
   TABLET
   ========================================================== */

@media (max-width: 980px) {

    .hub-feature {
        grid-template-columns:
            minmax(300px,.9fr)
            minmax(0,1.1fr);
    }


    .hub-card {
        grid-template-columns:
            minmax(0,.9fr)
            minmax(0,1.1fr);
    }
}


/* ==========================================================
   MOBILE
   ========================================================== */

@media (max-width: 760px) {

    .hub-hero {
        min-height: 650px;

        background:
            linear-gradient(
                180deg,
                rgba(0,0,0,.32) 0%,
                rgba(0,0,0,.48) 40%,
                rgba(0,0,0,.9) 100%
            ),
            url(
                "/assets/images/brand/rak-roll-desert-microphone.webp"
            )
            68% center / cover no-repeat;
    }


    .hub-hero__inner {
        padding:
            7rem
            0
            8rem;
    }


    .hub-sheet {
        margin-top: -3rem;
    }


    .hub-feature {
        display: flex;
        flex-direction: column;

        min-height: 0;
    }


    /*
     * Media first on mobile.
     */

    .hub-feature__media {
        order: 1;

        min-height: 0;

        aspect-ratio: 16 / 9;
    }


    .hub-feature__content {
        order: 2;

        padding: 1.5rem;
    }


    .hub-feature__media::after {
        display: none;
    }


    .hub-feature h2 {
        font-size:
            clamp(2rem,9vw,3rem);
    }


    .hub-heading-row h2 {
        font-size:
            clamp(2.4rem,10vw,3.5rem);
    }


    .hub-card,
    .hub-card:nth-child(even) {
        display: flex;
        flex-direction: column;

        min-height: 0;
    }


    .hub-card__media,
    .hub-card__placeholder,

    .hub-card:nth-child(even)
    .hub-card__media,

    .hub-card:nth-child(even)
    .hub-card__placeholder {
        order: 1;

        min-height: 0;

        aspect-ratio: 16 / 9;
    }


    .hub-card__content,

    .hub-card:nth-child(even)
    .hub-card__content {
        order: 2;

        padding: 1.5rem;
    }


    .hub-card h2 {
        font-size:
            clamp(1.8rem,8vw,2.6rem);
    }


    .hub-card::before {
        right: .75rem;
        bottom: -.8rem;

        font-size: 7rem;
    }
}


/* ==========================================================
   SMALL MOBILE
   ========================================================== */

@media (max-width: 520px) {

    .hub-hero h1 {
        font-size:
            clamp(3rem,14vw,4.3rem);
    }


    .hub-feature,
    .hub-card {
        border-radius: 12px;
    }
}


/* ==========================================================
   REDUCED MOTION
   ========================================================== */

@media (prefers-reduced-motion:reduce) {

    .hub-feature,
    .hub-card,
    .hub-feature__media img,
    .hub-card__media img {
        transition: none;
    }


    .hub-feature:hover,
    .hub-card:hover,
    .hub-feature:hover
    .hub-feature__media img,
    .hub-card:hover
    .hub-card__media img {
        transform: none;
    }
}


/* END RR HUB VISUAL V2 */
