.navigation {
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    z-index: 100;

    padding: 10px 0;

    display: flex;
    gap: 15px;
    align-items: end;
    justify-content: center;

    background-color: white;
}

.navigation a {
    text-decoration: none;
    color: inherit;
}

.navigation a:hover {
    text-decoration: underline;
}

.navigation h1 {
    font-family: 'PlayfairDisplay';
    font-size: 1.75em;
    font-weight: lighter;
    line-height: 100%;

    -webkit-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

#navigation-home {
    font-size: 2em;
    font-weight: bold;
    margin-right: 5px;
}

/* ── Hamburger button ───────────────────────────────────── */
.navigation__hamburger {
    display: none; /* hidden on desktop */
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);

    flex-direction: column;
    justify-content: center;
    gap: 5px;

    width: 36px;
    height: 36px;
    padding: 6px;
    background: none;
    border: none;
    cursor: pointer;
}

.navigation__hamburger span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: #111;
    transition: opacity 0.2s ease, transform 0.2s ease;
    transform-origin: center;
}

/* ── Inline nav links (desktop) ─────────────────────────── */
.navigation__links {
    display: flex;
    flex-direction: row;
    align-items: flex-end;
    gap: 15px;
}

/* ── Overlay ────────────────────────────────────────────── */
.navigation__overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 200;
    background: rgba(0, 0, 0, 0);
    transition: background 0.3s ease;
}

.navigation__overlay--visible {
    display: block;
    background: rgba(0, 0, 0, 0.35);
}

/* ── Drawer ─────────────────────────────────────────────── */
.navigation__drawer {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 300;
    width: min(320px, 80vw);

    background: #fff;
    box-shadow: 4px 0 24px rgba(0, 0, 0, 0.12);

    display: flex;
    flex-direction: column;
    padding: 2rem 1.75rem;
    box-sizing: border-box;

    transform: translateX(-100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.navigation__drawer--open {
    transform: translateX(0);
}

/* Close button */
.navigation__close {
    align-self: flex-end;
    background: none;
    border: none;
    font-size: 2rem;
    line-height: 1;
    color: #111;
    cursor: pointer;
    padding: 0;
    margin-bottom: 2rem;
    transition: color 0.15s ease;
}

.navigation__close:hover {
    color: #BC1E16;
}

/* Drawer nav links */
.navigation__drawer-links {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.navigation__drawer-links a {
    font-family: 'PlayfairDisplay', 'Georgia', serif;
    font-size: 1.4rem;
    font-weight: 400;
    color: #111;
    text-decoration: none;
    padding: 0.75rem 0;
    border-bottom: 1px solid #eee;
    transition: color 0.15s ease, padding-left 0.15s ease;
}

.navigation__drawer-links a:hover {
    color: #BC1E16;
    padding-left: 0.35rem;
}

/* ── Responsive breakpoint ──────────────────────────────── */
@media (max-width: 1000px) {
    /* Show hamburger, hide inline links */
    .navigation__hamburger {
        display: flex;
    }

    .navigation__links {
        display: none;
    }

    /* Keep the bar centred on just the home link */
    .navigation {
        justify-content: center;
    }
}
