/* ─── Reset ─────────────────────────────────────────────────────────────── */

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

/* ─── Custom Properties ─────────────────────────────────────────────────── */

:root {
  --bg:         #0e0e12;
  --fg:         #ddd8cc;
  --fg-dim:     rgba(221, 216, 204, 0.45);
  --fg-dimmer:  rgba(221, 216, 204, 0.25);
  --fg-ghost:   rgba(221, 216, 204, 0.15);
  --fg-faint:   rgba(221, 216, 204, 0.4);
  --red:        #b54a2e;
  --red-dim:    rgba(181, 74, 46, 0.35);
  --red-hover:  rgba(181, 74, 46, 0.08);
  --success:    #7fb89a;
  --error:      #c47a7a;

  --font-serif: 'Playfair Display', Georgia, serif;
  --font-mono:  'Courier Prime', 'Courier New', monospace;
}

/* ─── Base ──────────────────────────────────────────────────────────────── */

html {
  height: 100%;
}

body {
  min-height: 100%;
  background-color: var(--bg);
  color: var(--fg);
  font-family: var(--font-serif);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ─── Hero Layout ───────────────────────────────────────────────────────── */

.tf-hero {
  position: relative;
  z-index: 1;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
  padding: 4rem 2rem 6rem;
  text-align: center;
}

/* ─── Header ────────────────────────────────────────────────────────────── */

.tf-header {
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* ─── Eyebrow ───────────────────────────────────────────────────────────── */

.tf-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.25em;
  text-transform: lowercase;
  color: var(--fg-dim);
  margin-bottom: 1.5rem;
}

/* ─── Wordmark ──────────────────────────────────────────────────────────── */

.tf-wordmark {
  font-family: var(--font-serif);
  font-size: clamp(3.5rem, 12vw, 8rem);
  font-weight: 700;
  line-height: 0.9;
  letter-spacing: -0.02em;
  color: var(--fg);
  text-shadow:
    0 0 80px rgba(181, 74, 46, 0.12),
    0 0 160px rgba(181, 74, 46, 0.06);
}

.tf-wordmark span {
  display: block;
  font-style: normal;
}

.tf-wordmark em {
  display: block;
  font-style: italic;
  font-weight: 400;
}

/* ─── Rule ──────────────────────────────────────────────────────────────── */

.tf-rule {
  border: none;
  border-top: 1px solid var(--red-dim);
  width: 100%;
  max-width: 28rem;
  margin: 2rem auto;
}

/* ─── Domain ────────────────────────────────────────────────────────────── */

.tf-domain {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  color: var(--fg-faint);
  margin-top: 0.75rem;
}

/* ─── Body Section ──────────────────────────────────────────────────────── */

.tf-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 2.5rem;
}

/* ─── Tagline ───────────────────────────────────────────────────────────── */

.tf-tagline {
  font-size: clamp(1rem, 2vw, 1.2rem);
  font-weight: 400;
  font-style: italic;
  color: rgba(221, 216, 204, 0.7);
  text-align: center;
  line-height: 1.7;
  max-width: 32ch;
}

/* ─── Launch Date ───────────────────────────────────────────────────────── */

.tf-launch {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  color: var(--red);
  margin-top: 1rem;
  text-transform: uppercase;
}

/* ─── Subscribe Section ─────────────────────────────────────────────────── */

.tf-subscribe {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1.5rem;
  width: 100%;
  max-width: 28rem;
}

.tf-subscribe > p {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--fg-dim);
  letter-spacing: 0.1em;
}

/* ─── Form Row ──────────────────────────────────────────────────────────── */

.tf-form-row {
  display: flex;
  gap: 0;
  border: 1px solid var(--fg-ghost);
  width: 100%;
  transition: border-color 0.2s ease;
}

.tf-form-row:focus-within {
  border-color: rgba(181, 74, 46, 0.4);
}

input[type="email"] {
  font-family: var(--font-mono);
  background: transparent;
  border: none;
  padding: 0.6rem 1rem;
  color: var(--fg);
  font-size: 0.85rem;
  outline: none;
  min-width: 0;
  flex: 1;
}

input[type="email"]::placeholder {
  color: var(--fg-dimmer);
}

button[type="submit"] {
  font-family: var(--font-mono);
  background: transparent;
  border: none;
  border-left: 1px solid var(--fg-ghost);
  padding: 0.6rem 1.25rem;
  color: var(--red);
  font-size: 0.85rem;
  cursor: pointer;
  letter-spacing: 0.05em;
  white-space: nowrap;
  transition: background 0.2s ease;
}

button[type="submit"]:hover {
  background: var(--red-hover);
}

button[type="submit"]:focus-visible {
  outline: 1px solid var(--red-dim);
  outline-offset: -1px;
}

/* ─── Subscribe Result ──────────────────────────────────────────────────── */

#subscribe-result p {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  margin: 0.5rem 0 0;
}

p.success {
  color: var(--success);
}

p.error {
  color: var(--error);
}

/* ─── Footer ────────────────────────────────────────────────────────────── */

footer {
  position: fixed;
  bottom: 1.5rem;
  left: 0;
  right: 0;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: rgba(221, 216, 204, 0.2);
  z-index: 1;
}

footer a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

footer a:hover {
  color: rgba(221, 216, 204, 0.5);
}

/* ─── Responsive ────────────────────────────────────────────────────────── */

@media (max-width: 480px) {
  .tf-hero {
    padding: 3rem 1.5rem 5rem;
  }

  input[type="email"] {
    min-width: 0;
  }

  .tf-tagline br {
    display: none;
  }
}
