:root {
  --ink: #263b43;
  --red: #a51d25;
  --gold: #aa741c;
  --line: rgba(150, 110, 60, 0.25);
  --hover: rgba(255, 222, 155, 0.38);
}

* {
  box-sizing: border-box;
}

html {
  font-size: 16px;
}

body {
  margin: 0;
  background: #e8edf3;
  color: var(--ink);
  font-family: "Inter", sans-serif;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* Desktop / default: new horizontal poster */

.christmas-page {
  position: relative;
  width: 100%;
  aspect-ratio: 1448 / 1086;
  background-image: url("bg.png");
  background-size: 100% 100%;
  background-repeat: no-repeat;
}

/* Song list inside the cream parchment frame */

.christmas-content {
  position: absolute;
  top: 18%;
  bottom: 49%;
  left: 19%;
  width: 59%;
  overflow: hidden;
}

.song-list {
  list-style: none;
  counter-reset: song;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-rows: repeat(10, minmax(0, 1fr));
  height: 100%;
}

.song-list li {
  counter-increment: song;
  display: flex;
  align-items: center;
  min-height: 0;
  border-bottom: 1px solid var(--line);
}

.song-list li:last-child {
  border-bottom: 0;
}

.song-list li::before {
  content: counter(song, decimal-leading-zero);
  flex: 0 0 2.7rem;
  font-family: "Cormorant Garamond", serif;
  font-weight: 700;
  font-size: clamp(1rem, 1.6vw, 1.55rem);
  color: var(--gold);
}

.song-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  width: 100%;
  min-width: 0;
  padding: 0.2rem 0.4rem;
  border-radius: 6px;
  color: var(--ink);
  text-decoration: none;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(1rem, 1.6vw, 1.55rem);
  font-weight: 700;
  line-height: 1.1;
  transition: background 0.2s, color 0.2s;
}

.song-list a::after {
  content: "↗";
  flex-shrink: 0;
  font-family: "Inter", sans-serif;
  font-size: 0.75em;
  font-weight: 500;
  color: var(--gold);
}

.song-list a:hover {
  background: var(--hover);
  color: var(--red);
}

.song-list a:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 2px;
}

/* Mobile: tall poster with cream frame for the song list */

@media (max-width: 700px) {
  .christmas-page {
    aspect-ratio: 887 / 1774;
    background-image: url("bg_tall_mobile.png");
  }

  .christmas-content {
    top: 20%;
    bottom: 24%;
    left: 12%;
    width: 76%;
  }

  .song-list li::before {
    flex-basis: 1.8rem;
    font-size: clamp(0.95rem, 4vw, 1.25rem);
  }

  .song-list a {
    font-size: clamp(0.95rem, 4vw, 1.3rem);
    padding: 0.2rem 0.1rem;
    line-height: 1.1;
  }

  .song-list a::after {
    font-size: 0.8rem;
  }
}

@media (max-width: 360px) {
  .song-list li::before {
    flex-basis: 1.5rem;
  }

  .song-list a {
    font-size: 0.92rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .song-list a {
    transition: none;
  }
}
