@font-face {
    font-family: "Didot";
    src: url("./fonts/Didot Italic.ttf");
}

:root {
    --green-bg: #8fa88d;
    --green-dark: #517d50;
    --green-text: #2a3d29;
    --green-button-hover: #2a3d29;
    --blue-bg: #98bcce;
    --blue-dark: #355173;
    --blue-text: #383f52;
    --blue-button-hover: #383f52;
    --white: #ffffff;
    --muted: #737373;
}

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

html {
    height: 100%;
}

body {
    color: var(--muted);
    display: flex;
    flex-direction: column;
    font-family: Raleway, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    margin: 0;
    min-height: 100%;
    min-height: 100dvh;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    display: block;
    max-width: 100%;
}

.hero {
    background: var(--white);
    display: flex;
    flex-shrink: 0;
    justify-content: center;
    width: 100%;
}

.hero-frame {
    max-width: 100%;
    position: relative;
}

.hero-image {
    display: block;
    height: auto;
    max-height: 450px;
    max-width: 100%;
    width: auto;
}

.hero-overlay {
    align-items: center;
    background: linear-gradient(
        to bottom,
        rgba(255, 255, 255, 0.72) 0%,
        rgba(255, 255, 255, 0.88) 100%
    );
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    inset: 0;
    justify-content: center;
    line-height: normal;
    padding: 3rem 1.5rem;
    position: absolute;
    text-align: center;
}

.hero-title {
    color: #474747;
    font-family: "Playfair Display", serif;
    font-size: clamp(2rem, 5vw, 3.25rem);
    font-weight: 400;
    letter-spacing: 0.04em;
    line-height: 1.2;
    margin: 0;
}

.hero-subtitle {
    color: var(--muted);
    font-size: clamp(0.95rem, 2vw, 1.125rem);
    font-weight: 300;
    letter-spacing: 0.18em;
    line-height: 1.5;
    margin: 0;
    text-transform: uppercase;
}

.split {
    display: grid;
    flex: 1;
    grid-template-columns: 1fr 1fr;
    min-height: 0;
}

.person {
    align-items: center;
    display: flex;
    justify-content: center;
    padding: 3rem 2rem;
}

.person-brandon {
    background: var(--green-bg);
}

.person-rachel {
    background: var(--blue-bg);
}

.person-inner {
    align-items: center;
    display: flex;
    flex-direction: column;
    max-width: 22rem;
    text-align: center;
}

.photo-wrap {
    border: 4px solid rgba(255, 255, 255, 0.55);
    border-radius: 50%;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
    height: 11rem;
    margin-bottom: 1.75rem;
    overflow: hidden;
    width: 11rem;
}

.photo-wrap img {
    height: 100%;
    object-fit: cover;
    object-position: center top;
    width: 100%;
}

.person-name {
    color: var(--white);
    font-family: "Playfair Display", serif;
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    font-weight: 400;
    letter-spacing: 0.02em;
    margin: 0 0 1rem;
}

.tagline {
    color: var(--white);
    font-size: clamp(0.95rem, 1.6vw, 1.05rem);
    font-weight: 300;
    letter-spacing: 0.04em;
    line-height: 1.7;
    margin: 0 0 2rem;
    opacity: 0.95;
}

.person-brandon .tagline {
    color: var(--green-text);
}

.person-rachel .tagline {
    color: var(--blue-text);
}

.cta {
    background: var(--white);
    border: 1px solid transparent;
    border-radius: 999px;
    cursor: pointer;
    display: inline-block;
    font-family: Didot, serif;
    font-size: 1rem;
    letter-spacing: 0.06em;
    padding: 0.85rem 2rem;
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.2s ease;
}

.cta:hover,
.cta:focus-visible {
    transform: translateY(-1px);
}

.person-brandon .cta {
    color: var(--green-dark);
}

.person-brandon .cta:hover,
.person-brandon .cta:focus-visible {
    background: var(--green-button-hover);
    color: var(--white);
}

.person-rachel .cta {
    color: var(--blue-dark);
}

.person-rachel .cta:hover,
.person-rachel .cta:focus-visible {
    background: var(--blue-button-hover);
    color: var(--white);
}

.footer {
    background: #f7f7f7;
    color: #474747;
    flex-shrink: 0;
    font-family: "Playfair Display", serif;
    font-size: 0.95rem;
    letter-spacing: 0.04em;
    padding: 1.25rem 1.5rem;
    text-align: center;
}

@media screen and (max-width: 768px) {
    .split {
        grid-template-columns: 1fr;
        grid-template-rows: 1fr 1fr;
    }

    .person {
        padding: 3rem 1.5rem 3.5rem;
    }

    .hero-overlay {
        padding: 2.5rem 1.25rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .cta {
        transition: none;
    }

    .cta:hover,
    .cta:focus-visible {
        transform: none;
    }
}
