/* ============================================================
   SITE NAVBAR
   The one navbar used by every page on daterhythm.com. The markup
   lives in scripts/sync-site-nav.py. This file stands alone, so the
   blog pages, which do not load style.css, render it the same way.
   ============================================================ */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 16px 0;
  background-color: rgba(26, 43, 29, 0.95);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  transition: box-shadow 0.3s ease;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  line-height: 1.5;
}

.navbar.is-scrolled {
  box-shadow: 0 2px 20px rgba(0,0,0,0.15);
}

.navbar a { text-decoration: none; }

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 48px;
}

.nav-logo {
  position: relative;
  z-index: 1001;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.nav-logo-icon {
  display: block;
  width: 36px;
  height: 36px;
  border-radius: 8px;
}

.nav-wordmark {
  font-family: 'Fraunces', serif;
  font-weight: 450;
  font-size: 22px;
  letter-spacing: 0.5px;
  font-variation-settings: 'opsz' 72, 'SOFT' 30, 'WONK' 0;
  color: #FFFFFF;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-link {
  font-size: 15px;
  font-weight: 500;
  color: #FFFFFF;
  opacity: 0.85;
}

.nav-link:hover { opacity: 1; }

.nav-buttons {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: 99px;
  border: 1.5px solid rgba(255,255,255,0.4);
  background-color: transparent;
  color: #FFFFFF;
  font-size: 16px;
  font-weight: 600;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  padding: 0;
  border: none;
  background: none;
  cursor: pointer;
  z-index: 1001;
}

.hamburger-line {
  display: block;
  width: 24px;
  height: 2px;
  background-color: #FFFFFF;
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav-hamburger.is-active .hamburger-line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-hamburger.is-active .hamburger-line:nth-child(2) {
  opacity: 0;
}
.nav-hamburger.is-active .hamburger-line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 991px) {
  .nav-menu, .nav-buttons { display: none !important; }
  .nav-hamburger { display: flex; }

  .nav-menu.is-open {
    display: flex !important;
    flex-direction: column;
    /* The navbar's backdrop filter makes it the containing block for this
       fixed panel, so the height is set from the viewport, not from bottom. */
    position: fixed;
    top: 0; left: 0; right: 0;
    height: 100vh;
    height: 100dvh;
    box-sizing: border-box;
    background-color: #1A2B1D;
    padding: 100px 48px 48px;
    gap: 24px;
    z-index: 999;
  }

  .nav-menu.is-open .nav-link {
    font-size: 24px;
    opacity: 1;
  }
}

@media (max-width: 479px) {
  .nav-container { padding: 0 20px; }
}
