.poem-heading,
.poem-card-heading {
  display: flex;
  align-items: center;
  gap: 10px;
}

.poem-heading {
  flex-wrap: wrap;
}

.poem-heading h1,
.poem-card-heading h2,
.poem-card-heading h3 {
  margin: 0;
}

.poem-audio-button {
  display: inline-grid;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  place-items: center;
  border: 1px solid rgba(142, 72, 32, 0.34);
  border-radius: 50%;
  background: #fff8e9;
  color: var(--accent-dark);
  font: inherit;
  font-size: 1.15rem;
  cursor: pointer;
}

.poem-card-heading .poem-audio-button {
  width: 36px;
  height: 36px;
  flex-basis: 36px;
  font-size: 1rem;
}

.poem-audio-button:hover,
.poem-audio-button.is-playing {
  border-color: #e9b96f;
  background: #e9b96f;
  color: #40210f;
}

.poem-audio-button:focus-visible {
  outline: 3px solid rgba(233, 185, 111, 0.45);
  outline-offset: 3px;
}

.poem-lines {
  margin: 0;
  padding: 24px clamp(20px, 5vw, 44px);
  border-left: 4px solid var(--accent);
  border-radius: 12px;
  background: var(--panel-soft);
  font-family: "Segoe UI", Arial, Helvetica, sans-serif;
  font-size: clamp(1.08rem, 2.8vw, 1.3rem);
  font-style: italic;
  line-height: 1.9;
}

.poem-lines p {
  margin: 0;
}

.poem-lines p + p {
  margin-top: 4px;
}

.poem-note {
  margin-top: 18px !important;
  color: var(--muted);
  font-family: "Segoe UI", Arial, Helvetica, sans-serif;
  font-size: .95rem;
  font-style: normal;
}

.poem-order {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin: 0 0 22px;
  padding: 0;
  list-style: none;
}

.poem-order li {
  padding: 9px 10px;
  border-radius: 10px;
  background: #fff8e9;
  font-size: .92rem;
  font-weight: 700;
  text-align: center;
}

.poem-source-link {
  margin-top: 22px !important;
}

.poem-source-link a {
  font-weight: 750;
}

@media (max-width: 680px) {
  .poem-heading {
    justify-content: center;
  }

  .poem-heading h1 {
    max-width: calc(100% - 52px);
  }

  .poem-order {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
