.rubor {
  --paper: #fff0ee;
  --ink: #682138;
  --accent: #782742;
  --on-accent: #fff5f0;
  --wash: #f5bfc7;
  --display: "Barlow Condensed", Arial, sans-serif;
}
.rubor .top {
  border-bottom: 2px solid var(--ink);
}
.rubor .button {
  border-radius: 0.3rem;
}
.rubor-hero {
  background: #f3b7c4;
  padding: 4.2rem 6%;
  display: grid;
  grid-template-columns: 1.04fr 1fr;
  align-items: center;
  min-height: clamp(34rem, 40vw, 45rem);
}
.rubor h1,
.rubor h2,
.rubor h3 {
  font-weight: 600;
}
.rubor h1 {
  font-size: clamp(5rem, 8.5vw, 10rem);
  line-height: 0.9;
  text-transform: uppercase;
  letter-spacing: -0.036em;
}
.rubor .location::before {
  display: none;
}
.polaroids {
  position: relative;
  height: clamp(22rem, 32vw, 35rem);
}
.polaroids figure {
  position: absolute;
  background: #fff6ee;
  padding: 0.52rem 0.52rem 0.3rem;
  box-shadow: 0.3rem 0.4rem 0 #682138;
  border: 1px solid var(--ink);
}
.polaroids figcaption {
  padding: 0.3rem 0.2rem;
  font-size: 0.85rem;
  font-weight: 600;
}
.polaroids figure:first-child {
  top: 0;
  right: 23%;
  width: 61%;
  transform: rotate(-8deg);
}
.polaroids figure:last-child {
  bottom: 0;
  right: 1%;
  width: 48%;
  transform: rotate(8deg);
}
.polaroids img {
  width: 100%;
  aspect-ratio: 0.87;
  object-fit: cover;
}
.polaroids figure:last-child img {
  aspect-ratio: 1.12;
  object-position: 50% 65%;
}
.rubor .care-list {
  gap: 1.6rem;
}
.rubor .care {
  border: 1px solid var(--ink);
  background: #fff8f3;
  box-shadow: 0.25rem 0.25rem 0 var(--ink);
}
.rubor .care-text {
  padding: 1.2rem;
}
.rubor .care-picture {
  aspect-ratio: 1.7;
  border-bottom: 1px solid var(--ink);
}
@media (max-width: 680px) {
  .rubor-hero {
    grid-template-columns: 1fr;
    gap: 1.7rem;
    padding: 2.5rem 7%;
  }
  .rubor h1 {
    font-size: clamp(4.25rem, 15vw, 6.5rem);
  }
  .polaroids {
    width: 94%;
    max-width: 26rem;
    height: clamp(16rem, 65vw, 23rem);
    margin-inline: auto;
  }
  .rubor-hero {
    padding-bottom: 2.7rem;
  }
}

/* Cartel tipográfico y fotografías que también abren su tratamiento. */
.rubor-hero {
  background-image: radial-gradient(#8d385234 1px, transparent 1px);
  background-size: 9px 9px;
}
.rubor-hero h1 span {
  color: #fff0ee;
  -webkit-text-stroke: clamp(1px, .13vw, 2.5px) var(--ink);
  text-shadow: .028em .035em var(--ink);
}
.polaroids figure::before {
  content: "";
  position: absolute;
  left: 30%;
  top: -.55rem;
  width: 40%;
  height: 1.1rem;
  background: #ffdc7edb;
  transform: rotate(-4deg);
  pointer-events: none;
}
.polaroids figcaption a { text-decoration: underline; text-underline-offset: .18em; }
.polaroids figcaption a::after { content: ""; position: absolute; inset: 0; }
.polaroids figure:focus-within { outline: 3px solid var(--ink); outline-offset: 6px; }
@media (prefers-reduced-motion: no-preference) {
  .polaroids figure { transition: translate 220ms var(--ease-out), rotate 220ms var(--ease-out); }
  .polaroids figure:first-child { animation: pin-print 680ms var(--ease-out) backwards; }
  .polaroids figure:last-child { animation: pin-print 720ms 120ms var(--ease-out) backwards; }
  .polaroids figure:focus-within { translate: 0 -5px; rotate: -3deg; z-index: 1; }
  @media (hover: hover) and (pointer: fine) {
    .polaroids figure:hover { translate: 0 -5px; rotate: -3deg; z-index: 1; }
  }
}
@keyframes pin-print {
  from { opacity: .15; scale: 1.08; translate: 0 -1.6rem; rotate: -7deg; }
}

/* El conjunto de recortes oscila unos píxeles alrededor del punto de sujeción. */
@media (prefers-reduced-motion: no-preference) {
  .rubor .polaroids {
    transform-origin: 50% 12%;
    animation: paper-sway 5.8s ease-in-out infinite alternate;
  }
}
@keyframes paper-sway {
  from { transform: translateY(2px) rotate(-.65deg); }
  to { transform: translateY(-3px) rotate(.65deg); }
}
