/* * styling specific to about.html, everything shared lives in style.css */

.about-hero-content,
.principles-content,
.team-content,
.cta-content {
    max-width: 1200px;
}


/* * hero; the content fills the section so the headline + lead can sit side by side in the middle */
.about-hero {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.about-hero-content {
    position: relative;
    z-index: 1;
    flex: 1;
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr);
    grid-template-areas: "title lead";
    align-content: center;
    align-items: center;
    column-gap: clamp(2rem, 6vw, 6rem);
}

.about-hero-lead {
    grid-area: lead;
    max-width: 440px;
    margin: 0px;
    font-size: var(--fs-lead);
    line-height: 1.5;
    opacity: .76;
}

.about-hero h1 {
    grid-area: title;
    margin: 0px;
    font-size: var(--fs-hero);
    line-height: .95;
}

/* the mark is cropped by the right edge of the section */
.about-hero-mark {
    position: absolute;
    top: 50%;
    right: -14vw;
    width: clamp(320px, 52vw, 860px);
    transform: translateY(-50%);
    opacity: .07;
    pointer-events: none;
}


/* * principles; laid out with .column-list from style.css */
.principles-link {
    margin: clamp(2.5rem, 5vw, 4rem) 0 0;
    font-size: var(--fs-lead);
}

.principles-link a {
    color: var(--text-color);
    text-decoration-color: var(--primary-purple);
    text-underline-offset: .2em;
    transition: color .2s ease;
}

.principles-link a:hover,
.principles-link a:focus-visible {
    color: var(--primary-purple);
}

.principles-link span {
    margin-left: .5rem;
}


/* * who we are, sits on the purple band */
.team-list {
    margin-top: clamp(3rem, 6vw, 5rem);
    border-top: 1px solid rgba(1, 1, 1, .55);
}

.team-row {
    display: grid;
    grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
    gap: clamp(1rem, 6vw, 6rem);
    padding: clamp(1.75rem, 3vw, 2.5rem) 0;
    border-bottom: 1px solid rgba(1, 1, 1, .55);
}

.team-row h3 {
    margin: 0px;
    font-size: var(--fs-title);
    line-height: 1.05;
}

.team-row p {
    max-width: 640px;
    margin: 0px;
    font-size: var(--fs-lead);
    line-height: 1.5;
}


/* * styling for mobile devices and small screens */
@media (max-width: 700px) {
    /* headline + lead stack, still centered in the hero. the mark moves up to the top corner */
    .about-hero-content {
        grid-template-columns: 1fr;
        grid-template-areas:
            "title"
            "lead";
        row-gap: 2rem;
    }

    /* the mark stays centered behind the text, cropped to about half by the right edge */
    .about-hero-mark {
        right: -45vw;
        width: 90vw;
    }

    /* title sits close to its text, the rows themselves keep their spacing */
    .team-row {
        grid-template-columns: 1fr;
        row-gap: .75rem;
    }
}
