#they-say {
    --testimonial-paper: #eee7d8;
    --testimonial-ink: #211b16;
    --testimonial-copy: #5e5347;
    --testimonial-link: #714817;
    position: relative;
    isolation: isolate;
    box-sizing: border-box;
    width: min(100%, 72rem);
    max-width: none;
    margin: 0 auto;
    padding: clamp(1.5rem, 4vw, 3rem) 0;
    color: var(--testimonial-ink);
    color-scheme: light;
    font: 400 1rem / 1.55 "Avenir Next", system-ui, sans-serif;
}

#they-say::before {
    /* Extend the background across the page while keeping the content in its original grid. */
    position: absolute;
    z-index: -1;
    inset: 0;
    background: var(--testimonial-paper);
    box-shadow: 0 0 0 100vmax var(--testimonial-paper);
    clip-path: inset(0 -100vmax);
    content: "";
    pointer-events: none;
}

html:is([data-font-mode="arabic"], [data-font-mode="cjk"]) #they-say {
    font-family: var(--body-font);
}

.testimonials-inner {
    margin-inline: clamp(1.25rem, 5.2%, 3.75rem);
    padding-inline: clamp(1.5rem, 4vw, 3rem);
}

#they-say h2 {
    margin: 0;
    color: var(--testimonial-ink);
    font-family: inherit;
    font-size: clamp(1.4rem, 3.2vw, 2.2rem);
    font-weight: 750;
    letter-spacing: -.045em;
    line-height: 1.02;
    text-align: start;
    text-wrap: balance;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(1.6rem, 3vw, 2.1rem);
    margin-block-start: 1.4rem;
}

#they-say figure {
    margin: 0;
    padding: clamp(1rem, 2.2vw, 1.5rem);
    border-radius: .5rem;
    background: #faf7f0;
}

#they-say .testimonial-photo-link,
#they-say figure img {
    display: block;
    width: 5rem;
    border-radius: 50%;
}

#they-say img {
    height: auto;
    aspect-ratio: 1;
    object-fit: cover;
}

#they-say blockquote {
    margin: .9rem 0 0;
    color: var(--testimonial-ink);
    text-wrap: pretty;
}

#they-say figcaption {
    margin-block-start: 1.15rem;
    font-size: .92rem;
    line-height: 1.45;
}

#they-say figcaption p {
    max-width: 58ch;
    margin: .3rem 0 0;
    color: var(--testimonial-copy);
    text-wrap: pretty;
}

#they-say figcaption a {
    color: var(--testimonial-link);
    font-weight: 650;
    text-decoration: underline;
    text-underline-offset: .16em;
}

#they-say figcaption a:hover {
    color: #4b2f15;
}

#they-say a:focus-visible {
    outline: 2px solid var(--testimonial-link);
    outline-offset: 3px;
}

html[dir="rtl"] #they-say :is(blockquote, figcaption) {
    text-align: right;
}

@media (max-width: 580px) {
    .testimonials-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 2.15rem;
    }
}
