.js main {
  opacity: 0;
  transform: translateY(8px);
  transition:
    opacity .22s ease,
    transform .22s ease;
}

.js.page-ready main {
  opacity: 1;
  transform: translateY(0);
}

.js.page-exiting main {
  opacity: 0;
  transform: translateY(6px);
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  padding: 14px 16px;
}

.header-row {
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 1180px;
  margin: 0 auto;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex: 1;
  padding: 10px 12px 10px 14px;
  border: 1px solid rgba(255, 145, 180, .34);
  border-radius: 999px;
  background: rgba(255, 250, 251, .76);
  backdrop-filter: blur(18px);
  box-shadow: 0 10px 28px rgba(50, 17, 30, .08);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  text-decoration: none;
}

.brand-name {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.05rem;
  font-weight: 500;
  line-height: 1;
  color: var(--pink-1);
  white-space: nowrap;
}

.nav-links {
  display: none;
}

.book-link {
  display: none;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 15px;
  border-radius: 999px;
  background: #000;
  color: rgba(255, 250, 251, .76);
  font-size: .72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .12em;
  text-decoration: none;
  white-space: nowrap;
}

.menu-toggle {
  display: inline-grid;
  width: 38px;
  height: 38px;
  place-items: center;
  margin-right: 0;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--pink-1);
  appearance: none;
  cursor: pointer;
}

.menu-toggle::before {
  content: "";
  display: block;
  width: 22px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  box-shadow: 0 -7px 0 currentColor, 0 7px 0 currentColor;
}

.desktop-nav-toggle {
  display: none;
  width: 64px;
  height: 64px;
  flex: 0 0 64px;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: var(--pink-1);
  color: var(--white);
  box-shadow: 0 16px 38px 4px rgba(50, 17, 30, .2);
  appearance: none;
  cursor: pointer;
}

.desktop-nav-toggle-bars,
.desktop-nav-toggle-bars::before,
.desktop-nav-toggle-bars::after {
  display: block;
  width: 22px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
}

.desktop-nav-toggle-bars {
  position: relative;
}

.desktop-nav-toggle-bars::before,
.desktop-nav-toggle-bars::after {
  content: "";
  position: absolute;
  left: 0;
}

.desktop-nav-toggle-bars::before {
  top: -7px;
}

.desktop-nav-toggle-bars::after {
  top: 7px;
}

.mobile-menu-panel {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: grid;
  grid-template-rows: auto 1fr;
  width: 100%;
  height: 100svh;
  padding: 18px;
  background: var(--pink-5);
  transform: translateX(100%);
  transition: transform .42s cubic-bezier(.76, 0, .24, 1);
}

.mobile-menu-panel.is-open {
  transform: translateX(0);
}

.mobile-menu-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.menu-close {
  display: inline-grid;
  width: 42px;
  height: 38px;
  place-items: center;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  appearance: none;
  cursor: pointer;
}

.menu-close svg {
  width: 28px;
  height: 28px;
  display: block;
}

.mobile-menu-links {
  display: grid;
  align-content: center;
  gap: 18px;
  padding: 42px 0;
}

.mobile-menu-links a {
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(3.4rem, 18vw, 6rem);
  font-weight: 500;
  line-height: .88;
  color: var(--pink-1);
  text-decoration: none;
}

.drawer-links-mobile a {
  font-size: clamp(2rem, 9.2vw, 3.2rem);
  line-height: .96;
  white-space: nowrap;
}

.drawer-links-desktop {
  display: none;
}

@media (min-width: 720px) {
  html {
    scrollbar-width: none;
  }

  html::-webkit-scrollbar {
    display: none;
  }

  .site-header {
    padding: 18px 24px;
  }

  .nav {
    padding: 12px 14px 12px 18px;
  }

  .brand-name {
    font-size: 1.2rem;
  }

  .nav-links {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-left: auto;
    color: var(--soft-ink);
    font-size: .74rem;
    letter-spacing: .13em;
    text-transform: uppercase;
  }

  .nav-links a {
    color: inherit;
    text-decoration: none;
  }

  .book-link {
    display: inline-flex;
  }

  .desktop-nav-toggle {
    display: grid;
  }

  .menu-toggle {
    display: none;
  }

  .drawer-links-mobile {
    display: none;
  }

  .drawer-links-desktop {
    display: grid;
  }
}

@media (prefers-reduced-motion: reduce) {
  .js main {
    transition: none;
    transform: none;
  }
}
