/* Homepage (node/1) only: translucent top menu over the full-screen hero.
   js/hero-header.js adds .is-translucent while the page is at the top and
   removes it once the user scrolls, restoring the theme's normal header
   (#header: --color-layout-5 background + --color-layout-10 hairline).

   The tint is the header's own surface colour mixed with transparency, so
   it follows dark mode automatically and the menu text keeps its normal
   colours. */
.page-node-1 #header {
  /* Keep the theme's show/hide transition (transform/opacity) and add a
     fade for the background swap in both directions. */
  transition:
    transform 0.5s ease,
    opacity 0.5s ease,
    background-color 0.3s ease,
    border-color 0.3s ease,
    -webkit-backdrop-filter 0.3s ease,
    backdrop-filter 0.3s ease;
}
.page-node-1 #header.is-translucent {
  background-color: color-mix(in srgb, var(--color-layout-5) 5%, transparent);
  -webkit-backdrop-filter: blur(10px);
          backdrop-filter: blur(10px);
  border-bottom-color: transparent;
}
