.sitemap {
  position: fixed;
  top: 50%;
  right: clamp(1rem, 3vw, 2.5rem);
  transform: translateY(-50%);
  z-index: 1;
  font-family: system-ui, -apple-system, "Helvetica Neue", sans-serif;
  font-size: 0.9rem;
}

.sitemap ul {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.6rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.sitemap a {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.2rem 0;
  color: rgba(255, 255, 255, 0.45);
  text-decoration: none;
  transition: color 0.2s ease;
}

/* short line that grows next to the current section */
.sitemap a::before {
  content: "";
  width: 0.5rem;
  height: 1px;
  background: currentColor;
  transition: width 0.3s ease;
}

.sitemap a:hover,
.sitemap a[aria-current] {
  color: #fff;
}

.sitemap a[aria-current]::before {
  width: 1.5rem;
  background: var(--accent);
}

.sitemap a:focus-visible {
  outline: 1px solid #fff;
  outline-offset: 4px;
}

@media (max-width: 48rem) {
  .sitemap {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .sitemap a,
  .sitemap a::before {
    transition: none;
  }
}
