/* ==========================================================================
   Site header & navigation
   ========================================================================== */

.site-header {
    text-align: center;
    padding: 34px 0 0;
    background-color: var(--cream);
}

/* Legacy selector kept so older markup still lands on the same styling */
header {
    text-align: center;
}

.logo-container {
    padding-bottom: 26px;
}

.nav-bar {
    width: 90%;
    max-width: var(--wrap);
    margin: 0 auto;
    border-top: 1px solid var(--rule-strong);
    border-bottom: 1px solid var(--rule-strong);
    position: relative;
}

.nav-list {
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0;
    padding: 0;
}

.nav-list li {
    flex: 1;
}

.nav-list a {
    font-family: var(--body);
    letter-spacing: 4px;
    text-transform: uppercase;
    font-size: 0.78rem;
    text-decoration: none;
    color: var(--ink-muted);
    transition: color 0.3s ease;
    display: block;
    padding: 15px 4px;
}

.nav-list a:hover {
    color: var(--ink);
    text-decoration: underline;
    text-underline-offset: 6px;
    text-decoration-thickness: 1px;
}

/* Current page marker */
.nav-list a[aria-current="page"] {
    color: var(--ink);
    text-decoration: underline;
    text-underline-offset: 6px;
    text-decoration-thickness: 1px;
}

/* The "Book" item is the conversion target — give it weight */
.nav-list a.nav-cta {
    color: var(--moss-dark);
    font-weight: 500;
}

.nav-toggle {
    display: none;
    background: none;
    border: 0;
    font-family: var(--body);
    text-transform: uppercase;
    letter-spacing: 4px;
    font-size: 0.78rem;
    color: var(--ink);
    cursor: pointer;
    padding: 15px 10px;
    width: 100%;
}

.nav-toggle .nav-toggle-icon {
    margin-right: 10px;
}

/* Seven items with wide letter-spacing stop fitting well before the usual
   tablet breakpoint, so we switch to the menu button early. */
@media (max-width: 940px) {
    .site-header {
        padding-top: 20px;
    }

    .logo-container {
        padding-bottom: 16px;
    }

    .logo-container h1,
    .logo-container .wordmark {
        letter-spacing: 0.34em;
    }

    .logo-container .tagline {
        font-size: 0.64rem;
        letter-spacing: 0.24em;
        margin-top: 4px;
    }

    .nav-toggle {
        display: block;
        padding: 13px 10px;
        min-height: 46px;
    }

    .nav-list {
        display: none;
        flex-direction: column;
        border-top: 1px solid var(--rule);
    }

    .nav-list.is-open {
        display: flex;
    }

    .nav-list li {
        width: 100%;
        border-bottom: 1px solid var(--rule);
    }

    .nav-list li:last-child {
        border-bottom: 0;
    }

    .nav-list a {
        padding: 14px 8px;
    }
}
