/* ==========================================================
   BOXXHEAD GAMING
   HOMEPAGE EDITORIAL OVERHAUL
========================================================== */


/* ----------------------------------------------------------
   HOMEPAGE FOUNDATION
---------------------------------------------------------- */

body.bx-homepage {
    background:
        radial-gradient(
            circle at 50% -10%,
            rgba(190, 0, 0, .10),
            transparent 33%
        ),
        #080808;
}

body.bx-homepage main {
    overflow: hidden;
}

body.bx-homepage main > section {
    position: relative;
}

body.bx-homepage main h1,
body.bx-homepage main h2,
body.bx-homepage main h3,
body.bx-homepage main h4 {
    text-wrap: balance;
}

body.bx-homepage main img {
    max-width: 100%;
}


/* ----------------------------------------------------------
   TOP STORIES
---------------------------------------------------------- */

.bxhome-top {
    width: min(1240px, calc(100% - 36px));
    margin: 36px auto 70px;
}

.bxhome-top-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 18px;
    padding-bottom: 14px;
    border-bottom: 3px solid #e31616;
}

.bxhome-eyebrow {
    display: block;
    margin-bottom: 7px;
    color: #e31616;
    font-size: 10px;
    line-height: 1;
    font-weight: 950;
    letter-spacing: .21em;
}

.bxhome-top-heading h1 {
    margin: 0;
    color: #fff;
    font-size: clamp(28px, 4vw, 46px);
    line-height: .9;
    letter-spacing: -.045em;
    font-weight: 950;
}

.bxhome-all-news {
    flex: 0 0 auto;
    padding-bottom: 2px;
    color: rgba(255,255,255,.65);
    font-size: 10px;
    font-weight: 950;
    letter-spacing: .09em;
    text-decoration: none;
}

.bxhome-all-news:hover {
    color: #fff;
}


/* ----------------------------------------------------------
   LEAD STORY GRID
---------------------------------------------------------- */

.bxhome-lead-grid {
    display: grid;
    grid-template-columns:
        minmax(0, 1.75fr)
        minmax(330px, .85fr);
    gap: 18px;
}


/* ----------------------------------------------------------
   PRIMARY STORY
---------------------------------------------------------- */

.bxhome-lead {
    min-width: 0;
    overflow: hidden;
    border-radius: 14px;
    background: #111;
    border: 1px solid rgba(255,255,255,.08);
}

.bxhome-lead-media {
    position: relative;
    display: block;
    width: 100%;
    min-height: 540px;
    height: 100%;
    overflow: hidden;
    color: inherit;
    text-decoration: none;
}

.bxhome-lead-media > img {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition:
        transform .35s ease,
        filter .35s ease;
}

.bxhome-lead:hover img {
    transform: scale(1.025);
}

.bxhome-lead-shade {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(
            180deg,
            transparent 20%,
            rgba(0,0,0,.15) 42%,
            rgba(0,0,0,.92) 100%
        );
}

.bxhome-lead-copy {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
    padding:
        50px
        clamp(22px, 4vw, 42px)
        clamp(25px, 4vw, 38px);
}

.bxhome-story-category {
    display: inline-block;
    margin-bottom: 9px;
    color: #ff2929;
    font-size: 9px;
    line-height: 1;
    font-weight: 950;
    letter-spacing: .14em;
}

.bxhome-lead-copy h2 {
    max-width: 820px;
    margin: 0;
    color: #fff;
    font-size: clamp(31px, 4.6vw, 61px);
    line-height: .96;
    letter-spacing: -.055em;
    font-weight: 950;
}

.bxhome-lead-copy p {
    max-width: 720px;
    margin: 14px 0 0;
    color: rgba(255,255,255,.74);
    font-size: 14px;
    line-height: 1.55;
}

.bxhome-read {
    display: inline-block;
    margin-top: 18px;
    padding: 9px 12px;
    border-radius: 5px;
    background: #e31616;
    color: #fff;
    font-size: 9px;
    line-height: 1;
    font-weight: 950;
    letter-spacing: .09em;
}


/* ----------------------------------------------------------
   SECONDARY STORIES
---------------------------------------------------------- */

.bxhome-secondary {
    display: grid;
    grid-template-rows: repeat(3, 1fr);
    gap: 12px;
}

.bxhome-secondary-card {
    display: grid;
    grid-template-columns: 43% minmax(0,1fr);
    min-height: 0;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.085);
    border-radius: 12px;
    background: rgba(255,255,255,.035);
    transition:
        transform .18s ease,
        border-color .18s ease,
        background .18s ease;
}

.bxhome-secondary-card:hover {
    transform: translateY(-2px);
    border-color: rgba(227,22,22,.48);
    background: rgba(255,255,255,.05);
}

.bxhome-secondary-image {
    display: block;
    min-height: 150px;
    overflow: hidden;
    background: #111;
}

.bxhome-secondary-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .25s ease;
}

.bxhome-secondary-card:hover
.bxhome-secondary-image img {
    transform: scale(1.035);
}

.bxhome-secondary-copy {
    align-self: center;
    min-width: 0;
    padding: 16px 17px;
}

.bxhome-secondary-copy h3 {
    margin: 0;
    font-size: clamp(16px, 1.45vw, 21px);
    line-height: 1.12;
    letter-spacing: -.025em;
    font-weight: 900;
}

.bxhome-secondary-copy h3 a {
    color: #fff;
    text-decoration: none;
}

.bxhome-secondary-copy p {
    margin: 8px 0 0;
    color: rgba(255,255,255,.54);
    font-size: 11px;
    line-height: 1.4;
}


/* ----------------------------------------------------------
   PLACEHOLDER
---------------------------------------------------------- */

.bxhome-image-placeholder {
    display: flex;
    width: 100%;
    height: 100%;
    min-height: 150px;
    align-items: center;
    justify-content: center;
    background:
        radial-gradient(
            circle,
            rgba(227,22,22,.2),
            #0d0d0d 68%
        );
    color: rgba(255,255,255,.14);
    font-size: 40px;
    font-weight: 950;
}


/* ----------------------------------------------------------
   EXISTING HOMEPAGE SECTIONS
   Publication-style rhythm without rebuilding the data.
---------------------------------------------------------- */

body.bx-homepage main > section:not(.bxhome-top) {
    width: min(1180px, calc(100% - 36px));
    margin-left: auto;
    margin-right: auto;
}

body.bx-homepage main section h2 {
    letter-spacing: -.035em;
}

body.bx-homepage main section > h2,
body.bx-homepage main section > .section-title {
    position: relative;
}

body.bx-homepage main section > h2::after {
    content: "";
    display: block;
    width: 42px;
    height: 3px;
    margin-top: 9px;
    background: #e31616;
}


/* ----------------------------------------------------------
   EXISTING CARDS / LINKS
---------------------------------------------------------- */

body.bx-homepage main article {
    transition:
        transform .18s ease,
        border-color .18s ease;
}

body.bx-homepage main a {
    text-underline-offset: 3px;
}

body.bx-homepage main article img {
    transition: transform .24s ease;
}

body.bx-homepage main article:hover img {
    transform: scale(1.02);
}


/* Don't double-scale custom editorial systems */

body.bx-homepage
.bxhome-secondary-card:hover img,

body.bx-homepage
.bxhome-lead:hover img,

body.bx-homepage
.bxtrend-card:hover img {
    transform: scale(1.025);
}


/* ----------------------------------------------------------
   TRENDING SECTION INTEGRATION
---------------------------------------------------------- */

body.bx-homepage .bxtrend {
    margin-top: 76px;
    margin-bottom: 60px;
}

body.bx-homepage .bxtrend-head h2 {
    font-size: clamp(30px, 4vw, 48px);
}


/* ----------------------------------------------------------
   CONTENT WIDTH / BREATHING ROOM
---------------------------------------------------------- */

body.bx-homepage main {
    padding-bottom: 65px;
}

body.bx-homepage main > section + section {
    margin-top: 58px;
}


/* ----------------------------------------------------------
   TABLET
---------------------------------------------------------- */

@media (max-width: 1000px) {

    .bxhome-lead-grid {
        grid-template-columns: 1fr;
    }

    .bxhome-lead-media {
        min-height: 500px;
    }

    .bxhome-secondary {
        grid-template-columns:
            repeat(3, minmax(0,1fr));
        grid-template-rows: none;
    }

    .bxhome-secondary-card {
        display: block;
    }

    .bxhome-secondary-image {
        aspect-ratio: 16 / 9;
        min-height: 0;
    }

}


/* ----------------------------------------------------------
   MOBILE
---------------------------------------------------------- */

@media (max-width: 700px) {

    .bxhome-top {
        width: min(100% - 22px, 1240px);
        margin-top: 20px;
        margin-bottom: 45px;
    }

    .bxhome-top-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 10px;
    }

    .bxhome-lead-media {
        min-height: 440px;
    }

    .bxhome-lead-copy {
        padding:
            38px
            19px
            22px;
    }

    .bxhome-lead-copy h2 {
        font-size: clamp(29px, 10vw, 43px);
    }

    .bxhome-lead-copy p {
        font-size: 13px;
    }

    .bxhome-secondary {
        grid-template-columns: 1fr;
    }

    .bxhome-secondary-card {
        display: grid;
        grid-template-columns:
            132px
            minmax(0,1fr);
    }

    .bxhome-secondary-image {
        min-height: 125px;
        aspect-ratio: auto;
    }

    .bxhome-secondary-copy {
        padding: 13px;
    }

    .bxhome-secondary-copy p {
        display: none;
    }

    body.bx-homepage
    main > section:not(.bxhome-top) {
        width: min(100% - 22px, 1180px);
    }

    body.bx-homepage main > section + section {
        margin-top: 43px;
    }

}


/* ----------------------------------------------------------
   SMALL PHONES
---------------------------------------------------------- */

@media (max-width: 430px) {

    .bxhome-lead-media {
        min-height: 390px;
    }

    .bxhome-secondary-card {
        grid-template-columns:
            112px
            minmax(0,1fr);
    }

    .bxhome-secondary-image {
        min-height: 112px;
    }

}


/* ----------------------------------------------------------
   ACCESSIBILITY
---------------------------------------------------------- */

.bxhome-top a:focus-visible {
    outline: 3px solid #fff;
    outline-offset: 3px;
}

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

    .bxhome-lead img,
    .bxhome-secondary-card,
    .bxhome-secondary-image img,
    body.bx-homepage main article,
    body.bx-homepage main article img {
        transition: none;
    }

}


/* ==========================================================
   BOXXHEAD — RESTORED TOP STORIES LEAD
   ========================================================== */

.bx-restored-lead-story {
    width: 100%;
    margin: 28px 0 26px;
}

.bx-restored-lead-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.bx-restored-lead-media {
    position: relative;
    width: 100%;
    min-height: 420px;
    border-radius: 24px;
    overflow: hidden;
    background: #111;
}

.bx-restored-lead-media > img {
    width: 100%;
    height: 100%;
    min-height: 420px;
    display: block;
    object-fit: cover;
}

.bx-restored-lead-overlay {
    position: absolute;
    inset: auto 0 0;
    padding: 80px 34px 32px;
    background:
        linear-gradient(
            to bottom,
            transparent,
            rgba(0,0,0,.9)
        );
}

.bx-restored-lead-category {
    margin-bottom: 10px;
    font-size: .82rem;
    font-weight: 900;
    letter-spacing: .14em;
    color: #ff2929;
}

.bx-restored-lead-overlay h2 {
    max-width: 760px;
    margin: 0;
    color: #fff;
    font-size: clamp(2rem, 5vw, 4rem);
    line-height: .98;
    font-weight: 900;
}

.bx-restored-lead-overlay p {
    max-width: 720px;
    margin: 15px 0 0;
    color: rgba(255,255,255,.82);
    line-height: 1.55;
}

.bx-restored-lead-placeholder {
    min-height: 420px;
    display: grid;
    place-items: center;
    font-size: 7rem;
    font-weight: 900;
    color: rgba(255,255,255,.12);
}


/* MOBILE */
@media (max-width: 768px) {

    .bx-restored-lead-story {
        margin: 24px 0 22px;
    }

    .bx-restored-lead-media {
        min-height: 0;
        aspect-ratio: 16 / 10;
        border-radius: 18px;
    }

    .bx-restored-lead-media > img {
        width: 100%;
        height: 100%;
        min-height: 0;
        object-fit: cover;
    }

    .bx-restored-lead-overlay {
        padding: 70px 20px 20px;
    }

    .bx-restored-lead-overlay h2 {
        font-size: 2rem;
        line-height: 1;
    }

    .bx-restored-lead-overlay p {
        display: none;
    }

}


/* =========================================================
   BOXXHEAD TOP STORIES — LARGE FEATURE CARD
   ========================================================= */

.bx-top-feature {
    width: 100%;
    margin: 28px 0 30px;
}

.bx-top-feature-link {
    display: block;
    text-decoration: none;
    color: #fff;
}

.bx-top-feature-image {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 24px;
    background: #111;
}

.bx-top-feature-image > img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center;
}

.bx-top-feature-shade {
    position: absolute;
    inset: 0;

    background:
        linear-gradient(
            to bottom,
            rgba(0,0,0,0) 30%,
            rgba(0,0,0,.90) 100%
        );
}

.bx-top-feature-copy {
    position: absolute;
    left: 34px;
    right: 34px;
    bottom: 30px;
    z-index: 2;
}

.bx-top-feature-category {
    margin-bottom: 10px;

    color: #ff2b2b;

    font-size: .84rem;
    font-weight: 900;
    letter-spacing: .14em;
}

.bx-top-feature-copy h2 {
    margin: 0;

    max-width: 850px;

    color: #fff;

    font-size: clamp(2rem, 5vw, 4.3rem);
    line-height: .98;
    font-weight: 900;
}

.bx-top-feature-placeholder {
    height: 100%;

    display: grid;
    place-items: center;

    font-size: 7rem;
    font-weight: 900;

    color: rgba(255,255,255,.12);
}


/* PHONE */
@media (max-width: 768px) {

    .bx-top-feature {
        margin: 24px 0 26px;
    }

    .bx-top-feature-image {
        aspect-ratio: 16 / 10;
        border-radius: 18px;
    }

    .bx-top-feature-copy {
        left: 20px;
        right: 20px;
        bottom: 20px;
    }

    .bx-top-feature-copy h2 {
        font-size: 2rem;
        line-height: 1;
    }

    .bx-top-feature-category {
        font-size: .76rem;
    }
}

