:root {
  color: #f4f4f5;
  background: #0c0c0d;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

body {
  display: grid;
  min-width: 320px;
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0;
  place-items: center;
  padding: 24px;
  background:
    radial-gradient(circle at 50% -15%, rgb(118 112 255 / 16%), transparent 42%),
    #0c0c0d;
}

.invitation-card {
  width: min(100%, 480px);
  padding: 32px;
  border: 1px solid #2a2a2d;
  border-radius: 18px;
  background: rgb(24 24 27 / 88%);
  box-shadow: 0 28px 90px rgb(0 0 0 / 38%);
  backdrop-filter: blur(18px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-mark {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border: 1px solid rgb(255 255 255 / 12%);
  border-radius: 9px;
  background: linear-gradient(145deg, #7770ff, #4d46cf);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 24%);
}

.brand-mark span {
  width: 9px;
  height: 9px;
  border: 2px solid white;
  border-radius: 50%;
}

.brand-name {
  font-size: 15px;
  font-weight: 650;
  letter-spacing: -0.01em;
}

.copy {
  margin: 44px 0 30px;
}

h1 {
  margin: 0;
  font-size: clamp(28px, 6vw, 36px);
  font-weight: 650;
  letter-spacing: -0.045em;
  line-height: 1.14;
}

#invitation-description {
  margin: 14px 0 0;
  color: #a1a1aa;
  font-size: 15px;
  line-height: 1.65;
}

.actions,
.download-actions {
  display: grid;
  gap: 10px;
}

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 11px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: border-color 140ms ease, background 140ms ease, transform 140ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button:focus-visible {
  outline: 2px solid #aaa6ff;
  outline-offset: 3px;
}

.button-primary {
  color: white;
  background: #635bdf;
  box-shadow: 0 10px 30px rgb(99 91 223 / 24%);
}

.button-primary:hover {
  background: #7169e8;
}

.button-secondary {
  color: #e4e4e7;
  border-color: #343438;
  background: #202023;
}

.button-secondary:hover {
  border-color: #49494f;
  background: #27272a;
}

.fallback {
  margin: 16px 0 0;
  color: #71717a;
  font-size: 12px;
  text-align: center;
}

@media (max-width: 520px) {
  body {
    align-items: stretch;
    padding: 0;
  }

  .invitation-card {
    min-height: 100vh;
    min-height: 100dvh;
    padding: 28px 22px;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  .copy {
    margin-top: min(20vh, 140px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .button {
    transition: none;
  }
}
