:root {
  color-scheme: dark;
  --bg: #0B0B0C;
  --surface: #121214;
  --ink: #F2F2F0;
  --muted: #A9ACB1;
  --rule: #2B2C30;
  --accent: #C9CDD3;

  --wall: #0B0B0C;
  --wall-ink: #F2F2F0;
  --wall-muted: #B4B7BC;
  --wall-accent: #CBCFD5;

  --display: "Bodoni Moda", "Didot", "Bodoni 72", Georgia, serif;
  --body: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.125rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
[hidden] { display: none !important; }

.wrap { width: min(100% - 2.5rem, 70rem); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 0; background: var(--wall-accent); color: #0B0B0C; padding: .6rem 1rem; z-index: 10; }
.skip:focus { left: 1rem; top: 1rem; }

/* The wall */
.wall { background-color: var(--wall); background-image: radial-gradient(70rem 42rem at 8% -8%, rgba(255,255,255,.075), transparent 62%); color: var(--wall-ink); min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; }
.wall.compact { min-height: 0; }
.wall :focus-visible { outline-color: var(--wall-accent); }
.bar { padding-block: 1.5rem; }
.mark { font-family: var(--display); font-size: 1.9rem; font-weight: 600; letter-spacing: .005em; text-decoration: none; }

.hero { flex: 1; display: flex; align-items: center; padding-block: clamp(1.5rem, 5vw, 3.5rem) clamp(3rem, 7vw, 5rem); }
.hero main { max-width: 46rem; }
h1 {
  font-family: var(--display);
  font-weight: 600;
  font-variation-settings: "opsz" 30;
  font-size: clamp(2.2rem, 4.8vw, 3.8rem);
  line-height: 1.12;
  letter-spacing: -.005em;
  margin: 0 0 1.75rem;
  text-wrap: balance;
}
h1 .sub { display: block; margin-top: .45em; font-size: .56em; font-weight: 500; line-height: 1.25; letter-spacing: 0; }
.see { font-family: var(--display); font-style: italic; font-weight: 500; font-variation-settings: "opsz" 24; font-size: clamp(1.5rem, 2.6vw, 2rem); line-height: 1.25; margin: 0 0 .6rem; }
.invite { display: flex; align-items: center; gap: .8rem; margin: 0 0 2.75rem; color: var(--wall-accent); font-size: 1.0625rem; font-weight: 600; }
.invite::before { content: ""; width: 2.5rem; height: 1px; background: var(--wall-accent); }

/* Request steps */
.join { max-width: 32rem; padding: clamp(1.25rem, 3vw, 1.75rem); background: linear-gradient(160deg, rgba(255,255,255,.075), rgba(255,255,255,.02)); border: 1px solid rgba(255,255,255,.15); border-radius: 8px; }
.stepno { margin: 0 0 .2rem; font-size: .95rem; color: var(--wall-muted); }
.st { font-family: var(--body); font-size: 1.4rem; font-weight: 600; line-height: 1.3; margin: 0 0 1rem; max-width: none; letter-spacing: 0; }
form.step { display: grid; gap: 1.15rem; }
.field { display: grid; gap: .45rem; }
.field label, fieldset legend { font-size: 1.02rem; font-weight: 600; line-height: 1.4; }
.hint { color: var(--wall-muted); font-weight: 400; font-size: .95rem; line-height: 1.5; }
.note { color: var(--wall-muted); margin: 0 0 1rem; font-size: .98rem; }
.note a { color: var(--wall-ink); }
.count { font-variant-numeric: tabular-nums; }
input[type="text"], input[type="tel"], select, textarea {
  width: 100%;
  font: inherit;
  color: #F2F2F0;
  background: #141416;
  border: 1px solid #3E4045;
  border-radius: 4px;
  padding: .9rem 1rem;
}
textarea { min-height: 6.5rem; resize: vertical; }
input#invite { text-transform: uppercase; letter-spacing: .08em; }
input#invite::placeholder { text-transform: none; letter-spacing: 0; }
input#code { font-size: 1.5rem; letter-spacing: .5em; text-align: center; max-width: 12rem; }
input::placeholder, textarea::placeholder { color: #8B8E94; }
fieldset { border: 0; margin: 0; padding: 0; display: grid; gap: .55rem; }
fieldset legend { padding: 0; margin-bottom: .2rem; line-height: 1.4; }
.opt { display: grid; grid-template-columns: auto 1fr; gap: .7rem; align-items: center; padding: .7rem .8rem; border: 1px solid rgba(255,255,255,.2); border-radius: 4px; cursor: pointer; }
.opt:hover { border-color: rgba(255,255,255,.55); }
.opt input { width: 1.1rem; height: 1.1rem; margin: 0; accent-color: var(--wall-accent); }
.consent { display: grid; grid-template-columns: auto 1fr; gap: .75rem; align-items: start; font-size: .95rem; line-height: 1.5; color: var(--wall-muted); }
.consent input { width: 1.15rem; height: 1.15rem; margin: .2rem 0 0; accent-color: var(--wall-accent); }
.consent a, .linkbtn { color: var(--wall-ink); }
.actions { display: flex; flex-wrap: wrap; gap: .75rem 1.25rem; align-items: center; }
button.cta, a.cta {
  font: inherit; font-weight: 600;
  background: linear-gradient(180deg, #E6E8EC, #B7BCC4); color: #0B0B0C;
  border: 0; border-radius: 4px;
  padding: .95rem 1.4rem;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
}
button.cta:hover, a.cta:hover { background: linear-gradient(180deg, #F2F4F6, #C8CCD3); }
button.cta[disabled] { opacity: .65; cursor: progress; }
button.linkbtn { font: inherit; font-size: .95rem; background: none; border: 0; padding: .25rem 0; cursor: pointer; text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
button.linkbtn[disabled] { color: var(--wall-muted); text-decoration: none; cursor: default; }
#status { min-height: 1.5rem; margin: 1rem 0 0; font-size: 1rem; }
#status.ok { color: #BFE3C8; }
#status.err { color: #FFC9C0; }
.done p { color: var(--wall-muted); max-width: 28rem; }

/* Questions */
section { padding-block: clamp(3rem, 7vw, 5rem); border-top: 1px solid var(--rule); }
h2 { font-family: var(--display); font-weight: 500; font-size: clamp(1.8rem, 3.4vw, 2.4rem); line-height: 1.12; letter-spacing: -.01em; margin: 0 0 1.75rem; }
.faq { max-width: 46rem; }
details { border-bottom: 1px solid var(--rule); }
details:first-of-type { border-top: 1px solid var(--rule); }
summary { cursor: pointer; list-style: none; padding: 1.2rem 2rem 1.2rem 0; font-size: 1.125rem; font-weight: 600; position: relative; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: .25rem; top: 1rem; font-size: 1.4rem; line-height: 1; color: var(--accent); }
details[open] summary::after { content: "\2212"; }
details p { color: var(--muted); padding: 0 2rem 1.3rem 0; margin: 0; max-width: 40rem; }
details ul { list-style: none; margin: 0; padding: 0 2rem 1.4rem 0; max-width: 40rem; display: grid; gap: 1rem; }
details li { color: var(--muted); padding-left: 1rem; border-left: 1px solid var(--accent); }

footer { border-top: 1px solid var(--rule); padding-block: 2rem 3rem; font-size: .98rem; color: var(--muted); }
footer .row { display: flex; flex-wrap: wrap; gap: .75rem 2rem; justify-content: space-between; }
footer a { color: var(--muted); }

/* Legal pages */
.prose { width: min(100% - 2.5rem, 40rem); margin-inline: auto; padding-block: clamp(2.5rem, 6vw, 4.5rem); }
.prose h1 { margin-bottom: .6rem; }
.prose .updated { color: var(--muted); margin: 0 0 2rem; }
.prose h2 { font-family: var(--body); font-size: 1.15rem; font-weight: 600; letter-spacing: 0; margin: 2rem 0 .5rem; }
.prose p, .prose li { color: var(--muted); }
.prose ul { margin: 0; padding-left: 1.15rem; }
.prose a { color: var(--ink); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
