/* Utilities */
/* ========= */

:root {
    --font-headline: Aeonik, serif;
    --font-body: Work Sans, sans-serif;
    --yellow-500: #F3CE47;
    --gray-100: #f6f5ef;
    --gray-900: #1f1d1d;
}

.font-headline {
    font-family: Aeonik, serif;
    font-weight: 700;
}

.font-body {
    font-family: var(--font-body);
}

.font-bold {
    font-weight: 700 !important;
}

.px-4 {
    padding-left: 1rem;
    padding-right: 1rem;
}

.relative {
    position: relative;
}

.z-10 {
    z-index: 10;
}

.z-15 {
    z-index: 15;
}

.z-20 {
    z-index: 20;
}

.w-full {
    width: 100%;
}

.grid {
    display: grid;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

.main-container {
    max-width: 1110px;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
}

.sub-container {
    max-width: 840px;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
}

.background-image {
    position: absolute;
    background-repeat: no-repeat;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
}

.p25-root {
    background-color: var(--gray-900);
}

.p25-body-copy p {
    font-family: var(--font-body);
    font-size: 18px;
    line-height: 1.167;
    color: var(--gray-100);
}

.p25-body-copy p b,
.p25-body-copy p strong {
    color: var(--yellow-500);
}

.sticky-header {
    z-index: 50;
}


/* Topper */
/* ====== */

.p25-topper {
    position: relative;
    padding-top: calc(25% - 8rem);
    padding-bottom: 8rem;
    background-color: var(--gray-900);
    .intro-container {
        @media (max-width: 1100px) {
            padding-top: 2rem;
        }
    }
    @media (max-width: 767px) {
        padding-top: 50%;
    }
}

.p25-topper .background-image {
    background-size: 100% auto;
    background-position: center top;
}

.p25-topper .text-images {
    display: flex;
    flex-wrap: wrap;
    justify-content: end;
}

.p25-topper .text-images .expose-project {
    width: 430px;
    position: relative;
    top: 1rem;
}

.p25-topper hgroup {
    margin-bottom: 4rem;
}

.p25-topper hgroup p {
    font-family: Aeonik, serif;
    font-weight: 700;
    font-size: 36px;
    line-height: 1;
    color: #FFFFFF;
    text-transform: uppercase;
    margin-top: 0;
    @media (max-width: 767px) {
        font-size: 20px;
        margin-top: 1rem;
    }
}

.p25-topper hgroup p em {
    font-style: normal;
    position: relative;
}

.p25-topper hgroup p em::after {
    content: ' ';
    background-image: url('../png/scribble.png');
    background-size: 100% auto;
    background-repeat: no-repeat;
    width: 115%;
    height: 40px;
    position: absolute;
    left: -15%;
    bottom: -2.5rem;
}

.p25-topper .gradient-transition {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 50%;
    background-image: linear-gradient(180deg, rgba(31,29,29,0.00) 0%, #1F1D1D 60%);

    @media (max-width: 767px) {
        height: 100%;
        background-image: linear-gradient(180deg, rgba(31,29,29,0.00) 10%, #1F1D1D 20%);
    }

}

.p25-topper .resources-button-container {
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
}

.p25-topper .resources-button-container a {
    background-color: var(--yellow-500);
    color: var(--gray-900);
    border-radius: 100px;
    padding: 0.5rem 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
    text-transform: uppercase;
    text-decoration: none;
    transition: 250ms;
    font-weight: bold;
}

.p25-topper .resources-button-container a:hover,
.p25-topper .resources-button-container a:focus {
    background-color: var(--gray-900);
    color: var(--gray-100);
}


/* Who is Behind Project 2025? */
/* =========================== */

.who-is-behind {
    padding-top: 6rem;
    padding-bottom: 12rem;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: top;
    margin-bottom: -6rem;
}

.who-is-behind .cash-background {
    background-image: url('../png/cash.png');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: left top;
    position: absolute;
    right: 0;
    bottom: 0;
    width: 40%;
    height: 60%;
    opacity: 0.26;
}

.who-is-behind .tag-container {
    display: flex;
    justify-content: end;
}

.who-is-behind .is-behind-project-2025 {
    width: 530px;
    position: relative;
    top: -1rem;
}


/* Fast Facts */
/* ========== */

.fast-facts {
    background-image: url('../svg/rip.svg');
    background-size: 110% auto;
    padding-top: 10rem;
    padding-bottom: 8rem;
    position: relative;
    z-index: 10;
    @media (max-width: 767px) {
        background-size: auto 100%;
    }
}

.fast-facts .fast-facts-header {
    display: flex;
    justify-content: center;
    @media (max-width: 767px) {
        margin-bottom: 4rem;
    }
}

.fast-facts .fast-facts-header img {
    width: 430px;
}

.fast-fact {

    margin-bottom: 2rem;

    @media (min-width: 768px) {
        margin-bottom: 6rem;
        display: grid;
        grid-template-columns: auto 1fr auto;
        grid-column-gap: 2rem;
    }

    @media (min-width: 1024px) {
        grid-template-columns: 400px 1fr 400px;
        grid-column-gap: 4rem;
    }

    .blurb {
        grid-column: span 2;
    }

    .big-number,
    .blurb {
        grid-row-start: 1;
        grid-row-end: 2;
    }

    .big-number {
        font-family: var(--font-headline);
        font-size: 120px;
        line-height: 1;
        color: #FFFFFF;
        @media (min-width: 1024px) {
            font-size: 160px;
        }
    }

    .big-number-image {
        position: absolute;
        left: 1rem;
        top: -2rem;
        width: auto;
        height: 150%;
        @media (max-width: 767px) {
            height: auto;
            width: 50%;
        }
        @media (min-width: 1100px) {
            left: 2rem;
        }
    }

    .blurb {
        display: flex;
        align-items: center;
        p {
            font-family: var(--font-headline);
            font-weight: 700;
            font-size: 24px;
            line-height: 1.125;
            color: #F6F5EF;
            text-transform: uppercase;
            max-width: 525px;
        }
    }

    @media (min-width: 1024px) {

        &:nth-child(odd) {
            .big-number {
                text-align: right;
                display: flex;
                justify-content: end;
            }
        }

        &:nth-child(even) {
            .big-number {
                grid-column-start: 3;
                grid-column-end: 4;
            }
            .blurb {
                grid-column-start: 1;
                grid-column-end: 3;
                text-align: right;
                display: flex;
                justify-content: end;
            }
        }
    }

    &:nth-child(3n) {
        .big-number-image {
            @media (min-width: 768px) {
                left: 6rem;
            }
        }
    }

}


/* Checkerboard Grid */
/* ================= */

section.checkerboard-grid {

    --container-width: 1110px;
    --rip-height: 70px;

    .background-image {
        background-size: cover;
    }

    .grid {
        display: grid;
        @media (min-width: 768px) {
            grid-template-columns: 1fr 1fr;
        }
    }

    .grid-item {
        padding-top: 4rem;
        padding-bottom: 4rem;
        .interior {
            max-width: 336px;
        }
        @media (min-width: 768px) {
            padding-top: 8rem;
            padding-bottom: 8rem;
        }
    }

    hgroup {
        p {
            font-family: var(--font-headline);
            font-size: 24px;
            text-transform: uppercase;
            margin: 0;
        }
        h3 {
            font-family: var(--font-headline);
            font-size: 36px;
            line-height: 1.139;
            text-transform: uppercase;
        }
    }

    .blurb {
        font-size: 18px;
        line-height: 1.167;
    }

    .grid-item:nth-child(2n - 1) {
        padding-left: 1rem;
        padding-right: 1rem;
        @media (min-width: 768px) {
            --gutter: calc(100vw - var(--container-width));
            --half-gutter: calc(var(--gutter) / 2);
            padding-left: max(1rem, var(--half-gutter));
            padding-right: 1rem;
        }
    }

    .grid-item:nth-child(2n) {
        padding-left: 1rem;
        padding-right: 1rem;
        @media (min-width: 768px) {
            --gutter: calc(100vw - var(--container-width));
            --half-gutter: calc(var(--gutter) / 2);
            padding-right: max(1rem, var(--half-gutter));
            padding-left: 1rem;
            display: flex;
            justify-content: end;
        }
    }

    .grid-item:nth-child(4n),
    .grid-item:nth-child(4n - 3) {
        hgroup p {
            color: var(--yellow-500);
        }
        hgroup h3 {
            color: #FFFFFF;
        }
        .blurb {
            color: var(--gray-100);
        }
    }

    .grid-item:nth-child(4n - 1),
    .grid-item:nth-child(4n - 2) {
        hgroup p {
            color: var(--gray-900);
        }
        hgroup h3 {
            color: var(--gray-900);
        }
        .blurb {
            color: var(--gray-900);
        }
    }

    .rip {
        width: 100%;
        height: var(--rip-height);
        position: absolute;
        bottom: -1px;
        left: 0;
    }

}


/* Video */
/* ===== */

section.video {
    background-color: #ffffff;
    padding-top: 4rem;
    padding-bottom: 4rem;
    .video-iframe {
        width: 100%;
        aspect-ratio: 16 / 9;
    }
}


/* News */
/* ==== */

section.news {

    padding-top: 4rem;
    padding-bottom: 4rem;
    background-image: linear-gradient(to bottom, #ffffff 20%, var(--gray-900) 80%);

    h2 {
        font-family: var(--font-headline);
        font-size: 36px;
        color: var(--yellow-500);
        text-align: center;
        text-transform: uppercase;
    }

    .scribble-container {
        display: flex;
        justify-content: center;
        img {
            width: 150px;
        }
    }

    .news-container {
        margin-top: 1.5rem;
        background-color: #ffffff;
        border-radius: 1rem;
        padding: 2rem;
        @media (min-width: 768px) {
            padding: 4rem;
        }
    }

}


/* Resources */
/* ========= */

section.resources {

    background-color: #ffffff;
    padding-top: 2rem;
    padding-bottom: 2rem;

    h2 {
        font-family: var(--font-headline);
        font-size: 36px;
        color: var(--gray-900);
        text-align: center;
        text-transform: uppercase;
    }

    .scribble-container {
        display: flex;
        justify-content: center;
        img {
            width: 150px;
        }
        margin-bottom: 1rem;
    }

    .grid {
        grid-gap: 1rem;
        @media (min-width: 768px) {
            grid-template-columns: 1fr 1fr;
        }
    }

    .resource {
        background: var(--yellow-500);
        box-shadow: inset 0 -5px 0 0 #CC822C;
        border-radius: 23px;
        text-align: center;
        display: block;
        padding: 3rem 1rem;
        text-decoration: none;
        transition: 250ms;

        .label {
            font-family: var(--font-headline);
            font-size: 24px;
            color: #1F1D1D;
            font-weight: 700 !important;
            text-transform: uppercase;
            
        }

        .corner {
            position: absolute;
            right: 1rem;
            bottom: 1rem;
            transition: transform 250ms;
            i {
                color: var(--gray-900);
            }
        }

        &:hover, &:focus {
            background-color: var(--gray-100);
            box-shadow: inset 0 -5px 0 0 #3f3b3b;
            .corner {
                transform: scale(1.25, 1.25);
            }
        }

    }
}


/* Outro */
/* ===== */

section.outro {
    padding-top: 4rem;
    padding-bottom: 4rem;

    .outro-body p, .outro-body p a {
        font-family: var(--font-body);
        font-weight: semibold;
        font-size: 24px;
        color: var(--gray-100);
        text-align: center;
        line-height: 1.556;
        @media (min-width: 768px) {
            font-size: 36px;
        }
    }

    .outro-body p a {
        color: var(--yellow-500);
        font-weight: bold;
        transition: color 250ms;
        &:hover, &:focus {
            color: #ffffff;
        }
    }

}

#bottom-cta {
    background-color: var(--gray-900);
}

.module__bottom-cta::before {
    content: '';
    display: none;
}

.p25-modules-container {
    margin-top: 2rem;
    margin-bottom: 2rem;
    padding-top: 2rem;
    background-color: #ffffff;
}
