:root {
  color-scheme: dark;
  font-family: "Inter", "Segoe UI", Arial, sans-serif;
  color: #faf6fc;
  background: #140e20;
  --ink: #21172c;
  --muted: #60556c;
  --paper: #f9f5fc;
  --accent: #6237a5;
  --lavender: #d4bbf5;
  --display: Georgia, "Times New Roman", serif;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

body {
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(ellipse at 88% 12%, #3a2252 0, transparent 45%),
    radial-gradient(ellipse at 16% 75%, #221932 0, transparent 54%),
    #140e20;
}

button, input, textarea { font: inherit; }

a { color: inherit; }

:focus-visible {
  outline: 3px solid #9e70df;
  outline-offset: 4px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.shell {
  width: min(100% - 6rem, 75rem);
  margin-inline: auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 5.4rem;
  border-bottom: 1px solid #f3e4ff29;
}

.wordmark {
  position: relative;
  padding-block: .4rem .8rem;
  text-decoration: none;
  font-size: .94rem;
  font-weight: 750;
  letter-spacing: .37em;
  text-transform: uppercase;
}

.wordmark::after {
  position: absolute;
  bottom: .3rem;
  left: 0;
  width: 1.4rem;
  height: 1px;
  background: #b68ae8;
  content: "";
}

.header-link {
  padding: .68rem 1.03rem;
  border: 1px solid #f3e4ff3d;
  border-radius: 99px;
  color: #f7edff;
  font-size: .88rem;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 160ms ease, border-color 160ms ease;
}

.header-link:hover {
  background: #f3e4ff14;
  border-color: #f3e4ff75;
}

.landing {
  display: grid;
  grid-template-columns: minmax(0, 1.17fr) minmax(25rem, 1fr);
  grid-template-areas: "hero register" "clubhouse register";
  column-gap: clamp(2rem, 5vw, 5rem);
  row-gap: 2rem;
  align-items: start;
  padding-block: clamp(2.75rem, 5vw, 4.6rem) 3rem;
}

.hero {
  grid-area: hero;
  align-self: end;
  padding-top: .5rem;
}

.eyebrow {
  margin: 0 0 1rem;
  color: #e3c4a0;
  font-size: .79rem;
  font-weight: 700;
  letter-spacing: .15em;
  line-height: 1.5;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(3.3rem, 5.9vw, 5.8rem);
  line-height: .99;
  font-weight: 400;
  letter-spacing: -.068em;
}

.hero h1 em {
  color: var(--lavender);
  font-weight: 400;
}

.hero-copy {
  max-width: 31rem;
  margin: 1.35rem 0 0;
  color: #ddd2e8;
  font-size: clamp(1rem, 1.3vw, 1.13rem);
  line-height: 1.65;
}

.clubhouse {
  grid-area: clubhouse;
  overflow: hidden;
  margin: 0;
  border: 1px solid #ede0fa25;
  border-radius: 1.1rem;
  background: #101a14;
  box-shadow: 0 1.1rem 2.8rem #08050f42;
}

.clubhouse img {
  display: block;
  width: 100%;
  height: auto;
}

.clubhouse figcaption {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(.36rem, 1.2vw, .85rem);
  padding: .8rem .65rem;
  border-top: 1px solid #f0e2ce22;
  color: #e7dccd;
  background: #171920;
  font-size: .82rem;
  line-height: 1.35;
}

.clubhouse figcaption span {
  flex: 0 0 .22rem;
  height: .22rem;
  border-radius: 50%;
  background: #bd97e5;
}

.register {
  grid-area: register;
  min-width: 0;
  padding: clamp(1.5rem, 3vw, 2.45rem);
  border: 1px solid #ffffff91;
  border-radius: 1.4rem;
  color: var(--ink);
  background: var(--paper);
  color-scheme: light;
  box-shadow: 0 1.5rem 4rem #08040f65;
  scroll-margin-top: 1.2rem;
}

.register h2 {
  margin: 0;
  font-family: var(--display);
  font-weight: 400;
  letter-spacing: -.045em;
  font-size: clamp(2rem, 3vw, 2.7rem);
  line-height: 1.13;
}

.register-copy {
  margin: .65rem 0 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.5;
}

.steps {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .65rem;
  margin: 1.5rem 0;
  padding: 0;
  list-style: none;
}

.steps li {
  padding: .72rem 0 0;
  border-top: 3px solid #e3d9eb;
  color: #6d6177;
  font-size: .88rem;
  font-weight: 650;
  line-height: 1.2;
}

.steps li[aria-current="step"] {
  border-color: var(--accent);
  color: #502d87;
}

.steps li.step-complete {
  border-color: #ad8dd0;
  color: #502d87;
}

fieldset {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
  display: grid;
  gap: 1rem;
}

.name-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .8rem;
}

.field {
  display: grid;
  gap: .38rem;
  min-width: 0;
}

label {
  font-size: .93rem;
  font-weight: 650;
  line-height: 1.35;
}

.field-hint {
  margin: 0;
  color: var(--muted);
  font-size: .88rem;
  line-height: 1.45;
}

input, textarea {
  width: 100%;
  min-width: 0;
  padding: .72rem .85rem;
  border: 1px solid #d9cce3;
  border-radius: .58rem;
  color: var(--ink);
  background: #fff;
  font-size: 1rem;
  line-height: 1.32;
}

input { min-height: 2.9rem; }
textarea { min-height: 5.65rem; resize: vertical; }

input:focus, textarea:focus {
  border-color: var(--accent);
  outline: 2px solid #aa7ad086;
  outline-offset: 1px;
}

input::placeholder, textarea::placeholder {
  color: #756a80;
  opacity: 1;
  font-size: .9rem;
}

.form-actions {
  display: flex;
  gap: .72rem;
  margin-top: 1.3rem;
}

.primary-button, .back-button {
  min-height: 3rem;
  padding: .65rem 1.12rem;
  border-radius: .65rem;
  font-size: .96rem;
  font-weight: 700;
  cursor: pointer;
}

.primary-button {
  flex: 1;
  border: 1px solid transparent;
  color: #fff;
  background: #61349e;
  box-shadow: 0 .45rem 1.1rem #5a259624;
  transition: background-color 160ms ease, box-shadow 160ms ease;
}

.primary-button:hover {
  background: #4e2786;
  box-shadow: 0 .5rem 1.2rem #5a259640;
}

.primary-button:disabled {
  opacity: .56;
  cursor: default;
}

.back-button {
  border: 1px solid #d9cce3;
  color: #513377;
  background: transparent;
}

.back-button:hover { background: #eee6f5; }

.preview-note {
  margin: .9rem 0 0;
  color: #665970;
  font-size: .8rem;
  line-height: 1.45;
}

.success-mark {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  margin-bottom: .9rem;
  border: 1px solid #dbc7ef;
  border-radius: 50%;
  color: #57318c;
  background: #efe5f8;
  font-size: 1.35rem;
}

.form-error {
  margin: .9rem 0 0;
  color: #8c2347;
  font-size: .93rem;
  line-height: 1.45;
}

.form-error:empty { margin: 0; }

@media (max-width: 63rem) {
  .shell { width: min(100% - 3.5rem, 75rem); }
  .landing { column-gap: 1.75rem; }
  .hero h1 { font-size: clamp(3rem, 6.1vw, 4.6rem); }
}

@media (max-width: 51rem) {
  .shell { width: min(100% - 2.25rem, 37rem); }
  .site-header { min-height: 4.3rem; }
  .landing {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "hero" "register" "clubhouse";
    row-gap: 1.65rem;
    padding-block: 2rem;
  }
  .hero { padding: .2rem .2rem 0; }
  .hero h1 { font-size: clamp(3.1rem, 9vw, 5rem); }
  .hero-copy { margin-top: 1rem; }
}

@media (max-width: 25rem) {
  .shell { width: calc(100% - 1.5rem); }
  .register { padding: 1.2rem; }
  .hero h1 { font-size: 3.05rem; }
  .eyebrow { font-size: .75rem; }
  .header-link { padding-inline: .72rem; }
  .clubhouse figcaption { font-size: .74rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0s !important; }
}
