/* ============================================================
   Fancyoko — coming-soon landing page
   Minimal cream & black. Mobile-first.
   ============================================================ */

:root {
  --cream: #f2f0ea;        /* warm off-white ground, matches the logo */
  --ink: #1a1a1a;          /* near-black */
  --ink-soft: #6b6862;     /* muted text */
  --line: #d8d4ca;         /* hairline borders on cream */
  --success: #2f6b3a;
  --error: #9b2c2c;

  --maxw: 34rem;
  --radius: 0;             /* sharp, editorial corners */
  --transition: 180ms ease;
}

* {
  box-sizing: border-box;
}

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

body {
  min-height: 100vh;
  min-height: 100svh;
  background: var(--cream);
  color: var(--ink);
  font-family: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* ----- Layout: vertically + horizontally centered ----- */
.stage {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(1.5rem, 5vw, 3rem);
}

.content {
  width: 100%;
  max-width: var(--maxw);
  text-align: center;
}

/* ----- Wordmark ----- */
.wordmark {
  margin: 0;
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1;
  /* Scales smoothly from phone to desktop */
  font-size: clamp(2.4rem, 11vw, 5rem);
  color: var(--ink);
}

.tagline {
  margin: clamp(1rem, 3vw, 1.5rem) 0 clamp(2rem, 6vw, 3rem);
  font-weight: 500;
  font-size: clamp(0.95rem, 2.6vw, 1.1rem);
  color: var(--ink-soft);
  letter-spacing: 0.01em;
}

/* ----- Signup form ----- */
.signup {
  margin: 0;
}

.signup__row {
  display: flex;
  gap: 0.5rem;
  align-items: stretch;
}

.signup__input {
  flex: 1 1 auto;
  min-width: 0;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 500;
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  padding: 0.95rem 1rem;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.signup__input::placeholder {
  color: var(--ink-soft);
}

.signup__input:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(26, 26, 26, 0.18);
}

.signup__button {
  flex: 0 0 auto;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--cream);
  background: var(--ink);
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  padding: 0.95rem 1.6rem;
  cursor: pointer;
  transition: background var(--transition), color var(--transition), transform var(--transition);
}

.signup__button:hover {
  background: transparent;
  color: var(--ink);
}

.signup__button:active {
  transform: translateY(1px);
}

.signup__button:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(26, 26, 26, 0.25);
}

/* ----- Status message (success / error) ----- */
.signup__status {
  min-height: 1.25rem;
  margin: 0.85rem 0 0;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.01em;
}

.signup__status[data-state="success"] {
  color: var(--success);
}

.signup__status[data-state="error"] {
  color: var(--error);
}

.signup__button:disabled {
  cursor: default;
  opacity: 0.7;
}

.signup__button:disabled:hover {
  background: var(--ink);
  color: var(--cream);
}

/* ----- Footer ----- */
.footer {
  margin-top: clamp(2.5rem, 8vw, 4rem);
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  align-items: center;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.footer__social {
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color var(--transition);
}

.footer__social:hover {
  border-bottom-color: var(--ink);
}

.footer__copy {
  font-weight: 500;
}

/* ----- Accessibility helper ----- */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ----- Responsive: stack the form on small screens ----- */
@media (max-width: 30rem) {
  .signup__row {
    flex-direction: column;
  }

  .signup__button {
    width: 100%;
  }
}

/* ----- Motion preferences ----- */
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
  }
}
