.wordmark,
.masthead-tools {
  display: flex;
  align-items: center;
  gap: clamp(.4rem, 1.5vw, 1.15rem);
}

.wordmark {
  z-index: 20;
  justify-content: space-between;
}

.tea-menu {
  position: relative;
  z-index: 10;
  font: 600 1rem/1.4 var(--font-body);
  letter-spacing: normal;
  text-shadow: none;
}

.tea-menu summary {
  display: grid;
  place-items: center;
  width: 2.875rem;
  height: 2.875rem;
  cursor: pointer;
  list-style: none;
  border: 1px solid var(--line-strong);
  border-radius: .85rem;
  background: var(--panel);
  transition: width .22s ease, height .22s ease, border-radius .22s ease, background-color .15s ease;
}

.tea-menu summary img {
  width: 2rem;
  height: 2rem;
  transition: width .22s ease, height .22s ease;
}

.is-stuck .tea-menu summary {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: .7rem;
}

.is-stuck .tea-menu summary img {
  width: 1.65rem;
  height: 1.65rem;
}

.tea-menu summary::-webkit-details-marker { display: none; }
.tea-menu summary:hover,
.tea-menu[open] summary { background: var(--panel-3); }

.tea-menu summary:focus-visible,
.tea-menu nav a:focus-visible {
  outline: 2px solid var(--ember);
  outline-offset: 3px;
}

.tea-menu nav {
  position: absolute;
  inset-block-start: calc(100% + .5rem);
  inset-inline-end: 0;
  width: max-content;
  min-width: 11rem;
  padding: .35rem;
  color: var(--text);
  background: var(--panel);
  border: 1px solid var(--line-strong);
  border-radius: .85rem;
  box-shadow: var(--shadow-pop);
}

.tea-menu nav a {
  display: block;
  padding: .65rem .85rem;
  border-radius: .55rem;
  color: inherit;
  text-decoration: none;
}

.tea-menu nav a:hover,
.tea-menu nav a[aria-current="page"] {
  background: #553622;
}

.tea-menu-label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

@media (max-width: 34rem) {
  .masthead-tools .header-button {
    justify-content: center;
    min-width: 2.75rem;
    min-height: 2.75rem;
  }

  .masthead-tools .header-rule { display: none; }

  .masthead-tools .header-button span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }
}

@media (prefers-reduced-motion: reduce) {
  .tea-menu summary,
  .tea-menu summary img {
    transition: none;
  }
}
