body {
    margin: 0;
    background-color: #ffffff;
}

/* Banner: full-bleed artwork; background cover crops the white margins baked into banner.png */
.banner {
    display: block;
    width: 100%;
    aspect-ratio: 2172 / 480;
    background: #F5F0E6 url("./img/banner.jpg") center / cover no-repeat;
}

/* Nav overlaps the bottom of the banner, then sticks to the top on scroll */
.nav {
    position: sticky;
    top: 0;
    z-index: 10;
    margin-top: -3.5rem;
    height: 3.5rem;
    background-color: rgba(245, 240, 230, 0.7);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    border-top: 1px solid rgba(134, 91, 28, 0.25);
    border-bottom: 1px solid rgba(134, 91, 28, 0.25);
}

.nav ul {
    display: flex;
    height: 100%;
    margin: 0;
    padding: 0;
    list-style-type: none;
}

.nav li {
    display: flex;
    flex: 1;
    color: #865b1c;
}

.nav > ul > li > a {
    display: flex;
    flex: 1;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: inherit;
}
.nav > ul > li > a:hover {
    color: white;
    background-color: rgba(196, 163, 115, 0.85);
}

/* Phones: taller banner (crops the sides), nav sits below it instead of overlapping */
@media (max-width: 700px) {
    .banner {
        aspect-ratio: 2.2 / 1;
        /* scale so the artwork (480 of the 724px height) fills the box, hiding the white bands */
        background-size: auto 151%;
    }
    .nav {
        margin-top: 0;
        height: 3rem;
        background-color: rgba(245, 240, 230, 0.9);
    }
    .nav ul {
        overflow-x: auto;
        scrollbar-width: none;
    }
    .nav li {
        flex: 1 0 auto;
    }
    .nav > ul > li > a {
        padding: 0 0.5rem;
        font-size: 0.8rem;
        white-space: nowrap;
    }
    .content {
        padding: 1.5rem 1rem 3rem;
    }
}

.current-page a {
    font-weight: bold;
}

.content {
    max-width: 48rem;
    margin: 0 auto;
    padding: 2rem 1.5rem 4rem;
    color: #7A5C33;
    font-family: Georgia, "Times New Roman", serif;
    line-height: 1.7;
}
.content-header {
    text-align: center;
}
.content h1 {
    color: #865b1c;
    letter-spacing: 0.05em;
}
.content h2 {
    margin-top: 2.5rem;
    color: #865b1c;
    font-weight: normal;
    border-bottom: 1px solid rgba(134, 91, 28, 0.25);
    padding-bottom: 0.3rem;
}

/* Email call-to-action */
.cta {
    text-align: center;
    margin-top: 1.5rem;
}
.cta-button {
    display: inline-block;
    margin: 0.25rem;
    padding: 0.75rem 2rem;
    border-radius: 2rem;
    background-color: #865b1c;
    color: #ffffff;
    text-decoration: none;
    letter-spacing: 0.03em;
}
.cta-button:hover {
    background-color: #c4a373;
}
.cta-address {
    margin-top: 0.75rem;
    user-select: all;
}

.content li {
    margin-bottom: 0.5rem;
}
.tagline {
    text-align: center;
    font-style: italic;
    color: #865b1c;
}
.pinyin {
    font-size: 0.6em;
    font-weight: normal;
    opacity: 0.65;
}
.attribution {
    text-align: right;
    font-style: italic;
}
.content a:not(.cta-button) {
    color: #865b1c;
}

/* Headshot */
.headshot {
    flex-shrink: 0;
    background-color: #F5F0E6;
    border: 1px solid rgba(134, 91, 28, 0.25);
}
.headshot-large {
    width: 12rem;
    height: 18rem;
    object-fit: cover;
    border-radius: 0.5rem;
}
.team {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}
.team .headshot {
    margin-top: 1rem;
}
@media (max-width: 700px) {
    .team {
        flex-direction: column;
    }
}
