#navBar { align-items: center; display: flex; height: calc(2rem + var(--hamburgerHeight)); justify-content: space-between; padding: 1rem; position: absolute; top: 0; width: 100%; body[data-page = "achernar"] & { a, #home, #hamburger { mix-blend-mode: difference; } } section { display: flex; flex: 1; gap: 1rem; justify-content: center; &:first-of-type { justify-content: start; } &:last-of-type { justify-content: end; } a { position: relative; text-decoration-color: #00000000; &[aria-current = "page"]:not(#home)::after { background-color: var(--textColour); border-radius: $separatorWidth; content: ""; display: block; height: $separatorWidth; left: 50%; position: absolute; top: calc(100% + $separatorWidth); transform: translateX(-50%); width: 100%; } @media not (prefers-reduced-motion) { transition: opacity $slideDuration, text-decoration-color 0.125s; } @media (orientation: portrait) or (pointer: coarse) { &:not(#home, #hamburger) { display: none; } } &:hover { text-decoration-color: var(--textColour); } } #home, #hamburger { aspect-ratio: 1; background-color: var(--textColour); cursor: pointer; height: var(--hamburgerHeight); mask-size: cover; z-index: 255; } #home { mask-image: url("/svg/icon/home.svg"); } #hamburger { mask-image: url("/svg/icon/hamburger.svg"); } } }