@font-face { font-family: "Londrina"; src: url("/assets/fonts/LondrinaSolid-Black.ttf"); font-display: swap; }
@font-face { font-family: "Patrick"; src: url("/assets/fonts/PatrickHand-Regular.ttf"); font-display: swap; }
@font-face { font-family: "Reenie"; src: url("/assets/fonts/ReenieBeanie.ttf"); font-display: swap; }

:root {
  --pink: #f8d4db;
  --red: #cc1417;
  --red-soft: rgba(204, 20, 23, .35);
}

* { box-sizing: border-box; }
html { background: var(--pink); }
body {
  margin: 0;
  background: var(--pink);
  color: var(--red);
  font-family: "Patrick", system-ui, sans-serif;
  font-size: 1.15rem;
  line-height: 1.5;
  text-align: center;
  -webkit-text-size-adjust: 100%;
}
html, body { overflow-x: hidden; }
main { max-width: 640px; margin: 0 auto; padding: 0 1.25rem; }
.screen { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; justify-content: center; padding: 1.25rem 0; }
img { max-width: 100%; height: auto; }

.date, .names, .small { letter-spacing: .22em; text-transform: uppercase; }
.date { font-size: 1.5rem; margin: 0; }
.names { font-size: 1.2rem; margin: 1rem 0 0; }
.small { font-size: 1rem; margin: .6rem 0; }
.big { font-size: 1.5rem; letter-spacing: .15em; text-transform: uppercase; margin: .4rem 0; }
.script { font-family: "Reenie", cursive; letter-spacing: 0; text-transform: none; font-size: 2rem; }

h1, h2 { font-family: "Londrina", Impact, sans-serif; font-weight: 900; text-transform: uppercase; line-height: .9; margin: 0; }
h1 { font-size: clamp(2.6rem, min(14vw, 9dvh), 5.5rem); }
h1 span { display: block; }
h1 .script { font-size: .75em; text-transform: none; font-family: "Reenie", cursive; font-weight: 400; margin: .1em 0; }
h2 { font-size: clamp(2.6rem, 12vw, 4rem); margin-bottom: .5rem; }

.hero-grid { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1.5fr) minmax(0,1fr); align-items: center; gap: .25rem; }
.hero-grid h1 { grid-column: 2; grid-row: 1; }
.figure { max-height: 30vh; max-height: 30dvh; width: auto; justify-self: center; }
.figure.woman { grid-column: 1; grid-row: 1; }
.figure.man { grid-column: 3; grid-row: 1; }
.btn.cta { font-size: 1.5rem; letter-spacing: .1em; padding: .9rem 1.5rem; min-height: 60px; width: 100%; max-width: 20rem; text-align: center; box-shadow: 0 5px 0 rgba(204,20,23,.35); }
.actions { display: flex; flex-direction: column; align-items: center; gap: .2rem; }
.signature { margin: .75rem 0 0; }
.back { align-self: flex-start; color: var(--red); letter-spacing: .1em; text-decoration: none; padding: .5rem 0; }

.venue { font-family: "Londrina", sans-serif; font-size: 2rem; text-transform: uppercase; letter-spacing: .1em; margin: .8rem 0 0; }

.btn {
  display: inline-block; font: inherit; font-size: 1.25rem; letter-spacing: .15em; text-transform: uppercase;
  background: var(--red); color: var(--pink); border: 2px solid var(--red); border-radius: 999px;
  padding: .7rem 1.6rem; min-height: 48px; cursor: pointer; text-decoration: none; margin-top: .8rem;
}
.btn.ghost { background: transparent; color: var(--red); }
.btn:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; }
.btn[disabled] { opacity: .5; cursor: wait; }

form { text-align: left; margin-top: 1rem; display: grid; gap: .9rem; }
label, legend { display: block; letter-spacing: .08em; }
fieldset { border: 0; padding: 0; margin: 0; }
input[type=text], input[type=number], select, textarea {
  display: block; width: 100%; margin-top: .3rem; font: inherit; font-size: 1.1rem; /* >=16px: no iOS zoom */
  color: var(--red); background: rgba(255, 255, 255, .45);
  border: 2px solid var(--red); border-radius: 14px; padding: .65rem .9rem; min-height: 48px;
}
::placeholder { color: var(--red-soft); }
textarea { resize: vertical; }

.choice { display: grid; gap: .6rem; margin-top: .3rem; }
.choice label { position: relative; }
.choice input { position: absolute; opacity: 0; }
.choice span {
  display: block; text-align: center; border: 2px solid var(--red); border-radius: 999px; padding: .75rem 1rem; cursor: pointer;
}
.choice input:checked + span { background: var(--red); color: var(--pink); }
.choice input:focus-visible + span { outline: 3px solid var(--red); outline-offset: 2px; }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
#form-status { min-height: 1.5em; margin: 0; text-align: center; font-weight: bold; }
[hidden] { display: none !important; }
form .btn { justify-self: center; }

#thanks { margin-top: 1.5rem; }
.glass { max-width: 260px; }

@media (min-width: 700px) { body { font-size: 1.25rem; } main { max-width: 760px; } }
@media (prefers-reduced-motion: no-preference) {
  .figure.woman { animation: sway 3s ease-in-out infinite alternate; }
  .figure.man { animation: sway 3s ease-in-out infinite alternate-reverse; }
  @keyframes sway { from { transform: rotate(-2deg); } to { transform: rotate(2deg); } }
}

#yes-fields { display: grid; gap: .9rem; }
.group-title { margin: 0; font-family: "Londrina", sans-serif; font-size: 1.6rem; letter-spacing: .08em; text-transform: uppercase; text-align: center; }

.cf-turnstile { display: flex; justify-content: center; }
