@font-face {
  font-family: "Nebulosa Display";
  src: url("fonts/nebulosa-display.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Neris";
  src: url("fonts/neris-light.woff2") format("woff2");
  font-weight: 300;
  font-display: swap;
}

@font-face {
  font-family: "Neris";
  src: url("fonts/neris-semibold.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
}

:root {
  --bg: #0a0a0a;
  --fg: #f4f3ef;
  --muted: #8c8b86;
  --border: #2c2c2a;
  --border-strong: #4a4a47;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--fg);
  height: 100%;
}

body {
  font-family: "Neris", -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 300;
}

.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;
}

.page {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 8vh 6vw 4vh;
}

.mark {
  width: clamp(72px, 12vw, 120px);
  height: auto;
  margin-bottom: clamp(24px, 4vh, 40px);
  filter: drop-shadow(0 0 24px rgba(255, 255, 255, 0.08));
}

.headline {
  font-family: "Nebulosa Display", "Neris", sans-serif;
  font-weight: 400;
  font-size: clamp(2.5rem, 8vw, 5.5rem);
  line-height: 1.05;
  letter-spacing: 0.01em;
  margin: 0 0 clamp(40px, 6vh, 64px);
  max-width: 16ch;
}

.signup {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  width: 100%;
  max-width: 420px;
}

.signup-row {
  display: flex;
  gap: 12px;
  width: 100%;
}

.signup input[type="email"],
.signup input[type="text"] {
  width: 100%;
  min-width: 0;
  background: transparent;
  border: 1px solid var(--border-strong);
  color: var(--fg);
  font-family: inherit;
  font-size: 0.95rem;
  padding: 14px 18px;
  border-radius: 2px;
  outline: none;
  transition: border-color 0.15s ease;
}

.signup-row input[type="text"] {
  flex: 1 1 0;
}

.signup input[type="email"]::placeholder,
.signup input[type="text"]::placeholder {
  color: var(--muted);
}

.signup input[type="email"]:focus,
.signup input[type="text"]:focus {
  border-color: var(--fg);
}

.signup button {
  width: 100%;
  background: var(--fg);
  color: var(--bg);
  border: 1px solid var(--fg);
  font-family: "Neris", sans-serif;
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 14px 26px;
  border-radius: 2px;
  cursor: pointer;
  transition: opacity 0.15s ease;
}

.signup button:hover {
  opacity: 0.85;
}

.signup button:disabled {
  opacity: 0.5;
  cursor: default;
}

.signup-message {
  width: 100%;
  margin: 4px 0 0;
  font-size: 0.85rem;
  color: var(--muted);
  min-height: 1.2em;
}

.signup-message.is-error {
  color: #d8837b;
}

.footer {
  margin-top: clamp(48px, 8vh, 96px);
}

.footer p {
  margin: 0;
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  color: var(--border-strong);
}
