:root {
  /* Core */
  --bg: #f3eee6;
  --panel: #faf7f2;
  --border: #e0d8ca;
  --text: #2a2a2a;
  --muted: #6f6a60;
  --accent: #4f5340;
  --accent-hover: #2e3a2f;
  --error: #a8452c;

  /* Brand palette (from the logo board) */
  --olive: #4f5340;
  --terracotta: #8f5130;
  --sand: #e6dccb;
  --slate-blue: #5b7383;
  --dusty-rose: #e3c8c0;
  --forest: #2e3a2f;
  --mustard: #c9a259;
  --stone: #8f8b80;

  --font-body: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;
}

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

html,
body {
  margin: 0;
  padding: 0;
}

body {
  min-height: 100vh;
  background-color: var(--bg);
  background-image: radial-gradient(ellipse at top, rgba(201, 162, 89, 0.12), transparent 60%);
  background-repeat: no-repeat;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

.page {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100vh;
  max-width: 640px;
  margin: 0 auto;
  padding: 48px 16px 24px;
  text-align: center;
}

/* Brand */
.logo {
  margin: 0;
  line-height: 0;
}

.logo img {
  display: block;
  width: clamp(200px, 60vw, 320px);
  height: auto;
  margin: 0 auto;
}

.eyebrow {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
}

/* Hero */
.hero {
  margin: 44px 0 40px;
}

.coming-soon {
  margin: 0 -0.2em 0 0; /* offsets trailing letter-spacing so the text stays centered */
  font-size: clamp(1.75rem, 7vw, 3.25rem);
  font-weight: 300;
  line-height: 1.1;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.divider {
  display: flex;
  width: 120px;
  height: 4px;
  margin: 20px auto 0;
  border-radius: 2px;
  overflow: hidden;
}

.divider span {
  flex: 1;
}

.divider span:nth-child(1) { background: var(--olive); }
.divider span:nth-child(2) { background: var(--terracotta); }
.divider span:nth-child(3) { background: var(--mustard); }
.divider span:nth-child(4) { background: var(--dusty-rose); }
.divider span:nth-child(5) { background: var(--slate-blue); }
.divider span:nth-child(6) { background: var(--forest); }

/* Sign-up card */
.signup {
  width: 100%;
  padding: 28px 20px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 8px;
}

.signup h3 {
  margin: 0 0 8px;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.signup > p {
  margin: 0 0 20px;
  color: var(--muted);
  font-size: 0.95rem;
}

#signup-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

#signup-form input {
  width: 100%;
  padding: 14px 16px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text);
  font: inherit;
  transition: border-color 0.2s ease;
}

#signup-form input::placeholder {
  color: var(--stone);
}

#signup-form input:focus {
  outline: none;
  border-color: var(--accent);
}

#signup-form button {
  width: 100%;
  padding: 15px 16px;
  background: var(--accent);
  border: none;
  border-radius: 6px;
  color: var(--bg);
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color 0.2s ease, opacity 0.2s ease;
}

#signup-form button:hover,
#signup-form button:focus-visible {
  background: var(--accent-hover);
}

#signup-form button:focus-visible {
  outline: 2px solid var(--accent-hover);
  outline-offset: 2px;
}

#signup-form button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

#form-message {
  min-height: 1.6em;
  margin: 4px 0 0;
  font-size: 0.9rem;
  font-weight: 500;
}

#form-message.success {
  color: var(--accent);
}

#form-message.error {
  color: var(--error);
}

/* Footer */
footer {
  margin-top: auto;
  padding-top: 40px;
  color: var(--muted);
  font-size: 0.75rem;
  letter-spacing: 0.05em;
}

footer p {
  margin: 0;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (min-width: 600px) {
  .page {
    padding-top: 72px;
  }

  .signup {
    padding: 36px 40px;
  }
}
