/**
 * Newsletter signup page (slug: newsletter) — hero + recent issues.
 * Loaded only on that page by functions.php. Design tokens (--bg-*, --text-*,
 * --accent, --border, --font-headline, --font-sans) come from page.php :root.
 * The section bleeds to the viewport edge; the host body clips the 100vw
 * scrollbar overshoot.
 */

body.bd-page-newsletter {
  overflow-x: clip;
}

/* the generic template's breadcrumb sits directly above the hero: bleed it
   to the same 1120px column so the two left edges line up */
body.bd-page-newsletter .breadcrumbs {
  margin: 0 calc(50% - 50vw);
  padding: 1.5rem max(1.5rem, calc(50vw - 560px)) 0.5rem;
}

.nl {
  position: relative;
  margin: 0 calc(50% - 50vw);
  padding: clamp(2.25rem, 6vw, 4.75rem) 1.5rem clamp(3rem, 8vw, 6rem);
  background: var(--bg-primary);
}

.nl::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(58% 52% at 82% 12%, rgba(255, 225, 53, 0.13), transparent 70%),
    radial-gradient(40% 40% at 10% 100%, rgba(255, 225, 53, 0.05), transparent 70%);
}

.nl__inner {
  position: relative;
  max-width: 1120px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.85fr);
  gap: clamp(2rem, 6vw, 5.5rem);
  align-items: start;
}

@media (max-width: 900px) {
  .nl__inner {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
}

/* ── Pitch ─────────────────────────────────────────────────────────────── */

.nl__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.4rem;
}

.nl__eyebrow .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(255, 225, 53, 0.16);
}

.nl__title {
  font-family: var(--font-headline);
  font-size: clamp(2.6rem, 5.8vw, 4.5rem);
  font-weight: 800;
  line-height: 0.98;
  letter-spacing: -0.035em;
  color: var(--text-primary);
  margin: 0 0 1.25rem;
  text-wrap: balance;
}

.nl__title em {
  font-style: normal;
  color: var(--accent);
}

.nl__sub {
  font-family: var(--font-sans);
  font-size: clamp(1.05rem, 1.5vw, 1.25rem);
  line-height: 1.55;
  color: var(--text-secondary);
  max-width: 32em;
  margin: 0 0 1.75rem;
}

/* form sizing on top of bd-forms' inline style */
.nl .bd-newsletter--inline {
  max-width: 600px;
}

.nl .bd-newsletter--inline .bd-newsletter__input {
  height: 60px;
  font-family: var(--font-sans);
  font-size: 1.05rem;
  background: var(--bg-secondary);
}

.nl .bd-newsletter--inline .bd-newsletter__button {
  height: 60px;
  padding: 0 2rem;
  font-family: var(--font-headline);
  font-size: 0.95rem;
  letter-spacing: 0.1em;
}

.nl__fine {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--text-muted);
  max-width: 34em;
  margin: 1rem 0 0;
}

.nl__proof {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.6rem;
  margin: 1.6rem 0 0;
  padding: 0;
}

.nl__proof li {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  color: var(--text-secondary);
  padding: 0.45rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  white-space: nowrap;
}

.nl__proof strong {
  color: var(--text-primary);
  font-weight: 600;
}

/* ── Recent issues ─────────────────────────────────────────────────────── */

.nl__issues {
  padding-top: 0.35rem;
}

@media (min-width: 901px) {
  .nl__issues {
    padding-top: 3.2rem;
  }
}

.nl__issues-h {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 0 0 1rem;
}

.nl__issues-h::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border);
}

.nl__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.7rem;
}

.nl__issue {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  padding: 1.1rem 1.25rem 1.05rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: 3px;
  color: var(--text-primary);
  text-decoration: none;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.25s ease, background-color 0.25s ease;
}

.nl__issue:hover,
.nl__issue:focus-visible {
  transform: translateX(5px);
  border-color: var(--accent);
  background: var(--bg-tertiary);
  outline: none;
}

.nl__issue-date {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}

.nl__issue-subject {
  font-family: var(--font-headline);
  font-size: 1.1rem;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.nl__issue-cta {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.nl__issue-cta .arr {
  display: inline-block;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.nl__issue:hover .nl__issue-cta .arr {
  transform: translateX(4px);
}

/* ── Entrance ──────────────────────────────────────────────────────────── */

@keyframes nl-up {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: none; }
}

.nl__pitch > *,
.nl__issues > * {
  animation: nl-up 0.7s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.nl__pitch > :nth-child(2) { animation-delay: 0.06s; }
.nl__pitch > :nth-child(3) { animation-delay: 0.12s; }
.nl__pitch > :nth-child(4) { animation-delay: 0.18s; }
.nl__pitch > :nth-child(5) { animation-delay: 0.24s; }
.nl__pitch > :nth-child(6) { animation-delay: 0.3s; }
.nl__issues > :nth-child(1) { animation-delay: 0.28s; }
.nl__issues > :nth-child(2) { animation-delay: 0.36s; }

@media (prefers-reduced-motion: reduce) {
  .nl__pitch > *,
  .nl__issues > * {
    animation: none;
  }
  .nl__issue,
  .nl__issue-cta .arr {
    transition: none;
  }
}
