/* Phone menu: the button and the slide-in drawer, shared by every page with the site header (drawer.js runs it) */
.menu-btn {
  display: none;
  background: none;
  border: 0;
  font-size: 26px;
  cursor: pointer;
  color: var(--ink);
}

@media (max-width: 1023px) {
  .menu-btn {
    display: inline-grid;
  }
}

#mobile a[aria-current="page"] {
  color: var(--indigo);
}

#mobile {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 60;
  width: min(420px, 100%);
  background: var(--paper);
  color: var(--ink);
  transform: translateX(105%);
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
  display: flex;
  flex-direction: column;
  padding: 28px;
  border-left: 1px solid var(--line);
  box-shadow: -20px 0 50px rgba(21, 26, 34, 0.12);
  visibility: hidden;
  transition:
    transform 0.6s cubic-bezier(0.22, 1, 0.36, 1),
    visibility 0s linear 0.6s;
}

#mobile.open {
  transform: translateX(0);
  visibility: visible;
  transition-delay: 0s;
}

#mobile a {
  font-family: "Brygada 1918", serif;
  font-size: 32px;
  text-decoration: none;
  color: var(--ink);
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
}

#mobile .top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 26px;
}

#mobile .brand {
  color: var(--ink);
  border-bottom: 0;
  padding: 0;
}

#mobile .brand img {
  height: 30px;
  width: auto;
  display: block;
}

#mobile .close {
  background: none;
  border: 0;
  color: var(--ink);
  font-size: 30px;
  cursor: pointer;
}

.menu-btn,
#mobile .close {
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 12px;
  font-size: 0;
}

#mobile .close {
  display: inline-grid;
}

.menu-btn:focus-visible,
#mobile .close:focus-visible {
  outline: 2px solid var(--coral);
  outline-offset: 2px;
}
