#wpadminbar {
  position: fixed;
}

.axili-header {
  --header-background: transparent;
  --header-fg: var(--axili-background);
  --header-bg: var(--axili-title);
  --header-blur-opacity: 1;
  --header-bg-opacity: 1;
  --header-bg-height: 200%;
  position: fixed;
  top: var(--wp-admin--admin-bar--height, 0);
  width: 100%;
  height: calc(var(--axili-header-height) + 6px);
  z-index: 10;
  background: var(--header-background);
  transition: background 300ms;
}
.axili-header::before {
  opacity: var(--header-bg-opacity);
  transition:
    height 300ms,
    opacity 300ms,
    background 300ms;
  pointer-events: none;
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-bg-height);
  background: linear-gradient(
    to bottom,
    hsl(var(--header-bg), var(--header-blur-opacity)),
    transparent
  );
  backdrop-filter: blur(8px);
  z-index: -1;
  mask-image: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 1) 40%,
    rgba(0, 0, 0, 0.93) 50%,
    rgba(0, 0, 0, 0.8) 60%,
    rgba(0, 0, 0, 0.7) 70%,
    rgba(0, 0, 0, 0.6) 80%,
    rgba(0, 0, 0, 0.4) 88%,
    rgba(0, 0, 0, 0.2) 96%,
    rgba(0, 0, 0, 0)
  );
}

.axili-header .header-content {
  display: flex;
  align-items: center;
  height: var(--axili-header-height);
  max-width: var(--axili-container-width);
  margin: 0 auto;
  padding: 0 1rem;
  color: hsl(var(--header-fg));
  z-index: 12;
}

.axili-header .header-content .brand {
  font-size: 1.25rem;
  font-weight: 500;
  color: hsl(var(--axili-background));
  display: flex;
  align-items: center;
  gap: 0.5rem;
  opacity: 1;
  transform: translateX(0);
  transition:
    opacity 300ms,
    transform 300ms;
}

.axili-header .header-content .brand > img {
  transform: translateY(25%);
}

.axili-header .header-content > .axili-menu {
  margin-left: auto;
}

.axili-header .brand.hidden {
  opacity: 0;
  transform: translateY(-300%);
}

.axili-header .axili-burger {
  margin-left: auto;
  display: none;
  flex-direction: column;
  gap: 0.5rem;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  width: 42px;
  height: 42px;
  background: none;
  border: none;
  padding: 0;
  position: relative;
}
.axili-burger > span {
  background: hsl(var(--header-fg));
  height: 3px;
  width: 100%;
  transition: 300ms;
}

@media screen and (max-width: 768px) {
  .axili-header .axili-menu {
    display: none;
  }
  .axili-header .axili-burger {
    display: flex;
    z-index: 12;
  }
  .axili-header .axili-menu[aria-hidden='false'] {
    display: block;
    position: fixed;
    top: 0;
    top: var(--wp-admin--admin-bar--height, 0);
    left: 0;
    right: 0;
    bottom: 0;
    background: hsl(var(--axili-background));
    z-index: 11;
    color: hsl(var(--axili-title));
  }
  .axili-header .axili-menu[aria-hidden='false'] ul {
    padding-top: var(--axili-header-height);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }
  .axili-header .axili-menu[aria-hidden='false'] ul > li a,
  .axili-header .axili-menu[aria-hidden='false'] ul > li {
    width: 100%;
    display: block;
    padding: 0.5rem 2rem;
  }
}

.axili-burger[aria-expanded='true'] span {
  background: hsl(var(--axili-title));
}
.axili-burger[aria-expanded='true'] span:nth-child(1) {
  transform: translateY(11px) rotate(-45deg);
}
.axili-burger[aria-expanded='true'] span:nth-child(1) {
  transform: translateY(11px) rotate(-45deg);
}
.axili-burger[aria-expanded='true'] span:nth-child(2) {
  opacity: 0;
}
.axili-burger[aria-expanded='true'] span:nth-child(3) {
  transform: translateY(-11px) rotate(45deg);
}
.axili-burger[aria-expanded='true'] {
  color: hsl(var(--axili-title));
}
