@font-face {
  font-family: "Made Tommy";
  src: url("/assets/fonts/made-tommy-soft.woff2") format("woff2");
  font-display: swap;
}

@font-face {
  font-family: "Made Tommy";
  src: url("/assets/fonts/made-tommy-black.woff2") format("woff2");
  font-weight: 800;
  font-display: swap;
}

:root {
  --paper: #fdfbf7;
  --pink: #fb6a76;
  --black: #231f20;
  --line: rgba(35, 31, 32, 0.14);
  --muted: #756d6e;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-width: 320px;
  background: var(--paper);
  color: var(--black);
  font-family: "Made Tommy", Arial, sans-serif;
}

button, input, textarea { font: inherit; }
button { color: inherit; }

.invitation-shell { min-height: 100vh; }

.hero {
  min-height: 48vh;
  display: grid;
  place-content: center;
  gap: .55rem;
  padding: 4rem 1.5rem;
  text-align: center;
  background: var(--pink);
  overflow: hidden;
  position: relative;
}

.hero::before,
.hero::after {
  content: "♡";
  position: absolute;
  font-size: clamp(8rem, 24vw, 18rem);
  opacity: .12;
}
.hero::before { left: -3rem; top: -5rem; transform: rotate(-20deg); }
.hero::after { right: -2rem; bottom: -7rem; transform: rotate(18deg); }

.hero h1 {
  margin: 0;
  max-width: 12ch;
  font-size: clamp(3rem, 10vw, 6.5rem);
  line-height: .9;
  font-weight: 800;
  letter-spacing: -.06em;
}

.hero p, .hero span { margin: 0; position: relative; z-index: 1; }
.hero > p:not(.eyebrow) { margin-top: .9rem; font-size: 1.1rem; }
.hero span { font-size: .82rem; text-transform: uppercase; letter-spacing: .12em; }
.eyebrow, .section-label { text-transform: uppercase; letter-spacing: .16em; font-size: .7rem; font-weight: 800; }

.rsvp-card {
  width: min(720px, calc(100% - 2rem));
  min-height: 520px;
  margin: -3rem auto 4rem;
  background: white;
  border: 1px solid var(--line);
  box-shadow: 0 28px 70px rgba(35, 31, 32, .1);
  position: relative;
  z-index: 2;
}

.progress { height: 4px; background: #f1ece8; overflow: hidden; }
.progress i { display: block; height: 100%; background: var(--pink); transition: width .3s ease; }

.step { padding: clamp(2rem, 7vw, 4.5rem); animation: enter .25s ease both; }
@keyframes enter { from { opacity: 0; transform: translateY(8px); } }
.step h2 { margin: .4rem 0 1rem; font-size: clamp(2rem, 6vw, 3.8rem); line-height: .95; letter-spacing: -.05em; }
.helper { max-width: 520px; color: var(--muted); line-height: 1.55; }

.ticket {
  width: 84px;
  height: 84px;
  margin: 1.6rem 0;
  border: 1px dashed var(--pink);
  border-radius: 50%;
  display: grid;
  place-content: center;
  text-align: center;
  background: #fff6f6;
}
.ticket strong { font-size: 2rem; line-height: 1; }
.ticket span { font-size: .7rem; text-transform: uppercase; letter-spacing: .1em; }

.deadline, .existing { padding: .8rem 1rem; background: #fff6f6; border-left: 3px solid var(--pink); font-size: .84rem; line-height: 1.45; }
.existing { background: #f6f2ed; border-color: var(--black); }

.choices { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; margin-top: 1.8rem; }
.choice { min-height: 150px; display: grid; place-content: center; gap: .35rem; padding: 1rem; border: 1px solid var(--line); background: white; cursor: pointer; transition: .18s ease; }
.choice:hover { border-color: var(--pink); transform: translateY(-2px); }
.choice--yes { background: var(--pink); border-color: var(--pink); }
.choice b { font-size: 1.7rem; }
.choice strong { font-size: .95rem; }
.choice span { font-size: .75rem; color: var(--muted); }
.choice--yes span { color: rgba(35, 31, 32, .72); }

.back { padding: 0; border: 0; background: transparent; color: var(--muted); cursor: pointer; margin-bottom: 1.7rem; }
.guest-list, .fields { display: grid; gap: .75rem; margin: 1.5rem 0; }
.guest-option { display: grid; grid-template-columns: 24px 1fr; align-items: center; gap: .8rem; padding: 1rem; border: 1px solid var(--line); cursor: pointer; }
.guest-option:has(input:checked) { border-color: var(--pink); background: #fff8f7; }
.guest-option > input { position: absolute; opacity: 0; pointer-events: none; }
.guest-option i { width: 24px; height: 24px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; font-size: 0; font-style: normal; }
.guest-option > input:checked + i { background: var(--pink); border-color: var(--pink); font-size: .75rem; }
.name-input, .fields input, .fields textarea { width: 100%; padding: .85rem 0; border: 0; border-bottom: 1px solid var(--line); outline: none; background: transparent; color: var(--black); }
.fields label { display: grid; gap: .35rem; }
.fields label > span { font-size: .76rem; font-weight: 800; }
.fields small { font-weight: 400; color: var(--muted); }
.fields textarea { resize: vertical; min-height: 90px; }
.review { display: flex; justify-content: space-between; gap: 1rem; padding: 1rem; background: #f7f4f0; font-size: .82rem; }
.review span { color: var(--muted); }
.review strong { text-align: right; }

.primary { width: 100%; min-height: 50px; padding: .9rem 1.2rem; border: 0; background: var(--black); color: white; cursor: pointer; font-weight: 800; }
.primary:disabled { opacity: .55; cursor: wait; }
.form-error { min-height: 1.2rem; color: #aa2734; font-size: .78rem; line-height: 1.4; }

.success { min-height: 500px; display: grid; place-content: center; text-align: center; }
.success-mark { width: 76px; height: 76px; margin: 0 auto 1rem; border-radius: 50%; display: grid; place-items: center; background: var(--pink); font-size: 2rem; }
.success .helper { margin-inline: auto; }

footer { padding: 0 1rem 3rem; text-align: center; font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; }

.state-card { min-height: 100vh; display: grid; place-content: center; gap: .8rem; padding: 2rem; text-align: center; }
.state-card > strong { color: var(--pink); font-size: 4rem; }
.state-card h1, .state-card p { margin: 0; }
.state-card p { color: var(--muted); }
.state-card a { color: var(--black); font-weight: 800; }

@media (max-width: 620px) {
  .hero { min-height: 43vh; padding: 3rem 1.2rem 5rem; }
  .rsvp-card { width: calc(100% - 1.25rem); margin-top: -3.5rem; min-height: 0; }
  .step { padding: 2rem 1.2rem 2.5rem; }
  .choices { grid-template-columns: 1fr 1fr; gap: .55rem; }
  .choice { min-height: 132px; padding: .7rem .45rem; }
  .choice strong { font-size: .82rem; }
  .choice span { font-size: .68rem; }
  .review { display: grid; }
  .review strong { text-align: left; }
}
