:root {
  color-scheme: light;
  --wine: #48202b;
  --rose: #872d49;
  --paper: #fff7ec;
  --ink: #35232a;
  --muted: #684e56;
  font: 17px/1.55 system-ui, sans-serif;
  color: var(--ink);
  background: #f9e9e4;
}
* { box-sizing: border-box; }
body { margin: 0; }
button, select, textarea { font: inherit; }
[hidden] { display: none !important; }
.hero {
  min-height: min(760px, 94svh);
  display: grid;
  place-items: center;
  padding: clamp(1rem, 6vw, 4.5rem);
  background: radial-gradient(ellipse at 17% 5%, #a44c59 0%, transparent 48%),
    radial-gradient(ellipse at 82% 95%, #72243d 0%, transparent 55%), var(--wine);
}
.letter {
  width: min(100%, 780px);
  text-align: center;
  padding: clamp(2.2rem, 6.5vw, 5rem) clamp(1.1rem, 6vw, 4rem);
  background: radial-gradient(ellipse at top, #fffaf5, var(--paper));
  border: 1px solid #d4aa9b;
  outline: 1px solid #a9576545;
  outline-offset: -10px;
  border-radius: 48% 48% 3px 3px / 12% 12% 3px 3px;
  box-shadow: 0 22px 75px #20081266;
}
.seal {
  display: grid;
  place-items: center;
  width: 54px;
  aspect-ratio: 1;
  margin: 0 auto 1.35rem;
  border-radius: 48% 45% 47% 43%;
  color: #ffded7;
  background: radial-gradient(circle at 33% 27%, #bd5b70, #762940 73%);
  box-shadow: 0 3px 8px #80284755, inset 0 0 0 4px #f2a4a437;
}
.eyebrow { color: #753947; font-size: .82rem; letter-spacing: .13em; text-transform: uppercase; }
h1, h2, .name { font-family: Georgia, 'Times New Roman', serif; font-weight: 400; }
h1 { color: var(--wine); font-size: clamp(3rem, 9vw, 6.5rem); line-height: .98; letter-spacing: -.055em; margin: .24em 0; }
h1 em { color: var(--rose); font-weight: inherit; }
.intro { max-width: 33ch; margin: 1.45rem auto 1.65rem; color: var(--muted); }
.actions { display: flex; flex-wrap: wrap; justify-content: center; gap: .55rem; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: .62rem 1.15rem; border: 1px solid transparent; border-radius: 999px; cursor: pointer; text-decoration: none; font-weight: 600; }
.solid { background: var(--rose); color: white; }
.solid:hover { background: #6d2038; }
.quiet { background: transparent; color: var(--rose); border-color: #b47889; }
.quiet:hover { background: #f8e4e5; }
:focus-visible { outline: 3px solid #a34561; outline-offset: 4px; }
.plans { width: min(100% - 2rem, 1050px); margin: clamp(2rem, 8vw, 5rem) auto; }
h2 { margin: 0 0 .65rem; line-height: 1.12; font-size: clamp(2.2rem, 6vw, 4.25rem); color: var(--wine); }
.cards { margin: 1.7rem 0 0; padding: 0; border: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.1rem; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.card { display: block; position: relative; overflow: hidden; background: var(--paper); border: 2px solid #e5c6bf; border-radius: 17px; cursor: pointer; box-shadow: 0 7px 24px #48202b0c; }
.card:hover, .card:has(:checked) { border-color: var(--rose); }
.card:has(:checked) { box-shadow: 0 0 0 2px #872d4940; }
.card:focus-within { outline: 3px solid var(--rose); outline-offset: 4px; }
.card input { position: absolute; top: .6rem; right: .6rem; width: 24px; height: 24px; accent-color: var(--rose); cursor: pointer; }
.scene { display: block; aspect-ratio: 2; background: #644150 url('places.png') no-repeat; background-size: 200% 200%; }
.alpaca { background-position: left top; }
.roku { background-position: right top; }
.shuffle { background-position: left bottom; }
.art { background-position: right bottom; }
.copy { display: grid; gap: .5rem; padding: 1.15rem 1.25rem 1.35rem; }
.name { font-size: clamp(1.45rem, 3vw, 2.05rem); line-height: 1.13; }
.description, .caption, .schedule p { color: var(--muted); }
.caption { font-size: .85rem; }
.schedule { margin-top: 2.3rem; padding: clamp(1.3rem, 5vw, 3rem); border: 1px solid #e5c6bf; border-radius: 17px; background: var(--paper); }
.fields { display: grid; grid-template-columns: 2fr 1fr; gap: .8rem; max-width: 530px; margin: 1.2rem 0; }
.fields label, #reply label { display: grid; gap: .3rem; font-weight: 600; }
select, textarea { width: 100%; padding: .55rem .65rem; border: 1px solid #b47889; border-radius: 8px; background: #fffdfa; color: var(--ink); }
textarea { margin: .4rem 0 .8rem; resize: vertical; }
#reply .actions { justify-content: flex-start; }
footer { text-align: center; padding: 0 1rem 2.7rem; color: var(--muted); }
@media (max-width: 640px) { .cards { grid-template-columns: 1fr; } .fields { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
.cover-photo {
  display: block;
  width: clamp(92px, 24vw, 140px);
  aspect-ratio: 1;
  object-fit: cover;
  margin: .7rem auto 1rem;
  border: 5px solid white;
  border-radius: 50%;
  box-shadow: 0 6px 24px #48202b33;
}
.play-area {
  position: relative;
  height: 118px;
  width: min(100%, 470px);
  margin: .35rem auto 0;
}
#playful-no {
  position: absolute;
  top: 3px;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  padding-inline: .65rem;
}
.text-button {
  min-height: 44px;
  padding: .3rem .65rem;
  border: 0;
  background: transparent;
  color: var(--rose);
  text-decoration: underline;
  cursor: pointer;
}
.hearts { font-size: clamp(2rem, 8vw, 4rem); margin-bottom: 1rem; }
.invite-tools { display: flex; flex-wrap: wrap; justify-content: center; gap: .25rem 1rem; margin-top: 1rem; }
.invite-tools a { display: inline-flex; align-items: center; min-height: 44px; color: var(--rose); font-size: .9rem; text-underline-offset: .2em; }
.happy .button { margin-top: .65rem; }
.cards { min-inline-size: 0; }
#editor { margin-top: 0; }
.editor-fields, #venue-fields { display: grid; gap: 1rem; }
.editor-fields label { display: grid; gap: .35rem; }
.editor-fields fieldset { display: grid; min-inline-size: 0; gap: .7rem; border: 1px solid #e5c6bf; border-radius: 12px; padding: 1rem; }
.editor-fields input:not([type="color"]) { width: 100%; font: inherit; padding: .55rem; border: 1px solid #b47889; border-radius: 8px; }
.editor-fields .actions { justify-content: flex-start; }
.solid { background: var(--button-color, #872d49); color: var(--button-ink, white); }
.solid:hover { background: var(--button-color, #872d49); filter: brightness(.9); }
.burst { position: fixed; z-index: 1; top: 52%; left: 50%; pointer-events: none; animation: scatter 1.15s ease-out both; }
@keyframes scatter { to { transform: translate(var(--x), var(--y)) rotate(var(--r)); opacity: 0; } }
