/* The small pages (404, joined, try-again, privacy): same ground, type scale, bar and crew stage as squah.org.
   No JavaScript, no inline styles, system font only. */
:root {
  --bg: #0d0a1c;
  --ink: #f6f3ff;
  --muted: #b9b2d0;
  --line: rgb(170 150 255 / .16);
  --violet: #6f4cff;
  --violet-ink: #b9a6ff;
  --panel: #151024;
  --sans: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
  --s1: 8px; --s2: 16px; --s3: 24px; --s4: 32px; --s5: 48px; --s6: 64px;
  --wrap: 1200px;
  --gut: 40px;
  --radius: 14px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; min-height: 100svh; display: flex; flex-direction: column; background: var(--bg); color: var(--ink);
  font: 400 17px/1.55 var(--sans); -webkit-font-smoothing: antialiased; }
h1, h2, p { margin: 0; padding: 0; }
img { max-width: 100%; height: auto; }
p { text-wrap: pretty; }
a { color: inherit; text-underline-offset: .2em; text-decoration-thickness: 1px; }
a:focus-visible { outline: 2px solid var(--violet-ink); outline-offset: 3px; border-radius: 6px; }

/* The home page's bar: mark, wordmark, the five links and the one Join the beta (no script: it is a <details>). */
.skip { position: absolute; left: 12px; top: -48px; padding: 8px 16px; background: var(--ink); color: var(--bg); border-radius: 8px; z-index: 30; font-size: 14px; }
.skip:focus { top: 12px; }
.trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.nav { position: sticky; top: 0; z-index: 20; }
.nav::before { content: ''; position: absolute; inset: 0; background: rgb(13 10 28 / .96);
  -webkit-backdrop-filter: blur(18px) saturate(1.5); backdrop-filter: blur(18px) saturate(1.5);
  border-bottom: 1px solid var(--line); }
.nav-in { position: relative; display: flex; align-items: center; justify-content: space-between; height: 76px; width: 100%;
  max-width: 1512px; margin: 0 auto; padding: 0 max(48px, env(safe-area-inset-right, 0px)) 0 max(64px, env(safe-area-inset-left, 0px)); }
.brand { display: inline-flex; align-items: center; gap: 12px; font-weight: 500; font-size: 26px; letter-spacing: -.01em; text-decoration: none; }
.brand img { display: block; width: 44px; height: 44px; border-radius: 24%; box-shadow: 0 0 0 1px rgb(170 150 255 / .3); }
.btn { display: inline-flex; align-items: center; justify-content: center; height: 48px; padding: 0 24px; border: 0; border-radius: 999px;
  background: #8163ff; color: #0c0720; font: 600 14px/1 var(--sans); cursor: pointer; white-space: nowrap;
  box-shadow: 0 0 0 1px rgb(255 255 255 / .16) inset; }
.btn:hover { background: #937aff; }
.links { display: flex; gap: 32px; margin-left: auto; margin-right: 32px; font-size: 14px; }
.links a { color: #d9d3ee; text-decoration: none; }
.links a:hover, .foot p a:hover { color: #fff; }
.join { position: relative; }
.join summary { list-style: none; }
.join summary::-webkit-details-marker { display: none; }
.join form { position: absolute; right: 0; top: calc(100% + 8px); width: 480px; padding: 16px; border-radius: 14px;
  display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 12px; align-items: center;
  background: var(--panel); box-shadow: 0 0 0 1px var(--line), 0 24px 60px rgb(0 0 0 / .55); text-align: left; }
.join label[for] { display: block; font-size: 14px; font-weight: 600; }
.join .row { display: flex; gap: 8px; padding-right: 40px; }
input[type="email"] { flex: 1; min-width: 0; height: 48px; padding: 0 16px; border: 1px solid rgb(170 150 255 / .3); border-radius: 999px;
  background: var(--bg); color: var(--ink); font: 400 16px/1 var(--sans); }
input[type="email"]::placeholder { color: #9189aa; }
.note { grid-column: 1 / -1; margin-top: 12px; font-size: 14px; color: var(--muted); text-wrap: balance; }
.join[open] > summary { background: #6a4fe0; box-shadow: 0 0 0 1px rgb(255 255 255 / .16) inset, 0 2px 8px rgb(8 4 28 / .6) inset; }
.join[open] > summary::after { content: '\00d7'; content: '\00d7' / ''; position: absolute; z-index: 1; right: 16px; top: calc(100% + 32px); width: 32px; height: 32px;
  display: grid; place-items: center; border-radius: 50%; font: 400 22px/1 var(--sans); color: var(--muted); }
.join[open] > summary:hover::after { color: #fff; background: rgb(255 255 255 / .08); }
summary:focus-visible, button:focus-visible, input:focus-visible { outline: 2px solid var(--violet-ink); outline-offset: 3px; }
/* and its footer, with a rule the whole width of the window */
.foot { position: relative; display: flex; align-items: center; gap: 32px; width: 100%; max-width: 1512px; margin: 0 auto;
  padding: 32px max(48px, env(safe-area-inset-right, 0px)) 32px max(64px, env(safe-area-inset-left, 0px)); font-size: 14px; color: var(--muted); }
.foot::before { content: ''; position: absolute; top: 0; left: calc(50% - 50vw); width: 100vw; height: 1px; background: linear-gradient(90deg, rgb(150 118 255 / .2), rgb(196 176 255 / .7) 50%, rgb(150 118 255 / .2)); }
.foot .brand { color: var(--ink); }
.foot p { flex: 1; margin: 0; text-align: right; }
/* the footer's items: a dot before each but the first, drawn by the page, so no line can end on one */
.foot p > span { white-space: nowrap; }
.foot p > span + span::before { content: ' · '; white-space: pre; }

body { overflow-x: clip; }

/* The crew stage: a soft floor glow with a contact shadow where the feet meet it (91% down the cut-out square).
   The cut-out itself is never altered or shaded. */
.stage { position: relative; width: 200px; height: 200px; margin: 0 auto var(--s4); }
.stage::before { content: ''; position: absolute; left: -34%; right: -34%; top: 10%; bottom: -16%; pointer-events: none;
  background:
    radial-gradient(20% 5% at 50% 80.5%, rgb(3 2 8 / .92) 0%, rgb(3 2 8 / .48) 58%, rgb(3 2 8 / 0) 100%),
    radial-gradient(50% 42% at 50% 76%, rgb(107 77 255 / .24) 0%, rgb(68 44 168 / .10) 44%, rgb(13 10 28 / 0) 76%); }
.c { position: relative; display: block; width: 100%; height: 100%; }
.c img { display: block; width: 100%; height: 100%; }

/* Centered status pages (404, joined, try-again). */
main.center { overflow-x: clip; flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; width: 100%; max-width: 560px; margin: 0 auto;
  padding: var(--s5) max(var(--gut), env(safe-area-inset-left, 0px)) var(--s6); }
h1 { font-weight: 600; font-size: 44px; line-height: 1.06; letter-spacing: -.03em; text-wrap: balance; }
main.center p { margin-top: var(--s2); color: var(--muted); max-width: 36ch; }
main.center p.act { margin-top: var(--s4); max-width: none; }

/* The way back: one quiet pill on all four pages. Violet is kept for Join the beta on the home page. */
.back { display: inline-flex; align-items: center; height: 44px; padding: 0 22px; border-radius: 999px;
  border: 1px solid var(--line); background: rgb(21 16 36 / .65); color: var(--ink);
  font: 600 15px/1 var(--sans); text-decoration: none; }
.back:hover { border-color: rgb(184 168 255 / .42); background: var(--panel); }

/* Document layout (privacy). */
/* The stage's glow reaches past the column; it is cut at the page's edge, never scrolled to. */
main.doc { overflow-x: clip; flex: 1; width: 100%; max-width: 760px; margin: 0 auto;
  padding: var(--s6) max(var(--gut), env(safe-area-inset-left, 0px)) var(--s6); }
.doc-head { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--s4);
  padding-bottom: var(--s4); border-bottom: 1px solid var(--line); }
.doc-head .stage { width: 140px; height: 140px; margin: 0; flex-shrink: 0; }
.doc-body { display: grid; gap: var(--s3); margin-top: var(--s4); }
.card { padding: var(--s4); border-radius: var(--radius); background: var(--panel);
  box-shadow: 0 0 0 1px var(--line), inset 0 1px 0 rgb(255 255 255 / .06); }
.card h2 { font-size: 20px; font-weight: 600; line-height: 1.3; letter-spacing: -.015em; color: var(--ink); }
.card p { margin-top: var(--s2); max-width: 27em; text-wrap: pretty; font-size: 17px; line-height: 1.6; color: var(--muted); }
.card p + p { margin-top: 12px; }
.fill { color: var(--violet-ink); }
.doc-foot { margin-top: var(--s5); }
@media (max-width: 1279px) {
  .links { display: none; }
  .nav-in { padding: 0 32px; }
}
@media (max-width: 960px) {
  :root { --gut: 24px; }
  h1 { font-size: 36px; }
}

@media (max-width: 760px) {
  :root { --gut: 20px; }
  body { font-size: 17px; }
  .nav-in { height: 64px; padding: 0 16px; }
  .brand { font-size: 22px; gap: 8px; }
  .brand img { width: 36px; height: 36px; }
  .btn { height: 44px; padding: 0 16px; }
  .join form { position: fixed; left: 16px; right: 16px; top: 72px; width: auto; display: block; padding: 24px; }
  .join .row { margin-top: 8px; padding-right: 0; }
  .note { margin-top: 16px; text-wrap: pretty; }
  .join[open] > summary::after { position: fixed; right: 40px; top: 88px; }
  .join .row { flex-direction: column; }
  .join .row input[type="email"] { flex: none; }
  .join .row .btn { width: 100%; }
  .foot { flex-direction: column; align-items: flex-start; gap: 16px; padding: 32px 16px; }
  .foot p { text-align: left; }
  .foot p > span { display: block; } .foot p > span:nth-child(-n+2) { display: inline; } .foot p > span + span::before { content: none; } .foot p > span:nth-child(2)::before { content: ' · '; }
  .nav::before { background: var(--bg); -webkit-backdrop-filter: none; backdrop-filter: none; }
  h1 { font-size: 30px; }
  .stage { width: 164px; height: 164px; margin-bottom: var(--s3); }
  main.center { padding-top: var(--s4); padding-bottom: var(--s5); }
  main.doc { padding-top: var(--s4); padding-bottom: var(--s5); }
  .doc-head { align-items: center; padding-bottom: var(--s3); }
  .doc-head .stage { width: 112px; height: 112px; }
  .card { padding: var(--s3); }
  .card h2 { font-size: 18px; }
  .card p { font-size: 16px; }
}
