/* ---------- Reset & base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  min-height: 100vh;
  background: #0a0a0b;
  color: #e9e7e2;
  font-family: "Lora", Georgia, "Times New Roman", serif;
  font-weight: 400;
  line-height: 1.55;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
}

button {
  font-family: inherit;
}

/* ---------- Scene / background ---------- */
.scene {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(60% 50% at 78% 18%, rgba(255, 255, 255, 0.05), transparent 60%),
    radial-gradient(70% 60% at 15% 75%, rgba(255, 255, 255, 0.025), transparent 65%),
    linear-gradient(180deg, #121214 0%, #0a0a0b 55%, #050506 100%);
}

/* ---------- Layout shell ---------- */
.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 28px 24px 22px;
}

@media (min-width: 640px) {
  .page {
    padding: 36px 48px 28px;
  }
}

@media (min-width: 1100px) {
  .page {
    padding: 44px 64px 32px;
  }
}

/* ---------- Header ---------- */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.logo-link {
  display: inline-block;
  border-radius: 4px;
}

.logo-mark {
  height: 26px;
  width: auto;
}

@media (min-width: 640px) {
  .logo-mark {
    height: 30px;
  }
}

.icon-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #d9d7d2;
  text-decoration: none;
  transition: border-color 0.2s ease, color 0.2s ease, background-color 0.2s ease;
}

.icon-link:hover {
  border-color: rgba(255, 255, 255, 0.5);
  color: #fff;
  background-color: rgba(255, 255, 255, 0.04);
}

/* ---------- Hero ---------- */
.hero {
  flex: 1;
  display: flex;
  align-items: center;
  padding: 48px 0 24px;
}

.hero-grid {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 36px;
}

.hero-mark {
  text-align: center;
}

.eyebrow {
  margin: 0 0 14px;
  font-family: "Lora", Georgia, serif;
  font-size: 12px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: #a8a5a0;
}

.wordmark {
  margin: 0;
  font-family: "Playfair Display", Georgia, "Times New Roman", serif;
  font-weight: 700;
  font-size: clamp(58px, 17vw, 108px);
  line-height: 0.92;
  letter-spacing: 0.01em;
  color: #efeeea;
}

.wordmark .script {
  display: block;
  font-family: "Playfair Display", Georgia, serif;
  font-style: italic;
  font-weight: 500;
  font-size: 1.28em;
  line-height: 1.08;
  margin-top: 0.06em;
  color: #efeeea;
}

.hero-rule {
  display: none;
}

.hero-content {
  text-align: center;
  max-width: 440px;
  margin: 0 auto;
  width: 100%;
}

.lede {
  margin: 0 0 10px;
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 500;
  font-size: 26px;
  color: #efeeea;
}

.copy {
  margin: 0 0 30px;
  font-size: 16px;
  color: #b9b6b0;
}

/* ---------- Form ---------- */
.signup-form {
  text-align: left;
}

.field {
  margin-bottom: 22px;
}

.field label {
  display: block;
  margin-bottom: 8px;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #a8a5a0;
}

.field input[type="email"] {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
  padding: 10px 2px 12px;
  font-family: "Lora", Georgia, serif;
  font-size: 16px;
  color: #efeeea;
  border-radius: 0;
  appearance: none;
  transition: border-color 0.2s ease;
}

.field input[type="email"]::placeholder {
  color: #726f6a;
}

.field input[type="email"]:hover {
  border-bottom-color: rgba(255, 255, 255, 0.45);
}

.field input[type="email"]:focus {
  outline: none;
  border-bottom-color: #efeeea;
}

.field input[type="email"]:focus-visible {
  outline: 2px solid #efeeea;
  outline-offset: 4px;
  border-radius: 2px;
}

.field input.input-error {
  border-bottom-color: #e3a1a1;
}

/* Honeypot: visually hidden, still reachable so it isn't ignored by Formspree's own checks,
   but invisible and unreachable for real users / assistive tech */
.hp-field {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.submit-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 24px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.45);
  color: #efeeea;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 16px;
  letter-spacing: 0.01em;
  cursor: pointer;
  min-height: 52px;
  transition: background-color 0.2s ease, border-color 0.2s ease, opacity 0.2s ease;
}

.submit-btn:hover:not(:disabled) {
  background-color: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.7);
}

.submit-btn:focus-visible {
  outline: 2px solid #efeeea;
  outline-offset: 3px;
}

.submit-btn:disabled {
  cursor: default;
  opacity: 0.7;
}

.spinner {
  width: 15px;
  height: 15px;
  border-radius: 50%;
  border: 2px solid rgba(239, 238, 234, 0.35);
  border-top-color: #efeeea;
  animation: spin 0.8s linear infinite;
  display: none;
}

.is-submitting .spinner {
  display: inline-block;
}

.is-submitting .btn-label {
  opacity: 0.85;
}

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

.fine-print {
  margin: 14px 0 0;
  font-size: 12.5px;
  color: #847f79;
  text-align: center;
}

.form-status {
  margin: 16px 0 0;
  min-height: 20px;
  font-size: 14px;
  text-align: center;
}

.form-status[data-state="success"] {
  color: #bcd9bc;
}

.form-status[data-state="error"] {
  color: #e3a1a1;
}

.signup-form.is-success .field,
.signup-form.is-success .submit-btn,
.signup-form.is-success .fine-print {
  display: none;
}

.signup-form.is-success .form-status {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 19px;
  color: #efeeea;
  margin-top: 4px;
}

/* ---------- Footer ---------- */
.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 20px;
  margin-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 12.5px;
  color: #847f79;
}

.site-footer p {
  margin: 0;
}

.site-footer a {
  text-decoration: none;
  color: #a8a5a0;
}

.site-footer a:hover {
  color: #efeeea;
  text-decoration: underline;
}

.site-footer a:focus-visible,
.icon-link:focus-visible,
.logo-link:focus-visible {
  outline: 2px solid #efeeea;
  outline-offset: 3px;
  border-radius: 2px;
}

/* ---------- Desktop: two-column composition ---------- */
@media (min-width: 900px) {
  .hero-grid {
    flex-direction: row;
    align-items: center;
    gap: 56px;
  }

  .hero-mark {
    flex: 1 1 50%;
    text-align: left;
  }

  .eyebrow {
    text-align: left;
  }

  .hero-rule {
    display: block;
    align-self: stretch;
    width: 1px;
    background: rgba(255, 255, 255, 0.18);
    flex: 0 0 1px;
  }

  .hero-content {
    flex: 1 1 50%;
    text-align: left;
    max-width: 460px;
    margin: 0;
  }

  .lede,
  .copy {
    text-align: left;
  }
}

@media (min-width: 1280px) {
  .wordmark {
    font-size: 108px;
  }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .spinner {
    animation-duration: 1.6s;
  }
}
