/* Frontrow web fallback — Threads-quiet chrome. White surface, dark text,
   one cobalt accent, no gradients. People are circles, artists are squares. */

:root {
  --paper: #fbfaf7;
  --ink: #171612;
  --ink-2: #413d34;
  --grey: #6b675e;
  --hair: #e4dfd4;
  --card: #ffffff;
  --accent: #2438e0;
  --radius: 14px;
  --sans: -apple-system, BlinkMacSystemFont, "Helvetica Neue", "Segoe UI", system-ui, sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}

body {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
}

.shell {
  width: 100%;
  max-width: 440px;
  margin: 0 auto;
  padding: 20px 22px calc(24px + env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
}

.topbar { padding: 8px 0 24px; }

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-weight: 800;
  letter-spacing: -0.02em;
  font-size: 17px;
}
.wordmark .mark {
  width: 10px;
  height: 10px;
  background: var(--accent);
  border-radius: 2px;
}

.hero {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
  gap: 18px;
}

/* Inviter — a person, so a circle */
.invited {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  margin: 0 auto;
  padding: 7px 14px 7px 8px;
  background: #eaecfb;
  color: var(--accent);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
}
.invited-avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
}

.entity { display: flex; flex-direction: column; align-items: center; gap: 14px; }

/* Artists/posts render as squares; profiles get .art--round applied in JS */
.art {
  width: 132px;
  height: 132px;
  border-radius: 10px;
  background: #ece7dd;
  border: 1px solid var(--hair);
  background-size: cover;
  background-position: center;
}
.art--round { border-radius: 50%; }

.entity-name {
  margin: 0;
  font-size: clamp(24px, 7vw, 32px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.entity-sub {
  margin: 0;
  max-width: 34ch;
  color: var(--grey);
  font-size: 15px;
  line-height: 1.5;
}

.actions { display: flex; flex-direction: column; gap: 12px; margin-top: 8px; align-items: center; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 320px;
  padding: 15px 18px;
  border-radius: var(--radius);
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid transparent;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:active { opacity: 0.9; }

.store-row { display: flex; gap: 10px; width: 100%; max-width: 320px; }
.store {
  flex: 1;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid var(--hair);
  background: var(--card);
  color: var(--ink);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  text-align: center;
}
.store:active { background: #f4f1ea; }

.link-btn {
  background: none;
  border: none;
  color: var(--grey);
  font-size: 13px;
  font-family: inherit;
  padding: 6px;
  cursor: pointer;
}

.foot {
  padding-top: 28px;
  text-align: center;
  color: #9a958a;
  font-size: 12px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #141310;
    --ink: #f3f0e8;
    --ink-2: #cfc9bc;
    --grey: #a29c8e;
    --hair: #302c24;
    --card: #1b1915;
    --accent: #8e9bff;
  }
  .invited { background: #20223a; }
  .invited-avatar { color: #141310; }
  .btn-primary { color: #141310; }
  .art { background: #26231d; }
}
