/* Checked, the newsletter: the box, the band, the home section, the newsletter page and the short confirm and
   unsubscribe pages. Loaded on every front-end page, since the band is on every page. The approved design: one
   border, rounded corners, no coloured bar or short rule. */

/* the form, shared by every placement */
.nl-form { display: flex; gap: 10px; margin-top: 20px; flex-wrap: wrap; }
.nl-form input[type="email"] { flex: 1 1 240px; min-width: 0; font: 400 16px/25px Figtree, sans-serif; padding: 10px 15px; border: 1px solid var(--line, #D9D9D9); border-radius: 5px; color: var(--text, #3D3D3D); background: var(--bg, #fff); }
.nl-form button { font: 600 16px/25px Figtree, sans-serif; padding: 10px 20px; border: 0; border-radius: 5px; background: var(--blue, #2F59B2); color: #fff; cursor: pointer; }
.nl-trap { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.nl-note { margin-top: 15px; padding: 10px 15px; border-radius: 5px; background: var(--blue-95, #EBF0FA); font-size: 15px; line-height: 22px; }
.nl-small { font: 400 14px/20px Figtree, sans-serif; color: var(--meta, #737373); margin-top: 12px; }
.nl-small a { text-decoration: underline; }

/* the box: [checked_signup] in a page */
.nl-box { margin: 40px auto 10px; max-width: 640px; padding: 30px; border: 1px solid var(--rule, #D9D9D9); border-radius: 5px; background: var(--bg, #fff); text-align: left; }
.nl-box h2 { font: 600 28px/35px "EB Garamond", Garamond, Georgia, serif; color: var(--heading, #555); letter-spacing: -0.01em; margin: 0; }
.nl-box p { font-family: Figtree, sans-serif; font-size: 17px; line-height: 28px; margin: 10px 0 0; color: var(--text, #3D3D3D); }
.nl-box .nl-small { margin-top: 15px; }

/* the band above the footer on every other page */
/* white with its own border, never the footer's grey, and a clear gap before the footer (Hillary, 31 October) */
.nl-band { background: var(--bg, #fff); padding: 50px 0 60px; }
.nl-band-panel { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: center; padding: 30px; border: 1px solid var(--rule, #D9D9D9); border-radius: 5px; background: var(--bg, #fff); }
.nl-band h2 { font: 600 33px/40px "EB Garamond", Garamond, Georgia, serif; color: var(--heading, #555); margin: 0; }
.nl-band p { font-family: Figtree, sans-serif; font-size: 17px; line-height: 28px; margin: 10px 0 0; color: var(--text, #3D3D3D); }
.nl-band .nl-form { margin-top: 0; }

/* the home page section: a block like the others, with the two newest covers and the subscribe panel */
.nl-home { margin-top: 0; }
.nl-home-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 30px 25px; align-items: start; }
.nl-home-grid h3 { font-size: 21px; line-height: 30px; font-weight: 700; }
.nl-home-grid .kicker { display: block; margin-bottom: 5px; }
.nl-home-join { grid-column: span 2; align-self: center; padding: 30px; border: 1px solid var(--rule, #D9D9D9); border-radius: 5px; background: var(--bg, #fff); }
.nl-home-join h3 { font: 600 33px/40px "EB Garamond", Garamond, Georgia, serif; color: var(--heading, #555); margin: 0; }
.nl-home-join p { margin-top: 10px; }
.nl-home-join .nl-form { margin-top: 20px; }

/* covers and cards */
.nl-cover { display: block; margin-bottom: 15px; }
.nl-cover img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 4; object-fit: cover; object-position: top; border-radius: 5px; }

/* the newsletter page: the lead, the shelf, the closing panel */
.nl-lead .nl-cover { margin-bottom: 0; }
.nl-lead .nl-cover img { aspect-ratio: auto; box-shadow: 0 2px 14px var(--shadow, rgba(0, 0, 0, 0.06)); }
.nl-lead h2 { font-size: 40px; line-height: 48px; }
.nl-lead-join { margin-top: 25px; max-width: 520px; }
.nl-lead-join .nl-form { margin-top: 0; }
.nl-issues .kicker { display: block; margin-bottom: 5px; }
.nl-close { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: center; background: var(--panel, #F2F2F2); }
.nl-close h2 { font: 600 33px/40px "EB Garamond", Garamond, Georgia, serif; color: var(--heading, #555); margin: 0; }
.nl-close p { font-size: 17px; line-height: 28px; margin-top: 10px; }
.nl-close .nl-form { margin-top: 0; }

/* the short pages a link from an email opens */
.nl-done { max-width: 640px; margin: 60px auto; text-align: center; }
.nl-done h1 { font: 600 40px/48px "EB Garamond", Garamond, Georgia, serif; color: var(--heading, #555); }
.nl-done p { font-size: 18px; line-height: 28px; margin: 15px 0 25px; }
.nl-done .btn { font: 600 16px/25px Figtree, sans-serif; padding: 10px 20px; border: 0; border-radius: 5px; background: var(--blue, #2F59B2); color: #fff; cursor: pointer; }

@media (max-width: 1000px) {
  .nl-home-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nl-home-join { grid-column: 1 / -1; }
}
@media (max-width: 860px) {
  .nl-band-panel, .nl-close { grid-template-columns: 1fr; gap: 20px; }
  .nl-lead h2 { font-size: 33px; line-height: 40px; }
}
@media (max-width: 600px) {
  .nl-box, .nl-band-panel { padding: 20px; }
  .nl-band h2 { font-size: 28px; line-height: 35px; }
}
