.site-nav {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 1.5rem;
  background: var(--color-surface);
  box-shadow: 0 2px 12px rgba(61, 31, 26, 0.1);
}

.site-nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.site-nav a {
  color: var(--color-text);
  text-decoration: none;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  transition: color 0.2s ease;
}

.site-nav-rsvp {
  background: var(--color-gold-vivid);
  color: var(--color-text);
  border: none;
  border-radius: 4px;
  padding: 0.5rem 1.1rem;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: bold;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: background 0.2s ease;
}

.site-nav a:hover {
  color: var(--color-gold);
}

.site-nav-rsvp:hover {
  background: var(--color-gold-hover);
}

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

.site-nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--color-text);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.site-nav-toggle.is-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.site-nav-toggle.is-open span:nth-child(2) {
  opacity: 0;
}

.site-nav-toggle.is-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Breakpoint is intentionally not the shared 640px/900px breakpoints:
   the nav wraps based on link content width, not device class. */
@media (max-width: 700px) {
  .site-nav-toggle {
    display: flex;
  }

  .site-nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--color-surface);
    box-shadow: 0 8px 20px rgba(61, 31, 26, 0.12);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }

  .site-nav-links.is-open {
    max-height: 400px;
  }

  .site-nav-links a {
    padding: 0.9rem 1.5rem;
    border-bottom: 1px solid var(--color-border);
  }

  .site-nav-rsvp {
    margin: 0.75rem 1.5rem;
    width: calc(100% - 3rem);
  }
}
