/* ============================================
   ELEVATED THOUGHTS — Newsletter Page
   ============================================ */

.newsletter-hero {
  min-height: 60vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.newsletter-hero::before {
  content: '';
  position: absolute;
  top: -20%;
  left: 50%;
  transform: translateX(-50%);
  width: 140%;
  height: 120%;
  background: radial-gradient(
    ellipse 60% 50% at 50% 30%,
    var(--accent-glow-strong) 0%,
    var(--accent-glow) 25%,
    rgba(217, 123, 0, 0.05) 50%,
    transparent 70%
  );
  opacity: 0.4;
  pointer-events: none;
  animation: newsletter-glow 8s ease-in-out infinite;
}

@keyframes newsletter-glow {
  0%, 100% { opacity: 0.4; transform: translateX(-50%) scale(1); }
  50% { opacity: 0.55; transform: translateX(-50%) scale(1.03); }
}

.newsletter-hero h1 {
  font-size: var(--text-hero);
  line-height: 1.1;
  padding-bottom: 0.1em;
  letter-spacing: -0.03em;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.95) 0%,
    rgba(255, 255, 255, 0.65) 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Signup Form */
.newsletter-signup {
  margin-top: var(--space-10);
  max-width: 440px;
  margin-left: auto;
  margin-right: auto;
  position: relative;
  z-index: 1;
}

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

.newsletter-form .form-input {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.1);
}

.newsletter-form .form-input:focus {
  background: rgba(255, 255, 255, 0.07);
}

/* Perks */
.perks-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-10);
}

@media (min-width: 768px) {
  .perks-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.perk {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.perk__icon {
  font-size: var(--text-2xl);
  line-height: 1;
}

.perk h4 {
  font-size: var(--text-lg);
}

.perk p {
  max-width: 100%;
}

/* Quote — atmospheric, centered */
.newsletter-quote {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-style: italic;
  color: var(--text-primary);
  line-height: var(--leading-snug);
  border-left: none;
  padding-left: 0;
  max-width: 40ch;
  margin: 0 auto;
  position: relative;
}

/* Decorative quote marks */
.newsletter-quote::before {
  content: '\201C';
  position: absolute;
  top: -0.3em;
  left: -0.5em;
  font-size: 3em;
  color: var(--accent);
  opacity: 0.2;
  font-family: var(--font-display);
  line-height: 1;
}

/* Latest Substack embed */
.substack-latest {
  display: flex;
  justify-content: center;
  text-align: center;
}

.substack-latest .substack-post-embed {
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
}

.substack-latest iframe,
.substack-latest .substack-post-embed iframe {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 auto !important;
  border: none !important;
  border-radius: var(--radius-lg);
}
