/*
 * The invite pages (infra/cloudflare/web/src/page.ts; features/invites.md §2.1, mockup 2a). Light only, like the app's
 * invite screens. No inline styles anywhere (the CSP is style-src 'self'): colours that come from a house are SVG
 * attributes in the page.
 */
:root {
  color-scheme: light;
  --ink: #0a0a0a;
  --muted: #66666b;
  --faint: #8e8e93;
  --red: #d91e2c;
  font-family:
    -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  background: #fff;
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
}

.page {
  max-width: 430px;
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0 auto;
  padding: max(14px, env(safe-area-inset-top)) 20px max(24px, env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

.top {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
}

.top .mark {
  width: 22px;
  height: 22px;
}

.top b {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.stage {
  position: relative;
  height: 330px;
  margin: 6px auto 0;
  width: 100%;
  max-width: 350px;
}

.blob {
  position: absolute;
  left: 50%;
  top: 14px;
  transform: translateX(-50%);
  width: 262px;
  height: 300px;
}

.tile {
  position: absolute;
  left: 50%;
  top: 22px;
  width: 184px;
  height: 218px;
  margin-left: -92px;
  transform: rotate(-3deg);
  border-radius: 30px;
  overflow: hidden;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.22);
  background: #f2f2f2;
}

.tile .cover {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tile .name {
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: 8px;
  padding: 8px 12px;
  border-radius: 17px;
  background: rgba(255, 255, 255, 0.78);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border: 0.5px solid rgba(255, 255, 255, 0.7);
  font-weight: 700;
  font-size: 17px;
  line-height: 1.2;
  overflow-wrap: anywhere;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.chip {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px 6px 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.86);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
  border: 0.5px solid rgba(255, 255, 255, 0.8);
  font-weight: 700;
  font-size: 15px;
  white-space: nowrap;
}

.chip .icon {
  width: 18px;
  height: 14px;
  fill: var(--ink);
}

.count {
  left: 6%;
  top: 40px;
  transform: rotate(-4deg);
}

.faces {
  left: 50%;
  top: 266px;
  transform: translateX(-50%) rotate(2deg);
  padding: 5px;
  gap: 0;
}

.face {
  display: block;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 2px solid #fff;
  margin-left: -8px;
  object-fit: cover;
  background: #fff;
}

.face:first-child {
  margin-left: 0;
}

.ini {
  fill: #fff;
  font-size: 13px;
  font-weight: 700;
  font-family: inherit;
}

.wave {
  position: absolute;
  right: 12%;
  top: 196px;
  font-size: 40px;
  transform: rotate(12deg);
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.15));
}

.stage.plain {
  height: 324px; /* the blob (top 14, 300 tall) and a 10-px gap above the headline */
}

.brand {
  position: absolute;
  left: 50%;
  top: 70px;
  width: 168px;
  height: 168px;
  margin-left: -84px;
  border-radius: 40px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  transform: rotate(-3deg);
}

.brand .mark {
  width: 104px;
  height: 104px;
}

h1 {
  text-align: center;
  font-size: 40px;
  line-height: 1.05;
  font-weight: 800;
  letter-spacing: -0.04em;
  margin-top: 6px;
}

h1 em {
  font-style: normal;
  color: var(--red);
}

.line {
  text-align: center;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.35;
  margin-top: 10px;
  overflow-wrap: anywhere;
}

.actions {
  padding-top: 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: stretch;
}

.btn {
  height: 52px;
  border-radius: 999px;
  border: 0;
  background: var(--ink);
  color: #fff;
  font: inherit;
  font-weight: 600;
  font-size: 17px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.btn .icon {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: #fff;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.btn:active {
  opacity: 0.85;
}

.soon {
  text-align: center;
  font-size: 15px;
  font-weight: 600;
}

.note {
  text-align: center;
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.35;
  padding: 0 12px;
  text-wrap: balance;
}

.alt {
  text-align: center;
  font-size: 15px;
  padding-top: 2px;
}

.alt span {
  color: var(--muted);
}

.alt a {
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
}

.foot {
  margin-top: auto;
  padding-top: 28px;
  text-align: center;
  font-size: 12px;
  color: var(--faint);
}

.foot a {
  color: inherit;
  text-decoration: none;
}
