:root {
    color-scheme: light;
    --green: #176c3a;
    --gold: #f0b429;
    --ink: #1e2a26;
    --muted: #5d6a64;
    --page: #ffffff;
    --panel: #ffffff;
    --nav-height: 58px;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.6;
    color: var(--ink);
    background: var(--page);
}

body.menu-open {
    overflow-x: hidden;
}

.mobile-menu-toggle {
    display: none;
}

.site-nav {
    width: 100%;
    min-height: var(--nav-height);
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    border-bottom: 1px solid rgba(30, 42, 38, 0.12);
}

.site-nav > ul {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(18px, 4vw, 42px);
    list-style: none;
    margin: 0;
    padding: 0 20px;
}

.site-nav a,
.menu-trigger {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    color: var(--ink);
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-decoration: none;
    text-transform: uppercase;
    font-family: Arial, Helvetica, sans-serif;
}

.menu-trigger {
    border: 0;
    background: transparent;
    padding: 0;
    cursor: pointer;
}

.site-nav a:hover,
.site-nav a:focus-visible,
.site-nav a[aria-current="page"],
.menu-trigger:hover,
.menu-trigger:focus-visible {
    color: var(--green);
}

.has-menu {
    position: relative;
}

.has-menu > .menu-trigger::after {
    content: " ▾";
    font-size: 0.72rem;
}

.sub-menu {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    min-width: 180px;
    display: none;
    flex-direction: column;
    margin: 0;
    padding: 8px 0;
    list-style: none;
    background: #ffffff;
    box-shadow: 0 10px 28px rgba(30, 42, 38, 0.16);
    border: 1px solid rgba(30, 42, 38, 0.08);
    z-index: 40;
}

.has-menu.menu-open .sub-menu {
    display: block;
}

.sub-menu a {
    display: block;
    min-height: 36px;
    padding: 0 14px;
    white-space: nowrap;
}

@media (max-width: 560px) {
    .mobile-menu-toggle {
        position: fixed;
        z-index: 30;
        top: 12px;
        left: 12px;
        width: 44px;
        height: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        padding: 0;
        border: 1px solid rgba(30, 42, 38, 0.18);
        background: #ffffff;
        cursor: pointer;
    }

    .mobile-menu-toggle span,
    .mobile-menu-toggle::before,
    .mobile-menu-toggle::after {
        width: 22px;
        height: 2px;
        display: block;
        background: var(--ink);
        content: "";
        transition: transform 180ms ease, opacity 180ms ease;
    }

    .mobile-menu-toggle {
        flex-direction: column;
        gap: 5px;
    }

    body.menu-open .mobile-menu-toggle span {
        opacity: 0;
    }

    body.menu-open .mobile-menu-toggle::before {
        transform: translateY(7px) rotate(45deg);
    }

    body.menu-open .mobile-menu-toggle::after {
        transform: translateY(-7px) rotate(-45deg);
    }

    .site-nav {
        position: fixed;
        z-index: 20;
        top: 0;
        bottom: 0;
        left: 0;
        width: 34vw;
        min-width: 132px;
        max-width: 190px;
        min-height: 100vh;
        align-items: flex-start;
        justify-content: flex-start;
        padding-top: 72px;
        box-shadow: 12px 0 28px rgba(30, 42, 38, 0.18);
        transform: translateX(-105%);
        transition: transform 220ms ease;
    }

    body.menu-open .site-nav {
        transform: translateX(0);
    }

    .site-nav > ul {
        width: 100%;
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        gap: 2px;
        padding: 0;
    }

    .site-nav a,
    .menu-trigger {
        width: 100%;
        min-height: 42px;
        padding: 0 14px;
        font-size: 0.78rem;
        letter-spacing: 0.02em;
        text-align: left;
    }

    .has-menu {
        width: 100%;
    }

    .sub-menu {
        position: static;
        min-width: auto;
        box-shadow: none;
        border: 0;
        padding: 0;
        background: transparent;
    }

    .sub-menu li {
        padding-left: 18px;
    }
}
