.team-page {
    max-width: 1100px;
    margin: 0 auto;
    padding: 3rem 1rem;
}

.team-intro {
    max-width: 620px;
    margin: 0 auto 2.5rem;
    text-align: center;
}

.team-intro p {
    margin-top: 1rem;
    font-size: 1.125rem;
}

.team-grid {
    display: grid;
    gap: 1.5rem;
}

.team-profile {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 1.5rem;
    border-radius: 12px;
    background: white;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.05);
    scroll-margin-top: 6rem;
}

.team-photo {
    width: 160px;
    height: 160px;
    object-fit: cover;
    border-radius: 50%;
    border: 4px solid #111;
    background-color: #fff;
    margin-bottom: 1.25rem;
}

.team-profile h2 {
    justify-self: start;
    font-size: 1.5rem;
    font-weight: 700;
}

.team-role {
    color: #49632f;
    font-weight: 700;
    margin: 0.25rem 0 1rem;
}

.team-bio {
    line-height: 1.7;
    margin-bottom: 1.25rem;
}

.team-bio p + p {
    margin-top: 0.75rem;
}

.team-links {
    margin-top: auto;
}

.team-page a {
    color: #49632f;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.team-page a:hover {
    color: var(--dark-color);
}

.team-page a:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 4px;
}

.team-credits {
    margin-top: 2rem;
    font-size: 0.875rem;
    text-align: center;
}

@media (min-width: 640px) {
    .team-profile {
        display: grid;
        grid-template-columns: 160px minmax(0, 1fr);
        column-gap: 2rem;
        align-content: start;
    }

    .team-photo {
        grid-column: 1;
        grid-row: 1 / span 4;
        margin-bottom: 0;
    }

    .team-profile > :not(.team-photo) {
        grid-column: 2;
    }

    .team-links {
        margin-top: 0;
    }
}

@media (min-width: 768px) {
    .team-page {
        padding: 4rem 1.5rem;
    }

    .team-grid {
        gap: 2rem;
    }

    .team-profile {
        padding: 2rem;
    }
}
