:root {
  color-scheme: dark;
}

body {
  min-width: 320px;
}

.nav-toggle {
  display: none;
  width: 2.75rem;
  height: 2.75rem;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  color: var(--foreground);
  cursor: pointer;
}

.nav-toggle svg {
  width: 1.25rem;
  height: 1.25rem;
}

.mobile-nav {
  position: absolute;
  z-index: 40;
  top: 100%;
  right: 1rem;
  left: 1rem;
  padding: 0.75rem;
  border: 1px solid var(--border);
  border-radius: 1rem;
  background: var(--background);
  box-shadow: 0 1rem 2rem rgb(0 0 0 / 35%);
}

.mobile-nav a {
  display: block;
  padding: 0.75rem;
  color: var(--foreground);
}

.mobile-nav a:hover,
.mobile-nav a:focus-visible {
  border-radius: 0.5rem;
  background: var(--secondary);
}

@media (max-width: 767px) {
  .nav-toggle {
    display: inline-flex;
  }
}

@media (min-width: 768px) {
  .mobile-nav {
    display: none !important;
  }
}
