body {
    margin: 0;
    color: var(--acts-cream);
    background: var(--acts-navy);
    font-family: "ACTS Inter", Arial, sans-serif;
    font-size: 1rem;
    line-height: 1.75;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

.safe-content {
    width: var(--safe-content-width);
    margin-inline: auto;
}

.home-page h1,
.home-page h2,
.home-page p,
.home-page blockquote,
.home-page figure {
    margin-top: 0;
}

.home-page h2 {
    margin-bottom: clamp(1.5rem, 3vw, 2.5rem);
    color: inherit;
    font-family: "ACTS Inter", Arial, sans-serif;
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    line-height: 1.15;
}

.home-section {
    padding-block: clamp(4rem, 8vw, 7.5rem);
}

.home-section--navy {
    color: var(--acts-cream);
    background: var(--acts-navy);
}

.home-section--orange {
    color: #fff;
    background: var(--acts-orange);
}

.home-section__header,
.home-section__title {
    text-align: center;
}

.home-split {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    align-items: flex-start;
    gap: clamp(3rem, 8vw, 8rem);
}

.home-rich-text > :last-child {
    margin-bottom: 0;
}

.home-rich-text a,
.home-organizations__list a {
    color: inherit;
    text-underline-offset: 0.2em;
}

.home-rich-text a:hover,
.home-organizations__list a:hover {
    text-decoration-thickness: 2px;
}

.home-hero {
    position: relative;
    min-height: clamp(33rem, 70vw, 61rem);
    overflow: hidden;
    isolation: isolate;
    background: #183858;
}

.home-hero__image,
.home-hero__shade {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.home-hero__image {
    z-index: -2;
    object-fit: cover;
    object-position: center;
}

.home-hero__shade {
    z-index: -1;
    background: linear-gradient(90deg, rgb(3 24 47 / 35%) 0%, transparent 65%);
}

.home-hero__content {
    display: flex;
    align-items: center;
    min-height: inherit;
}

.home-hero__title {
    display: flex;
    flex-direction: column;
    margin: 0;
    color: #fff;
    font-family: "ACTS Inter", Arial, sans-serif;
    font-size: clamp(4rem, 9vw, 9.5rem);
    font-weight: 400;
    letter-spacing: -0.045em;
    line-height: 0.9;
    text-shadow: 0 0.15rem 1rem rgb(0 0 0 / 22%);
}

.home-hero__subtext {
    max-width: 34ch;
    margin: clamp(1rem, 2.2vw, 2rem) 0 0 !important;
    color: #fff;
    font-family: "ACTS Inter", Arial, sans-serif;
    font-size: clamp(1.05rem, 1.9vw, 1.65rem);
    font-weight: 400;
    line-height: 1.35;
    text-shadow: 0 0.1rem 0.75rem rgb(0 0 0 / 35%);
}

.home-hero__title em {
    display: inline-block;
    margin-left: -0.05em;
    color: var(--acts-orange);
    font-family: "ACTS Caveat", cursive;
    font-size: 1.45em;
    font-style: normal;
    font-weight: 500;
    letter-spacing: -0.07em;
    transform: translateY(0.05em);
}

.home-mission__quote {
    margin-bottom: clamp(3rem, 6vw, 5rem);
    transform: scale(var(--quote-scale, 1));
    transform-origin: center center;
    text-align: center;
    text-shadow:
        0 0 0.35rem rgb(255 249 239 / 42%),
        0 0 1.25rem rgb(255 224 174 / 24%);
    animation: holy-glow 4.5s ease-in-out infinite;
}

@keyframes holy-glow {
    0%,
    100% {
        text-shadow:
            0 0 0.35rem rgb(255 249 239 / 38%),
            0 0 1.1rem rgb(255 224 174 / 20%);
    }

    50% {
        text-shadow:
            0 0 0.55rem rgb(255 249 239 / 58%),
            0 0 1.75rem rgb(255 224 174 / 34%);
    }
}

.home-mission__quote p {
    margin-bottom: 0.1rem;
    font-family: "ACTS Caveat", Arial, sans-serif;
    font-size: clamp(1.8rem, 3vw, 2.25rem);
    /* font-size: clamp(1.1rem, 2vw, 1.45rem); */
    /* font-style: italic; */
    font-weight: 700;
}

.home-mission__quote cite {
    display: block;
    margin-top: 0.5rem;
    font-size: clamp(1rem, 1.4vw, 1.2rem);
    font-style: normal;
    font-weight: 600;
    letter-spacing: 0.035em;
    text-align: right;
}

.home-split--mission .home-split__media,
.home-split--organizations .home-split__media {
    justify-self: center;
    width: 100%;
}

.home-volunteer .home-split {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.home-volunteer .home-split__copy {
    padding-right: clamp(0rem, 4vw, 4rem);
    border-right: 1px solid rgb(255 255 255 / 30%);
}

.home-volunteer h2 {
    margin-bottom: 1.75rem;
}

.home-organizations {
    padding-bottom: clamp(3rem, 6vw, 5rem);
}

.home-organizations__list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: clamp(2rem, 5vw, 5rem);
    row-gap: 0.65rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.home-organizations__list li {
    break-inside: avoid;
}

.home-organizations__more {
    margin-top: 0.65rem !important;
    font-style: italic;
    opacity: 0.8;
}

.home-organizations__content {
    margin-top: 1.5rem;
}

.home-memories {
    padding-top: clamp(3rem, 6vw, 5rem);
}

.home-memories__copy {
    max-width: 65rem;
    margin: 0 auto clamp(2.5rem, 5vw, 4rem);
    text-align: center;
}

.home-memories__gallery {
    width: min(100%, 70rem);
    margin-inline: auto;
}

.home-contact h2 {
    text-transform: uppercase;
}

.home-split--contact .home-split__media {
    width: 100%;
}

/* Template-specific carousel presentation. */
.home-page .image-carousel {
    width: 100%;
}

.home-page .image-carousel__link {
    border-radius: 10px;
    background: rgb(255 255 255 / 10%);
}

.home-page .image-carousel__image {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.home-page .image-carousel__caption {
    color: inherit;
}

.home-page .image-carousel__status {
    margin-top: 0.8rem;
    color: rgb(255 255 255 / 65%);
}

.home-page .image-carousel__button {
    color: #fff;
    background: rgb(15 45 78 / 82%);
}

.home-page .image-carousel__button:hover {
    background: var(--acts-navy);
}

.home-memories .image-carousel__image {
    aspect-ratio: 16 / 10;
}

@media (max-width: 900px) {
    .home-split,
    .home-volunteer .home-split {
        grid-template-columns: minmax(0, 1fr);
        gap: 2.5rem;
    }

    .home-split--volunteer .home-split__media {
        grid-row: 1;
    }

    .home-volunteer .home-split__copy {
        padding-right: 0;
        border-right: 0;
    }

    .home-organizations__list {
        column-gap: 2rem;
    }

    .home-page .image-carousel {
        width: min(100%, 40rem);
    }
    .home-mission__quote {
        margin-left: 0;
        margin-right: 0;
    }
}

@media (max-width: 600px) {
    body {
        font-size: 0.95rem;
        line-height: 1.65;
    }

    .home-section {
        padding-block: 3.5rem;
    }

    .home-hero {
        min-height: 32rem;
    }

    .home-hero__image {
        object-position: 58% center;
    }

    .home-hero__shade {
        background: linear-gradient(
            90deg,
            rgb(3 24 47 / 55%) 0%,
            transparent 90%
        );
    }

    .home-hero__title {
        font-size: clamp(3.5rem, 18vw, 5.5rem);
    }

    .home-hero__subtext {
        max-width: 26ch;
        font-size: clamp(1rem, 4.5vw, 1.25rem);
    }

    .home-organizations__list {
        grid-template-columns: 1fr 1fr;
        column-gap: 1rem;
        font-size: 0.85rem;
    }

    .home-memories .image-carousel__image {
        aspect-ratio: 16 / 10;
    }

    .home-page .image-carousel__button {
        width: 2.5rem;
        height: 2.5rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .home-mission__quote {
        transform: none;
        animation: none;
    }
}
