/* Newsletter sign-up box (.nl- prefix, scripts/newsletter.js). Used on the blog, the
   essays, Resources and the subscribe page. It follows the guide email gate's box
   (.gg-gate in roadmap-planning-week.html), so the two read as one family. */
.nl{display:flex;flex-direction:column;gap:var(--space-4);padding:var(--space-6);background:#fff;border:1px solid var(--color-blue-20);border-radius:var(--radius-tile);text-align:left}
.nl__head{display:flex;flex-direction:column;gap:var(--space-1)}
.nl__head h2{margin:0}
.nl__head p{margin:0;font-family:var(--font-family-body);font-size:17px;line-height:1.5;color:var(--color-ink-75)}
.nl form{position:relative;display:flex;flex-direction:column;gap:var(--space-2)}
.nl label{font-family:var(--font-family-body);font-size:14px;font-weight:var(--font-weight-medium);color:var(--color-ink)}
.nl input[type="email"]{height:48px;padding:0 14px;font:inherit;font-size:16px;color:var(--color-ink);background:#fff;border:1px solid rgba(8,29,71,.25);border-radius:var(--radius-button)}
.nl input[type="email"]:focus{outline:2px solid var(--color-blue);outline-offset:1px}
.nl input[aria-invalid="true"]{border-color:#B42318}
/* Trap field for bots: off screen, out of the tab order, hidden from screen readers. */
.nl__trap{position:absolute;left:-9999px;width:1px;height:1px;overflow:hidden}
.nl__status{margin:0;min-height:20px;font-family:var(--font-family-body);font-size:14px;line-height:20px;color:#B42318}
.nl__status[data-state="ok"]{color:var(--color-ink)}
.nl button{align-self:stretch;justify-content:center}
.nl__fine{margin:0;font-family:var(--font-family-body);font-size:13px;line-height:1.5;color:var(--color-ink-65)}
.nl__side{display:flex;flex-direction:column;gap:var(--space-2)}
/* Full-width placements put the words and the form side by side. */
@media(min-width:900px){.nl--wide{flex-direction:row;align-items:center;gap:var(--space-8)}.nl--wide .nl__head,.nl--wide .nl__side{flex:1;min-width:0}}
/* Where the box follows other content on a page, and on its own page. */
.nl--below{margin-top:var(--space-8)}
.nl-wrap{max-width:720px;margin-inline:auto}
.nl-hero{display:flex;flex-direction:column;align-items:center;gap:var(--space-4);text-align:center;margin-bottom:var(--space-7)}
.nl-hero__headline{max-width:900px}
.nl-hero__lead{max-width:640px}
@media(max-width:900px){.nl-hero__headline{font-size:44px}}
@media(max-width:700px){.nl-hero__headline{font-size:var(--font-size-h3)}}
@media(max-width:640px){.nl{padding:var(--space-4)}}
