/* Newsletter signup landing page (/newsletter) and its thank-you page.
   Uses the brand tokens from style.css. Deliberately has no site navigation:
   the page has one job, the signup form. */

.nl-page { background: var(--paper); min-height: 100vh; display: flex; flex-direction: column; }

.nl-top { border-bottom: 1px solid var(--line); }
.nl-top-inner { max-width: var(--max); margin: 0 auto; padding: .9rem var(--pad); display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.nl-top img { height: 30px; width: auto; }
.nl-top .nl-tag { font-family: var(--mono); font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }

.nl-hero { flex: 1; }
.nl-hero-inner { max-width: var(--max); margin: 0 auto; padding: clamp(1.4rem, 4vw, 3.6rem) var(--pad) clamp(2rem, 5vw, 4rem); display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(1.6rem, 5vw, 4.5rem); align-items: start; }
.nl-hero-inner > * { min-width: 0; }

.nl-h1 { font-family: var(--sans); font-weight: 900; font-stretch: 125%; text-transform: uppercase; line-height: .96; letter-spacing: -.01em; font-size: clamp(2.1rem, 6.2vw, 4.4rem); margin: .7rem 0 0; text-wrap: balance; }
.nl-h1 em { font-style: normal; color: var(--volt-deep); }
.nl-sub { font-size: clamp(1rem, 1.5vw, 1.18rem); color: var(--concrete-4); max-width: 46ch; margin-top: 1rem; line-height: 1.5; }

.nl-form { margin-top: 1.4rem; border: 2px solid var(--ink); padding: clamp(1rem, 2.4vw, 1.5rem); background: var(--bone); }
.nl-form label { display: block; font-family: var(--mono); font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: var(--concrete-4); margin-bottom: .35rem; }
.nl-form label span { color: var(--muted); text-transform: none; letter-spacing: 0; }
.nl-fields { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: .8rem; }
.nl-fields > div { min-width: 0; }
.nl-form input[type="email"], .nl-form input[type="text"] { width: 100%; font: inherit; font-size: 1rem; padding: .85rem .9rem; border: 1px solid var(--line-strong); background: var(--paper); color: var(--ink); border-radius: 0; -webkit-appearance: none; appearance: none; }
.nl-form input:focus-visible { outline: 2px solid var(--cobalt); outline-offset: 1px; border-color: var(--cobalt); }
.nl-form .btn { width: 100%; justify-content: center; margin-top: .9rem; font-size: 1rem; padding-top: 1rem; padding-bottom: 1rem; }
.nl-form .btn[disabled] { opacity: .6; cursor: progress; }
.nl-reassure { font-family: var(--mono); font-size: .74rem; letter-spacing: .08em; text-transform: uppercase; text-align: center; margin-top: .8rem; color: var(--ink); }
.nl-consent { font-size: .78rem; line-height: 1.5; color: var(--muted); margin-top: .8rem; }
.nl-consent a { text-decoration: underline; text-underline-offset: 2px; }
.nl-msg { display: none; margin-top: .9rem; padding: .75rem .9rem; font-size: .92rem; line-height: 1.45; border-left: 4px solid var(--red); background: var(--paper); }
.nl-msg.show { display: block; }
.nl-msg.ok { border-left-color: var(--ink); }
.nl-msg a { text-decoration: underline; }
/* Mailchimp's bot trap: must stay in the form but off screen. */
.nl-trap { position: absolute; left: -5000px; }

/* Preview of a recent issue */
.nl-preview { border: 1px solid var(--line-strong); background: var(--paper); }
.nl-preview-bar { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding: .7rem 1rem; background: var(--ink); color: var(--paper); font-family: var(--mono); font-size: .66rem; letter-spacing: .12em; text-transform: uppercase; }
.nl-preview-body { padding: 1.1rem 1.1rem 1.2rem; }
.nl-preview-from { font-size: .8rem; color: var(--muted); }
.nl-preview-subject { font-weight: 800; font-size: 1.14rem; line-height: 1.25; margin-top: .25rem; text-wrap: balance; }
.nl-preview-img { margin-top: .9rem; aspect-ratio: 16 / 9; background: var(--concrete-1); overflow: hidden; max-width: 100%; }
.nl-preview-img img { width: 100%; height: 100%; object-fit: cover; }
.nl-items { list-style: none; margin-top: .4rem; }
.nl-items li { padding: .8rem 0; border-top: 1px solid var(--line); }
.nl-items li:first-child { border-top: 0; }
.nl-kicker { font-family: var(--mono); font-size: .64rem; letter-spacing: .12em; text-transform: uppercase; color: var(--cobalt); }
.nl-items h3 { font-weight: 700; font-size: .98rem; line-height: 1.3; margin-top: .2rem; }
.nl-items p { font-size: .86rem; color: var(--concrete-4); line-height: 1.45; margin-top: .2rem; }
.nl-preview-more { display: inline-block; margin-top: .4rem; font-family: var(--mono); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; text-decoration: underline; text-underline-offset: 3px; }

/* What's inside */
.nl-inside { background: var(--ink); color: var(--paper); }
.nl-inside-inner { max-width: var(--max); margin: 0 auto; padding: clamp(2rem, 5vw, 3.4rem) var(--pad); }
.nl-inside h2 { font-weight: 900; font-stretch: 125%; text-transform: uppercase; font-size: clamp(1.3rem, 3vw, 2rem); line-height: 1.05; margin-top: .5rem; }
.nl-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--line-light); border: 1px solid var(--line-light); margin-top: 1.4rem; }
.nl-grid > div { background: var(--ink); padding: 1.1rem; min-width: 0; }
.nl-grid .n { font-family: var(--mono); font-size: .68rem; letter-spacing: .12em; color: var(--volt); }
.nl-grid h3 { font-weight: 800; font-size: 1rem; margin-top: .4rem; }
.nl-grid p { font-size: .88rem; color: var(--muted-light); line-height: 1.45; margin-top: .3rem; }
.nl-inside .btn { margin-top: 1.5rem; }

.nl-foot { border-top: 1px solid var(--line); }
.nl-foot-inner { max-width: var(--max); margin: 0 auto; padding: 1.2rem var(--pad) 1.6rem; font-size: .76rem; line-height: 1.55; color: var(--muted); }
.nl-foot a { text-decoration: underline; text-underline-offset: 2px; }

/* Thank-you page */
.nl-thanks { max-width: 760px; margin: 0 auto; padding: clamp(2rem, 7vw, 5rem) var(--pad); }
.nl-thanks .nl-h1 { font-size: clamp(2rem, 6vw, 3.6rem); }
.nl-next { margin-top: 2rem; border-top: 2px solid var(--ink); }
.nl-next a { display: flex; justify-content: space-between; gap: 1rem; align-items: baseline; padding: 1rem 0; border-bottom: 1px solid var(--line); font-weight: 700; }
.nl-next a span:last-child { font-family: var(--mono); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.nl-next a:hover { color: var(--volt-deep); }

@media (max-width: 860px) {
  .nl-hero-inner { grid-template-columns: minmax(0, 1fr); }
  .nl-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nl-top .nl-tag { display: none; }
}
@media (max-width: 520px) {
  .nl-fields { grid-template-columns: minmax(0, 1fr); }
  .nl-grid { grid-template-columns: minmax(0, 1fr); }
  .nl-hero-inner { padding-top: 1.1rem; }
  .nl-sub { margin-top: .7rem; }
  .nl-form { margin-top: 1rem; }
}
