/* The web pages behind invite and RSVP links (/j, /n): the app's two looks,
   pearl by day and plum after dark (design/jokerette/README.md), its type
   (Bricolage Grotesque headings, Manrope text, with system fallbacks: the
   pages load no fonts), its tile corners and its one mint action. Big text,
   44 pt targets, readable on any phone. No framework. */
:root {
  color-scheme: light dark;
  --ground: #FFF6EE;
  --surface: #FFFFFF;
  --sunk: #F6E8EE;
  --ink: #2B1233;
  --soft: #46224F;
  --muted: #6E5476;
  --hairline: rgba(43, 18, 51, 0.12);
  --action: #2B1233;
  --on-action: #82DEC0;
  --mint: #82DEC0;
  --lilac: #C9B6FF;
  --pink: #FF5C8F;
  --pink-light: #FFA3BF;
  --plum: #2B1233;
  --danger: #B3123E;
  --lift: 0 10px 24px rgba(43, 18, 51, 0.07);
}
@media (prefers-color-scheme: dark) {
  :root {
    --ground: #2B1233;
    --surface: #3A1A43;
    --sunk: #2B1233;
    --ink: #FFF6EE;
    --soft: #EBDDEE;
    --muted: #D9C4DE;
    --hairline: rgba(255, 246, 238, 0.14);
    --action: #82DEC0;
    --on-action: #2B1233;
    --danger: #FFA3BF;
    --lift: none;
  }
}
* { box-sizing: border-box; }
html { background: var(--ground); color: var(--ink); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  padding: max(20px, env(safe-area-inset-top)) 20px max(28px, env(safe-area-inset-bottom));
  font: 600 18px/1.45 Manrope, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
main, main > section { max-width: 34rem; margin: 0 auto; display: grid; gap: 16px; }
main > section { width: 100%; }
h1, h2, .wm, .big {
  font-family: "Bricolage Grotesque", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-weight: 800;
}
h1 { margin: 0; font-size: 2.4rem; line-height: 1.02; letter-spacing: -0.04em; overflow-wrap: anywhere; }
h2 { margin: 0; font-size: 1.45rem; line-height: 1.1; letter-spacing: -0.02em; }
p { margin: 0; }
/* Every heading ends with a tiny pink tile (board 1), where it would have had a full stop. */
.stop::after {
  content: "";
  display: inline-block;
  width: 0.2em;
  height: 0.27em;
  margin-inline-start: 0.05em;
  border-radius: 0.045em;
  background: var(--pink);
  transform: rotate(8deg);
}
.top { display: flex; align-items: center; justify-content: space-between; min-height: 44px; }
/* The wordmark: "joker" and its tipped pink "ette" tile, never one without the other. */
.wm { font-size: 1.5rem; letter-spacing: -0.04em; color: var(--ink); text-decoration: none; display: inline-flex; align-items: baseline; }
.wm .ette {
  display: inline-block;
  margin-inline-start: 0.08em;
  padding: 0.02em 0.16em 0.06em;
  border-radius: 0.18em;
  background: var(--pink);
  color: var(--plum);
  box-shadow: inset 0 0.1em 0 var(--pink-light);
  transform: rotate(7deg) translateY(-0.06em);
}
.kicker { font-size: 0.95rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.meta { color: var(--soft); font-size: 1.1rem; }
.card { background: var(--surface); border-radius: 24px; padding: 20px; display: grid; gap: 12px; box-shadow: var(--lift); }
.hero { background: var(--lilac); color: var(--plum); border-radius: 28px; padding: 22px; display: grid; gap: 10px; }
.hero .kicker { color: var(--plum); }
.hero.mint { background: var(--mint); }
.big { font-size: 3.2rem; line-height: 0.9; letter-spacing: -0.04em; }
.big small { font-size: 1.4rem; opacity: 0.7; letter-spacing: -0.02em; }
.copy { color: var(--soft); }
.note { color: var(--muted); font-size: 1rem; }
.error { color: var(--danger); font-weight: 700; }
label { font-weight: 800; }
input[type="text"] {
  width: 100%;
  min-height: 62px;
  border-radius: 20px;
  border: 0;
  outline: 2px solid transparent;
  background: var(--sunk);
  color: var(--ink);
  font: inherit;
  font-size: 1.15rem;
  padding: 0 20px;
}
input[type="text"]:focus { outline-color: var(--lilac); }
input[aria-invalid="true"] { outline-color: var(--danger); }
.button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 62px;
  padding: 10px 20px;
  border: 0;
  border-radius: 20px;
  font: inherit;
  font-size: 1.1rem;
  font-weight: 800;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  background: var(--action);
  color: var(--on-action);
}
.button.ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--hairline); }
.button.chosen { box-shadow: 0 0 0 3px var(--ground), 0 0 0 6px var(--lilac); }
.button:disabled { opacity: 0.55; cursor: default; }
.button:focus-visible, a:focus-visible { outline: 3px solid var(--lilac); outline-offset: 3px; }
.pair { display: grid; gap: 10px; }
@media (min-width: 30rem) { .pair { grid-template-columns: 1fr 1fr; } }
.codebox { display: grid; gap: 6px; justify-items: start; }
.code {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 2.4rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  padding: 6px 14px;
  border-radius: 16px;
  background: var(--sunk);
}
.counts { display: flex; flex-wrap: wrap; gap: 8px; }
.pill { display: inline-flex; align-items: center; min-height: 30px; padding: 4px 12px; border-radius: 999px; font-size: 0.95rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; background: var(--plum); color: var(--lilac); }
.hero.mint .pill { color: var(--mint); }
.net { background: var(--sunk); border-radius: 16px; padding: 12px 16px; }
footer { color: var(--muted); font-size: 1rem; display: grid; gap: 6px; padding-top: 4px; }
footer a { color: var(--ink); justify-self: start; min-height: 44px; display: inline-flex; align-items: center; text-underline-offset: 0.15em; }
.loader { min-height: 40vh; display: grid; place-items: center; color: var(--muted); }
[hidden] { display: none !important; }
@media (prefers-reduced-motion: no-preference) {
  .card, .hero { animation: rise 0.35s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
  @keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
}
