:root {
    color-scheme: light;
    --white: #fff;
    --pale: #f5f5f3;
    --ink: #414141;
    --muted: #606060;
    --line: #dededb;
    --input-line: #8b8b86;
    --red: #b52d36;
    --red-hover: #91222a;
    --red-line: #d9474f;
    --red-pale: #fff0ef;
    --slab: 'Roboto Slab', Georgia, serif;
    --sans: 'Roboto', Arial, sans-serif;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-block-start: 1.25rem;
}

body {
    margin: 0;
    background: var(--white);
    color: var(--ink);
    font: 1rem/1.65 var(--sans);
}

h1, h2, h3, p {
    margin: 0;
}

h1, h2, h3 {
    font-family: var(--slab);
    font-weight: 400;
}

a {
    color: var(--red);
    text-underline-offset: 0.22em;
}

a:hover {
    color: var(--red-hover);
}

:focus-visible {
    outline: 3px solid var(--red);
    outline-offset: 4px;
}

::selection {
    background: var(--red);
    color: var(--white);
}

.wrap {
    width: min(73.125rem, calc(100% - 2 * clamp(1rem, 4vw, 3rem)));
    margin-inline: auto;
}

.skip-link {
    position: absolute;
    z-index: 2;
    inset-block-start: 0.75rem;
    inset-inline-start: 0.75rem;
    transform: translateY(-180%);
    background: var(--white);
    border: 2px solid var(--red);
    padding: 0.5rem 1rem;
}

.skip-link:focus {
    transform: none;
}

.preview-notice {
    background: var(--pale);
    border-block-end: 1px solid var(--line);
    color: var(--muted);
    padding: 0.5rem 1rem;
    font-size: 0.8125rem;
    text-align: center;
}

.header {
    min-height: 9.25rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
    padding-block: 0.75rem;
}

.identity {
    display: inline-flex;
    align-items: center;
    gap: clamp(0.5rem, 2vw, 1.25rem);
    color: var(--ink);
    text-decoration: none;
}

.identity__logo {
    display: block;
    width: clamp(7.5rem, 16vw, 11.5rem);
    height: auto;
}

.identity__name {
    font: 400 clamp(1.125rem, 2.3vw, 1.375rem)/1.35 var(--slab);
}

.identity__name span {
    display: block;
    margin-block-start: 0.25rem;
    color: var(--muted);
    font: 400 0.75rem/1.45 var(--sans);
    letter-spacing: 0.11em;
    text-transform: uppercase;
}

.main-nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: clamp(0.875rem, 3vw, 2rem);
}

.main-nav a {
    display: inline-flex;
    align-items: center;
    min-height: 2.75rem;
    border-block-end: 2px solid transparent;
    color: var(--ink);
    text-decoration: none;
    text-transform: uppercase;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.11em;
}

.main-nav a:hover {
    color: var(--red);
}

.main-nav .main-nav__contact {
    border-block-end-color: var(--red-line);
}

.hero__rubric {
    display: flex;
    align-items: center;
    min-height: 2.25rem;
    padding: 0.4rem 1.25rem;
    background: var(--red);
    color: var(--white);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.hero__photo {
    display: block;
    width: 100%;
    height: clamp(11rem, 20vw, 15.5rem);
    background: var(--pale);
    object-fit: cover;
    object-position: center 54%;
}

.hero__text {
    padding: clamp(2rem, 5vw, 3.5rem) clamp(1rem, 4vw, 3rem);
    background: var(--pale);
    text-align: center;
}

.hero--photo .hero__text {
    position: relative;
    width: calc(100% - clamp(1.5rem, 9vw, 6.875rem));
    margin: clamp(-3.25rem, -4vw, -1.75rem) auto 0;
    padding-block: clamp(1.375rem, 3vw, 2.25rem) 0;
    background: var(--white);
}

.hero h1 {
    margin-block-end: 0.85rem;
    font-size: clamp(1.875rem, 4vw, 2.75rem);
    line-height: 1.24;
    letter-spacing: -0.024em;
    text-wrap: balance;
}

.hero__text > p {
    max-width: 41rem;
    margin-inline: auto;
    color: var(--muted);
}

.team {
    padding-block: clamp(2.375rem, 5vw, 3.25rem) clamp(2.25rem, 4vw, 3.125rem);
    text-align: center;
}

.team__title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(0.5rem, 2vw, 1rem);
    margin-block-end: clamp(1.5rem, 4vw, 2.125rem);
    font: 700 clamp(0.75rem, 2.2vw, 0.875rem)/1.4 var(--sans);
    color: var(--muted);
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.team__title::before, .team__title::after {
    content: '';
    width: clamp(0.75rem, 4vw, 2.125rem);
    height: 1px;
    flex-shrink: 0;
    background: var(--red-line);
}

.team__empty {
    max-width: 34rem;
    margin-inline: auto;
    color: var(--muted);
}

.profiles {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: clamp(1.125rem, 3vw, 2rem);
}

.person {
    min-width: 0;
    overflow-wrap: anywhere;
}

.person__portrait {
    display: block;
    width: min(100%, 11.75rem);
    height: auto;
    aspect-ratio: 1;
    margin: 0 auto 1rem;
    border-radius: 50%;
    background-color: var(--pale);
    object-fit: cover;
}

.person__portrait--sample {
    background-image: url('/assets/portraits.png');
    background-size: 200% 200%;
    background-repeat: no-repeat;
}

.sample-1 { background-position: left top; }
.sample-2 { background-position: right top; }
.sample-3 { background-position: left bottom; }
.sample-4 { background-position: right bottom; }

.person__portrait--initial {
    display: grid;
    place-items: center;
    border: 1px solid var(--line);
    color: var(--red);
    font: 400 clamp(1.75rem, 5vw, 3.25rem)/1 var(--slab);
}

.person h3 {
    font-size: clamp(1.125rem, 2vw, 1.4375rem);
    line-height: 1.35;
    margin-block-end: 0.25rem;
}

.person__role {
    margin-block-end: 0.75rem;
    color: var(--red);
    font-size: 0.875rem;
    font-weight: 700;
    line-height: 1.45;
}

.person__bio {
    max-width: 17rem;
    margin-inline: auto;
    color: var(--muted);
    font-size: 0.9375rem;
    line-height: 1.6;
}

.person__topic {
    display: inline-block;
    margin-block-start: 0.875rem;
    padding-block-start: 0.5rem;
    border-block-start: 1px solid var(--line);
    color: var(--muted);
    font-size: 0.8125rem;
}

.team__contact {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    min-height: 2.75rem;
    margin-block-start: 1.125rem;
    font-size: 0.9375rem;
    font-weight: 700;
}

.team__contact span, .submit-button span {
    font-size: 1.25rem;
    line-height: 1;
}

.contact {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1fr);
    gap: clamp(2rem, 7vw, 5.625rem);
    padding-block: clamp(2rem, 5vw, 3rem);
    border-block-start: 1px solid var(--line);
}

.contact__copy {
    padding-block-start: 0.45rem;
}

.contact__label {
    margin-block-end: 0.75rem;
    color: var(--red);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.contact h2 {
    margin-block-end: 0.875rem;
    font-size: clamp(1.75rem, 3.8vw, 2.375rem);
    line-height: 1.3;
    letter-spacing: -0.025em;
    text-wrap: balance;
}

.contact__copy > p:not(.contact__label) {
    max-width: 28rem;
    color: var(--muted);
}

.contact__preview {
    margin-block-start: 1.25rem;
    padding-block-start: 1rem;
    border-block-start: 1px solid var(--line);
    font-size: 0.875rem;
}

.form-panel {
    padding: clamp(1rem, 3vw, 2rem);
    background: var(--pale);
}

.form-status {
    margin-block-end: 1.15rem;
    padding: 0.75rem 1rem;
    border-inline-start: 3px solid #33623b;
    background: #edf6ec;
    font-size: 0.9375rem;
}

.form-status--error {
    border-inline-start-color: var(--red);
    background: var(--red-pale);
}

.contact-form {
    display: grid;
    gap: 1rem;
}

.field-trap {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}

.field label {
    display: block;
    margin-block-end: 0.35rem;
    font-size: 0.9375rem;
    font-weight: 700;
}

.field label span {
    color: var(--muted);
    font-weight: 400;
}

.field input, .field textarea {
    display: block;
    width: 100%;
    min-height: 2.75rem;
    padding: 0.6rem 0.75rem;
    border: 1px solid var(--input-line);
    border-radius: 0;
    background: var(--white);
    color: var(--ink);
    font: inherit;
}

.field textarea {
    min-height: 8rem;
    resize: vertical;
}

.field [aria-invalid='true'] {
    border-color: var(--red);
}

.field__hint, .field__error, .privacy-note {
    color: var(--muted);
    font-size: 0.875rem;
}

.field__hint, .field__error {
    margin-block-start: 0.35rem;
}

.field__error {
    color: var(--red);
    font-weight: 700;
}

.submit-button {
    justify-self: start;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    min-height: 2.875rem;
    padding: 0.65rem 1.15rem;
    border: 1px solid var(--red);
    border-radius: 0;
    background: var(--red);
    color: var(--white);
    cursor: pointer;
    font: 700 0.9375rem/1.35 var(--sans);
}

.submit-button:hover {
    border-color: var(--red-hover);
    background: var(--red-hover);
}

.footer {
    background: var(--pale);
    border-block-start: 1px solid var(--line);
}

.footer__layout {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem 2rem;
    padding-block: 1.125rem;
    font-size: 0.875rem;
}

.footer__identity > p {
    font-weight: 700;
}

.footer__links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1.25rem;
}

.footer a {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    min-height: 2.75rem;
    color: var(--muted);
}

.footer a:hover {
    color: var(--red);
}

@media (max-width: 48rem) {
    .header {
        min-height: 0;
        flex-wrap: wrap;
        gap: 0.125rem 1.25rem;
        padding-block: 0.5rem 0.875rem;
    }

    .main-nav {
        margin-inline-start: auto;
    }

    .hero--photo .hero__text {
        margin-block-start: -1.75rem;
        padding-inline: clamp(0.5rem, 2.75vw, 1.5rem);
    }

    .hero__text > p {
        font-size: 0.9375rem;
    }

    .profiles {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 1.75rem 1rem;
    }

    .person__portrait {
        width: min(100%, 10rem);
        margin-block-end: 0.75rem;
    }

    .person__bio {
        font-size: 0.875rem;
    }

    .contact {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .contact__copy {
        padding-block-start: 0;
    }

    .footer__layout {
        align-items: flex-start;
        flex-direction: column;
        gap: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
}
