:root {
  --background: #0a0a0a;
  --foreground: #ededed;
  --muted: #a3a3a3;
  --line: rgb(255 255 255 / 12%);
  --panel: #fff;
  --panel-foreground: #111;
  color: var(--foreground);
  background: var(--background);
  font-family: 'Poppins', system-ui, -apple-system, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  margin: 0;
  background: var(--background);
  -webkit-font-smoothing: antialiased;
}

.site-header,
.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem max(1.5rem, calc((100vw - 48rem) / 2));
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1;
  border-bottom: 1px solid var(--line);
  background: rgb(10 10 10 / 90%);
  backdrop-filter: blur(12px);
}

.mark {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: inherit;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.025em;
  text-decoration: none;
}

.mark__dot {
  width: 0.6rem;
  height: 0.6rem;
  border-radius: 50%;
  background: #ef4444;
}

.status-label,
.eyebrow {
  color: var(--muted);
  font-size: 0.8125rem;
  font-weight: 500;
}

main {
  min-height: calc(100svh - 8.25rem);
  padding: 3rem 1.5rem;
  display: grid;
  place-items: center;
}

.join {
  width: min(100%, 38rem);
  min-height: 22rem;
  padding: clamp(1.5rem, 4vw, 2.5rem);
  border-radius: 0.35rem;
  color: var(--panel-foreground);
  background: var(--panel);
}

h2 {
  margin: 0.75rem 0 1rem;
  white-space: nowrap;
  font-size: clamp(2rem, 6vw, 3.1rem);
  font-weight: 600;
  letter-spacing: -0.055em;
  line-height: 1.08;
}

.join > p {
  margin: 0 0 2rem;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.6;
  white-space: nowrap;
}

.join--complete {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.join > .success-message {
  margin: 0;
  color: #080808;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 1;
}

label {
  display: block;
  margin-bottom: 0.55rem;
  font-size: 0.875rem;
  font-weight: 500;
}

.form-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.85rem;
  align-items: stretch;
}

input,
button {
  font: inherit;
}

input[type='email'] {
  width: 100%;
  min-width: 0;
  padding: 0.85rem 1rem;
  border: 1px solid rgb(0 0 0 / 18%);
  border-radius: 0.35rem;
  color: var(--panel-foreground);
  background: #fff;
}

input[type='email']::placeholder {
  color: var(--muted);
}

input[type='email']:focus {
  border-color: rgb(0 0 0 / 40%);
  outline: 2px solid rgb(0 0 0 / 16%);
  outline-offset: 2px;
}

button {
  width: auto;
  padding: 0.85rem 1.25rem;
  border: 1px solid var(--panel-foreground);
  border-radius: 999px;
  color: #fff;
  background: var(--panel-foreground);
  font-weight: 500;
  cursor: pointer;
}

button:hover,
button:focus-visible {
  background: #333;
}

button:disabled {
  cursor: wait;
  opacity: 0.7;
}

.status {
  min-height: 1.25rem;
  margin: 1rem 0 0;
  color: #737373;
  font-size: 0.875rem;
  font-weight: 500;
}

.status--success {
  color: var(--panel-foreground);
}

.guild-note {
  margin: 1rem 0 0;
  color: #737373;
  font-size: 0.75rem;
  font-style: italic;
  line-height: 1.5;
}

.honeypot {
  position: absolute;
  left: -10000px;
}

.footer {
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.8125rem;
}

@media (max-width: 760px) {
  .site-header {
    align-items: flex-start;
  }

  .status-label {
    padding-top: 0.1rem;
  }

  .join {
    padding: 1.5rem;
  }

  .join > p {
    font-size: clamp(0.65rem, 3.35vw, 1rem);
  }

  h2 {
    font-size: clamp(1.5rem, 6.8vw, 2.1rem);
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .form-row button {
    width: 100%;
  }
}
