/* Shared site menu (every page): three thin lines at the top centre. Closed they stand upright (|||);
   open they turn horizontal (≡) and the section icons appear in a row along the top, split either side. */
.menu-btn {
  position: fixed; top: clamp(14px, 2.6vh, 26px); left: 50%; transform: translateX(-50%); z-index: 40;
  width: 44px; height: 32px; padding: 0; border: 0; background: none; cursor: pointer;
  color: var(--ink-100, #231F20);
}
.menu-btn .bars {
  position: absolute; inset: 0;
  transform: rotate(90deg);                               /* closed: upright */
  transition: transform .6s cubic-bezier(.19, 1, .22, 1);
}
body.menu-open .menu-btn .bars { transform: none; }       /* open: horizontal */
.menu-btn .bars span {
  position: absolute; left: 50%; width: 16px; height: 1px; margin-left: -8px;
  background: currentColor; opacity: .75;
  transition: transform .4s cubic-bezier(.19, 1, .22, 1);
}
.menu-btn .bars span:nth-child(1) { top: 10.5px; }
.menu-btn .bars span:nth-child(2) { top: 15.5px; }
.menu-btn .bars span:nth-child(3) { top: 20.5px; }
.menu-btn:hover .bars span:nth-child(1) { transform: translateY(-1px); }
.menu-btn:hover .bars span:nth-child(3) { transform: translateY(1px); }
.menu-btn:focus-visible { outline: 1px solid var(--ink-100, #231F20); outline-offset: 2px; }

.menu {
  position: fixed; left: 0; right: 0; top: clamp(14px, 2.6vh, 26px); height: 32px; z-index: 39;
  display: grid; grid-template-columns: 1fr 44px 1fr; align-items: center;
  pointer-events: none;
}
.menu ol { list-style: none; margin: 0; display: flex; align-items: center; gap: 20px; padding: 0 20px; }
.menu .left { justify-content: flex-end; grid-column: 1; }
.menu .right { justify-content: flex-start; grid-column: 3; }
.menu button {
  display: block; width: 16px; height: 16px;
  color: var(--ink-40, #A7A9AC); background: none; border: 0; padding: 0; cursor: pointer;
  opacity: 0; pointer-events: none;
  transition: opacity .35s ease, transform .6s cubic-bezier(.19, 1, .22, 1), color .25s ease;
  transition-delay: calc(var(--i) * 60ms), calc(var(--i) * 60ms), 0s;
}
.menu .left button { transform: translateX(10px); }      /* slide out from the lines */
.menu .right button { transform: translateX(-10px); }
body.menu-open .menu button { opacity: 1; transform: none; pointer-events: auto; }
.menu button svg { display: block; width: 100%; height: 100%; }
.menu button:hover, .menu button[aria-current="true"] { color: var(--ink-100, #231F20); }
.menu button:focus-visible { outline: 1px solid var(--ink-100, #231F20); outline-offset: 4px; }
/* While the menu is open, the normal pointer replaces the home page's scroll arrow */
body.menu-open, body.menu-open * { cursor: auto; }
body.menu-open .menu button, body.menu-open .menu-btn { cursor: pointer; }
body.arrow-on .menu-btn { cursor: pointer; }
@media (prefers-reduced-motion: reduce) {
  .menu-btn .bars, .menu button { transition: opacity .2s ease, color .25s ease; }
}
