:root {
  --bg: #0c0b0f;
  --surface: #141218;
  --line: #2a2631;
  --text: #f1eef5;
  --muted: #8f8a98;
  --accent: #f2154c;
  --ok: #22f27a;
  --cut: 14px; /* the clipped corner her app's buttons use */
  font-family: 'Archivo', 'Segoe UI Variable', 'Segoe UI', system-ui, sans-serif;
  font-variation-settings: 'wdth' 100;
  color: var(--text);
  background: var(--bg);
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); font-size: 17px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* top bar */
.top {
  background: var(--bg); border-bottom: 1px solid var(--line);
  position: fixed; inset: 0 0 auto 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px clamp(16px, 4vw, 48px);
}
.mark { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; font-size: 18px; letter-spacing: 0.02em; }
.slash { width: 5px; height: 22px; background: var(--accent); transform: skewX(-20deg); }
.top nav { display: flex; gap: 22px; }
.top nav a { text-decoration: none; color: var(--muted); font-weight: 500; }
.top nav a:hover { color: var(--text); }

/* hero: the wordmark is the page's one loud thing; the copy sits beside its foot */
.hero {
  display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px clamp(24px, 4vw, 56px);
  padding: clamp(96px, 16vh, 160px) clamp(16px, 4vw, 48px) clamp(28px, 5vh, 48px);
}
.word {
  margin: 0 0 -0.06em;
  font-size: clamp(110px, 26vw, 400px);
  line-height: 0.8;
  font-weight: 800;
  font-variation-settings: 'wdth' 62;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}
.lede { margin: 0 0 0.6em; max-width: 30ch; font-size: clamp(18px, 1.9vw, 22px); }

/* the trailer, edge to edge, 16:9 */
.reel-wrap { position: relative; aspect-ratio: 16 / 9; max-height: 92vh; margin: 0 auto; background: #000; }
.reel { display: block; width: 100%; height: 100%; object-fit: contain; }
.sound {
  position: absolute; right: clamp(12px, 2vw, 24px); bottom: clamp(12px, 2vw, 24px);
  height: 40px; padding: 0 18px;
  background: var(--bg); color: var(--text); border: 1px solid var(--line);
  font: inherit; font-weight: 600; cursor: pointer;
}
.sound:hover { border-color: var(--text); }
.sound[aria-pressed='true'] { border-color: var(--accent); }

/* the two ways in */
.join {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 64px);
  padding: clamp(56px, 10vh, 120px) clamp(16px, 4vw, 48px);
  max-width: 1200px;
}
.form { display: grid; gap: 16px; align-content: start; scroll-margin-top: 80px; }
.form h2 { margin: 0; font-size: clamp(32px, 4vw, 48px); line-height: 1; font-weight: 800; font-variation-settings: 'wdth' 75; }
.form > p:not(.status) { margin: -6px 0 8px; color: var(--muted); max-width: 42ch; }
label { display: grid; gap: 6px; font-weight: 600; font-size: 15px; }
input, select {
  height: 48px; padding: 0 14px;
  background: var(--surface); color: var(--text);
  border: 1px solid var(--line); border-radius: 0;
  font: inherit; font-weight: 400;
}
input::placeholder { color: var(--muted); }
input:focus, select:focus { outline: none; border-color: var(--accent); }
input[aria-invalid='true'] { border-color: var(--accent); }
fieldset { margin: 0; padding: 0; border: 0; display: grid; gap: 8px; }
legend { padding: 0 0 8px; font-weight: 600; font-size: 15px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; cursor: pointer; }
.chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chip span { padding: 9px 14px; border: 1px solid var(--line); font-weight: 500; }
.chip input:checked + span { border-color: var(--accent); background: var(--accent); color: #fff; }
.chip input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.form button[type='submit'] {
  justify-self: start; height: 52px; padding: 0 28px; margin-top: 6px;
  background: var(--accent); color: #fff; border: 0;
  font: inherit; font-weight: 700; font-size: 16px; cursor: pointer;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%);
}
.form button[type='submit']:hover { filter: brightness(1.12); }
.form button[disabled] { opacity: 0.6; cursor: default; }
.status { margin: 0; min-height: 1.5em; font-weight: 600; }
.status.ok { color: var(--ok); }
.status.err { color: var(--accent); }
.trap { position: absolute; left: -9999px; }

.foot { padding: 24px clamp(16px, 4vw, 48px) 40px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
.foot p { margin: 0; }

@media (max-width: 760px) {
  .join { grid-template-columns: 1fr; }
  .top nav { gap: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
@media (max-width: 760px) {
  .sound { height: 32px; padding: 0 12px; font-size: 14px; }
}
