
/* =========================================
   URBAN SLICE - COMING UP AT URBAN SLICE
========================================= */

.us-coming-events {
    width: 100%;
    padding: 65px 0;
    overflow: hidden;
    background: var(--us-cream);
}

.us-coming-events__container {
    display: grid;
    grid-template-columns: 0.75fr 1.25fr;
    align-items: center;
    gap: 45px;

    width: 83%;
    max-width: 1250px;
    margin: 0 auto;
}


/* =========================================
   SECTION HEADING
========================================= */

.us-coming-events__heading h2 {
    display: flex;
    flex-direction: column;
    align-items: flex-start;

    margin: 0;

    color: var(--us-green);
    font-size: clamp(32px, 4vw, 38px);
    font-weight: 700;
    line-height: 0.98;
    letter-spacing: -0.045em;
    text-transform: uppercase;
}

.us-coming-events__heading h2 span {
    display: block;
}

.us-coming-events__heading h2 em {
    font-weight: 400;
    font-style: italic;
}


/* =========================================
   EVENT LIST
========================================= */

.us-coming-events__list {
    display: flex;
    flex-direction: column;
    gap: 28px;
    min-width: 0;
}


/* =========================================
   PAPER EVENT CARD
========================================= */

.us-coming-events__card {
    --us-event-paper: none;
    position: relative;
    width: 100%;
    min-height: 345px;
    padding: 27px 30px;

    background-color: #F0E7D5;
    background-image:
        var(--us-event-paper),
        url("data:image/svg+xml,%3Csvg viewBox='0 0 180 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.12'/%3E%3C/svg%3E");

    background-size: cover, cover;
    background-position: center;

    clip-path: polygon(
        1% 2%, 5% 1%, 9% 2%, 13% 1%, 17% 2%,
        21% 1%, 25% 2%, 29% 1%, 33% 2%, 37% 1%,
        41% 2%, 45% 1%, 49% 2%, 53% 1%, 57% 2%,
        61% 1%, 65% 2%, 69% 1%, 73% 2%, 77% 1%,
        81% 2%, 85% 1%, 89% 2%, 93% 1%, 97% 2%,
        99% 3%, 98% 10%, 99% 17%, 98% 24%,
        99% 31%, 98% 38%, 99% 45%, 98% 52%,
        99% 59%, 98% 66%, 99% 73%, 98% 80%,
        99% 87%, 98% 94%, 97% 98%,
        93% 97%, 89% 99%, 85% 97%, 81% 99%,
        77% 97%, 73% 99%, 69% 97%, 65% 99%,
        61% 97%, 57% 99%, 53% 97%, 49% 99%,
        45% 97%, 41% 99%, 37% 97%, 33% 99%,
        29% 97%, 25% 99%, 21% 97%, 17% 99%,
        13% 97%, 9% 99%, 5% 97%, 1% 98%,
        2% 91%, 1% 84%, 2% 77%, 1% 70%,
        2% 63%, 1% 56%, 2% 49%, 1% 42%,
        2% 35%, 1% 28%, 2% 21%, 1% 14%,
        2% 7%
    );
}

.us-coming-events__card-content {
    position: relative;
    z-index: 1;
    width: 100%;
}


/* =========================================
   EVENT DATE
========================================= */

.us-coming-events__date {
    color: #53634E;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.22em;
    line-height: 1.5;
    text-transform: uppercase;
}

.us-coming-events__divider {
    width: 100%;
    height: 1px;
    margin: 9px 0 14px;
    background: rgba(51, 74, 46, 0.55);
}


/* =========================================
   EVENT CONTENT LAYOUT
========================================= */

.us-coming-events__body {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 43%;
    align-items: stretch;
    gap: 25px;
}

.us-coming-events__details {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-width: 0;
}


/* =========================================
   EVENT TITLE
========================================= */

.us-coming-events__title {
    margin: 0 0 10px;

    color: var(--us-green);
    font-size: clamp(23px, 3vw, 31px);
    font-weight: 400;
    line-height: 1.05;
    letter-spacing: -0.035em;
    text-transform: uppercase;
}


/* =========================================
   EVENT DESCRIPTION
========================================= */

.us-coming-events__description {
    margin: 0 0 14px;

    color: #485744;
    font-size: 11px;
    line-height: 1.55;
}

.us-coming-events__note {
    margin: 0 0 16px;

    color: #485744;
    font-size: 10px;
    font-weight: 500;
    line-height: 1.5;
}


/* =========================================
   EVENT CTA
========================================= */

.us-coming-events__link {
    display: inline-flex;
    align-items: center;
    gap: 7px;

    margin-top: auto;
    padding-bottom: 5px;
    border-bottom: 1px solid var(--us-red);

    color: var(--us-red);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.18em;
    line-height: 1.5;
    text-decoration: none;
    text-transform: uppercase;

    transition: color 0.25s ease;
}

.us-coming-events__link:hover {
    color: var(--us-green);
    border-color: var(--us-green);
}

.us-coming-events__link span {
    font-size: 15px;
    letter-spacing: 0;
}


/* =========================================
   EVENT IMAGE
========================================= */

.us-coming-events__image {
    width: 100%;
    height: 255px;
    overflow: hidden;
    background: #D8D2C4;
}

.us-coming-events__image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}


/* =========================================
   TABLET
========================================= */

@media (max-width: 1024px) {

    .us-coming-events {
        padding: 55px 0;
    }

    .us-coming-events__container {
        width: 90%;
        grid-template-columns: 0.7fr 1.3fr;
        gap: 28px;
    }

    .us-coming-events__heading h2 {
        font-size: clamp(27px, 3.5vw, 34px);
    }

    .us-coming-events__card {
        min-height: 320px;
        padding: 24px;
    }

    .us-coming-events__body {
        gap: 17px;
    }

    .us-coming-events__image {
        height: 235px;
    }

    .us-coming-events__title {
        font-size: 24px;
    }

}


/* =========================================
   MOBILE
========================================= */

@media (max-width: 767px) {

    .us-coming-events {
        padding: 45px 0;
    }

    .us-coming-events__container {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 28px;

        width: 90%;
    }

    .us-coming-events__heading h2 {
        font-size: clamp(32px, 8vw, 40px);
    }

    .us-coming-events__card {
        min-height: 0;
        padding: 23px 22px;
    }

    .us-coming-events__body {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .us-coming-events__title {
        font-size: 28px;
    }

    .us-coming-events__description {
        font-size: 12px;
    }

    .us-coming-events__note {
        font-size: 11px;
    }

    .us-coming-events__image {
        height: 230px;
    }

    .us-coming-events__link {
        margin-top: 5px;
    }

}


/* =========================================
   SMALL MOBILE
========================================= */

@media (max-width: 380px) {

    .us-coming-events__heading h2 {
        font-size: 30px;
    }

    .us-coming-events__card {
        padding: 20px 18px;
    }

    .us-coming-events__title {
        font-size: 25px;
    }

    .us-coming-events__image {
        height: 200px;
    }

}


/* =========================================
   REDUCED MOTION
========================================= */

@media (prefers-reduced-motion: reduce) {

    .us-coming-events__link {
        transition: none;
    }

}
