mythos-site-header {
  display: block;
  position: sticky;
  top: 0;
  z-index: 1030;
  max-height: 100vh;
  max-height: 100dvh;
  overflow-y: auto;
}

mythos-site-header .mythos-header {
  background: rgba(5, 8, 8, 0.96);
}

mythos-site-header .mythos-header-row {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 3vw, 2.5rem);
}

mythos-site-header .mythos-home-link {
  flex: 0 1 220px;
  min-width: 0;
  padding: 0;
  border: 0;
  background: none;
}

mythos-site-header .mythos-header-logo {
  display: block;
  max-width: 100%;
}

mythos-site-header .mythos-header-tagline {
  margin: 0;
  align-self: center;
  color: var(--bronze-light);
  font-family: "Cinzel", serif;
  font-size: clamp(0.9rem, 1.8vw, 1.2rem);
  line-height: 1.4;
  text-transform: lowercase;
  text-wrap: balance;
}

mythos-site-header .mythos-toggler {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 44px;
  height: 44px;
  margin-left: auto;
}

mythos-site-header .mythos-menu-link,
mythos-site-header .mythos-menu-link:visited {
  color: var(--bronze-light);
}

mythos-site-header .mythos-menu-list {
  --menu-indent: 6px;
}

mythos-site-header .mythos-menu-link:hover,
mythos-site-header .mythos-menu-link:focus-visible {
  padding-left: var(--menu-indent);
}

mythos-site-header .mythos-submenu {
  margin-top: 0.75rem;
  padding-left: var(--menu-indent);
}

mythos-site-header .mythos-submenu > li:last-child {
  margin-bottom: 0;
}

mythos-site-header .mythos-menu-link:hover,
mythos-site-header .mythos-menu-link:focus-visible {
  color: #fff;
}

mythos-site-header :focus-visible {
  outline: 2px solid var(--bronze-light);
  outline-offset: 5px;
}

mythos-site-header .mythos-burger {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 20px;
  height: 20px;
  background: none;
  transform-origin: center;
  transition: transform 300ms ease-in-out, filter 180ms ease-out;
}

mythos-site-header .mythos-burger::before,
mythos-site-header .mythos-burger::after {
  content: none;
}

/* Fine metal bars with a lit upper edge and tiny chamfered ends. */
mythos-site-header .mythos-burger > span {
  display: block;
  width: 100%;
  height: 3px;
  background: linear-gradient(to bottom, #e0c68e 0%, #c9a86a 45%, #89643c 100%);
  clip-path: polygon(1px 0, calc(100% - 1px) 0, 100% 1px,
    100% calc(100% - 1px), calc(100% - 1px) 100%, 1px 100%,
    0 calc(100% - 1px), 0 1px);
}

mythos-site-header .mythos-toggler:hover .mythos-burger,
mythos-site-header .mythos-toggler:focus-visible .mythos-burger {
  filter: brightness(1.18);
}

mythos-site-header .mythos-toggler[aria-expanded="true"] .mythos-burger {
  transform: rotate(90deg);
}

@media (max-width: 575.98px) {
  mythos-site-header .mythos-header-row {
    flex-wrap: wrap;
    gap: 0.75rem 1rem;
  }

  mythos-site-header .mythos-home-link {
    flex-basis: min(180px, calc(100% - 60px));
  }

  mythos-site-header .mythos-header-tagline {
    order: 3;
    flex-basis: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  mythos-site-header .mythos-burger,
  mythos-site-header .mythos-menu-link {
    transition: none;
  }
}
