* { box-sizing: border-box; }

html, body { margin: 0; min-height: 100%; }

body {
  background:
    radial-gradient(ellipse at 50% 0%, #2a3550 0%, transparent 55%),
    #141a2b;
  color: #2a241c;
  font-family: "Segoe UI", sans-serif;
}

button, input { font: inherit; }

.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

body > main {
  max-width: 980px;
  margin: 36px auto 56px;
  padding: 36px 34px 28px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.35), transparent 80px),
    #f4e7c8;
  border: 1px solid #c4b48a;
  border-radius: 6px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45), inset 0 0 0 6px rgba(184, 148, 84, 0.18);
}

.kicker {
  margin: 0;
  text-align: center;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-size: 12px;
  color: #8a6a32;
}

h1 {
  font-family: Palatino, "Palatino Linotype", Georgia, serif;
  text-align: center;
  font-size: clamp(34px, 5vw, 54px);
  margin: 8px 0 0;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.rule {
  width: 120px;
  height: 1px;
  margin: 14px auto;
  background: #b8893a;
}

.lead, #now, .prose {
  text-align: center;
  margin: 0 auto;
  max-width: 52ch;
}

#now {
  margin-top: 8px;
  color: #7a5a28;
  min-height: 1.3em;
  font-weight: 600;
}

.tabs {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.tabs [role="tab"] {
  min-height: 44px;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid #b8893a;
  background: transparent;
  color: #6d5428;
  cursor: pointer;
}

.tabs [role="tab"][aria-selected="true"] {
  background: #b8893a;
  color: #fffaf0;
}

.columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 36px;
  margin-top: 26px;
}

h2 {
  font-family: Palatino, "Palatino Linotype", Georgia, serif;
  font-size: 16px;
  letter-spacing: 0.08em;
  margin: 0 0 8px;
  color: #6d5428;
}

.list { display: flex; flex-direction: column; gap: 6px; }

.song {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 64px;
  padding: 8px 10px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #2a241c;
  text-align: left;
  cursor: pointer;
  transition: background 0.15s;
}

.seal {
  width: 44px;
  height: 44px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1.5px solid #b8893a;
}

.seal svg { width: 28px; height: 28px; display: block; }

.label { display: flex; flex-direction: column; gap: 2px; min-width: 0; }

.name {
  font-family: Palatino, "Palatino Linotype", Georgia, serif;
  font-size: 16px;
  font-weight: 600;
}

.hint { font-size: 13px; opacity: 0.75; }

.meter { display: flex; gap: 4px; margin-left: auto; flex: none; flex-wrap: wrap; max-width: 92px; justify-content: flex-end; }

.meter i {
  width: 7px;
  height: 7px;
  border-radius: 99px;
  background: #8a6230;
  opacity: 0.28;
  display: block;
}

.meter i.is-lit { opacity: 1; }

.song.is-playing { background: rgba(184, 137, 58, 0.16); }

.song.is-playing .seal { box-shadow: 0 0 0 2px #b8893a; }

.foot {
  display: flex;
  justify-content: center;
  margin-top: 22px;
  padding-top: 12px;
  border-top: 1px solid rgba(138, 106, 50, 0.35);
}

.vol {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
}

#volume {
  width: 140px;
  min-height: 44px;
  accent-color: #8a6230;
  cursor: pointer;
}

#volume-readout { min-width: 3ch; font-variant-numeric: tabular-nums; }

footer { margin-top: 16px; text-align: center; }

a { color: #6d5428; }

.prose { text-align: left; margin-top: 18px; line-height: 1.5; }

.prose p { margin: 0 0 12px; }

.song:focus-visible,
[role="tab"]:focus-visible,
#volume:focus-visible {
  outline: 2px solid #b8893a;
  outline-offset: 3px;
}

@media (max-width: 760px) {
  body > main { margin: 0; padding: 24px 16px 18px; border-radius: 0; }
  .columns { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .song { transition: none; }
}

@media (hover: hover) and (pointer: fine) {
  .song:hover { background: rgba(184, 137, 58, 0.1); }
}
