/*
 * public/site/nav.css — the floating top bar created by public/site/nav.js.
 *
 * Hidden by default; nav.js adds `.is-visible` when the visitor scrolls up
 * below the hero. Colours match the page (#15151A ground, cream text).
 * The inner row uses the same max-width and side padding as the page's own
 * content column, so the logo lines up with the content beneath it.
 */
#site-navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(21, 21, 26, 0.94);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 252, 246, 0.12);
  transform: translateY(-100%);
  visibility: hidden;                 /* also removes it from the tab order while hidden */
  transition: transform .22s ease, visibility 0s linear .22s;
}
#site-navbar.is-visible {
  transform: translateY(0);
  visibility: visible;
  transition: transform .22s ease, visibility 0s;
}

.site-navbar-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 10px clamp(32px, 6vw, 40px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

/* Slightly smaller logo than the page-top nav, so the bar stays compact. */
.site-navbar-inner > a[href="#top"] {
  font-size: 22px !important;
}

@media (prefers-reduced-motion: reduce) {
  #site-navbar, #site-navbar.is-visible { transition: none; }
}
