:root {
  color-scheme: light;
  font-family: system-ui, sans-serif;
  background: #f5f0e7;
  color: #22251f;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  align-items: center;
}

main {
  width: min(100% - 2rem, 34rem);
  margin-inline: auto;
  padding-block: 2.5rem;
}

h1, h2, p {
  margin: 0;
}

h1 {
  font-family: Georgia, serif;
  font-size: clamp(2.7rem, 9vw, 4.5rem);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -.055em;
}

header p {
  max-width: 34ch;
  margin-top: 1rem;
  color: #55584e;
  line-height: 1.55;
}

.player {
  margin-top: 2rem;
  overflow: hidden;
  border: 1px solid #dcd1c3;
  border-radius: 1.25rem;
  background: #fffcf7;
  box-shadow: 0 .8rem 2.8rem #32271b10;
}

.cover {
  min-height: 11rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  background: radial-gradient(ellipse at 50% 65%, #46493a, #292d25 72%);
}

.cover i {
  width: .34rem;
  height: 1.15rem;
  border-radius: 1rem;
  background: #ffbe8b;
}

.cover i:nth-child(2n) { height: 1.9rem; }
.cover i:nth-child(3n) { height: 3rem; }
.cover i:nth-child(5) { height: 4.65rem; background: #ffe9cf; }
.cover i:last-child { height: 1.15rem; }

.track {
  padding: clamp(1rem, 5vw, 1.5rem);
}

.track h2 {
  font-size: 1.15rem;
  line-height: 1.3;
}

.track p {
  margin-top: .35rem;
  color: #55584e;
  font-size: .9rem;
}

audio {
  display: block;
  width: 100%;
  margin-top: 1rem;
}

audio:focus-visible {
  outline: 2px solid #a3472c;
  outline-offset: 3px;
  border-radius: .35rem;
}

#player-error {
  margin-top: .8rem;
  color: #942f25;
}
