.hb-header-shell,
.hb-header-shell * {
  box-sizing: border-box;
}

.hb-header-shell {
  position: relative;
  top: auto;
  z-index: 10;
  width: 100%;
  padding: 12px clamp(14px, 3vw, 38px) 0;
  pointer-events: auto;
}

.hb-site-header {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  width: min(100%, 1480px);
  min-height: 68px;
  margin: 0 auto;
  padding: 9px 12px 9px 17px;
  border: 1px solid #d8d6cd;
  border-radius: 25px;
  background: #f2f0e9;
  color: #171815;
  box-shadow: 0 8px 22px rgb(23 24 21 / 5%);
  pointer-events: auto;
  transition: box-shadow 180ms ease, border-color 180ms ease, background-color 180ms ease;
}

.hb-header-brand {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 11px;
  min-width: 0;
  color: inherit;
  text-decoration: none;
}

.hb-header-mark {
  display: grid;
  flex: 0 0 40px;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid #171815;
  border-radius: 50%;
  background: #171815;
  color: #d7f35c;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 27px;
  font-weight: 700;
  line-height: 1;
  transition: color 180ms ease, background-color 180ms ease, transform 180ms ease;
}

.hb-header-brand:hover .hb-header-mark {
  transform: rotate(-5deg);
  background: #d7f35c;
  color: #171815;
}

.hb-header-brand-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.hb-header-brand-copy > span {
  color: #171815;
  font-family: "Space Grotesk", Arial, sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .015em;
  line-height: 1.1;
  text-transform: uppercase;
  white-space: nowrap;
}

.hb-header-brand-copy small {
  color: #777970;
  font-family: "DM Mono", monospace;
  font-size: 8px;
  font-weight: 400;
  letter-spacing: .13em;
  line-height: 1.2;
  text-transform: uppercase;
  white-space: nowrap;
}

.hb-site-nav {
  display: flex;
  flex: 0 1 auto;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(12px, 1.7vw, 25px);
  margin-left: auto;
}

.hb-site-nav a {
  color: #55574f;
  font-family: "Space Grotesk", Arial, sans-serif;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  transition: color 160ms ease, transform 160ms ease;
}

.hb-site-nav a:hover {
  transform: translateY(-1px);
  color: #f15a35;
}

.hb-site-nav .hb-header-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid #f15a35;
  border-radius: 999px;
  background: #f15a35;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  transition: transform 160ms ease, background-color 160ms ease, box-shadow 160ms ease;
}

.hb-site-nav .hb-header-cta:hover {
  transform: translateY(-2px);
  background: #df4c2a;
  color: #fff;
  box-shadow: 0 8px 20px rgb(241 90 53 / 24%);
}

.hb-menu-toggle {
  display: none;
  flex: 0 0 44px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid #d8d6cd;
  border-radius: 50%;
  background: transparent;
  color: #171815;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.hb-menu-toggle span {
  display: block;
  width: 17px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 160ms ease, opacity 160ms ease;
}

.hb-site-header.is-menu-open .hb-menu-toggle span:first-child {
  transform: translateY(3.5px) rotate(45deg);
}

.hb-site-header.is-menu-open .hb-menu-toggle span:nth-child(2) {
  opacity: 0;
}

.hb-site-header.is-menu-open .hb-menu-toggle span:last-child {
  transform: translateY(-3.5px) rotate(-45deg);
}

.hb-site-header a:focus-visible,
.hb-menu-toggle:focus-visible {
  outline: 2px solid #f15a35;
  outline-offset: 4px;
}

@media (max-width: 900px) {
  .hb-header-shell {
    padding: 10px 13px 0;
  }

  .hb-site-header {
    min-height: 62px;
    gap: 10px;
    padding: 8px 9px 8px 12px;
    border-radius: 23px;
  }

  .hb-header-mark {
    flex-basis: 38px;
    width: 38px;
    height: 38px;
    font-size: 25px;
  }

  .hb-header-brand {
    gap: 9px;
  }

  .hb-header-brand-copy > span {
    font-size: 12px;
  }

  .hb-header-brand-copy small {
    font-size: 7px;
  }

  .hb-menu-toggle {
    display: flex;
  }

  .hb-site-nav {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    left: 0;
    display: none;
    align-items: stretch;
    flex-direction: column;
    gap: 0;
    padding: 8px 14px;
    border: 1px solid #d8d6cd;
    border-radius: 21px;
    background: #f2f0e9;
    box-shadow: 0 14px 28px rgb(23 24 21 / 12%);
  }

  .hb-site-header.is-menu-open .hb-site-nav {
    display: flex;
    animation: hb-menu-in 160ms ease both;
  }

  .hb-site-nav a {
    padding: 13px 7px;
    border-bottom: 1px solid #d8d6cd;
    font-size: 14px;
  }

  .hb-site-nav a:last-child {
    border-bottom: 0;
  }

  .hb-site-nav .hb-header-cta {
    align-self: flex-start;
    min-height: 42px;
    margin: 9px 0 4px;
    padding: 0 17px;
    border-bottom: 1px solid #f15a35;
  }
}

@media (max-width: 360px) {
  .hb-header-shell {
    padding-right: 9px;
    padding-left: 9px;
  }

  .hb-header-brand-copy > span {
    font-size: 11px;
  }

  .hb-header-brand-copy small {
    letter-spacing: .09em;
  }
}

@keyframes hb-menu-in {
  from { opacity: 0; transform: translateY(-5px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .hb-site-header,
  .hb-header-mark,
  .hb-site-nav a,
  .hb-menu-toggle span,
  .hb-site-nav .hb-header-cta {
    transition: none;
  }

  .hb-site-header.is-menu-open .hb-site-nav {
    animation: none;
  }
}
