.menu {
  position: sticky;
  top: 0;
  height: 45px;
  width: 100%;
  background-color: var(--darkblue);
  z-index: 1;
}

.menu a {
  color: var(--white);
  text-decoration: none;
}

.menu span {
  color: var(--white);
  text-decoration: none;
}

.menu-content {
  height: 45px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.menu .menu-btn {
  font-size: 1em;
  cursor: pointer;
}

.overlay {
  color: var(--white);
  height: 0;
  width: 100%;
  position: fixed;
  z-index: 1;
  top: 0;
  left: 0;
  background-color: var(--darkblue);
  overflow-y: hidden;
  transition: 500ms cubic-bezier(.45,.01,.5,.91);
}

.overlay-content {
  margin-top: 2em;
  padding-bottom: 2em;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  grid-row-gap: 3em;
}

.overlay-content > div {
  border-left: 1px solid var(--white);
}

.overlay-content > div > * {
  margin-left: 1em;
}

.menu-list p {
  font-weight: 700;
  text-transform: lowercase;
  font-variant: small-caps;
  margin-bottom: 0.5em;
}

.menu-list a {
  padding-right: 1em;
}

.menu-list a:not(:last-of-type) {
  margin-bottom: 0.5em;
}

.overlay a {
  display: contents;
  text-decoration: none;
  color: var(--white);
  display: block;
  transition: 500ms cubic-bezier(.45,.01,.5,.91);
}

.overlay a:hover, .overlay a:focus, .menu a:hover {
  color: var(--primaryblue);
  transition: 500ms cubic-bezier(.45,.01,.5,.91);
}

.overlay .closebtn {
  position: relative;
  font-size: 2em;
  cursor: pointer;
}

.menu-list.blank-1 {
  grid-column: 1;
  grid-row: 2;
  border-left: 0px;
}

.menu-list.blank-2 {
  grid-column: 1;
  grid-row: 3;
  border-left: 0px;
}

/*---------------- MOBILE -------------------*/

.mobile-content > button {
  font-weight: bold;
  padding: 0;
  margin-bottom: 0;
  margin-top: 1em;
  box-sizing: content-box;
}

.mobile-content > * {
  font-size: 1em;
  font-family: "Alegreya Sans";
  letter-spacing: 0.05em;
  background: none;
}

.mobile-content a {
  padding-bottom: 0.5em;
}

.mobile-content {
  margin-top: 1em;
}

@media (max-width: 780px) {
  .overlay-content {
    margin-top: 2em;
    padding-bottom: 2em;
    display: grid;
    grid-template-columns: repeat(2, minmax(250px, 1fr));
    grid-row-gap: 3em;
  }

  .menu-list a {
    padding-right: 1em;
  }
}

@media (min-width: 581px) {
  #mobile-nav {
    display: none;
  }
}

@media (max-width: 580px) {

  #desktop-nav {
    display: none;
  }

  #mobile-nav {
    display: block;
  }
}

@media (max-width: 840px) {
  .menu-list.blank-1 {
    display: none;
  }

  .menu-list.blank-2 {
    display:none;
  }
}

@media screen and (max-height: 450px) {
  .overlay .menu-list {
    font-size: 0.75em;
    margin-bottom: 1em;
    line-height: 1.15em;
  }
}

.currentpage {
  color: var(--primaryblue);
}
