nav {
  background-color: var(--nav-color);
  border-bottom: 1px solid var(--hover-color);
  z-index: 10;
}
nav ul {
  display: flex;
  list-style: none;
}
nav li {
  display: flex;
}
nav a {
  text-decoration: none;
  padding: 1em 2em;
  transition: background-color 150ms ease-in-out;
}
nav a:hover {
  background-color: var(--hover-color);
}
nav .home-li {
  margin-right: auto;
}
nav .current-li {
  border-bottom: 1px solid var(--font-color);
}
nav .accent-li {
  background-color: var(--accent-link);
}
#open-sidebar,
#close-sidebar {
  border: none;
  background: none;
  font-size: 1.3em;
  color: var(--font-color);
  padding: 1em;
  display: none;
  cursor: pointer;
}
#open-sidebar {
  margin-left: auto;
}
#overlay {
  background-color: rgba(0, 0, 0, 0.5);
  inset: 0;
  position: fixed;
  z-index: 9;
  display: none;
}
@media screen and (max-width: 700px) {
  nav {
    position: fixed;
    right: -100%;
    top: 0;
    height: 100dvh;
    width: min(15em, 70%);
    border-left: 1px solid var(--hover-color);
    transition: right 300ms ease-in-out;
  }
  nav ul {
    flex-direction: column;
  }
  nav .home-li {
    margin-right: unset;
  }
  nav .a {
    width: 100%;
    padding-left: 2.5em;
  }
  .show {
    right: 0;
  }
  .show ~ #overlay {
    display: block;
  }
  #open-sidebar,
  #close-sidebar {
    display: block;
  }
}
