main:has(.about-page) {
  max-width: 1120px;
}

.about-page {
  width: min(1180px, 100%);
  margin-inline: auto;
  padding-block: clamp(1rem, 3vw, 2.5rem);
}

.about-kicker {
  margin: 0 0 .35rem;
  color: var(--muted);
  text-align: center;
  font-size: .88rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.about-page > h1 {
  margin-bottom: clamp(2rem, 5vw, 4rem);
  text-align: center;
  font-size: clamp(2.15rem, 6vw, 4rem);
}

.about-layout {
  display: grid;
  grid-template-columns: minmax(150px, 260px) minmax(320px, 1fr) minmax(150px, 260px);
  grid-template-rows: 1fr 1fr;
  align-items: center;
  gap: clamp(1rem, 2.5vw, 2.25rem);
  min-height: 650px;
}

.about-card {
  position: relative;
  z-index: 2;
  grid-column: 2;
  grid-row: 1 / 3;
  min-height: 560px;
  padding: clamp(2rem, 5vw, 4.25rem);
  border: 1px solid var(--borda);
  border-radius: 28px;
  background: var(--branco);
  box-shadow: 0 22px 55px rgb(73 54 95 / 16%);
}

.about-card-star {
  position: absolute;
  top: 1.15rem;
  right: 1.4rem;
  color: var(--primaria);
  font-size: 1.4rem;
}

.about-card h2 {
  margin-bottom: 1rem;
  font-size: clamp(1.45rem, 3vw, 2rem);
}

.about-copy {
  min-height: 5rem;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: clamp(1.05rem, 1.6vw, 1.22rem);
  line-height: 1.75;
}

.about-copy.is-empty {
  color: var(--muted);
  font-style: italic;
}

.about-postit {
  position: relative;
  z-index: 3;
  width: 100%;
  margin: 0;
  padding: .65rem .65rem 1.9rem;
  border: 1px solid rgb(101 75 142 / 18%);
  background: var(--creme);
  box-shadow: 0 16px 30px rgb(73 54 95 / 20%);
}

.about-postit::before {
  content: "";
  position: absolute;
  top: -.65rem;
  left: 50%;
  width: 44%;
  height: 1.3rem;
  background: rgb(254 235 189 / 72%);
  transform: translateX(-50%) rotate(-1deg);
}

.about-postit img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  background: var(--rosa);
}

.about-postit-1 { grid-column: 1; grid-row: 1; align-self: start; transform: rotate(-5deg); }
.about-postit-2 { grid-column: 3; grid-row: 1; align-self: start; transform: rotate(4deg); }
.about-postit-3 { grid-column: 1; grid-row: 2; align-self: end; transform: rotate(4deg); }
.about-postit-4 { grid-column: 3; grid-row: 2; align-self: end; transform: rotate(-4deg); }

:root[data-theme="dark"] .about-card {
  box-shadow: 0 22px 55px rgb(53 43 67 / 28%);
}

:root[data-theme="dark"] .about-kicker {
  color: var(--creme);
}

:root[data-theme="dark"] .back {
  color: var(--creme);
}

@media (max-width: 880px) {
  .about-layout {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: auto auto auto;
    gap: 1.4rem;
    min-height: 0;
  }
  .about-card { grid-column: 1 / 3; grid-row: 2; min-height: 0; }
  .about-postit { width: min(100%, 230px); }
  .about-postit-1 { grid-column: 1; grid-row: 1; justify-self: end; }
  .about-postit-2 { grid-column: 2; grid-row: 1; justify-self: start; }
  .about-postit-3 { grid-column: 1; grid-row: 3; justify-self: end; }
  .about-postit-4 { grid-column: 2; grid-row: 3; justify-self: start; }
}

@media (max-width: 520px) {
  .about-page > h1 { margin-bottom: 2rem; }
  .about-layout { gap: 1rem .75rem; }
  .about-card { padding: 2rem 1.35rem; border-radius: 22px; }
  .about-postit { padding: .45rem .45rem 1.35rem; }
}
