/* The newsletter pages: /newsletter/ and each edition. Built by scripts/build_newsletter.py. */

/* /newsletter/: what you get, beside the signup form */
.newsletter-hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 48px;
  align-items: start;
}
.resources-hero p.newsletter-lede { font-size: 1.15rem; margin-bottom: 28px; }
.newsletter-points { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; max-width: 60ch; }
.newsletter-points li { color: rgba(255, 255, 255, 0.85); padding-left: 18px; border-left: 3px solid var(--lilac); }
.newsletter-points strong { display: block; color: #fff; font-family: var(--font-ui); font-size: 1rem; margin-bottom: 2px; }

/* The signup card sits on the dark hero, so its text goes back to navy. */
.newsletter-signup { color: var(--ink); }
.resources-hero .newsletter-signup p { color: var(--navy-muted); max-width: none; }
.newsletter-signup-title { font-size: 1.4rem; margin: 0 0 6px; }
.newsletter-signup-intro { margin-top: 0; }

.newsletter-archive { padding: 64px 0 80px; }
.newsletter-archive h2 { margin-bottom: 6px; }
.newsletter-archive-intro { color: var(--navy-muted); margin: 0 0 28px; }
.newsletter-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; max-width: 760px; }
.newsletter-entry { background: #fff; border: 1px solid var(--rule); border-radius: var(--radius); padding: 22px 26px; }
.newsletter-entry time { font-family: var(--font-ui); font-size: 0.8rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--lavender); }
.newsletter-entry h3 { font-size: 1.25rem; margin: 6px 0 6px; }
.newsletter-entry h3 a { color: var(--navy); text-decoration: none; }
.newsletter-entry h3 a:hover { text-decoration: underline; }
.newsletter-entry p { margin: 0; color: var(--navy-muted); }
.newsletter-empty { background: #fff; border: 1px dashed var(--rule); border-radius: var(--radius); padding: 22px 26px; color: var(--navy-muted); max-width: 760px; }

/* One edition */
.edition-wrap { max-width: 720px; }
.edition-header {
  background:
    radial-gradient(900px 500px at 90% 0%, rgba(145, 120, 181, 0.35), transparent 60%),
    var(--plum);
  color: #fff;
  padding: 56px 0 48px;
}
.edition-header .eyebrow a { color: #CFC2E3; text-decoration: none; }
.edition-header .eyebrow a:hover { text-decoration: underline; }
.edition-header h1 { font-weight: 700; font-size: clamp(2rem, 4.5vw, 3rem); margin: 0 0 10px; }
.edition-date { margin: 0; color: rgba(255, 255, 255, 0.8); font-family: var(--font-ui); font-size: 0.9rem; }

.edition-body { padding-top: 40px; padding-bottom: 24px; font-size: 1.08rem; line-height: 1.7; }
.edition-body p, .edition-body ul, .edition-body ol { margin: 0 0 18px; max-width: none; }
.edition-body h2 { font-size: 1.55rem; margin: 36px 0 12px; }
.edition-body h3 { font-size: 1.2rem; margin: 28px 0 10px; }
.edition-body li { margin-bottom: 8px; }
.edition-body blockquote { margin: 0 0 18px; padding: 4px 0 4px 18px; border-left: 4px solid var(--lilac); font-style: italic; }
.edition-body figure { margin: 0 0 22px; }
.edition-body img { display: block; max-width: 100%; height: auto; border-radius: 8px; }
.edition-figure-small { text-align: center; }
.edition-figure-small img { display: inline-block; }
.edition-body a { color: var(--lavender); }
.edition-body hr { border: 0; border-top: 1px solid var(--rule); margin: 32px 0; }
.edition-button { margin-top: 8px; }

.edition-footer { padding: 16px 0 80px; }
.edition-neighbors { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; padding: 20px 0 32px; border-top: 1px solid var(--rule); font-family: var(--font-ui); font-weight: 600; font-size: 0.95rem; }
.edition-newer { margin-left: auto; }
.edition-all { margin: 24px 0 0; font-family: var(--font-ui); font-weight: 600; }

@media (max-width: 900px) {
  .newsletter-hero-layout { grid-template-columns: 1fr; gap: 36px; }
}
/* Listed with .edition-body so the button text stays white inside an edition,
   where ".edition-body a" would otherwise turn it lavender on lavender. */
.btn-plum,
.edition-body a.btn-plum { background: var(--lavender); color: #fff; }
.btn-plum:hover,
.edition-body a.btn-plum:hover { background: var(--plum); color: #fff; }
