@font-face {
  font-family: Figtree;
  src: url("figtree-regular.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: Figtree;
  src: url("figtree-medium.ttf") format("truetype");
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: Figtree;
  src: url("figtree-semibold.ttf") format("truetype");
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: Figtree;
  src: url("figtree-bold.ttf") format("truetype");
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: Figtree;
  src: url("figtree-extrabold.ttf") format("truetype");
  font-weight: 800;
  font-display: swap;
}
@font-face {
  font-family: "Bricolage Grotesque";
  src: url("bricolage-grotesque-bold.ttf") format("truetype");
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: "Bricolage Grotesque";
  src: url("bricolage-grotesque-extrabold.ttf") format("truetype");
  font-weight: 800;
  font-display: swap;
}
:root {
  color-scheme: light dark;
  --bg: #ffffff;
  --bg-elev: #f6f5f9;
  --text: #1e1a2e;
  --subtext: #67607c;
  --muted: #67607c;
  --border: #e7e5ee;
  --cta: #ff9f1c;
  --cta-ink: #1e1a2e;
  --accent: #e88d00;
  --link: #a05800;
  --wordmark-period: #ff9f1c;
  --danger: #be437d;
  --sky: #5ac8fa;
  --lime: #c9f04d;
  --pink: #ff7eb6;
  --lilac: #b9a7ff;
  --radius-card: 22px;
  --radius-field: 18px;
  --gap: 12px;
  --chip-gap: 8px;
  --chip-pad: 7px;
  --title-size: 32px;
  --title-weight: 800;
  --title-track: -0.02em;
  --label-size: 13px;
  --label-weight: 600;
  --record-size: 62px;
  --focus: 0 0 0 3px #cb7c00;
  --lift: 0 14px 30px -14px #1e1a2e59;
  --font-body: Figtree, system-ui, sans-serif;
  --font-display: "Bricolage Grotesque", system-ui, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121118;
    --bg-elev: #1e1c26;
    --text: #f6f5f9;
    --subtext: #a9a4bc;
    --muted: #a9a4bc;
    --border: #2e2b3a;
    --link: #ff9f1c;
    --danger: #ff7eb6;
  }
}
* {
  box-sizing: border-box;
}
body {
  font-family: var(--font-body);
  font-synthesis: none;
  background: var(--bg);
  color: var(--text);
}
h1,
h2,
h3,
.wordmark {
  font-family: var(--font-display);
  font-weight: var(--title-weight);
  letter-spacing: var(--title-track);
}
a {
  color: var(--link);
}
:focus-visible {
  outline: none;
  box-shadow: var(--focus);
}
.brand-mark,
.hero-mark,
.mark {
  border-radius: 22.36328125%;
}
.confetti-field {
  background: var(--bg);
}
.hero.confetti-field {
  position: relative;
  overflow: hidden;
  background: var(--bg);
}
.hero .wrap {
  position: relative;
  z-index: 1;
}
.hero-disc {
  position: absolute;
  width: calc(var(--record-size) * 2);
  height: calc(var(--record-size) * 2);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}
.hero-disc.sky { left: 14%; top: 24%; background: var(--sky); }
.hero-disc.pink { left: 85%; top: 70%; background: var(--pink); }
.hero-disc.lime { left: 88%; top: 18%; width: calc(var(--chip-gap) * 2); height: calc(var(--chip-gap) * 2); background: var(--lime); }
.hero-disc.lilac { left: 9%; top: 79%; width: calc(var(--chip-pad) * 2); height: calc(var(--chip-pad) * 2); background: var(--lilac); }
.badge .small,
.badge .big,
.badge .coming-soon-tag {
  white-space: nowrap;
}
@media (max-width: 400px) {
  .badge {
    display: grid;
    grid-template-columns: 28px 1fr;
    width: min(100%, 320px);
  }
  .badge .badge-icon { grid-column: 1; grid-row: 1; }
  .badge .badge-text { grid-column: 2; grid-row: 1; }
  .badge .coming-soon-tag {
    grid-column: 2;
    grid-row: 2;
    justify-self: start;
    margin-left: 0;
  }
}
@media (max-width: 860px) {
  .hero.confetti-field { padding-bottom: calc(var(--record-size) + var(--radius-card)); }
  .hero-disc.sky, .hero-disc.pink { width: 80px; height: 80px; }
  .hero-disc.sky { left: 0; top: var(--record-size); }
  .hero-disc.pink { left: 100%; top: calc(100% - var(--gap) - var(--record-size) / 2); width: var(--record-size); height: var(--record-size); }
  .hero-disc.lime { left: calc(100% - var(--radius-card)); top: var(--radius-card); }
  .hero-disc.lilac { left: 16px; top: calc(100% - 16px); }
}
.invite-page {
  margin: 0;
  min-height: 100vh;
  padding: 96px 20px;
  line-height: 1.5;
  display: grid;
  place-items: center;
  position: relative;
  --margin-disc: 62px;
}
.invite-page::before,
.invite-page::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  height: var(--record-size);
  pointer-events: none;
}
.invite-page::before {
  top: var(--gap);
  background:
    radial-gradient(circle at 0 50%, var(--sky) 0 calc(var(--margin-disc) / 2), transparent calc(var(--margin-disc) / 2 + 1px)),
    radial-gradient(circle at calc(100% - var(--radius-card)) 50%, var(--lime) 0 var(--chip-gap), transparent calc(var(--chip-gap) + 1px));
}
.invite-page::after {
  bottom: var(--gap);
  background:
    radial-gradient(circle at 100% 50%, var(--pink) 0 calc(var(--margin-disc) / 2), transparent calc(var(--margin-disc) / 2 + 1px)),
    radial-gradient(circle at var(--radius-card) 50%, var(--lilac) 0 var(--chip-pad), transparent calc(var(--chip-pad) + 1px));
}
.invite-shell {
  width: min(100%, 560px);
  padding: 32px;
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  background: var(--bg);
  box-shadow: var(--lift);
}
.invite-shell .brand {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 32px;
}
.invite-shell .brand-mark {
  width: 64px;
  height: 64px;
  display: block;
}
.wordmark {
  font-size: var(--title-size);
}
.wordmark-period,
.wordmark span {
  color: var(--wordmark-period);
}
.invite-shell h1 {
  font-size: var(--title-size);
  line-height: 1.1;
  margin: 16px 0;
  overflow-wrap: anywhere;
}
.invite-shell p {
  font-size: 18px;
  color: var(--subtext);
  margin: 0 0 24px;
}
.invite-shell .mark {
  width: 96px;
  height: 96px;
  display: block;
  margin: 0 auto 24px;
  box-shadow: var(--lift);
}
.invite-server {
  text-align: center;
}
.invite-shell .cta {
  min-height: 56px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  padding: 16px 32px;
  border: 0;
  border-radius: var(--radius-field);
  background: var(--cta);
  color: var(--cta-ink);
  font: var(--title-weight) 18px var(--font-body);
  text-decoration: none;
  white-space: normal;
}
.invite-shell .cta:hover {
  background: var(--accent);
}
.invite-shell .secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 48px;
  padding: 13px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-field);
  background: var(--bg-elev);
  color: var(--text);
  font: var(--label-weight) 15px var(--font-body);
  text-decoration: none;
  cursor: pointer;
  white-space: normal;
}
.invite-shell .actions {
  display: grid;
  gap: var(--gap);
}
.invite-shell .voice {
  display: none;
  padding: 14px;
  margin-bottom: 24px;
  border-radius: var(--radius-field);
  background: var(--bg-elev);
}
.invite-shell .voice.is-visible {
  display: block;
}
.invite-shell .voice p {
  color: var(--text);
  font-size: 15px;
  margin-bottom: var(--gap);
}
.invite-shell audio {
  width: 100%;
  display: block;
  accent-color: var(--cta);
}
.invite-shell .voice-caption,
.invite-shell .store-note {
  font-size: var(--label-size);
  color: var(--muted);
}
.invite-shell .store-note {
  margin-top: 24px;
  margin-bottom: 0;
}
.invite-shell .store-note a {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding-inline: var(--gap);
}
.invite-shell .status {
  color: var(--muted);
  font-size: var(--label-size);
  margin-bottom: var(--gap);
}
.invite-shell .status.error {
  color: var(--danger);
}
.invite-shell [hidden] {
  display: none !important;
}
@media (max-width: 420px) {
  .invite-shell {
    padding: 22px;
  }
}
@media (max-width: 400px) {
  .hero-disc.sky { width: 44px; height: 44px; }
  .invite-page { --margin-disc: 44px; }
}
