/* SHARED NAV: used on every page (see header.html) */
html { scroll-padding-top: var(--nav-h); }

/* NAV */
nav {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--nav-h);
  background: rgba(16, 32, 26, .82);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

/* the menu pages don't load home.css, which is where the global anchor
   reset lives, so the nav resets its own links */
nav a { color: inherit; text-decoration: none; }

.nav-in {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

nav .logo { display: flex; align-items: center; }

nav .logo img { height: 50px; width: auto; display: block; }

.nav-links { display: flex; align-items: center; gap: 28px; }

.nav-links a {
  font-family: 'Space Mono', monospace;
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--bone-dim);
  transition: color .2s;
}

.nav-links a:hover { color: var(--bone); }

.nav-cta {
  font-family: 'Space Mono', monospace;
  font-size: 12px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--base) !important;
  background: var(--sand);
  padding: 9px 16px;
  border-radius: 100px;
  font-weight: 700;
  transition: background .2s;
}

.nav-cta:hover { background: var(--sand-deep); }

.burger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--bone);
  margin: 4px 0;
  transition: .3s;
}

/* the menu pages open with 88px of header padding, which reads as a gap
   under the sticky nav, so tighten it once the nav is above it */
.menu-page main > .wrap > header { padding-top: 48px; }

@media (max-width: 640px) {
  .nav-links {
    position: fixed;
    inset: var(--nav-h) 0 auto 0;
    flex-direction: column;
    gap: 0;
    background: var(--base2);
    border-bottom: 1px solid var(--line);
    padding: 8px 0;
    transform: translateY(-120%);
    transition: transform .3s;
    align-items: stretch;
  }

  .nav-links.open { transform: translateY(0); }
  .nav-links a { padding: 14px 24px; border-bottom: 1px solid var(--line); }
  .nav-links .nav-cta { margin: 12px 24px; text-align: center; }
  .burger { display: block; }
}

@media print {
  nav { display: none; }
}
