:root {
  --site-navigation-font: var(--font-sans, ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji");
  --site-navigation-action: var(--book-button-background, var(--book-accent));
  --site-navigation-action-hover: var(--book-button-hover, var(--book-hover));
  --site-navigation-action-text: var(--book-inverse);
}

html:is([data-theme="honeycomb-light"], [data-theme="honeycomb-dark"]) {
  --site-navigation-action: color-mix(in srgb, var(--book-accent) 35%, #ffbf3f);
  --site-navigation-action-hover: color-mix(in srgb, var(--site-navigation-action) 88%, light-dark(var(--book-text), var(--book-inverse)));
  --site-navigation-action-text: light-dark(var(--book-text), var(--book-inverse));
}

.brandbar,
.landing-header {
  font-family: var(--site-navigation-font);
  font-weight: 400;
  line-height: 1.5;
  background: color-mix(in srgb, var(--book-card) 90%, transparent) !important;
  border-bottom: 1px solid var(--book-border);
  backdrop-filter: blur(14px);
}

.brandbar,
.landing-header {
  position: sticky;
  top: 0;
  z-index: 50;
}

.brand-inner {
  box-sizing: border-box;
  display: flex;
  width: min(1280px, 100%);
  min-height: 56px;
  margin: 0 auto;
  padding: 8px 16px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand,
.brandbar a,
.landing-header a {
  text-decoration: none;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--book-text);
  font-size: 24px;
  line-height: 1.2;
}

.brand > strong {
  font-weight: 700;
}

.brand-logo {
  display: block;
  width: 40px;
  height: 40px;
  overflow: visible;
}

.nav-bee {
  --nav-bee-x: 0px;
  --nav-bee-y: 0px;
  --nav-bee-tilt: 0deg;
  display: inline-block;
  flex: 0 0 auto;
  transform: translate3d(var(--nav-bee-x), var(--nav-bee-y), 0) rotate(var(--nav-bee-tilt));
  transition: transform 180ms cubic-bezier(.2, .8, .2, 1);
  will-change: transform;
}

.nav-bee > .bee-svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
  transform-origin: center;
  animation: nav-bee-float 3.4s ease-in-out infinite;
}

.nav-bee > .nav-bee-logo {
  --bee-float-small: -1px;
  --bee-float-large: -2px;
  display: block;
  width: 100%;
  height: 100%;
}

.nav-bee > .bee-svg .bee-wing-left {
  animation: nav-bee-wing-left .12s ease-in-out infinite;
  transform-origin: 9px 16px;
}

.nav-bee > .bee-svg .bee-wing-right {
  animation: nav-bee-wing-right .12s ease-in-out infinite;
  transform-origin: 23px 16px;
}

@keyframes nav-bee-float {
  0%, 100% {
    transform: translateY(0) rotate(0deg);
  }
  25% {
    transform: translateY(-1px) rotate(-1deg);
  }
  50% {
    transform: translateY(-2px) rotate(0deg);
  }
  75% {
    transform: translateY(-1px) rotate(1deg);
  }
}

@keyframes nav-bee-wing-left {
  0%, 100% {
    transform: rotate(0deg);
  }
  50% {
    transform: rotate(-7deg);
  }
}

@keyframes nav-bee-wing-right {
  0%, 100% {
    transform: rotate(0deg);
  }
  50% {
    transform: rotate(7deg);
  }
}

.brand-actions {
  display: flex;
  margin-left: auto;
  align-items: center;
  gap: 20px;
}

.brand-actions .site-nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
}

.brand-actions .site-nav-links :is(a, button) {
  padding: 8px 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--book-secondary);
  font: inherit;
  font-size: 16px;
  line-height: 1.5;
  font-weight: 400;
  text-decoration: none;
  cursor: pointer;
  transition: background .15s, color .15s;
}

.brand-actions .site-nav-links :is(a, button):hover {
  color: var(--book-text);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.brand-actions .site-nav-links [aria-current="page"] {
  color: var(--book-accent-readable, var(--book-text));
}

:is(.brandbar, .landing-header) :is(a, button):focus-visible {
  outline: 2px solid var(--book-accent-readable, var(--book-text));
  outline-offset: 3px;
}

:is(.brandbar, .landing-header) a.site-nav-action {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  padding: 8px 16px;
  border: 1px solid var(--site-navigation-action);
  border-radius: 8px;
  background: var(--site-navigation-action);
  color: var(--site-navigation-action-text);
  font-size: .9rem;
  line-height: 1.5;
  font-weight: 650;
}

:is(.brandbar, .landing-header) a.site-nav-action:hover {
  border-color: var(--site-navigation-action-hover);
  background: var(--site-navigation-action-hover);
  text-decoration: none;
  color: var(--site-navigation-action-text);
}

.mobile-menu-button {
  display: none;
  width: 40px;
  height: 40px;
  padding: 6px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--book-secondary);
  cursor: pointer;
}

.mobile-menu-button:hover {
  background: color-mix(in srgb, var(--book-text) 5%, transparent);
}

.mobile-menu-button svg {
  display: block;
  width: 24px;
  height: 24px;
}

.mobile-menu {
  display: none;
}

.mobile-menu[hidden],
.auth-signout[hidden] {
  display: none;
}

@media (max-width: 1000px) {
  .brand-actions .site-nav-links {
    gap: 20px;
  }
}

@media (max-width: 760px) {
  .brand-actions .site-nav-links {
    display: none;
  }

  .mobile-menu-button {
    display: block;
  }

  .mobile-menu {
    flex-direction: column;
    gap: 0;
    padding: 8px 16px 12px;
    background: var(--book-card);
  }

  .mobile-menu:not([hidden]) {
    display: flex;
  }

  .mobile-menu :is(a, button) {
    display: block;
    width: 100%;
    padding: 9px 0;
    border: 0;
    background: transparent;
    color: var(--book-secondary);
    font: inherit;
    font-size: 16px;
    line-height: 1.5;
    font-weight: 400;
    text-align: left;
    text-decoration: none;
    cursor: pointer;
  }

  .mobile-menu :is(a, button):hover,
  .mobile-menu :is(a, button)[aria-current="page"] {
    color: var(--book-accent-readable, var(--book-text));
  }
}

@media (prefers-reduced-motion: reduce) {
  .nav-bee,
  .nav-bee > .bee-svg,
  .nav-bee > .nav-bee-logo,
  .nav-bee .bee-wing-left,
  .nav-bee .bee-wing-right {
    animation: none;
    transition: none;
  }
}

.landing-header .brand-inner {
  padding-block: 16px;
}

.landing-header .site-nav-links {
  display: none;
}

.landing-header .mobile-menu-button {
  display: block;
}

@media (min-width: 1280px) {
  .landing-header .site-nav-links {
    display: flex;
  }

  .landing-header .mobile-menu-button {
    display: none;
  }
}

@media (max-width: 760px) {
  .brand-actions {
    gap: 14px;
  }
}

.brand-actions .theme-control {
  position: relative;
  inset: auto;
  flex-shrink: 0;
}

.brand-actions .theme-menu-button {
  width: 44px;
  height: 44px;
  border-color: transparent;
  background: transparent;
  box-shadow: none;
  cursor: pointer;
}

.brand-actions .theme-menu-button:hover,
.brand-actions .theme-menu-button[aria-expanded="true"] {
  border-color: transparent;
  background: transparent;
  box-shadow: none;
  transform: none;
}

.brand-actions .theme-menu-button:hover .theme-swatch,
.brand-actions .theme-menu-button[aria-expanded="true"] .theme-swatch {
  border-color: var(--book-accent-readable, var(--book-accent));
}

.landing-header .mobile-menu {
  display: flex;
}

@media (min-width: 761px) and (max-width: 1279px) {
  .landing-header .mobile-menu {
    flex-direction: column;
    gap: 16px;
    padding: 16px;
    background: var(--book-card);
  }

  .landing-header .mobile-menu a {
    color: var(--book-secondary);
    text-decoration: none;
  }
}

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