/* Newsletter hub, issue pages, and the shared signup form. */

.nl-page { padding: 72px 24px 48px; }
.nl-inner { max-width: 760px; margin: 0 auto; }
.nl-page .badge {
  display: inline-block;
  padding: 4px 14px;
  border-radius: 6px;
  font-family: var(--ob);
  font-size: 0.5rem;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--pug);
  border: 1px solid var(--ba);
  background: rgba(124,58,237,0.06);
}
.nl-page .h1, .nl-page h1 {
  font-family: var(--ob);
  font-weight: 800;
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  letter-spacing: 0.04em;
  line-height: 1.2;
  color: #fff;
  margin: 16px 0 18px;
}
.nl-page .dek, .nl-lead {
  color: var(--tl);
  font-size: 1.05rem;
  font-weight: 500;
  line-height: 1.75;
  max-width: 62ch;
  margin-bottom: 28px;
}
.nl-page h2 {
  font-family: var(--ob);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
  margin: 36px 0 12px;
}
.nl-page h3 {
  font-family: var(--ob);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--pug);
  margin: 18px 0 8px;
}
.nl-page p, .nl-page li { color: var(--tl); font-weight: 500; line-height: 1.7; }
.nl-page a { color: var(--pug); text-decoration: underline; text-underline-offset: 2px; }
.nl-page a:hover { color: #fff; }
.todo-note {
  margin: 0 0 22px;
  padding: 12px 16px;
  border-radius: 8px;
  border: 1px solid rgba(249,115,22,0.35);
  background: rgba(249,115,22,0.08);
  color: var(--org);
  font-weight: 600;
}
.nl-blocks, .nl-archive, .nl-links { list-style: none; display: flex; flex-direction: column; gap: 12px; margin: 0; padding: 0; }
.nl-blocks li, .nl-archive li, .nl-card {
  background: var(--card);
  border: 1px solid var(--bs);
  border-radius: 10px;
  padding: 18px 20px;
}
.nl-card h3, .nl-archive h3 { margin-top: 0; }
.nl-card h3 a, .nl-archive h3 a { color: #fff; text-decoration: none; }
.nl-card h3 a:hover, .nl-archive h3 a:hover { color: var(--pug); }
.nl-meta { color: var(--tm); font-size: 0.9rem; font-weight: 600; margin: 8px 0; }
.nl-more { margin-top: 16px; }
.nl-pager { display: flex; justify-content: space-between; gap: 16px; margin-top: 28px; }
.nl-footnote { margin-top: 28px; color: var(--tm); font-size: 0.95rem; }
.nl-prompt { margin: 0 0 22px; }
.nl-essay, .nl-footer {
  margin-top: 28px;
}
.nl-footer {
  margin-top: 0;
  margin-bottom: 32px;
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(124,58,237,0.12);
}
.nl-footer h2, .nl-essay h2, .nl-home-band p {
  font-family: var(--ob);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
  margin: 0 0 14px;
}
.nl-home-band {
  max-width: 960px;
  margin: 0 auto;
  padding: 28px 48px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.nl-home-band a {
  font-family: var(--ob);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--org);
  text-decoration: none;
  border: 1px solid rgba(249,115,22,0.9);
  border-radius: 9px;
  padding: 12px 18px;
  background: rgba(249,115,22,0.08);
}
.nl-home-band a:hover { background: rgba(249,115,22,0.18); }

.nl-signup { margin: 0; }
.nl-stage { display: grid; }
.nl-native, .nl-embed, .nl-result {
  grid-area: 1 / 1;
}
.nl-embed[hidden], .nl-thanks[hidden], .nl-pending[hidden], .nl-failed[hidden] { display: none; }
.nl-embed-live .nl-native,
.nl-embed-live .nl-consent > input,
.nl-embed-live .nl-consent label,
.nl-embed-live .nl-submit,
.nl-embed-live .nl-thanks,
.nl-embed-live .nl-pending,
.nl-embed-live .nl-failed { display: none; }
form.nl-embed-live + .nl-embed { min-height: 26rem; }
.nl-fields {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 12px;
}
.nl-field label, .nl-consent label {
  display: block;
  font-family: var(--ob);
  font-size: 0.5rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--tm);
  margin-bottom: 6px;
}
.nl-consent label {
  font-family: var(--rj);
  font-size: 0.98rem;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  color: var(--tl);
  line-height: 1.5;
  margin: 0;
}
.nl-optional { color: var(--td); letter-spacing: 0.08em; }
.nl-signup input[type="email"],
.nl-signup input[type="text"] {
  width: 100%;
  background: #0B0F20;
  color: var(--tw);
  border: 1px solid var(--ba);
  border-radius: 8px;
  padding: 12px 14px;
  font: inherit;
}
.nl-consent {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin: 14px 0 8px;
}
.nl-consent input {
  width: 1.15rem;
  height: 1.15rem;
  margin-top: 0.2rem;
  flex: none;
  accent-color: #7C3AED;
}
.nl-privacy { margin: 6px 0 0; font-size: 0.95rem; }
.nl-privacy a, .nl-thanks a, .nl-pending a { color: var(--pug); }
.nl-error {
  color: #FECACA;
  font-weight: 600;
  min-height: 1.5em;
  margin: 0 0 8px;
}
.nl-submit {
  font-family: var(--ob);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.6rem;
  padding: 14px 28px;
  min-height: 48px;
  border-radius: 9px;
  border: 1px solid rgba(249,115,22,0.9);
  background: rgba(249,115,22,0.08);
  color: var(--org);
  cursor: pointer;
}
.nl-submit:hover { background: rgba(249,115,22,0.18); }
.nl-thanks, .nl-pending {
  align-self: start;
  background: var(--card);
  border: 1px solid var(--ba);
  border-radius: 10px;
  padding: 22px;
  color: var(--tl);
}
.nl-signup :focus-visible {
  outline: 2px solid var(--pug);
  outline-offset: 3px;
}
.nl-signup input[aria-invalid="true"] { border-color: #FECACA; }

@media (max-width: 800px) {
  .nl-fields { grid-template-columns: 1fr; }
  .nl-home-band { flex-direction: column; align-items: flex-start; padding: 24px 20px 0; }
}
@media (max-width: 680px) {
  .nl-page { padding: 36px 16px 28px; }
  .nl-blocks li, .nl-archive li, .nl-card { padding: 16px; }
}
