.universe {
  background: #f9ead7;
  color: var(--ink);
  padding-block: clamp(3.75rem, 7vw, 7rem);
}

.universe__feature {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(2rem, 5.5vw, 5.5rem);
}

.universe__intro > p:not(.eyebrow),
.atelier__copy > p:not(.eyebrow) {
  max-width: 44ch;
  margin: .95rem 0 0;
  line-height: 1.65;
}

.universe__elements {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin: 1.65rem 0 0;
  padding: 0;
  list-style: none;
}

.universe__element {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  min-height: 2.15rem;
  padding: .32rem .75rem;
  border: 1px solid #44252b29;
  border-radius: 2rem;
  background: var(--element-tint);
  font-size: .87rem;
  font-weight: 800;
}

.universe__element--earth { --element-tint: #e7e8cd; }
.universe__element--fire { --element-tint: #f9c8b4; }
.universe__element--air { --element-tint: #faefd8; }
.universe__element--water { --element-tint: #dce8f2; }

.universe__element svg {
  width: 1.1rem;
  height: 1.1rem;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.6;
}

.universe__photos {
  position: relative;
  display: grid;
  isolation: isolate;
  grid-template-columns: 1.65fr 1fr;
  grid-template-rows: repeat(2, minmax(0, 1fr));
  align-items: center;
  gap: clamp(.5rem, 1.5vw, 1rem) clamp(.7rem, 2vw, 1.65rem);
  padding: clamp(.85rem, 2.6vw, 2.25rem);
}

.universe__photos::before {
  position: absolute;
  z-index: -1;
  inset: 7% 4% 6%;
  border-radius: 48% 44% 43% 36% / 39% 40% 45% 43%;
  background-color: #ffd9c5;
  background-image: repeating-linear-gradient(90deg, #b9253021 0 1.25rem, transparent 1.25rem 2.5rem),
    repeating-linear-gradient(0deg, #b925301e 0 1.25rem, transparent 1.25rem 2.5rem);
  transform: rotate(-6deg);
  content: "";
}

.universe__photo,
.atelier__photo {
  margin: 0;
  border: 1px solid #bc78684d;
  background: var(--paper);
  box-shadow: 0 8px 18px #56243120;
  padding: clamp(.4rem, .8vw, .65rem);
}

.universe__photo img,
.atelier__photo img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
}

.universe__photo figcaption,
.atelier__photo figcaption {
  color: var(--red);
  font-family: var(--display);
  text-align: center;
}

.universe__photo figcaption {
  padding-top: .32rem;
  font-size: clamp(1rem, 2vw, 1.45rem);
  line-height: 1.15;
}

.universe__photo--earth {
  grid-row: span 2;
  transform: rotate(-6deg);
}

.universe__photo--fire {
  align-self: end;
  transform: rotate(7deg);
}

.universe__photo--air {
  align-self: start;
  transform: rotate(-3deg);
}

.universe__spark {
  position: absolute;
  right: 1%;
  bottom: 7%;
  width: clamp(2.25rem, 5.25vw, 4.5rem);
  height: auto;
  fill: #fff4db;
  stroke: var(--red);
  stroke-width: 1.7;
  stroke-linejoin: round;
  pointer-events: none;
}

.gataria {
  margin-top: clamp(2.75rem, 5.75vw, 5.25rem);
  padding-top: clamp(1.65rem, 3vw, 2.65rem);
  border-top: 2px dashed #a7172440;
}

.gataria__intro {
  display: flex;
  justify-content: space-between;
  align-items: end;
  flex-wrap: wrap;
  gap: .5rem 2rem;
  margin-bottom: 1.35rem;
}

.gataria__intro > p {
  max-width: 39ch;
  margin: 0;
  line-height: 1.5;
}

.gataria__title {
  margin: .3rem 0 0;
  color: var(--red);
  font-family: var(--display);
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 400;
  line-height: 1;
}

.gataria__grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: clamp(.55rem, 1.1vw, .95rem);
  margin: 0;
  padding: 0;
  list-style: none;
}

.gataria__grid li {
  padding: .6rem .6rem .85rem;
  border: 1px solid #a7172426;
  border-radius: .85rem .85rem .7rem .7rem;
  background: #fffcf5;
  text-align: center;
}

.gataria__grid img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  border-radius: .5rem;
  object-fit: cover;
}

.gataria__grid h4 {
  margin: .6rem 0 .2rem;
  color: var(--red);
  font-family: var(--display);
  font-size: clamp(1.18rem, 1.65vw, 1.65rem);
  font-weight: 400;
  line-height: 1.1;
}

.gataria__grid p {
  max-width: 17ch;
  margin: 0 auto;
  font-size: .87rem;
  line-height: 1.4;
}

.atelier {
  background: #ffe0cf;
  color: var(--ink);
  padding-block: clamp(3.75rem, 7vw, 6.5rem);
}

.atelier__layout {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(2.3rem, 7vw, 7rem);
}

.atelier__photo {
  position: relative;
  justify-self: center;
  width: min(82%, 22rem);
  transform: rotate(-4deg);
}

.atelier__photo::before,
.atelier__photo::after {
  position: absolute;
  width: 5rem;
  height: 1.55rem;
  background-color: #f6c583d9;
  background-image: repeating-linear-gradient(45deg, #fff8dc75 0 3px, transparent 3px 6px);
  clip-path: polygon(3% 0, 100% 0, 96% 20%, 100% 39%, 96% 60%, 100% 79%, 97% 100%, 0 100%, 4% 81%, 0 62%, 4% 43%, 0 23%);
  content: "";
  pointer-events: none;
}

.atelier__photo::before {
  top: -.35rem;
  left: -1.35rem;
  transform: rotate(-31deg);
}

.atelier__photo::after {
  right: -1.55rem;
  bottom: .6rem;
  transform: rotate(-36deg);
}

.atelier__photo figcaption {
  padding-block: .55rem .3rem;
  font-size: 1.4rem;
}

.atelier__photo figcaption span {
  color: #9d2436;
}

.atelier__note {
  padding: .65rem .9rem;
  border: 1px dashed #b75e62;
  border-radius: .65rem;
  background: var(--paper);
  color: var(--wine);
}

.atelier__note > span {
  margin-right: .2em;
  font-weight: 900;
}

.atelier__copy .button {
  margin-top: 1.45rem;
}

@media (max-width: 56rem) {
  .gataria__grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 43rem) {
  .universe__feature,
  .atelier__layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .universe__photos {
    width: min(100%, 29rem);
    justify-self: center;
  }

  .gataria__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .atelier__photo {
    grid-row: 2;
    width: min(74%, 18rem);
  }
}

@media (max-width: 24rem) {
  .gataria__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
