.subject-nav {
  position: absolute;
  z-index: 10;
  left: clamp(1.25rem, 3vw, 3rem);
  bottom: clamp(1.25rem, 3vw, 3rem);
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .55rem 1.25rem;
  font-family: "Fira Mono", monospace;
  font-size: clamp(.72rem, .9vw, .86rem);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity .55s ease .45s, transform .55s ease .45s;
}

.subject-nav a {
  color: #fff8e8;
  text-decoration: none;
  text-shadow: 0 2px 16px rgba(0, 24, 62, .8);
  transition: opacity .2s ease;
}

.subject-nav a:hover,
.subject-nav a:focus-visible { opacity: .62; }

.subject-nav a:focus-visible {
  outline: 1px solid currentColor;
  outline-offset: 5px;
}

.subject-nav a[aria-current="page"] {
  text-decoration: underline;
  text-underline-offset: .32em;
}

.subject-nav .nav-home {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 50px;
  margin-right: .15rem;
  opacity: 1;
}

.subject-nav .nav-home img {
  display: block;
  width: 30px;
  height: 48px;
  object-fit: contain;
  opacity: 1;
  filter: drop-shadow(0 2px 7px rgba(0, 20, 60, .85));
}

main.is-complete .subject-nav {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .subject-nav { transition: none; }
}

@media (max-width: 640px) {
  .subject-nav {
    right: 1.25rem;
    gap: .5rem 1rem;
  }
}

body {
  overflow-x: hidden;
}
