:root {
  --color-bg: #ffffff;
  --color-text: #282424;
  --color-muted: #81858a;
  --color-accent: #810404;
}

* {
  box-sizing: border-box;
}

html {
  overflow-y: scroll;
  scrollbar-gutter: stable;
}

body {
  margin: 0;
  font-family: 'Rubik', Arial, sans-serif;
  color: var(--color-muted);
  background: var(--color-bg);
}

a {
  color: var(--color-muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--color-accent);
}

/* Mobile-first: base rules below target small screens; min-width
   queries layer on tablet/desktop overrides, mirroring the original
   site's 403px / 1024px Elementor breakpoints. */

.site-header {
  position: relative;
  margin-top: 5rem;
  padding-bottom: 1.75rem;
}

.header-inner {
  max-width: 95vw;
  margin: 0 auto;
  padding-inline: 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.site-title {
  font-size: 1.875rem;
  font-weight: 500;
  line-height: 1.2;
  color: var(--color-muted);
  white-space: nowrap;
}

.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--color-text);
  border-radius: 2px;
  transition:
    transform 0.25s ease,
    opacity 0.25s ease;
}

.nav-toggle[aria-expanded='true'] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded='true'] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded='true'] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.site-nav {
  display: flex;
  position: absolute;
  top: 100%;
  left: 0;
  width: 100vw;
  flex-direction: column;
  gap: 0;
  background: var(--color-bg);
  border-top: 1px solid #eee;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.08);
  z-index: 10;
  opacity: 0;
  transform: translateY(-8px);
  pointer-events: none;
  transition:
    opacity 0.2s ease,
    transform 0.2s ease;
}

.site-nav.open {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.site-nav.open a {
  padding: 1.5rem;
  padding-right: 2.5rem;
}

.site-nav a {
  display: block;
  text-align: right;
  padding: 16px 32px;
  border-bottom: 1px solid #eee;
  font-weight: 700;
}

.site-nav a:last-child {
  border-bottom: none;
}

.site-nav a.active {
  color: var(--color-accent);
}

@media (min-width: 641px) {
  .nav-toggle {
    display: none;
  }

  .header-inner {
    max-width: 75vw;
  }

  .site-nav {
    display: flex;
    position: static;
    flex-direction: row;
    gap: 20px;
    width: auto;
    min-width: 0;
    background: none;
    border: none;
    box-shadow: none;
    opacity: 1;
    transform: none;
    pointer-events: auto;
  }

  .site-nav a {
    display: inline;
    text-align: left;
    padding: 0 0 4px;
    border-bottom: 2px solid transparent;
    font-weight: 500;
    transition:
      color 0.2s ease,
      border-color 0.2s ease;
  }

  .site-nav a:last-child {
    border-bottom: 2px solid transparent;
  }

  .site-nav a:hover,
  .site-nav a.active {
    border-bottom-color: var(--color-accent);
  }
}

@media (min-width: 1025px) {
  .site-title {
    font-size: 2.5rem;
  }
}

main {
  max-width: 90vw;
  margin: 0 auto;
  padding: 24px 16px 64px;
}

.search-bar {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 24px;
}

#searchInput {
  flex: 1;
  max-width: 80vw;
  padding: 8px 10px;
  font-size: 16px;
  border-radius: 5px;
  border: none;
  border-bottom: 1px solid var(--color-accent);
  outline: none;
  transition: box-shadow 0.2s ease;
}

#searchInput:focus {
  box-shadow: 0 4px 8px -4px rgba(129, 4, 4, 0.35);
}

@media (min-width: 641px) {
  #searchInput {
    max-width: 55vw;
  }
}

button,
.button {
  display: inline-block;
  color: #fff !important;
  background-color: var(--color-accent);
  padding: 0.8rem 1.5rem;
  border: none;
  border-radius: 5px;
  font-size: 1.2rem;
  cursor: pointer;
  transition:
    transform 0.15s ease,
    filter 0.15s ease;
}

button:hover,
.button:hover {
  transform: scale(1.05);
  filter: brightness(1.08);
}

button:active,
.button:active {
  transform: scale(1);
  filter: brightness(0.96);
}

.anniversary-link {
  text-align: center;
  margin-bottom: 16px;
}

.anniversary-link.hidden {
  display: none;
}

.song-list {
  width: min(100%, 80vw);
  margin: 0 auto;
  text-align: left;
  list-style: none;
  padding: 0;
  font-size: 1.75rem;
  font-weight: 500;
}

@media (min-width: 641px) {
  .song-list {
    width: min(100%, 53vw);
    font-size: 2.5rem;
  }
}

.song-list li {
  padding: 3rem 1rem;
  border-bottom: 1px dashed var(--color-muted);
}

@media (min-width: 641px) {
  .song-list li {
    padding: 3rem;
  }
}

.song-list li.no-match {
  display: none;
}

.song-list a {
  display: inline-block;
  transition:
    color 0.2s ease,
    background-color 0.2s ease,
    transform 0.15s ease;
}

.song-list a:hover {
  transform: scale(1.05);
}

.song-list a:active {
  transform: scale(1);
}

.song-list a.highlight {
  background-color: yellow;
  color: var(--color-muted);
}

.playlist-page main {
  text-align: center;
}

.playlist-embed {
  width: 100%;
  max-width: 80vw;
  aspect-ratio: 16 / 9;
  border: none;
}

@media (min-width: 641px) {
  .playlist-embed {
    margin-top: 2rem;
    max-width: 65vw;
  }
}

.playlist-link {
  margin-top: 16px;
}
