/* The invite page (/i/<CODE>) in the app's own look: the dusk sky, a cream paper card, Caveat for the hand,
   Fredoka for the rest, the coral pill. Fonts are self-hosted (the site's CSP allows only 'self'); both are OFL. */
@font-face { font-family: "Caveat"; src: url("/fonts/Caveat-Medium.ttf") format("truetype"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Fredoka"; src: url("/fonts/Fredoka-Medium.ttf") format("truetype"); font-weight: 500; font-display: swap; }

body.invite {
  --ink: #5b4636;
  --ink-soft: #8a7564;
  --cream: #fbf5ea;
  --coral: #d9826b;
  --coral-deep: #b9654f;
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: linear-gradient(to bottom, #a9a3cf, #d9b9c0 55%, #e8c3ad);
  background-attachment: fixed;
  color: var(--ink);
  font-family: "Fredoka", ui-rounded, "SF Pro Rounded", system-ui, -apple-system, sans-serif;
  font-weight: 500;
}

body.invite main {
  flex: 1 0 auto;
  width: 100%;
  max-width: 30rem;
  margin: 0 auto;
  padding: 44px 16px 24px;
  box-sizing: border-box;
  text-align: center;
}

body.invite .icon {
  display: block;
  margin: 0 auto 18px;
  border-radius: 22%;
  box-shadow: 0 10px 24px rgb(70 48 30 / 0.28);
}

body.invite .paper {
  background: var(--cream);
  border-radius: 6px;
  padding: 26px 22px 24px;
  box-shadow: 0 12px 30px rgb(70 48 30 / 0.22);
  transform: rotate(-0.6deg);
}

body.invite h1 {
  margin: 0 0 10px;
  font-family: "Caveat", "Bradley Hand", cursive;
  font-weight: 500;
  font-size: 44px;
  line-height: 1.05;
  color: var(--ink);
}

body.invite .lead { margin: 0 0 18px; font-size: 17px; line-height: 1.45; }
body.invite .lead strong { font-weight: 600; }

body.invite .code-wrap { margin: 0 0 18px; font-size: 14px; color: var(--ink-soft); }
body.invite .code {
  display: block;
  margin-top: 6px;
  font-size: 34px;
  letter-spacing: 0.18em;
  color: var(--ink);
  user-select: all;
  -webkit-user-select: all;
}

body.invite .soon {
  margin: 0 0 18px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgb(217 130 107 / 0.12);
  font-size: 15px;
  line-height: 1.4;
}

body.invite .store {
  display: inline-block;
  margin: 4px 0 18px;
  padding: 14px 26px;
  border-radius: 999px;
  background: var(--coral);
  color: #fff;
  font-size: 18px;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 6px 16px rgb(185 101 79 / 0.35);
}
body.invite .store:active { transform: scale(0.98); }

body.invite .steps {
  margin: 0 auto;
  padding: 0 0 0 1.4em;
  max-width: 20rem;
  text-align: left;
  font-size: 15px;
  line-height: 1.7;
  color: var(--ink-soft);
}
body.invite .steps em { font-style: normal; color: var(--ink); }

body.invite .card { margin: 0 0 20px; text-align: left; }
body.invite .card h2 { margin: 0 0 8px; font-size: 16px; font-weight: 600; text-align: center; }
body.invite .field { display: flex; flex-direction: column; gap: 8px; }
body.invite .field input[type="email"] {
  flex: none;
  width: 100%;
  box-sizing: border-box;
  padding: 12px 14px;
  border: 1.5px solid rgb(91 70 54 / 0.2);
  border-radius: 999px;
  background: #fff;
  font: inherit;
  font-size: 16px;
  color: var(--ink);
}
body.invite .field button {
  flex: none;
  padding: 12px 18px;
  border: 0;
  border-radius: 999px;
  background: var(--coral);
  color: #fff;
  font: inherit;
  font-weight: 600;
}
body.invite .fine, body.invite .msg { text-align: center; }

body.invite footer {
  padding: 8px 16px 28px;
  text-align: center;
  font-size: 13px;
  color: rgb(91 70 54 / 0.75);
}
body.invite footer a { color: inherit; }
body.invite footer p { margin: 6px 0 0; }
