.nav-active {
  display: none;
}

.nav-active:checked ~ .nav-underlay {
  display: block;
}

.nav-active:checked ~ .nav .nav__mobile {
  display: flex;
}

@media(min-width: 64em) {

  .nav-active:checked ~ .nav-underlay,
  .nav-active:checked ~ .nav .nav__mobile {
    display: none;
  }

}

.nav-underlay {
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  background: rgba(var(--rgb-stone), 0.9);
  bottom: 0;
  display: none;
  left: 0;
  position: fixed;
  right: 0;
  top: 0;
  z-index: 101;
}

@media(min-width: 64em) {

  .nav-underlay {
    display: none;
  }

}

.nav {
  display: flex;
  justify-content: center;
  pointer-events: none;
  position: fixed;
  top: 0.5em;
  width: 100%;
  z-index: 102;
}

.nav__container {
  background: var(--color-white);
  border-radius: 1.2625em;
  box-shadow:
    0 0 0 1px rgba(var(--rgb-black), 0.02),
    0 0.2em 1.2em -0.4em rgba(var(--rgb-black), 0.2),
    0 0.4em 2.0em -0.8em rgba(var(--rgb-black), 0.3),
    0 0.4em 0.4em -0.8em rgba(var(--rgb-black), 0.4),
    0 0.8em 0.8em -1.2em rgba(var(--rgb-black), 0.5),
    0 1.2em 1.2em -1.6em rgba(var(--rgb-black), 0.6)
  ;
  display: flex;
  flex-direction: column;
  margin-left: 0.5em;
  margin-right: 0.5em;
  width: min(100%, 20em);
}

.nav__content {
  align-items: center;
  display: flex;
  gap: 1.7em;
  justify-content: space-between;
  pointer-events: auto;
}

.nav__logo {
  align-items: center;
  display: flex;
  height: 2.525em;
  padding-left: 0.65em;
}

.nav__logo a {
  display: flex;
  font-size: var(--font-size-xx-small);
  height: 2.575em;
  margin-top: 0.325em;
}

.nav__logo a svg {
  height: 100%;
  max-height: 100%;
  overflow: visible;
  width: auto;
}

.nav__items {
  display: none;
  gap: 0.6em;
  list-style: none;
}

.nav__items li {
  display: flex;
}

.nav__items li a {
  color: var(--color-black);
  font-size: var(--font-size-xx-small);
  font-weight: 500;
  letter-spacing: -0.0125em;
  line-height: 1;
  padding-bottom: 0.3em;
  padding-top: 0.425em;
  text-decoration-color: rgba(var(--rgb-teal), 0);
  text-decoration-thickness: 0;
  white-space: nowrap;
}

.nav__buttons {
  display: none;
  gap: 0.3em;
  list-style: none;
  padding-right: 0.65em;
}

.nav__buttons li {
  display: flex;
}

.nav__toggle {
  align-items: center;
  display: flex;
  height: 2.525em;
  -webkit-user-select: none;
}

.nav__toggle label {
  color: var(--color-black);
  cursor: pointer;
  font-feature-settings: 'c2sc', 'smcp';
  font-weight: 500;
  letter-spacing: -0.0175em;
  line-height: 1em;
  padding: 0.5em 1em 0.575em 1em;
  white-space: nowrap;
}

.nav__mobile {
  align-items: center;
  display: none;
  flex-direction: column;
  gap: 2em;
  padding: 0.5em;
  pointer-events: auto;
}

.nav__mobile ul {
  align-items: center;
  display: flex;
  flex-direction: column;
  gap: 0.4em;
}

.nav__mobile ul li {
  font-size: var(--font-size-large);
  letter-spacing: -0.0125em;
}

.nav__mobile ul li a {
  color: var(--color-black);
  text-decoration: none;
}

.nav__mobile ol {
  display: flex;
  gap: 0.4em;
  width: 100%;
}

.nav__mobile ol li {
  flex: 1;
}

.nav__mobile ol li a {
  display: flex;
}

.nav--notification {
  top: 2.35em;
}

@media(hover: hover) {

  .nav__items li a {
    transition:
      color var(--transition),
      text-decoration-color var(--transition),
      text-decoration-thickness var(--transition)
    ;
  }

  .nav__items li a:focus,
  .nav__items li a:hover {
    color: var(--color-blurple);
    text-decoration-color: var(--color-teal);
    text-decoration-thickness: 0.1em;
  }

}

@media(min-width: 64em) {

  .nav {
    position: absolute;
    top: 1em;
  }

  .nav__container {
    margin-left: 0;
    margin-right: 0;
    width: auto;
  }

  .nav__items,
  .nav__buttons {
    display: flex;
  }

  .nav__toggle,
  .nav__mobile {
    display: none;
  }

  .nav--notification {
    top: 2.55em;
  }

}
