/* Receipt and street posters */
.receipt {
  --bg: #202d85; --fg: #fff4d0; --accent: #ffdf78; --rule: #fff4d05c;
}
.receipt .poem-layout {
  grid-template-columns: minmax(0, .84fr) minmax(0, 1.16fr);
}
.receipt h1 {
  font: 400 clamp(3rem, 6.3vw, 7.1rem)/.88 var(--display);
  letter-spacing: -.085em;
}
.receipt h1 em { display: block; font-style: normal; }
.receipt-stage, .card-receipt .card-art {
  background-color: #303eae;
  background-image: radial-gradient(circle, #c5ccf467 1px, transparent 1.2px),
    linear-gradient(142deg, #151e6f 26%, transparent 26% 73%, #172173 73%);
  background-size: 8px 8px, 100% 100%;
}
.receipt-stage {
  display: grid;
  place-items: center;
  min-height: 380px;
  padding: clamp(27px, 5vw, 64px) clamp(18px, 4vw, 57px);
  border: 1px solid var(--rule);
}
.receipt-slip {
  width: min(100%, 480px);
  color: #1d2548;
  background: repeating-linear-gradient(0deg, #222a5109 0 1px, transparent 1px 4px), #fff1c9;
  padding: clamp(14px, 2.8vw, 31px);
  position: relative;
  transform: rotate(-3deg);
  box-shadow: 7px 11px #101957, -6px -5px #8293f995;
}
.receipt-heading, .receipt-total {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: .68rem;
  text-transform: uppercase;
  letter-spacing: .07em;
  padding: 11px 0;
}
.receipt-heading { border-block: 1px solid currentColor; font-weight: 500; }
.receipt-total { border-top: 1px dashed currentColor; min-height: 55px; }
.receipt .verse { margin: 17px 0 15px; font-size: clamp(.9rem, 1.4vw, 1.16rem); gap: 10px; }
.receipt .verse span { display: grid; grid-template-columns: 1.7em 1fr; column-gap: .6em; }
.receipt .verse span::before { content: attr(data-quantity) / ""; opacity: .68; }
.receipt .verse span:last-child { transition: color 240ms ease; }
.receipt-stamp {
  position: absolute;
  right: 11%;
  bottom: 11px;
  padding: .22em .48em;
  border: 3px double currentColor;
  color: #a82c43;
  background: #fff1c9;
  font: 400 clamp(.9rem, 2vw, 1.45rem)/1.05 var(--display);
  text-transform: uppercase;
  transform: rotate(-10deg) scale(1.32);
  opacity: 0;
  transition: transform 180ms ease-out, opacity 150ms;
}
.receipt[data-state="1"] .receipt-stamp { opacity: 1; transform: rotate(-10deg) scale(1); }
.receipt[data-state="1"] .verse span:last-child { color: #92233c; }
.receipt[data-state="1"] .verse span:last-child::before { visibility: hidden; }

.voices {
  --bg: #f5d2ba; --fg: #39212d; --accent: #782f4d; --rule: #782f4d66;
}
.voices .poem-layout {
  display: block;
  padding-top: clamp(38px, 5vw, 80px);
}
.voices .poem-copy { text-align: center; }
.voices h1 {
  font: 400 clamp(4.4rem, 11vw, 11rem)/.81 var(--serif);
  letter-spacing: -.045em;
}
.voice-stage {
  display: grid;
  align-items: center;
  min-height: 285px;
  padding: clamp(17px, 3.4vw, 44px);
  border: 1px solid #39212d;
  background: repeating-linear-gradient(140deg, #2b16272b 0 1px, transparent 1px 8px), #582c4c;
  overflow: hidden;
}
.voice-broadside { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(10px, 2vw, 27px); }
.voice-broadside span {
  display: grid;
  align-content: center;
  min-height: 155px;
  padding: clamp(12px, 2.5vw, 33px);
  color: #331a2a;
  background: radial-gradient(circle, #4f264524 1px, transparent 1.1px) 0 0 / 6px 6px, var(--stock);
  border: 1px solid #39212d;
  box-shadow: 4px 4px #241628;
  transform: rotate(var(--tilt));
}
.voice-broadside span:nth-child(1) {
  --stock: #f7a85e; --tilt: -3deg;
  font: 400 clamp(1.1rem, 2.35vw, 2.2rem)/1.08 var(--display);
  letter-spacing: -.04em;
}
.voice-broadside span:nth-child(2) {
  --stock: #f8b2c8; --tilt: 2deg;
  font: italic 400 clamp(1.8rem, 4vw, 3.9rem)/.91 var(--serif);
}
.voice-broadside span:nth-child(3) {
  --stock: #afe2c9; --tilt: -2deg;
  font: 500 clamp(.9rem, 1.8vw, 1.65rem)/1.25 var(--mono);
}
.voices[data-state="1"] .voice-broadside { grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 0; }
.voices[data-state="1"] .voice-broadside span { min-height: 65px; padding-block: .38em; }
.voices[data-state="1"] .voice-broadside span:nth-child(1) { grid-column: 1 / 10; --tilt: -2deg; }
.voices[data-state="1"] .voice-broadside span:nth-child(2) { grid-column: 4 / 13; --tilt: 2deg; }
.voices[data-state="1"] .voice-broadside span:nth-child(3) { grid-column: 2 / 12; --tilt: -1deg; }
.receipt[data-state="1"] [data-effect], .voices[data-state="1"] [data-effect] {
  color: var(--bg);
  background: var(--accent);
}

.card-receipt .card-art, .card-voices .card-art { display: grid; place-items: center; }
.card-receipt .card-art::before, .card-voices .card-art::before {
  content: "";
  grid-area: 1 / 1;
}
.card-receipt .card-art::before {
  width: 61%; height: 71%; transform: rotate(-8deg);
  background:
    repeating-linear-gradient(0deg, #252650 0 1px, transparent 1px 9px) 50% 40% / 76% 50% no-repeat,
    #fff1c9;
  box-shadow: 5px 6px #101957;
}
.card-receipt .card-art::after {
  content: "Sin precio" / "";
  grid-area: 1 / 1;
  padding: .2em .4em;
  color: #a82c43;
  background: #fff1c9;
  border: 2px solid currentColor;
  text-transform: uppercase;
  font: 500 clamp(.65rem, 1.35vw, 1.15rem)/1.1 var(--mono);
  transform: translate(26%, 63%) rotate(-13deg);
}
.card-voices .card-art { background: #582c4c; }
.card-voices .card-art::before {
  width: 60%; height: 33%;
  background: radial-gradient(circle, #4f264547 1px, transparent 1.1px) 0 0 / 5px 5px, #f8b2c8;
  border: 1px solid #39212d;
  transform: skew(-9deg) rotate(-9deg);
  box-shadow: -14px -15px #f7a85e, 13px 14px #afe2c9, 16px 17px #39212d;
}
.card-voices .card-art::after {
  content: "« »" / "";
  grid-area: 1 / 1;
  font: 400 clamp(1.3rem, 4vw, 3.6rem)/1 var(--serif);
  color: #582c4c;
  transform: rotate(-9deg);
}

@media (min-width: 1180px) {
  .poem-list { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .card-copy h3 { font-size: clamp(1.65rem, 2.15vw, 2.9rem); }
}
@media (min-width: 701px) and (max-width: 1179px) {
  .poem-list { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .poem-list li { grid-column: span 2; }
  .poem-list li:nth-last-child(-n + 2) { grid-column: span 3; }
}
@media (max-width: 700px) {
  .receipt .poem-layout { grid-template-columns: minmax(0, 1fr); }
  .receipt h1 { font-size: clamp(2.8rem, 10vw, 4.6rem); }
  .receipt h1 em { display: inline; }
  .receipt-stage { min-height: 0; }
  .voice-stage { min-height: 0; }
  .voice-broadside { grid-template-columns: 1fr; gap: 11px; }
  .voice-broadside span { min-height: 59px; }
  .voices[data-state="1"] .voice-broadside span { min-height: 65px; }
}
@media (min-width: 520px) and (max-width: 700px) {
  .poem-list li:last-child { grid-column: 1 / -1; }
  .poem-list li:last-child .card-art { aspect-ratio: 2.5; }
}
@media (max-width: 519px) {
  .poem-list { grid-template-columns: 1fr; }
}
