/* Keep layout width steady when the vertical scrollbar appears/disappears */
html {
    scrollbar-gutter: stable;
}
@supports not (scrollbar-gutter: stable) {
    html {
        overflow-y: scroll;
    }
}
body {
    box-sizing: border-box;
}
.site-header {
    border-bottom: 1px solid #6d6d6d;
    margin: 0 0 18px;
    padding: 0;
}
.site-header-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0.25em 20px 0;
}
.site-header .logo {
    text-align: center;
    margin: 0;
    line-height: 0;
}
.site-header .logo a {
    display: inline-block;
    text-decoration: none;
}
.site-logo-img {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 0 auto;
}
.site-tagline {
    margin: 0.2em 0 0.45em;
    padding: 0;
    text-align: center;
    color: #838383;
    font-size: 0.88em;
    line-height: 1.2;
    font-style: italic;
    font-family: Georgia, "Times New Roman", serif;
    text-transform: none;
}
.site-header .header-bottom {
    padding: 0 0 0.55em;
}
.site-header .top-nav {
    position: relative;
}
.site-header .top-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.15em 1.5em;
    justify-content: center;
}
.site-header .top-nav ul li {
    display: inline-block;
}
.site-header .top-nav ul li a {
    position: relative;
    display: inline-block;
    outline: none;
    color: #838383;
    text-decoration: none;
    letter-spacing: 2px;
    font-size: 1em;
    text-transform: uppercase;
    padding: 0.2em 0;
}
.site-header .top-nav ul li a::before {
    color: #000;
    content: attr(data-hover);
    position: absolute;
    left: 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease;
    transform: scale(1.05) translate(6px, -4px) rotate(2deg);
}
.site-header .top-nav ul li a:hover::before,
.site-header .top-nav ul li a:focus::before {
    opacity: 1;
    transform: none;
}
.site-header .top-nav ul li.active a {
    color: #000;
}
.site-header .nav-toggle {
    display: none;
    margin: 0 auto 0.75em;
    padding: 8px 12px;
    border: 1px solid #838383;
    background: #fff;
    border-radius: 4px;
    cursor: pointer;
}
.site-header .nav-toggle-bar {
    display: block;
    width: 22px;
    height: 2px;
    margin: 5px 0;
    background: #555;
}
/* Home: banner as faint background; header + hero sit on top */
.site-home-masthead {
    position: relative;
    max-width: 1100px;
    margin: 0 auto 28px;
    padding: 0 20px;
    box-sizing: border-box;
    border-radius: 6px;
    overflow: hidden;
}
.site-home-masthead__bg {
    position: absolute;
    inset: 0;
    background-image: var(--site-banner-url);
    background-size: cover;
    background-position: center 20%;
    opacity: 0.38;
    pointer-events: none;
}
.site-home-masthead__veil {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(255, 255, 255, 0.92) 0%,
        rgba(255, 255, 255, 0.82) 55%,
        rgba(248, 252, 245, 0.88) 100%
    );
    pointer-events: none;
}
.site-home-masthead__inner {
    position: relative;
    z-index: 1;
    padding: 0.15em 0 0;
}
.site-header--masthead {
    border-bottom: none;
    margin-bottom: 0;
    background: transparent;
}
.site-header--masthead .site-header-inner {
    padding-top: 0.15em;
}
.site-header--masthead .top-nav ul li a {
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.9);
}
.site-header--masthead .site-tagline {
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.85);
}
.hero--on-banner {
    margin-top: 12px;
    margin-bottom: 0;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(197, 221, 184, 0.85);
    backdrop-filter: blur(2px);
}
@media (max-width: 768px) {
    .site-header .nav-toggle {
        display: block;
    }
    .site-header .top-nav ul {
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        margin: 0.5em 0 0;
        padding: 0.5em 0;
        background: #838383;
        border-radius: 4px;
    }
    .site-header .top-nav ul.is-open {
        display: flex;
    }
    .site-header .top-nav ul li {
        display: block;
        text-align: center;
    }
    .site-header .top-nav ul li a {
        color: #fff;
        letter-spacing: 3px;
        padding: 0.55em 1em;
        display: block;
    }
    .site-header .top-nav ul li a::before {
        display: none;
    }
    .site-header .top-nav ul li a:hover,
    .site-header .top-nav ul li.active a {
        color: #000;
        background: rgba(255, 255, 255, 0.25);
    }
    .site-home-masthead {
        padding: 0 12px;
        margin-bottom: 20px;
    }
    .site-home-masthead__bg {
        opacity: 0.28;
    }
    .hero--on-banner {
        padding: 18px 16px;
    }
}
