@font-face {
  font-family: "Pretendard";
  src: url("/assets/fonts/PretendardVariable.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  color-scheme: light;
  font-family: Pretendard, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #fff;
  color: #111;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
  margin: 0;
}

body {
  min-height: 100vh;
  background: #fff;
}

.invite-page {
  width: min(560px, calc(100% - 40px));
  min-height: 100vh;
  margin: 0 auto;
  padding: 92px 0 64px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  text-align: center;
}

.brand-icon {
  display: block;
  width: 96px;
  height: 96px;
  border-radius: 22px;
  object-fit: cover;
}

h1 {
  margin: 26px 0 0;
  color: #50545a;
  font-size: clamp(25px, 3vw, 32px);
  line-height: 1.42;
  font-weight: 650;
  letter-spacing: -0.035em;
}

.desktop-content {
  margin-top: 58px;
}

.qr-image {
  width: 274px;
  margin: 0 auto;
  padding: 12px;
  border: 1px solid #dfe3e8;
  border-radius: 4px;
  background: #fff;
}

.qr-image svg {
  display: block;
  width: 100%;
  height: auto;
}

.desktop-content p {
  margin: 24px 0 0;
  color: #72777e;
  font-size: 17px;
  line-height: 1.5;
  font-weight: 400;
}

.mobile-fallback {
  display: none;
  width: min(100%, 360px);
  margin-top: 40px;
}

.mobile-fallback p {
  margin: 0 0 20px;
  color: #72777e;
  font-size: 16px;
}

.open-app {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 56px;
  border-radius: 999px;
  background: #1a81f8;
  color: #fff;
  text-decoration: none;
  font-size: 17px;
  font-weight: 700;
}

.download {
  display: inline-block;
  margin-top: 20px;
  color: #72777e;
  font-size: 14px;
  text-underline-offset: 3px;
}

.invite-mobile .invite-page {
  opacity: 0;
}

.invite-mobile.invite-fallback-ready .invite-page {
  opacity: 1;
  transition: opacity 160ms ease-out;
}

.invite-mobile .desktop-content {
  display: none;
}

.invite-mobile .mobile-fallback {
  display: block;
}

@media (max-width: 640px) {
  .invite-page {
    padding: 52px 0;
  }

  .brand-icon {
    width: 92px;
    height: 92px;
    border-radius: 22px;
  }

  h1 {
    margin-top: 24px;
    font-size: 26px;
  }
}
