:root {
    --nav-ink: #141516;
    --nav-muted: #4f5662;
    --nav-line: rgba(20, 21, 22, 0.1);
    --nav-surface: rgba(255, 255, 255, 0.86);
    --nav-accent: #0d6efd;
}

body {
    margin: 0;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 1200;
    background: var(--nav-surface);
    border-bottom: 0.0625rem solid var(--nav-line);
    backdrop-filter: blur(0.625rem);
}

.site-nav {
    width: 100%;
    padding: 0.6rem 2.5vw;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    font-family: "Trebuchet MS", "Gill Sans", "Verdana", sans-serif;
}

.site-nav a {
    color: var(--nav-ink);
    text-decoration: none;
    font-size: 0.95rem;
}

.site-nav a:hover {
    color: var(--nav-accent);
}

.brand {
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    line-height: 0;
    padding: 0;
}

.nav-logo {
    display: block;
    width: 1.6vw;
    height: auto;
}

@media (max-width: 47.5rem) {
    .nav-logo {
        width: 4.4vw;
    }
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.nav-toggle {
    display: none;
    border: none;
    background: transparent;
    padding: 0.35rem;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    flex-direction: column;
}

.nav-toggle-bar {
    display: block;
    width: 1.5rem;
    height: 0.12rem;
    background: var(--nav-ink);
    border-radius: 999px;
}

.nav-backdrop {
    display: none;
}

.nav-close {
    display: none;
    align-self: flex-end;
    border: none;
    background: transparent;
    font-size: 1.5rem;
    line-height: 1;
    color: var(--nav-ink);
}

.nav-links .dropdown {
    position: relative;
}

.site-nav .dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 11rem;
    padding: 0.5rem 0;
    margin-top: 0.5rem;
    background: #fff;
    border: 0.0625rem solid var(--nav-line);
    border-radius: 0.5rem;
    box-shadow: 0 0.75rem 1.5rem rgba(12, 18, 28, 0.12);
    z-index: 1400;
}

.site-nav .dropdown-menu.show {
    display: block;
}

main {
    flex: 1;
    min-height: 0;
    overflow: hidden;
}

.site-footer {
    border-top: 0.0625rem solid var(--nav-line);
    padding: 1.5rem;
    text-align: center;
    font-size: 0.9rem;
    color: var(--nav-muted);
    font-family: "Trebuchet MS", "Gill Sans", "Verdana", sans-serif;
    background: rgba(255, 255, 255, 0.8);
}

@media (max-width: 47.5rem) {
    body {
        overflow: auto;
    }

    main {
        overflow: auto;
    }

    .site-nav {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 1rem;
    }

    .nav-toggle {
        display: inline-flex !important;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: 0;
        height: 100dvh;
        width: min(80vw, 20rem);
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
        padding: 3rem 1.25rem 1.5rem;
        background: #fff;
        box-shadow: -0.5rem 0 1.5rem rgba(15, 23, 42, 0.18);
        transform: translateX(110%);
        transition: transform 0.25s ease;
        z-index: 1400;
        overflow-y: auto;
    }

    .nav-links.is-open {
        transform: translateX(0);
    }

    .nav-close {
        display: inline-flex;
        position: absolute;
        top: 0.75rem;
        right: 0.75rem;
        padding: 0.25rem;
    }

    .nav-backdrop {
        display: block !important;
        position: fixed;
        inset: 0;
        background: rgba(15, 23, 42, 0.45);
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.25s ease;
        z-index: 1300;
    }

    .nav-backdrop.is-open {
        opacity: 1;
        pointer-events: auto;
    }

    .nav-links .dropdown-menu {
        position: static;
        box-shadow: none;
        padding-left: 0.75rem;
    }
}
