/* Shared interaction and accessibility layer */
:where(a, button):focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 4px;
}

.nav-toggle {
  display: none;
  appearance: none;
  border: 1px solid var(--rule);
  border-radius: 999px;
  background: var(--bg-card, var(--bg));
  color: var(--ink);
  font: inherit;
  font-size: 0.85rem;
  padding: 0.55rem 0.9rem;
  cursor: pointer;
}

@media (max-width: 700px) {
  .nav-inner {
    position: relative;
    align-items: center;
    gap: 1rem;
  }

  .nav-brand {
    flex: 1 1 auto;
    min-width: 0;
    white-space: nowrap;
  }

  .nav-toggle {
    display: inline-flex;
    flex: 0 0 auto;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: calc(100% + 1px);
    left: 0;
    right: 0;
    z-index: 60;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.75rem 1.5rem 1rem;
    background: rgba(244, 239, 230, 0.98);
    border-bottom: 1px solid var(--rule);
    box-shadow: 0 16px 30px rgba(26, 22, 18, 0.08);
  }

  .nav-links.is-open {
    display: flex;
  }

  .nav-links li,
  .nav-links a {
    width: 100%;
  }

  .nav-links a {
    display: block;
    padding: 0.8rem 0;
    font-size: 1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1 !important;
    transform: none !important;
  }
}
