/* ============================================================
   Blog index page — listing layout + newsletter form
   Reuses .bp-hero (shows.css) and .blog-grid/.blog-card (blog-card.css).
   ============================================================ */

.blog-listing {
  background: var(--color-bg);
  padding: var(--space-9) var(--space-5);
  border-top: 1px solid var(--color-line);
}

.blog-listing__inner {
  max-width: 1080px;
  margin: 0 auto;
}

.blog-listing__header {
  text-align: center;
  margin-bottom: var(--space-7);
}

/* ── Newsletter CTA ── */
.newsletter {
  background: var(--color-bg-soft);
  padding: var(--space-9) var(--space-5);
  border-top: 1px solid var(--color-line);
}

.newsletter__inner {
  max-width: 920px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: var(--space-7);
  align-items: center;
}

.newsletter__title {
  font-family: var(--font-headline);
  font-size: var(--font-size-xl);
  font-weight: 700;
  color: var(--color-fg-1);
  line-height: var(--font-leading-tight);
  margin-bottom: var(--space-3);
}

.newsletter__sub {
  font-size: var(--font-size-base);
  color: var(--color-text);
  line-height: var(--font-leading-normal);
}

.newsletter__form {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}

.newsletter__input {
  flex: 1 1 220px;
  min-width: 0;
  padding: var(--space-4) var(--space-5);
  font-family: var(--font-body);
  font-size: var(--font-size-base);
  color: var(--color-fg-1);
  background: #fff;
  border: 1.5px solid var(--color-line);
  border-radius: var(--radius-md);
  transition:
    border-color var(--ease-duration-fast) var(--ease-out),
    box-shadow var(--ease-duration-fast) var(--ease-out);
}

.newsletter__input::placeholder {
  color: var(--color-text-mute);
}

.newsletter__input:hover {
  border-color: var(--color-purple);
}

.newsletter__input:focus {
  outline: none;
  border-color: var(--color-purple);
  box-shadow: 0 0 0 3px rgba(72, 61, 102, 0.15);
}

.newsletter__submit {
  flex: 0 0 auto;
  appearance: none;
  cursor: pointer;
  background: var(--color-purple);
  color: #fff;
  border: none;
  font-family: var(--font-headline);
  font-weight: 700;
  font-size: var(--font-size-sm);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: var(--space-4) var(--space-7);
  border-radius: var(--radius-md);
  white-space: nowrap;
  transition:
    background var(--ease-duration-fast) var(--ease-out),
    transform var(--ease-duration-fast) var(--ease-out);
}

.newsletter__submit:hover:not(:disabled) {
  background: var(--color-purple-deep);
  color: #fff;
  transform: translateY(-1px);
}

.newsletter__submit:focus-visible {
  outline: 3px solid var(--color-yellow);
  outline-offset: 2px;
}

.newsletter__submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.newsletter__feedback {
  flex: 1 0 100%;
  margin: 0;
  min-height: 1.4em;
  font-size: var(--font-size-sm);
  line-height: var(--font-leading-normal);
}

.newsletter__feedback[data-state="error"] {
  color: var(--color-orange);
  font-weight: 600;
}

.newsletter__feedback[data-state="success"] {
  color: var(--color-purple);
  font-weight: 600;
}

/* ── Responsive ── */
@media (max-width: 760px) {
  .newsletter__inner {
    grid-template-columns: 1fr;
    gap: var(--space-5);
    text-align: center;
  }

  .newsletter__form {
    justify-content: center;
  }
}
