/* Mobile menu (below 900 px, where the header nav is hidden): a round button in the header opens a
   full-screen night panel with the nav links. The header stays on top in night style, so logo,
   theme switch and the close state of the button remain visible. */
.menu-toggle { display: none; flex: none; position: relative; width: 40px; height: 40px; border-radius: 50%; background: none; cursor: pointer; color: inherit;
  border: 1px solid color-mix(in srgb, currentColor 35%, transparent); }
.menu-toggle::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; }
.menu-toggle span { position: absolute; left: 12px; right: 12px; height: 1.5px; background: currentColor; transition: transform .35s var(--ease), top .35s var(--ease); }
.menu-toggle span:first-child { top: 15px; }
.menu-toggle span:last-child { top: 23px; }
.menu-toggle[aria-expanded="true"] span:first-child { top: 19px; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:last-child { top: 19px; transform: rotate(-45deg); }

.menu { position: fixed; inset: 0; z-index: 49; display: flex; flex-direction: column; justify-content: center; gap: 4px; padding: 96px var(--pad) 40px;
  background: var(--night); color: var(--night-text); overflow-y: auto; }
.menu[hidden] { display: none; }
.menu a { font-size: clamp(32px, 9vw, 52px); font-weight: 500; letter-spacing: -0.035em; line-height: 1.15; padding: 6px 0; }
.menu a[aria-current="page"] { color: var(--accent); }
.menu a.lang { margin-top: 28px; font-family: var(--mono); font-size: 14px; font-weight: 400; letter-spacing: 0.08em; }
.menu a.lang + a.sign { margin-top: 16px; }
.menu a.sign { align-self: flex-start; margin-top: 28px; font-size: 16px; letter-spacing: 0; padding: 0 34px 0 20px; height: 50px; }
.menu-lock, .menu-lock body { overflow: hidden; }
.top.is-menu { background: transparent; backdrop-filter: none; color: var(--night-text); --logo-inner: var(--blue); border-bottom-color: transparent; }

@media (max-width: 900px) {
  .menu-toggle { display: block; }
}
/* Phones: the CTA moves into the menu, so logo, theme switch and menu button fit the header. */
@media (max-width: 600px) {
  .top > .sign { display: none; }
  .top .theme-toggle { margin-left: auto; }
}
