/* Shared fullscreen mobile navigation. Desktop and tablet rules stay untouched. */
.mobile-menu-toggle {
  display: none;
}

.mobile-menu-overlay[hidden] {
  display: none !important;
}

.mobile-menu-scrim[hidden] {
  display: none !important;
}

@media (max-width: 767px) {
  .mobile-menu-scrim:not([hidden]) {
    position: fixed;
    z-index: 2147483646;
    inset: 0;
    display: block;
    background: rgba(71, 71, 71, 0.5);
  }

  html.mobile-nav-ready .site-header,
  html.mobile-nav-ready header.header.wrap,
  html.mobile-nav-ready header.bar,
  html.mobile-nav-ready .archive-header {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    height: 68px !important;
    min-height: 68px !important;
    align-items: center;
    justify-content: space-between;
    background: transparent !important;
  }

  html.mobile-nav-ready .site-header {
    padding-left: 12px !important;
    padding-right: 12px !important;
  }

  html.mobile-nav-ready header.header.wrap,
  html.mobile-nav-ready header.bar,
  html.mobile-nav-ready .archive-header {
    padding-left: 12px !important;
    padding-right: 12px !important;
  }

  html.mobile-nav-ready .nav,
  html.mobile-nav-ready .archive-nav {
    display: none !important;
  }

  html.mobile-nav-ready .mobile-menu-toggle {
    display: grid !important;
    place-items: center;
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: inherit;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
  }

  .mobile-menu-icon {
    position: relative;
    display: block;
    width: 22px;
    height: 2px;
    background: currentColor;
  }

  .mobile-menu-icon::before,
  .mobile-menu-icon::after {
    position: absolute;
    left: 0;
    width: 22px;
    height: 2px;
    background: currentColor;
    content: "";
  }

  .mobile-menu-icon::before { top: -7px; }
  .mobile-menu-icon::after { top: 7px; }

  .mobile-menu-toggle:focus-visible,
  .mobile-menu-close:focus-visible,
  .mobile-menu-links a:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 4px;
  }

  .mobile-menu-overlay {
    position: fixed;
    z-index: 2147483647;
    inset: 0;
    display: block;
    width: 100%;
    min-height: 100vh;
    min-height: 100dvh;
    overflow-y: auto;
    padding: 0;
    background: linear-gradient(to bottom, #fff 0 54%, transparent 54% 100%);
    color: #292927;
    overscroll-behavior: contain;
  }

  .mobile-menu-overlay::after {
    position: fixed;
    z-index: 0;
    right: 0;
    bottom: 0;
    left: 0;
    height: 46vh;
    min-height: 220px;
    background-color: transparent;
    background-image:
      radial-gradient(ellipse 80% 85% at 2% 100%, #9fce78 0%, rgba(159, 206, 120, 0) 62%),
      radial-gradient(ellipse 100% 100% at 100% 100%, #fae7cf 0%, rgba(250, 231, 207, 0) 55%),
      linear-gradient(116deg, #efd7e7 0%, #e8b1b9 32%, #fb932e 77%);
    background-size: 115% 115%;
    background-position: 0% 0%;
    -webkit-clip-path: inset(0 0 100% 0);
    clip-path: inset(0 0 100% 0);
    transition: clip-path 460ms ease-out;
    transition: -webkit-clip-path 460ms ease-out, clip-path 460ms ease-out;
    content: "";
    pointer-events: none;
  }

  .mobile-menu-overlay.is-open::after {
    -webkit-clip-path: inset(0 0 0 0);
    clip-path: inset(0 0 0 0);
  }

  .mobile-menu-overlay.is-closing::after {
    -webkit-clip-path: inset(0 0 100% 0);
    clip-path: inset(0 0 100% 0);
    transition-duration: 360ms;
  }

  .mobile-menu-header {
    position: relative;
    z-index: 1;
    display: flex;
    width: 100%;
    height: calc(68px + env(safe-area-inset-top));
    align-items: center;
    justify-content: space-between;
    padding: env(safe-area-inset-top) 12px 0;
    opacity: 0;
    transition: opacity 300ms ease-out;
  }

  .mobile-menu-wordmark {
    display: inline-block;
    color: inherit;
    text-decoration: none;
  }

  .mobile-menu-close {
    display: grid;
    width: 48px;
    height: 48px;
    place-items: center;
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    font-size: 34px;
    font-weight: 300;
    line-height: 1;
    cursor: pointer;
  }

  .mobile-menu-links {
    position: absolute;
    z-index: 1;
    display: flex;
    width: min(100%, 520px);
    top: calc(68px + env(safe-area-inset-top));
    right: 0;
    bottom: 46vh;
    left: 0;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin: 0 auto;
    font: inherit;
    opacity: 0;
    transition: opacity 300ms ease-out;
  }

  .mobile-menu-overlay.is-open .mobile-menu-header,
  .mobile-menu-overlay.is-open .mobile-menu-links {
    opacity: 1;
  }

  .mobile-menu-overlay.is-closing .mobile-menu-header,
  .mobile-menu-overlay.is-closing .mobile-menu-links {
    opacity: 0;
    transition-duration: 320ms;
  }

  .mobile-menu-links a {
    display: block;
    width: min(100%, 200px);
    min-height: 44px;
    padding: 12px 16px;
    color: inherit;
    font: inherit;
    font-family: Manrope, Arial, sans-serif;
    font-size: 20.8px;
    font-weight: 400;
    line-height: 2;
    letter-spacing: .035em;
    text-align: center;
    text-transform: uppercase;
    text-decoration: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .mobile-menu-overlay::after,
  .mobile-menu-header,
  .mobile-menu-links {
    transition: none !important;
  }

  .mobile-menu-links a {
    animation: none !important;
    transition: none !important;
  }
}
