/* Newsletter sign-up page (/newsletter/) — redesign 2026-11-18, Guy's pick: variant C of three rendered mock-ups.
   Linked from templates/partials/newsletter-hero.html, so it reaches this page only. Tokens come from assets/css/site.css.
   Three parts: (1) the hero banner, (2) the wider two-column body (`wide: true` -> .wrap-wide in templates/page.html),
   (3) CSS overrides that restyle the MailerLite embed WITHOUT editing its pasted HTML (it is re-pasted from MailerLite;
   see the comment in content/pages/newsletter.md). tests/test_newsletter_page.py. */

/* ---------- 1. Hero ---------- */
.nlh {
  background: linear-gradient(180deg, var(--parchment-2), var(--parchment));
  border-bottom: 1px solid var(--rule);
}
.nlh-in {
  max-width: var(--page-max);
  margin: 0 auto;
  padding: 40px 24px;
  display: flex;
  align-items: center;
  gap: 40px;
}
.nlh-text { flex: 1 1 55%; }
.nlh-art { flex: 1 1 45%; }
.nlh-eyebrow {
  font-family: var(--font-sans);
  font-size: var(--fs-xs);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  line-height: 1.4;
  margin: 0 0 12px;
  color: var(--gold-ink);
}
.nlh h1 {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(2.3rem, 5vw, 3.4rem);
  line-height: 1.1;
  margin: 0;
  text-align: left;
  color: var(--pine-ink);
}
.nlh-rule { width: 96px; height: 1px; background: var(--gold); margin: 20px 0; }
.nlh .nlh-lede {
  font-family: var(--font-sans);
  font-size: var(--fs-md);
  line-height: 1.5;
  margin: 0;
  max-width: 30rem;
  color: var(--ink-2);
}
/* Multiply drops the picture's cream paper into the banner's own cream, so it has no visible edge. */
.nlh-art img {
  display: block;
  width: 100%;
  max-width: 460px;
  height: auto;
  margin-left: auto;
  mix-blend-mode: multiply;
}
@media (max-width: 760px) {
  .nlh-in { flex-direction: column; align-items: flex-start; gap: 16px; padding: 28px 20px; }
  .nlh-art { width: 100%; }
  .nlh-art img { max-width: 300px; margin: 0 auto; }
}

/* ---------- 2. Body ---------- */
/* .page .wrap (site.css) sets the 48rem measure at specificity 0,2,0; this is 0,3,0. */
.page .wrap.wrap-wide { max-width: 64rem; }
.page .wrap-wide .prose { max-width: none; }
.nlx-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 48px; align-items: start; }
@media (max-width: 860px) { .nlx-grid { grid-template-columns: 1fr; gap: 24px; } }
/* .prose h2 (site.css) sets a big top margin at the same specificity; the extra class wins regardless of load order. */
.prose .nlx-col h2 { margin-top: 0; }
.nlx-benefits { list-style: none; padding: 0; margin: 0; }
.nlx-benefits li {
  position: relative;
  padding-left: 34px;
  margin: 0 0 14px;
  font-family: var(--font-sans);
  font-size: var(--fs-base);
  line-height: 1.5;
  color: var(--ink-2);
}
.nlx-benefits li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--gold-tint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-7' fill='none' stroke='%237e6230' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/20px no-repeat;
}
.nlx-benefits li strong { color: var(--ink); }
.nlx-formpanel {
  background: var(--parchment);
  border: 1px solid var(--panel-border);
  border-radius: 10px;
  padding: 28px;
}
/* Phones: the reCAPTCHA checkbox is a fixed 304px iframe; 28px side padding would push it out of the panel at 360px. */
@media (max-width: 480px) { .nlx-formpanel { padding: 24px 12px; } }
.prose .nlx-formpanel h2 { margin-top: 0; }
/* .prose p:first-of-type (0,2,1) would turn this into body ink; .page .prose p.nlx-small is 0,3,1. */
.page .prose p.nlx-small {
  font-family: var(--font-sans);
  font-size: var(--fs-xs);
  color: var(--ink-2); /* --ink-3 on parchment is 4.0:1, under WCAG AA for 13px text */
  line-height: 1.55;
  margin-top: 14px;
  clear: both;
}
.nlx-visit {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  border-top: 1px solid var(--rule);
  margin-top: 40px;
  padding-top: 8px;
}
@media (max-width: 640px) { .nlx-visit { grid-template-columns: 1fr; gap: 0; } }

/* ---------- 3. MailerLite embed: restyle by CSS only ----------
   The embed ships its own <style> with !important rules, so every override carries the long id-based prefix and
   !important. The heading/intro (.ml-form-embedContent) is hidden because our own "Sign up" heading replaces it; the
   permissions line (.ml-form-embedPermissions) because the small print below the form says it better. */
html body #mlb2-46100578.ml-form-embedContainer.ml-subscribe-form .ml-form-embedWrapper {
  background: transparent !important; border: 0 !important; padding: 0 !important;
  max-width: none !important; width: 100% !important; box-shadow: none !important;
}
html body #mlb2-46100578.ml-form-embedContainer.ml-subscribe-form,
html body #mlb2-46100578.ml-form-embedContainer.ml-subscribe-form .ml-form-align-center,
html body #mlb2-46100578.ml-form-embedContainer.ml-subscribe-form .ml-form-embedWrapper.embedForm {
  max-width: none !important; width: 100% !important; display: block !important;
}
html body #mlb2-46100578.ml-form-embedContainer.ml-subscribe-form .ml-form-embedWrapper .ml-form-embedBody { padding: 0 !important; }
html body #mlb2-46100578.ml-form-embedContainer.ml-subscribe-form .ml-form-embedWrapper .ml-form-embedBody .ml-form-embedContent { display: none !important; }
html body #mlb2-46100578.ml-form-embedContainer.ml-subscribe-form .ml-form-embedWrapper .ml-form-embedBody .ml-form-embedPermissions { display: none !important; }
html body #mlb2-46100578.ml-form-embedContainer.ml-subscribe-form .ml-form-embedWrapper .ml-form-embedBody .ml-form-fieldRow { margin-bottom: 18px !important; }
html body #mlb2-46100578.ml-form-embedContainer.ml-subscribe-form .ml-form-embedWrapper .ml-form-embedBody .ml-form-fieldRow .ml-field-group > label {
  font-family: var(--font-sans) !important; font-size: 15px !important; font-weight: 600 !important;
  color: var(--ink) !important; margin-bottom: 6px !important; line-height: 1.4 !important;
}
html body #mlb2-46100578.ml-form-embedContainer.ml-subscribe-form .ml-form-embedWrapper .ml-form-embedBody .ml-form-fieldRow .custom-control-label,
html body #mlb2-46100578.ml-form-embedContainer.ml-subscribe-form .ml-form-embedWrapper .ml-form-embedBody .ml-form-fieldRow .custom-control-label p {
  font-family: var(--font-sans) !important; font-size: 15px !important; font-weight: 400 !important;
  color: var(--ink-2) !important; line-height: 22px !important;
}
html body #mlb2-46100578.ml-form-embedContainer.ml-subscribe-form .ml-form-embedWrapper .ml-form-embedBody .ml-form-fieldRow input.form-control {
  font-family: var(--font-sans) !important; font-size: 16px !important;
  border: 1px solid var(--rule-strong) !important; border-radius: 6px !important;
  height: 46px !important; background: #fff !important; padding: 10px 14px !important; color: var(--ink) !important;
  width: 100% !important; max-width: none !important;
}
html body #mlb2-46100578.ml-form-embedContainer.ml-subscribe-form .ml-form-embedWrapper .ml-form-embedBody .custom-checkbox-radio-list {
  display: grid !important; grid-template-columns: 1fr 1fr; gap: 4px 20px; margin-top: 4px;
}
@media (max-width: 640px) {
  html body #mlb2-46100578.ml-form-embedContainer.ml-subscribe-form .ml-form-embedWrapper .ml-form-embedBody .custom-checkbox-radio-list { grid-template-columns: 1fr; }
}
html body #mlb2-46100578.ml-form-embedContainer.ml-subscribe-form .ml-form-embedWrapper .ml-form-embedBody .custom-control-input:checked ~ .custom-control-label::before {
  background-color: var(--pine) !important; border-color: var(--pine) !important;
}
html body #mlb2-46100578.ml-form-embedContainer.ml-subscribe-form .ml-form-embedWrapper .ml-form-embedBody .custom-control-label::before {
  border-color: var(--rule-strong) !important; background: #fff !important;
}
/* No floats: the embed floats the form, fields and submit row, which collapses the panel around them. */
html body #mlb2-46100578.ml-form-embedContainer.ml-subscribe-form .ml-form-embedWrapper .ml-form-embedBody form.ml-block-form,
html body #mlb2-46100578.ml-form-embedContainer.ml-subscribe-form .ml-form-embedWrapper .ml-form-embedBody .ml-form-formContent,
html body #mlb2-46100578.ml-form-embedContainer.ml-subscribe-form .ml-form-embedWrapper .ml-form-embedBody .ml-form-fieldRow,
html body #mlb2-46100578.ml-form-embedContainer.ml-subscribe-form .ml-form-embedWrapper .ml-form-embedBody .ml-field-group {
  width: 100% !important; max-width: none !important; float: none !important;
}
html body #mlb2-46100578.ml-form-embedContainer.ml-subscribe-form .ml-form-embedWrapper .ml-form-embedBody .ml-form-embedSubmit {
  float: none !important; clear: both !important; width: 100% !important;
}
html body #mlb2-46100578.ml-form-embedContainer.ml-subscribe-form .ml-form-embedWrapper .ml-form-embedBody .ml-form-embedSubmit button.primary {
  background: var(--pine) !important; border: 0 !important; border-radius: 6px !important;
  font-family: var(--font-sans) !important; font-size: 14px !important; font-weight: 600 !important;
  letter-spacing: 0.14em !important; text-transform: uppercase !important;
  height: 52px !important; color: var(--cream-on-dark) !important; width: 100% !important;
}
