.quilt-reading { --bg: #212630; --fg: #f1e9dc; --accent: #e3bc91; --rule: #a3928968; }
.clay-reading { --bg: #28221f; --fg: #f3decf; --accent: #e2a98a; --rule: #b579627a; }
.rain-reading { --bg: #2d2220; --fg: #f4e3cf; --accent: #eab29a; --rule: #b9887080; }

:is(.quilt-reading, .clay-reading, .rain-reading) .poem-layout {
  position: relative;
  isolation: isolate;
  grid-template-columns: minmax(0, 1fr);
}
:is(.quilt-reading, .clay-reading, .rain-reading) .poem-copy { max-width: min(40rem, 100%); }
.suardiaz-scape {
  position: absolute;
  z-index: -1;
  inset: 0;
  isolation: isolate;
  overflow: hidden;
}
.suardiaz-scape::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
}
.suardiaz-scape i { position: absolute; display: block; }

.quilt-reading .poem-copy h1 {
  max-width: 13ch;
  font-size: clamp(3rem, 7vw, 7rem);
  font-style: italic;
}
.quilt {
  background: linear-gradient(145deg, #333d4e, #31333a 54%, #534039);
}
.quilt::after {
  background: linear-gradient(90deg, #1e202bf0 2%, #20232dbd 33%, transparent 75%);
}
.quilt i {
  width: 113%;
  height: 45%;
  left: 16%;
  border: 1px solid #af9b8055;
  border-radius: 50% 49% 0 0 / 26% 51% 0 0;
  box-shadow: 0 -.5rem 1.2rem #16172060, inset 0 .2rem 1.1rem #d4b08d36;
  background:
    repeating-linear-gradient(89deg, #080b1411 0 1px, transparent 1px 3px),
    repeating-linear-gradient(5deg, #d0b29612 0 1px, transparent 1px 4px),
    linear-gradient(169deg, var(--cloth), #262532);
  transform: rotate(-19deg) translateY(var(--fold, 0));
}
.quilt i:nth-child(1) { bottom: 39%; --cloth: #575868; }
.quilt i:nth-child(2) { bottom: 21%; left: 20%; --cloth: #746866; --fold: 1.1%; }
.quilt i:nth-child(3) { bottom: 3%; left: 23%; --cloth: #72665f; --fold: -2.3%; }
.quilt i:nth-child(4) { bottom: -18%; left: 7%; --cloth: #4f4a52; }
.quilt i:nth-child(3)::before {
  content: "";
  position: absolute;
  inset: 2% 12% auto 13%;
  height: 26%;
  border-top: 1px solid #efc590a8;
  border-radius: 49%;
  filter: blur(1px);
  opacity: .2;
}
.quilt.scene-in-view i:nth-child(3) { animation: colcha-pliegue 1.8s cubic-bezier(.19,.66,.32,1) both; }
.quilt.scene-in-view i:nth-child(3)::before { animation: colcha-costura 1.8s ease both; }
@keyframes colcha-pliegue {
  from { transform: rotate(-19deg) translateY(-2.3%); }
  to { transform: rotate(-19deg) translateY(2.2%); }
}
@keyframes colcha-costura {
  from { opacity: .2; }
  to { opacity: .85; }
}

.clay-reading .poem-copy { align-self: end; padding-bottom: clamp(0rem, 5vh, 3rem); }
.clay-reading .poem-copy h1 {
  color: #efb49d;
  font: 400 clamp(3rem, 8.7vw, 8.5rem)/.88 var(--display);
  letter-spacing: -.095em;
  text-transform: uppercase;
}
.clay { background: linear-gradient(132deg, #463631, #5c4037 56%, #302726); }
.clay::after { background: linear-gradient(82deg, #29211df5 0%, #29211d85 35%, transparent 74%); }
.clay i {
  background:
    repeating-radial-gradient(ellipse at 42% 18%, #fac5a019 0 1px, #48272129 2px 4px, transparent 6px 17px),
    linear-gradient(152deg, #b97960, #98543e 19%, #713d33 72%, #a86a53);
  transform: translate(var(--x, 0), var(--y, 0)) rotate(var(--angle));
  transform-origin: 48% 52%;
  filter: drop-shadow(.35rem .6rem .45rem #1d1413a8);
}
.clay i:nth-child(1) {
  inset: 9% 10% 45% 50%;
  clip-path: polygon(17% 4%, 72% 0, 92% 19%, 100% 65%, 75% 87%, 61% 100%, 35% 79%, 0 64%, 9% 46%);
  --angle: -13deg;
}
.clay i:nth-child(2) {
  inset: 41% 35% 23% 45%;
  clip-path: polygon(7% 7%, 37% 3%, 95% 22%, 81% 54%, 100% 81%, 65% 100%, 35% 77%, 17% 80%, 0 49%);
  --angle: 17deg;
}
.clay i:nth-child(3) {
  inset: 49% 2% 9% 65%;
  clip-path: polygon(0 24%, 23% 21%, 41% 0, 80% 15%, 95% 32%, 100% 76%, 63% 96%, 18% 100%, 24% 71%, 7% 54%);
  --angle: -11deg;
}
.clay.scene-in-view i { animation: arcilla-asiento 1.5s cubic-bezier(.18,.63,.23,1) both; }
@keyframes arcilla-asiento {
  from { transform: translate(0) rotate(var(--angle)); }
  to { transform: translate(var(--x), var(--y)) rotate(var(--angle)); }
}
.clay.scene-in-view i:nth-child(1) { --x: -2.5%; --y: -4%; }
.clay.scene-in-view i:nth-child(2) { --x: -12%; --y: 7%; }
.clay.scene-in-view i:nth-child(3) { --x: 7%; --y: 4%; }

.rain-reading .poem-copy h1 { color: #f0c4a6; font-size: clamp(3rem, 8.7vw, 9rem); }
.roofs { background: linear-gradient(151deg, #6c6865 3%, #5a5552 41%, #704835 78%, #352927); }
.roofs::after { background: linear-gradient(108deg, #2b211fea 0%, #2b211fbc 41%, transparent 82%); }
.roof-section {
  left: 39%;
  width: 79%;
  height: 61%;
  bottom: -21%;
  border-top: 3px solid #d89c7e9c;
  box-shadow: 0 -1.5rem 2rem #21181658;
  transform: rotate(-21deg) skewX(18deg);
  background:
    repeating-linear-gradient(90deg, transparent 0 5%, #2319187d 5.4% 7%, #e5a68851 7.3% 7.8%, transparent 8% 11%),
    repeating-linear-gradient(0deg, #623e36 0 11%, #a06a55 12% 15%, #4d3129 16% 18%);
}
.roofs .roof-section:nth-child(1) { bottom: 4%; left: 55%; opacity: .75; }
.roofs .roof-section:nth-child(2) { bottom: -8%; left: 44%; }
.roofs .roof-section:nth-child(3) { bottom: -30%; left: 24%; }
.roof-rain {
  inset: -18% -10% -22% 29%;
  background:
    repeating-linear-gradient(91deg, transparent 0 7%, #e5ddc959 7.1% 7.2%, transparent 7.3% 13%),
    repeating-linear-gradient(0deg, #95908113 0 7%, transparent 7% 24%);
  mask-image: linear-gradient(167deg, transparent 5%, #000 42%, #0006 70%, transparent 79%);
  transform: rotate(12deg) translateY(-13%);
  opacity: .25;
}
.roofs.scene-in-view .roof-rain { animation: lluvia-borde 2.45s ease-out both; }
@keyframes lluvia-borde {
  0% { transform: rotate(12deg) translateY(-25%); opacity: .15; }
  58% { opacity: .62; }
  100% { transform: rotate(12deg) translateY(11%); opacity: .33; }
}

@media (max-width: 780px) {
  :is(.quilt-reading, .clay-reading, .rain-reading) .poem-layout { align-items: start; }
  .clay-reading .poem-copy { align-self: start; }
  .suardiaz-scape::after { background: linear-gradient(157deg, #211d21f5 3%, #211d21a9 35%, transparent 74%); }
  .quilt i { left: 1%; width: 135%; height: 31%; }
  .quilt i:nth-child(2) { left: 4%; }
  .quilt i:nth-child(3) { left: 7%; }
  .quilt i:nth-child(4) { left: 0; bottom: -5%; }
  .clay i:nth-child(1) { inset: 45% 9% 27% 29%; }
  .clay i:nth-child(2) { inset: 64% 46% 9% 10%; }
  .clay i:nth-child(3) { inset: 70% 1% 0 48%; }
}
