/* Shared homepage header / footer chrome */

.home-header,
.home-footer {
    font-family: Georgia, "Times New Roman", serif;
}

.home-header {
    padding: 14px 4%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
    background: #f8f7f4;
    color: #08284b;
}

.home-brand {
    display: flex;
    align-items: center;
    color: inherit;
    text-decoration: none;
}

.home-brand-mark {
    width: auto;
    height: 70px;
    max-width: 400px;
    overflow: hidden;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.home-brand-mark img {
    display: block;
    width: auto;
    height: 100%;
    max-width: 100%;
    object-fit: contain;
}

.home-nav {
    display: flex;
    gap: 26px;
    align-items: center;
    flex-wrap: wrap;
}

.home-nav a {
    font-size: 12px;
    padding: 7px 0;
    border-bottom: 2px solid transparent;
    color: inherit;
    text-decoration: none;
    letter-spacing: .04em;
}

.home-nav a:hover,
.home-nav a.active {
    border-color: #bd870d;
}

.home-footer {
    background: #08284b;
    color: #fff;
    padding: 24px;
    text-align: center;
    font-size: 14px;
    line-height: 1.6;
}

.home-header a:focus-visible,
.home-nav a:focus-visible,
.home-footer a:focus-visible {
    outline: 3px solid #e0a629;
    outline-offset: 4px;
}

@media (max-width: 1000px) {
    .home-header {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }

    .home-brand {
        justify-content: center;
    }

    .home-nav {
        justify-content: center;
        gap: 14px 18px;
        max-width: 100%;
    }
}

@media (max-width: 650px) {
    .home-header {
        padding: 16px 4% 14px;
        gap: 10px;
    }

    .home-nav {
        gap: 8px 14px;
        justify-content: center;
    }

    .home-nav a {
        font-size: 11px;
        padding: 5px 0;
        letter-spacing: .03em;
    }

    .home-brand-mark {
        height: 56px;
        max-width: 260px;
    }

    .home-footer {
        padding: 22px 16px;
        font-size: 13px;
        line-height: 1.55;
        word-break: break-word;
    }
}

@media (max-width: 420px) {
    .home-nav a {
        font-size: 10px;
        letter-spacing: .02em;
    }
}
