:root {
  --page-pad: clamp(16px, 4vw, 32px);
}

.nav-shell {
  position: relative;
  padding:
    18px calc(var(--page-pad) + env(safe-area-inset-right, 0px))
    16px calc(var(--page-pad) + env(safe-area-inset-left, 0px));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  z-index: 11;
  transform: translateY(0);
  opacity: 1;
}

.nav-top {
  position: relative;
  width: 100%;
  min-height: 84px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

.nav-shell nav {
  width: 100%;
}

.site-wordmark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'IM FELL DW Pica SC', sans-serif;
  font-size: clamp(1.65rem, 2vw, 2.15rem);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  line-height: 1;
  white-space: nowrap;
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.spotify-shell {
  position: absolute;
  top: 0;
  right: 0;
  width: min(100%, 320px);
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-links {
  display: flex;
  align-items: flex-start;
  gap: 10px 18px;
  list-style: none;
  margin: 0;
  padding: 0;
  flex-wrap: nowrap;
  justify-content: center;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.nav-links::-webkit-scrollbar {
  display: none;
}

.nav-link {
  flex: 0 0 auto;
  padding: 0 0 4px;
  border-radius: 0;
  font-weight: 400;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  transition: color 0.2s ease, opacity 0.2s ease;
  white-space: nowrap;
  font-size: 0.68rem;
  text-decoration: none;
}

.spotify-embed {
  width: 100%;
  min-height: 80px;
  border-radius: 14px;
  overflow: hidden;
}

.ghost-button {
  display: none;
}

.footer-trigger {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  height: 14px;
  z-index: 12;
}

.footer {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 10px calc(var(--page-pad) + env(safe-area-inset-right, 0px)) 12px calc(var(--page-pad) + env(safe-area-inset-left, 0px));
  text-align: center;
  transform: translateY(110%);
  opacity: 0;
  transition: transform 0.28s ease, opacity 0.28s ease;
  z-index: 11;
}

.footer .small {
  margin: 0;
  font-size: 0.9rem;
}

.footer .footer-link {
  text-decoration: none;
}

.footer-trigger:hover + .footer,
.footer:hover,
.footer:focus-within {
  transform: translateY(0);
  opacity: 1;
}

@media (max-width: 1024px) {
  .nav-shell {
    transform: none;
    opacity: 1;
  }

  .footer-trigger {
    display: none;
  }

  .footer {
    position: relative;
    transform: none;
    opacity: 1;
    text-align: left;
    gap: 6px;
  }
}

@media (max-width: 768px) {
  .nav-shell {
    gap: 12px;
    padding-top: 16px;
    padding-bottom: 12px;
  }

  .nav-links {
    width: 100%;
    gap: 8px 14px;
    padding-bottom: 6px;
    justify-content: flex-start;
  }

  .site-wordmark {
    font-size: 1.45rem;
    letter-spacing: 0.18em;
  }

  .nav-top {
    min-height: auto;
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }

  .spotify-shell {
    position: static;
    width: min(100%, 340px);
  }
}
