/* ============================================================================
   Burton v7 — Newsletter
   ----------------------------------------------------------------------------
   Algorithm-independent moat. One email per week. No pop-ups, no urgency.
   Ink background so it anchors the bottom of the page before the footer.
   ========================================================================= */

.newsletter {
  background: var(--color-ink);
  color: var(--color-surface);
  padding-block: var(--space-12);
  border-top: 1px solid var(--color-ink);
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

@media (min-width: 720px) {
  .newsletter { padding-block: var(--space-16); }
}

@media (min-width: 900px) {
  .newsletter { padding-block: var(--space-20); }
}

.newsletter__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-10);
  align-items: center;
}

@media (min-width: 900px) {
  .newsletter__inner {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-16);
  }
}

/* ── Left: pitch ─────────────────────────────────────────────────────────── */

.newsletter__eyebrow {
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: var(--space-4);
}

.newsletter__eyebrow::before {
  color: var(--color-accent);
}

.newsletter__title {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(var(--fs-2xl), 3vw + 1rem, var(--fs-3xl));
  line-height: var(--lh-snug);
  letter-spacing: var(--tracking-snug);
  color: var(--color-surface);
  margin-bottom: var(--space-4);
  max-width: 20ch;
}

.newsletter__title em {
  font-style: italic;
  color: var(--color-accent);
}

.newsletter__pitch {
  font-family: var(--font-serif);
  font-size: var(--fs-md);
  line-height: var(--lh-relaxed);
  color: rgba(255, 255, 255, 0.72);
  max-width: 48ch;
  margin-bottom: var(--space-6);
}

.newsletter__meta {
  display: inline-flex;
  gap: var(--space-5);
  flex-wrap: wrap;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
}

.newsletter__meta-item {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
}

.newsletter__meta-item::before {
  content: "";
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
}

/* ── Right: form ─────────────────────────────────────────────────────────── */

.newsletter__form {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.newsletter__field {
  display: flex;
  gap: 0;
  align-items: stretch;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition: border-color var(--duration-fast) var(--ease-out);
}

.newsletter__field:focus-within {
  border-color: var(--color-accent);
  background: rgba(255, 255, 255, 0.06);
}

.newsletter__input {
  flex: 1;
  min-width: 0;
  background: transparent;
  border: 0;
  outline: 0;
  padding: var(--space-4) var(--space-5);
  font-family: var(--font-mono);
  font-size: var(--fs-base);
  color: var(--color-surface);
}

.newsletter__input::placeholder {
  color: rgba(255, 255, 255, 0.35);
}

.newsletter__submit {
  background: var(--color-accent);
  color: var(--color-ink);
  border: 0;
  padding: 0 var(--space-6);
  font-family: var(--font-sans);
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  letter-spacing: var(--tracking-snug);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  transition: background-color var(--duration-fast) var(--ease-out);
}

.newsletter__submit:hover {
  background: #22D3EE;
}

.newsletter__submit svg {
  width: 16px;
  height: 16px;
}

.newsletter__disclaimer {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: var(--tracking-wide);
  color: rgba(255, 255, 255, 0.4);
  text-transform: uppercase;
}

/* Faint backdrop curve — signature motif (not content) */
.newsletter__backdrop {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
  opacity: 0.04;
}

.newsletter__backdrop svg {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 60%;
  color: var(--color-surface);
}
