:root {
  color-scheme: light;
  background: #faeee8;
  color: #482a31;
  font: 1rem system-ui, sans-serif;
}

body { margin: 0; }

main {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 100vh;
  box-sizing: border-box;
  padding: clamp(2.5rem, 8vw, 7rem) clamp(1.25rem, 6vw, 5rem) 4rem;
  background: radial-gradient(ellipse at 50% 5%, #fff8f1, transparent 70%);
}

h1 {
  margin: 0 0 1.25rem;
  font: 400 clamp(2.8rem, 10vw, 8rem)/1 Georgia, serif;
  text-align: center;
  letter-spacing: -.055em;
}

h1 em { color: #a44960; font-weight: normal; }

.mail {
  width: min(100%, 24rem);
  margin: 0 auto clamp(2.5rem, 7vw, 5.5rem);
  text-align: center;
}

.mail summary {
  color: #87384e;
  cursor: pointer;
  list-style: none;
}

.mail summary::-webkit-details-marker { display: none; }
.mail summary span { font-size: 1.3rem; }

.mail form:not([hidden]) {
  display: grid;
  gap: .55rem;
  padding: 1rem;
  margin-top: .75rem;
  text-align: left;
  background: #fffaf3;
  border-radius: .35rem;
}

.mail input, .mail textarea, .mail button {
  box-sizing: border-box;
  min-width: 0;
  padding: .6rem;
  border: 1px solid #a87b85;
  border-radius: .25rem;
  font: inherit;
}

.mail textarea { resize: vertical; }
.mail form p { margin: 0 0 .4rem; }
.mail button { justify-self: start; color: white; background: #87384e; cursor: pointer; }
.mail p:empty { display: none; }

.hearts { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.hearts span { position: absolute; color: #e9a1ae; opacity: .31; line-height: 1; }
.hearts span:nth-child(1) { top: 0; left: -5vw; font-size: 41vw; rotate: -22deg; }
.hearts span:nth-child(2) { top: 15%; right: 3%; font-size: 20vw; rotate: 20deg; }
.hearts span:nth-child(3) { top: 40%; left: 40%; font-size: 29vw; rotate: -13deg; }
.hearts span:nth-child(4) { bottom: 3%; right: -3vw; font-size: 36vw; rotate: 15deg; }
.hearts span:nth-child(5) { bottom: 8%; left: 6%; font-size: 15vw; rotate: -16deg; }

.labels {
  display: grid;
  grid-template-columns: repeat(var(--columns, 1), minmax(0, 1fr));
  align-items: center;
  gap: clamp(1.7rem, 3.6vw, 3.5rem);
  max-width: 76rem;
  margin-inline: auto;
}

.label {
  display: grid;
  grid-template-columns: minmax(0, 39%) minmax(min-content, 1fr);
  align-items: center;
  justify-self: center;
  gap: .75rem;
  box-sizing: border-box;
  width: min(94%, 21rem);
  min-height: 9.5rem;
  padding: 1rem;
  border-radius: .2rem;
  background: var(--paper);
  color: #252023;
  box-shadow: 0 .45rem 1rem #59333a19, 0 .08rem .2rem #59333a20;
  transform: translate(var(--x), var(--y)) rotate(var(--angle));
}

.label img {
  width: 100%;
  height: 7rem;
  object-fit: contain;
  mix-blend-mode: multiply;
}

.label p {
  margin: 0;
  font-size: clamp(.98rem, 1.5vw, 1.35rem);
  font-weight: 750;
  line-height: 1.18;
  text-align: center;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
}

.status { grid-column: 1 / -1; text-align: center; }
