:root {
  --cream: #fbf5ec;
  --paper: #ffffff;
  --blush: #f7e6e1;
  --ink: #3a2230;
  --muted: #6f5663;
  --plum: #7a2e4f;
  --saffron: #c2410c;
  --saffron-dark: #9a3412;
  --marigold: #f59e0b;
  --leaf: #2f6b4f;
  --line: #ecdccb;
  --ok-bg: #e7f3ec;
  --warn-bg: #fdf1df;
  --err-bg: #fbe5e5;
  --radius: 18px;
  --shadow: 0 10px 30px -12px rgba(122, 46, 79, 0.25);
  --serif: 'Fraunces', Georgia, 'Times New Roman', serif;
  --sans: 'Nunito Sans', -apple-system, 'Segoe UI', Roboto, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--plum);
}

h1,
h2,
h3 {
  font-family: var(--serif);
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0 0 0.5em;
}

h1 {
  font-size: clamp(2.2rem, 5.5vw, 3.6rem);
}

h2 {
  font-size: clamp(1.7rem, 3.6vw, 2.4rem);
}

h3 {
  font-size: 1.25rem;
}

.wrap {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 16px;
}

@media (min-width: 720px) {
  .wrap {
    padding: 0 28px;
  }
}

.skip {
  position: absolute;
  left: -9999px;
}

.skip:focus {
  left: 16px;
  top: 12px;
  z-index: 10;
  background: var(--paper);
  padding: 8px 12px;
  border-radius: 8px;
}

:focus-visible {
  outline: 3px solid var(--marigold);
  outline-offset: 2px;
}

/* Top bar */
.topbar {
  position: sticky;
  top: 0;
  z-index: 5;
  background: rgba(251, 245, 236, 0.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--plum);
  text-decoration: none;
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.2rem;
}

.topbar-cta {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--saffron-dark);
  text-decoration: none;
  white-space: nowrap;
}

.topbar-cta:hover {
  text-decoration: underline;
}

/* Hero */
.hero {
  padding: 48px 0 64px;
}

.hero-grid {
  display: grid;
  gap: 32px;
  align-items: center;
}

@media (min-width: 900px) {
  .hero {
    padding: 80px 0 96px;
  }
  .hero-grid {
    grid-template-columns: 1.25fr 1fr;
    gap: 48px;
  }
}

.eyebrow {
  display: inline-block;
  margin: 0 0 16px;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--blush);
  color: var(--plum);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.02em;
}

.lead {
  font-size: 1.15rem;
  color: var(--muted);
  max-width: 36em;
  margin: 0 0 28px;
}

.hero-art {
  display: none;
  justify-self: center;
  overflow: hidden;
}

@media (min-width: 900px) {
  .hero-art {
    display: block;
  }
}

.hero-art img {
  animation: spin 120s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-art img {
    animation: none;
  }
  html {
    scroll-behavior: auto;
  }
}

/* Join form */
.join-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
  max-width: 560px;
  scroll-margin-top: 96px;
}

.join-label {
  display: block;
  font-weight: 700;
  margin: 0 0 14px;
}

.fields {
  display: grid;
  gap: 12px;
}

.field label {
  display: block;
  font-weight: 700;
  font-size: 0.92rem;
  margin-bottom: 6px;
}

.field .optional {
  font-weight: 600;
  color: var(--muted);
}

.field input {
  width: 100%;
  font: inherit;
  padding: 12px 14px;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  background: var(--cream);
  color: var(--ink);
}

.field input:focus {
  border-color: var(--plum);
  outline: none;
  box-shadow: 0 0 0 3px rgba(122, 46, 79, 0.15);
}

.field input[readonly] {
  background: var(--blush);
  color: var(--ink);
  cursor: default;
}

.field-hint {
  margin: 6px 0 0;
  font-size: 0.82rem;
  color: var(--muted);
}

.field-row {
  display: grid;
  gap: 12px;
}

@media (min-width: 520px) {
  .field-row {
    grid-template-columns: 1.3fr 0.7fr;
  }
}

.city-field {
  position: relative;
}

.city-list {
  position: absolute;
  z-index: 6;
  left: 0;
  right: 0;
  top: calc(100% + 4px);
  margin: 0;
  padding: 6px;
  list-style: none;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow);
  max-height: 240px;
  overflow: auto;
}

.city-list button.city-option {
  display: block;
  width: 100%;
  text-align: left;
  background: transparent;
  color: var(--ink);
  border-radius: 8px;
  padding: 8px 10px;
  font-weight: 700;
  white-space: normal;
}

.city-list button.city-option:hover,
.city-list button.city-option[aria-selected='true'] {
  background: var(--blush);
}

.city-alias {
  display: block;
  font-weight: 600;
  color: var(--muted);
  font-size: 0.85rem;
}

.join-form > button {
  width: 100%;
  margin-top: 14px;
}

button,
.button {
  display: inline-block;
  font: inherit;
  font-weight: 700;
  padding: 12px 24px;
  border: 0;
  border-radius: 999px;
  background: var(--saffron);
  color: #fff;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.15s ease;
}

button:hover,
.button:hover {
  background: var(--saffron-dark);
}

button[disabled] {
  opacity: 0.6;
  cursor: progress;
}

.join-note {
  margin: 10px 0 0;
  font-size: 0.88rem;
  color: var(--muted);
}

.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.join-status {
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 12px;
  font-weight: 600;
  background: var(--warn-bg);
}

.join-status[data-tone='ok'] {
  background: var(--ok-bg);
  color: var(--leaf);
}

.join-status[data-tone='error'] {
  background: var(--err-bg);
  color: #9b1c1c;
}

.join-status button.linklike {
  background: none;
  color: inherit;
  padding: 0;
  font-weight: 600;
  text-decoration: underline;
  margin-left: 4px;
}

.join-card[data-state='member'] .join-form,
.join-card[data-state='full'] .join-form {
  display: none;
}

.join-card[data-state='member'] .join-status,
.join-card[data-state='full'] .join-status {
  margin-top: 0;
}

/* Sections */
.section {
  padding: 64px 0;
}

.section-tint {
  background: var(--blush);
}

.section-lead {
  color: var(--muted);
  font-size: 1.08rem;
  max-width: 40em;
  margin: 0 0 28px;
}

.cards {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 18px;
}

@media (min-width: 640px) {
  .cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1000px) {
  .cards {
    grid-template-columns: repeat(4, 1fr);
  }
}

.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
}

.card p {
  margin: 0;
  color: var(--muted);
}

.card-icon {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--cream);
  font-size: 1.4rem;
  margin-bottom: 12px;
}

.two-col {
  display: grid;
  gap: 16px;
}

@media (min-width: 860px) {
  .two-col {
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: start;
  }
}

.ticks {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 12px;
}

.ticks li {
  position: relative;
  padding: 14px 16px 14px 48px;
  background: var(--paper);
  border-radius: 14px;
  border: 1px solid var(--line);
}

.ticks li::before {
  content: '✓';
  position: absolute;
  left: 16px;
  top: 13px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--leaf);
  color: #fff;
  font-size: 0.8rem;
  display: grid;
  place-items: center;
}

.steps {
  list-style: none;
  counter-reset: step;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 18px;
}

@media (min-width: 760px) {
  .steps {
    grid-template-columns: repeat(3, 1fr);
  }
}

.steps li {
  counter-increment: step;
  display: grid;
  gap: 4px;
  padding: 22px;
  border-radius: var(--radius);
  border: 1px dashed var(--line);
  background: var(--paper);
}

.steps li::before {
  content: counter(step);
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.8rem;
  color: var(--saffron);
}

.steps span {
  color: var(--muted);
}

.faq {
  max-width: 820px;
}

.faq details {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0 24px;
  margin-bottom: 12px;
}

.faq summary {
  cursor: pointer;
  font-weight: 700;
  padding: 18px 0;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: '+';
  flex: none;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--cream);
  color: var(--plum);
  font-size: 1.3rem;
  line-height: 1;
  transition: transform 0.2s ease;
}

.faq details[open] summary::after {
  transform: rotate(45deg);
}

.faq details p {
  margin: 0 0 20px;
  color: var(--muted);
}

@media (prefers-reduced-motion: reduce) {
  .faq summary::after {
    transition: none;
  }
}

.closing {
  text-align: center;
  background: var(--plum);
  color: #fff;
}

.closing h2 {
  color: #fff;
}

.closing p {
  margin: 0 0 24px;
  opacity: 0.85;
}

.closing .button {
  background: var(--marigold);
  color: var(--ink);
}

.closing .button:hover {
  background: #fbbf24;
}

.footer {
  padding: 28px 0;
  font-size: 0.9rem;
  color: var(--muted);
}

.footer p {
  margin: 0;
}
