
/* =========================================
   HOPE FOR TOMORROW - ARTICLES STYLESHEET
========================================= */

.article-page {
    --article-paper: #fffdf9;
    --article-mist: #f5f2e7;
    --article-ink: #13221d;
    --article-muted: #52645a;
    --article-orange: #fa8c00;
    --article-blue: #0078aa;
    --article-green: #5a9600;
    --article-content-width: 1060px;

    background: var(--article-paper);
}

.article-page .nav-menu {
    gap: clamp(0.85rem, 1.7vw, 2.1rem);
}

/* =========================================
   ARTICLE INDEX / NEWS PAGE
========================================= */

.article-index-hero,
.article-hero {
    position: relative;
    overflow: hidden;
}

.article-index-hero::after,
.article-hero::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.article-index-hero {
    min-height: 470px;
    display: flex;
    align-items: center;
    padding: 142px 0 76px;
    background: var(--article-mist);
}

.article-index-hero::after {
    width: min(52vw, 720px);
    height: min(52vw, 720px);
    right: -15vw;
    bottom: -47vw;
    background: var(--article-orange);
    opacity: 0.95;
}

.article-index-hero__content,
.article-hero__content {
    position: relative;
    z-index: 1;
}

.article-index-hero__content {
    max-width: 820px;
}

.article-index-hero .eyebrow {
    color: var(--article-orange);
}

.article-index-hero .eyebrow::before {
    background: var(--article-orange);
}

.article-index-hero h1,
.article-hero h1 {
    color: var(--article-ink);
    font-size: clamp(2.8rem, 6vw, 5.25rem);
    line-height: 0.99;
    letter-spacing: -0.04em;
}

.article-index-hero h1 {
    max-width: 670px;
    margin-bottom: 24px;
}

.article-index-hero__content > p:last-child {
    max-width: 600px;
    color: var(--article-muted);
    font-size: clamp(1rem, 2vw, 1.18rem);
    line-height: 1.7;
}

.article-index-content {
    padding: 92px 0 110px;
}

.article-section-heading {
    margin-bottom: 34px;
}

.article-kicker,
.article-card__meta {
    font-family: 'Space Mono', 'Courier New', monospace;
    font-size: 0.71rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    line-height: 1.5;
    text-transform: uppercase;
}

.article-kicker {
    color: var(--article-orange);
    margin-bottom: 10px;
}

.article-section-heading h2 {
    color: var(--article-ink);
    font-size: clamp(2rem, 4vw, 3.25rem);
    line-height: 1.1;
}

/* =========================================
   ARTICLE CARDS
========================================= */

.article-card {
    display: grid;
    grid-template-columns: minmax(280px, 0.95fr) minmax(320px, 1.05fr);
    min-height: 420px;
    overflow: hidden;
    border: 1px solid rgba(19, 34, 29, 0.13);
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 14px 35px rgba(19, 34, 29, 0.08);
}

.article-card__image {
    display: block;
    min-height: 100%;
    overflow: hidden;
    background: var(--article-ink);
}

.article-card__image img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 420px;
    object-fit: cover;
    object-position: center 44%;
    transition: transform 0.45s ease;
}

.article-card:hover .article-card__image img,
.article-card__image:focus-visible img {
    transform: scale(1.035);
}

.article-card__content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding: clamp(30px, 5vw, 70px);
}

.article-card__meta {
    color: var(--article-orange);
    margin-bottom: 17px;
}

.article-card__content h3 {
    margin-bottom: 18px;
    color: var(--article-ink);
    font-size: clamp(1.55rem, 2.7vw, 2.35rem);
    line-height: 1.15;
}

.article-card__content h3 a {
    color: inherit;
    text-decoration: none;
}

.article-card__content h3 a:hover,
.article-card__content h3 a:focus-visible {
    color: var(--article-blue);
}

.article-card__content > p:not(.article-card__meta) {
    margin-bottom: 25px;
    color: var(--article-muted);
    font-size: 1rem;
    line-height: 1.72;
}

.article-read-more,
.article-back-link {
    color: var(--article-ink);
    font-weight: 700;
    text-decoration: none;
}

.article-read-more {
    padding-bottom: 4px;
    border-bottom: 2px solid var(--article-orange);
}

.article-read-more:hover,
.article-read-more:focus-visible,
.article-back-link:hover,
.article-back-link:focus-visible {
    color: var(--article-blue);
}

/* =========================================
   CALL TO ACTION
========================================= */

.article-index-cta,
.article-closing {
    padding: 88px 0;
    background: var(--article-ink);
}

.article-index-cta__inner,
.article-closing__inner {
    max-width: 780px;
    text-align: center;
}

.article-index-cta .article-kicker,
.article-closing .article-kicker {
    color: #ffb555;
}

.article-index-cta h2,
.article-closing h2 {
    margin-bottom: 30px;
    color: var(--article-paper);
    font-size: clamp(2rem, 4vw, 3.2rem);
    line-height: 1.12;
}

/* =========================================
   ARTICLE HERO
========================================= */

.article-hero {
    padding: 142px 0 84px;
    background: var(--article-ink);
}

.article-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(
        rgba(255, 253, 249, 0.18) 1px,
        transparent 1px
    );
    background-size: 22px 22px;
    mask-image: linear-gradient(90deg, transparent 0, #000 64%);
}

.article-hero::after {
    width: min(48vw, 660px);
    height: min(48vw, 660px);
    right: -13vw;
    bottom: -31vw;
    border: 68px solid var(--article-green);
    opacity: 0.8;
}

.article-hero__content {
    max-width: 1020px;
}

.article-back-link {
    display: inline-block;
    margin-bottom: 54px;
    color: var(--article-paper);
    font-size: 0.95rem;
}

.article-back-link span {
    margin-right: 7px;
}

.article-kicker--light {
    color: #ffb555;
}

.article-hero h1 {
    max-width: 990px;
    color: var(--article-paper);
    font-size: clamp(2.3rem, 4.7vw, 4.5rem);
    line-height: 1.05;
}

.article-hero__details {
    max-width: 780px;
    margin-top: 27px;
    color: rgba(255, 253, 249, 0.76);
    font-size: 0.97rem;
    line-height: 1.6;
}

.article-hero__details span {
    margin: 0 8px;
    color: var(--article-orange);
}

/* =========================================
   SINGLE ARTICLE - SHARED WIDTH
========================================= */

/* Center the article heading */
.article-page .article-hero {
    padding: 142px 0 44px;
    background: var(--article-paper);
}

.article-page .article-hero::before,
.article-page .article-hero::after {
    display: none;
}

.article-page .article-hero__content {
    box-sizing: border-box;
    width: min(calc(100% - 40px), var(--article-content-width));
    max-width: none;
    margin: 0 auto;
}

.article-page .article-back-link {
    margin-bottom: 40px;
    color: var(--article-ink);
}

.article-page .article-hero h1 {
    max-width: 900px;
    color: var(--article-ink);
    font-size: clamp(2.3rem, 4.8vw, 4.25rem);
    line-height: 1.08;
}

.article-page .article-hero__subtitle {
    max-width: 900px;
    margin-top: 24px;
    color: var(--article-muted);
    font-family: 'Fraunces', Georgia, serif;
    font-size: clamp(1.35rem, 2.4vw, 1.85rem);
    font-weight: 500;
    line-height: 1.35;
}

/* =========================================
   FEATURED IMAGE - FIRST IMAGE
========================================= */

.article-page .article-lead-image {
    box-sizing: border-box;
    display: block;
    width: min(calc(100% - 40px), var(--article-content-width));
    /* height: clamp(280px, 40vw, 500px); */
    height: 780px;
    min-height: 0;
    max-width: none;
    margin: 0 auto;
    overflow: hidden;
    background: transparent;
}

.article-page .article-lead-image img {
    display: block;
    width: 100%;
    height: 100%;
    max-height: 100%;
    object-fit: cover;
    object-position: center 42%;
}

/* =========================================
   ARTICLE BODY
========================================= */

.article-page .article-story {
    padding: 54px 20px 100px;
    background: var(--article-paper);
}

.article-page .article-story__body {
    box-sizing: border-box;
    width: 100%;
    max-width: var(--article-content-width);
    margin: 0 auto;
    text-align: left;
}

.article-page .article-story__body p {
    margin-bottom: 29px;
    color: var(--article-ink);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: clamp(1.02rem, 1.0vw, 1.2rem);
    font-weight: 300;
    line-height: 1.65;
}

/* =========================================
   ARTICLE FIGURES / IMAGES
========================================= */

.article-page .article-figure {
    box-sizing: border-box;
    width: 100%;
    max-width: none;
    margin: 42px auto;
}

.article-page .article-figure img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 0;
}

/* SECOND IMAGE - HANDWASHING IMAGE */

/* Crop the upper part of the handwashing image */
.article-page .article-story__body > .article-figure:first-of-type {
    width: 100%;
    height: 780px;
    overflow: hidden;
}

.article-page .article-story__body > .article-figure:first-of-type img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 75%;
}
/* THIRD AND REMAINING IMAGES */

.article-page .article-figure:not(:first-of-type) img {
    height: auto;
    object-fit: contain;
}

/* Image captions */

.article-figure figcaption {
    margin-top: 11px;
    color: #68766f;
    font-size: 0.82rem;
    font-style: italic;
    line-height: 1.5;
}

/* =========================================
   IMPACT SECTION
========================================= */

.article-impact {
    margin: 52px 0;
    padding: clamp(28px, 5vw, 48px);
    border-radius: 16px;
    background: var(--article-mist);
}

.article-impact h2 {
    max-width: 540px;
    margin-bottom: 30px;
    color: var(--article-ink);
    font-size: clamp(1.7rem, 3vw, 2.35rem);
    line-height: 1.12;
}

.article-impact__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.article-impact__grid div {
    min-width: 0;
    padding-top: 17px;
}

.article-impact__grid strong,
.article-impact__grid span {
    display: block;
}

.article-impact__grid strong {
    color: var(--article-blue);
    font-family: 'Fraunces', Georgia, serif;
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1;
}

.article-impact__grid span {
    margin-top: 9px;
    color: var(--article-muted);
    font-size: 0.85rem;
    line-height: 1.45;
}

/* =========================================
   BLOCKQUOTES
========================================= */

.article-story blockquote {
    margin: 45px 0;
    padding: 7px 0 7px 28px;
    border-left: 4px solid var(--article-orange);
    color: var(--article-ink);
    font-family: 'Fraunces', Georgia, serif;
    font-size: clamp(1.55rem, 3vw, 2.15rem);
    font-style: italic;
    font-weight: 500;
    line-height: 1.35;
}

/* =========================================
   NEWS GRID
========================================= */

.article-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 56px 30px;
}

.article-grid .article-card {
    display: block;
    min-height: 0;
    overflow: visible;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.article-grid .article-card__image,
.article-grid .article-card__image img {
    min-height: 0;
    height: auto;
}

.article-grid .article-card__image {
    aspect-ratio: 4 / 3;
}

.article-grid .article-card__image img {
    width: 100%;
    height: 100%;
    object-position: center 40%;
}

.article-card__entry {
    display: grid;
    grid-template-columns: 70px minmax(0, 1fr);
    gap: 24px;
    margin-top: 24px;
}

.article-card__date {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    align-self: start;
    min-height: 76px;
    padding: 9px 5px;
    background: var(--article-orange);
    color: #fff;
    font-family: 'Inter', Arial, sans-serif;
    line-height: 1.05;
    text-align: center;
}

.article-card__date span {
    font-size: 0.9rem;
    font-weight: 700;
}

.article-card__date small {
    margin-top: 5px;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.08em;
}

.article-grid .article-card__content {
    display: block;
    padding: 0;
}

.article-grid .article-card__content h3 {
    margin: 0 0 12px;
    font-size: clamp(1.25rem, 2vw, 1.58rem);
    line-height: 1.17;
}

.article-grid .article-card__meta {
    margin-bottom: 16px;
    color: var(--article-orange);
    font-family: 'Inter', Arial, sans-serif;
    font-size: 0.88rem;
    font-style: italic;
    font-weight: 500;
    letter-spacing: 0;
    text-transform: none;
}

.article-grid .article-card__content > p:not(.article-card__meta) {
    margin-bottom: 19px;
    font-size: 0.98rem;
    line-height: 1.72;
}

.article-grid .article-read-more {
    font-size: 0.84rem;
    text-transform: uppercase;
}

/* =========================================
   TABLET RESPONSIVENESS
========================================= */

@media (max-width: 860px) {

    .article-page .nav-menu {
        gap: 0;
    }

    .article-index-hero {
        min-height: 420px;
    }

    .article-index-hero::after {
        width: 500px;
        height: 500px;
        right: -230px;
        bottom: -360px;
    }

    .article-card {
        grid-template-columns: 1fr;
    }

    .article-card__image,
    .article-card__image img {
        min-height: 340px;
        max-height: 460px;
    }

    .article-card__content {
        padding: 38px;
    }

    .article-hero {
        padding-top: 128px;
    }

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

/* =========================================
   MOBILE RESPONSIVENESS
========================================= */

@media (max-width: 600px) {

    .article-page .nav-menu {
        gap: 0;
    }

    .article-index-hero {
        min-height: 390px;
        padding: 125px 0 56px;
    }

    .article-index-content {
        padding: 65px 0 76px;
    }

    .article-card {
        border-radius: 12px;
    }

    .article-card__image,
    .article-card__image img {
        min-height: 295px;
    }

    .article-card__content {
        padding: 28px 23px 32px;
    }

    .article-index-cta,
    .article-closing {
        padding: 68px 0;
    }

    .article-page .article-hero {
        padding: 116px 0 35px;
    }

    .article-page .article-hero__content {
        width: calc(100% - 30px);
    }

    .article-page .article-back-link {
        margin-bottom: 30px;
    }

    .article-page .article-hero h1 {
        font-size: clamp(2rem, 8vw, 3rem);
    }

    .article-page .article-hero__subtitle {
        font-size: 1.3rem;
    }

    /* First image on mobile */
    .article-page .article-lead-image {
        width: calc(100% - 30px);
        height: 300px;
    }

    /* Article body */
    .article-page .article-story {
        padding: 40px 15px 65px;
    }

    .article-page .article-story__body {
        width: 100%;
    }

    .article-page .article-story__body p {
        font-size: 1rem;
        line-height: 1.76;
    }

    /* Second image on mobile */
    .article-page .article-story__body > .article-figure:first-of-type {
        height: 300px;
        margin: 32px auto;
    }

    .article-page .article-figure {
        width: 100%;
        margin: 32px auto;
    }

    /* Remaining images keep their natural proportions */
    .article-page .article-figure:not(:first-of-type) img {
        height: auto;
    }

    .article-impact {
        margin: 40px 0;
        padding: 27px 22px;
    }

    .article-impact__grid {
        grid-template-columns: 1fr;
        gap: 19px;
    }

    .article-impact__grid div {
        display: grid;
        grid-template-columns: 92px 1fr;
        align-items: center;
        gap: 14px;
    }

    .article-impact__grid span {
        margin: 0;
    }

    .article-story blockquote {
        margin: 38px 0;
        padding-left: 20px;
    }

    /* News grid */
    .article-grid {
        grid-template-columns: 1fr;
        gap: 42px;
    }

    .article-card__entry {
        grid-template-columns: 64px minmax(0, 1fr);
        gap: 18px;
        margin-top: 18px;
    }

    .article-card__date {
        min-height: 68px;
    }
}
