/* =========================================================
   IMPACT / FOOTPRINTS
   ========================================================= */

.impact-section {
    width: min(calc(100% - 48px), 1000px);
    margin: 4rem auto;
    padding: 0;
}

.impact-container {
    width: 100%;
}


/* --------------------------
   Intro
   -------------------------- */

/* --------------------------
   Intro
   -------------------------- */

.impact-header {
    margin-bottom: 3.5rem;
}

.impact-header h1 {
    margin: 0 0 .65rem;
    font-size: clamp(2.6rem, 5vw, 4rem);
    line-height: 1.08;
    font-weight: 700;
    letter-spacing: -.03em;
}

.impact-intro {
    max-width: 800px;
    margin: 0;
    color: #666;
    font-size: .95rem;
    line-height: 1.6;
}

.impact-quote {
    margin-top: 2.25rem;
    max-width: 800px;

    font-family: "Instrument Serif", serif;
    font-size: 1.25rem;
    font-style: italic;
    font-weight: 400;
    line-height: 1.5;

    color: #555;
}

/* --------------------------
Featured -------------------------- */ 
.featured-impact {
    margin-bottom: 2.75rem;
    padding: 1.75rem 2rem 2rem;
    background: #f8f8f8;
    border-radius: 8px;
}

.featured-label {
    display: block;
    margin-bottom: .2rem;

    color: #777;
    font-size: .65rem;
    font-weight: 500;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.featured-impact h2 {
    margin: 0 0 1.25rem;
    font-size: 1.15rem;
    line-height: 1.3;
    font-weight: 600;
}

.featured-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.75rem;
}

.featured-card {
    min-width: 0;
}

.featured-card img {
    display: block;
    width: 100%;
    aspect-ratio: 2 / 1;
    object-fit: cover;
    border-radius: 6px;
    margin-bottom: .7rem;
}

.featured-card h3 {
    margin: 0 0 .25rem;
    font-size: .88rem;
    line-height: 1.4;
    font-weight: 600;
}

.featured-card p {
    margin: 0 0 .45rem;
    color: #666;
    font-size: .76rem;
    line-height: 1.45;
}

.featured-card span {
    display: block;
    color: #999;
    font-size: .7rem;
}

/* --------------------------
   Everything / filters
   -------------------------- */

.impact-archive {
    padding-top: 1.75rem;
}

.archive-heading {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 1.75rem;
}

.archive-heading h2 {
    flex-shrink: 0;
}

.impact-filters {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: .5rem;
}

.filter-pill {
    appearance: none;
    border: 0;
    background: #f1f1f1;
    color: #555;
    padding: .45rem .9rem;
    border-radius: 999px;
    font-family: "Inter", sans-serif;
    font-size: .75rem;
    line-height: 1;
    cursor: pointer;
    transition:
        background .2s ease,
        color .2s ease;
}

.filter-pill:hover {
    background: #e5e5e5;
    color: #222;
}

.filter-pill.active {
    background: #222;
    color: #fff;
}


/* --------------------------
   Archive cards
   -------------------------- */

.impact-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    column-gap: 2rem;
    row-gap: 2.75rem;
}

.impact-card {
    min-width: 0;
    background: transparent;
}

/* JS controls visibility */
.impact-card.is-hidden {
    display: none;
}

.impact-card img {
    display: block;
    width: 100%;
    height: 135px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: .85rem;
}

.impact-card h3 {
    font-size: .95rem;
    line-height: 1.4;
    margin-bottom: .35rem;
}

.impact-card p {
    color: #555;
    font-size: .82rem;
    line-height: 1.5;
    margin-bottom: .5rem;
}

.impact-card span {
    display: block;
    color: #999;
    font-size: .76rem;
}

.impact-card a {
    display: inline-block;
    margin-top: .65rem;
    color: #222;
    font-size: .8rem;
    font-weight: 500;
    text-decoration: none;
    padding-bottom: 1px;

    background-image: linear-gradient(currentColor, currentColor);
    background-size: 0 1px;
    background-position: left bottom;
    background-repeat: no-repeat;

    transition:
        background-size .2s ease,
        color .2s ease;
}

.impact-card a:hover {
    color: #000;
    background-size: 100% 1px;
}


/* --------------------------
   View more
   -------------------------- */

.view-more-wrap {
    display: flex;
    justify-content: center;
    margin-top: 3.5rem;
}

.view-more {
    appearance: none;
    border: 1px solid #d8d8d8;
    background: #fff;
    color: #222;
    border-radius: 6px;
    padding: .7rem 1.3rem;
    font-family: "Inter", sans-serif;
    font-size: .8rem;
    cursor: pointer;
    transition:
        border-color .2s ease,
        background .2s ease;
}

.view-more:hover {
    border-color: #999;
    background: #fafafa;
}

.view-more.is-hidden {
    display: none;
}


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

@media (max-width: 900px) {

    .featured-grid,
    .impact-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .archive-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 1rem;
    }
}

@media (max-width: 700px) {

    .impact-header {
        margin-bottom: 3rem;
    }

    .impact-quote br {
        display: none;
    }

    .featured-impact {
        padding: 1.5rem;
    }

    .featured-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .featured-card img {
        aspect-ratio: 16 / 9;
    }
}