:root {
  /*
   * These tokens are used for small supporting text throughout the public site.
   * Both pass WCAG AA for normal text on the site's lightest dark surface.
   */
  --text-3: #8a837b;
  --text-4: #8a837b;
}

header.site {
  z-index: 200;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.mobile-menu {
  position: relative;
  z-index: 100;
  margin-left: auto;
  color: #fff;
}

.mobile-menu > summary {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  list-style: none;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.mobile-menu > summary::-webkit-details-marker {
  display: none;
}

.mobile-menu > summary:hover,
.mobile-menu[open] > summary {
  border-color: rgba(160, 112, 255, 0.7);
  background: rgba(140, 82, 255, 0.12);
}

.mobile-menu > summary:focus-visible,
.mobile-menu-panel a:focus-visible {
  outline: 2px solid #a070ff;
  outline-offset: 3px;
}

.mobile-menu-icon {
  display: flex;
  width: 18px;
  flex-direction: column;
  gap: 4px;
}

.mobile-menu-icon > span {
  display: block;
  width: 100%;
  height: 1.5px;
  border-radius: 999px;
  background: currentColor;
  transform-origin: center;
  transition: transform 160ms ease, opacity 160ms ease;
}

.mobile-menu[open] .mobile-menu-icon > span:first-child {
  transform: translateY(5.5px) rotate(45deg);
}

.mobile-menu[open] .mobile-menu-icon > span:nth-child(2) {
  opacity: 0;
}

.mobile-menu[open] .mobile-menu-icon > span:last-child {
  transform: translateY(-5.5px) rotate(-45deg);
}

.mobile-menu-panel {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  display: flex;
  width: min(280px, calc(100vw - 32px));
  flex-direction: column;
  gap: 2px;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 14px;
  background: rgba(10, 10, 12, 0.98);
  box-shadow: 0 20px 55px rgba(0, 0, 0, 0.55);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}

.mobile-menu-panel a {
  display: flex;
  min-height: 44px;
  align-items: center;
  padding: 0 12px;
  border-radius: 9px;
  color: #d8d3cc;
  font-size: 14px;
  font-weight: 500;
}

.mobile-menu-panel a:hover,
.mobile-menu-panel a[aria-current="page"] {
  background: rgba(255, 255, 255, 0.07);
  color: #fff;
}

.mobile-menu-panel .mobile-menu-primary {
  justify-content: center;
  margin-top: 6px;
  border: 1px solid rgba(160, 112, 255, 0.62);
  background: rgba(140, 82, 255, 0.14);
  color: #fff;
}

@media (max-width: 899px) {
  .site-actions {
    display: none !important;
  }
}

@media (min-width: 900px) {
  .mobile-menu {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .mobile-menu-icon > span {
    transition: none;
  }
}
