/* Mjengo Dispatch — independent newsletter identity.
   Black + white editorial with restrained pink. Self-contained: this page
   does NOT load styles.css or tool-pages.css, so everything lives here. */

.nl-page {
  --paper: #faf9f6;
  --paper-2: #ffffff;
  --ink: #16151a;
  --ink-soft: #54525a;
  --muted: #8a8880;
  --line: #e6e3dc;
  --line-soft: #eeece5;
  --pink: #e0568a;
  --pink-deep: #c1355f;
  --pink-wash: #fcedf3;
  --dark: #16151a;
  --font-serif: "Fraunces", Georgia, "Times New Roman", serif;
  --font-sans: "Inter", system-ui, -apple-system, sans-serif;

  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.nl-page *,
.nl-page *::before,
.nl-page *::after {
  box-sizing: border-box;
}

.nl-page a {
  color: inherit;
  text-decoration: none;
}

.nl-page img {
  max-width: 100%;
  display: block;
}

.nl-page h1,
.nl-page h2,
.nl-page h3,
.nl-page h4,
.nl-page p,
.nl-page ul {
  margin: 0;
}

.nl-shell {
  width: min(1080px, calc(100% - 40px));
  margin: 0 auto;
  padding: 20px 0 72px;
}

/* ---------- Masthead / nav ---------- */

.nl-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 6px 0 16px;
}

.nl-wordmark {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
}

.nl-wordmark strong {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 1.4rem;
  letter-spacing: 0.04em;
  color: var(--ink);
}

.nl-wordmark span {
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}

.nl-nav .nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
}

.nl-nav .nav-links a {
  font-size: 0.86rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--ink-soft);
}

.nl-nav .nav-links a:hover {
  color: var(--pink-deep);
}

.menu-toggle {
  display: none;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper-2);
  color: var(--ink);
  font: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
}

.nl-rule {
  height: 3px;
  width: 68px;
  background: var(--pink);
  border-radius: 2px;
}

/* ---------- Hero ---------- */

.nl-hero {
  padding: 54px 0 40px;
  border-bottom: 1px solid var(--line);
}

.nl-eyebrow {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--pink-deep);
  margin-bottom: 20px;
}

.nl-headline {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(2.5rem, 6vw, 4.1rem);
  line-height: 1.06;
  letter-spacing: -0.01em;
  max-width: 15ch;
  color: var(--ink);
}

.nl-lead {
  margin-top: 20px;
  max-width: 54ch;
  font-size: 1.08rem;
  line-height: 1.65;
  color: var(--ink-soft);
}

.nl-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.nl-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin-top: 26px;
  padding: 0;
  list-style: none;
}

.nl-trust li {
  position: relative;
  padding-left: 18px;
  font-size: 0.86rem;
  font-weight: 500;
  color: var(--muted);
}

.nl-trust li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--pink);
}

/* ---------- Buttons ---------- */

.nl-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 26px;
  border-radius: 8px;
  border: 1px solid transparent;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: background 0.16s ease, border-color 0.16s ease, color 0.16s ease, transform 0.12s ease;
}

.nl-btn:active {
  transform: translateY(1px);
}

/* !important: .nl-page a { color: inherit } elsewhere in this file otherwise
   wins on specificity and makes the button text match its own background. */
.nl-btn.nl-btn-primary {
  background: var(--ink);
  color: #faf9f6 !important;
}

.nl-btn-primary:hover {
  background: #000000;
}

.nl-btn-primary .nl-arrow {
  color: #f5a3c0 !important;
}

.nl-btn.nl-btn-ghost {
  background: var(--paper-2);
  border-color: var(--line);
  color: var(--ink) !important;
}

.nl-btn-ghost:hover {
  border-color: var(--pink);
  color: var(--pink-deep);
}

.nl-btn:disabled {
  opacity: 0.55;
  cursor: default;
  transform: none;
}

/* ---------- Sections ---------- */

.nl-section {
  padding: 56px 0 0;
}

.nl-kicker {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 8px;
}

.nl-kicker::after {
  content: "";
  display: block;
  width: 40px;
  height: 2px;
  margin-top: 10px;
  background: var(--pink);
}

.nl-section-title {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(1.7rem, 3.2vw, 2.3rem);
  line-height: 1.15;
  color: var(--ink);
  max-width: 22ch;
}

.nl-section-lead {
  margin-top: 12px;
  max-width: 56ch;
  color: var(--ink-soft);
}

/* ---------- In every issue ---------- */

.nl-issue-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 26px;
  margin-top: 32px;
}

.nl-issue-item {
  border-top: 1px solid var(--line);
  padding-top: 16px;
}

.nl-page .nl-issue-num {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  color: var(--pink);
}

.nl-issue-item strong {
  display: block;
  margin: 8px 0 4px;
  font-size: 1rem;
  font-weight: 500;
  color: var(--ink);
}

.nl-issue-item span {
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--ink-soft);
}

/* ---------- Sample issue (dark editorial card) ---------- */

.nl-sample {
  margin-top: 40px;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  background: var(--paper-2);
}

.nl-sample-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 24px;
  background: var(--dark);
  color: #faf9f6;
}

.nl-sample-head strong {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 1.1rem;
  letter-spacing: 0.02em;
}

.nl-sample-head span {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #c9a7b5;
}

.nl-sample-body {
  padding: 6px 24px;
}

.nl-sample-row {
  display: flex;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line-soft);
}

.nl-sample-row:last-child {
  border-bottom: 0;
}

.nl-sample-row .nl-issue-num {
  padding-top: 2px;
}

.nl-sample-row strong {
  display: block;
  font-size: 1.02rem;
  font-weight: 500;
  color: var(--ink);
}

.nl-sample-row p {
  margin-top: 3px;
  font-size: 0.9rem;
  color: var(--muted);
}

/* ---------- Join layout ---------- */

.nl-join-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 26px;
  align-items: start;
  margin-top: 32px;
}

.nl-card {
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper-2);
}

.nl-card-head {
  margin-bottom: 24px;
}

.nl-card-head h3 {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 1.4rem;
  color: var(--ink);
}

.nl-card-head p {
  margin-top: 8px;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

/* ---------- Form ---------- */

.nl-form {
  display: grid;
  gap: 22px;
}

.nl-field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.nl-form label.nl-field {
  display: grid;
  gap: 7px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.nl-span-2 {
  grid-column: span 2;
}

.nl-form input,
.nl-form select,
.nl-form textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 0.98rem;
  font-weight: 400;
  letter-spacing: normal;
  text-transform: none;
}

.nl-form textarea {
  resize: vertical;
}

.nl-form input::placeholder,
.nl-form textarea::placeholder {
  color: #b6b4ac;
}

.nl-form input:focus,
.nl-form select:focus,
.nl-form textarea:focus {
  outline: none;
  border-color: var(--pink);
  box-shadow: 0 0 0 3px var(--pink-wash);
}

.nl-form input[readonly] {
  background: var(--paper);
  color: var(--muted);
}

/* Topics block */

.nl-pref {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 22px;
  background: var(--paper);
}

.nl-pref-head h4 {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 1.1rem;
  color: var(--ink);
}

.nl-pref-head p {
  margin-top: 4px;
  font-size: 0.9rem;
  color: var(--ink-soft);
}

.nl-check-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.nl-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper-2);
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.nl-check:hover {
  border-color: #d8b6c4;
}

.nl-check:has(input:checked) {
  border-color: var(--pink);
  background: var(--pink-wash);
}

.nl-check input {
  width: 17px;
  height: 17px;
  margin-top: 2px;
  accent-color: var(--pink-deep);
  flex: none;
}

.nl-check span {
  font-size: 0.9rem;
  line-height: 1.45;
  color: var(--ink);
}

/* ---------- Summary sidebar ---------- */

.tool-side-card {
  position: sticky;
  top: 20px;
  display: grid;
  gap: 16px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper-2);
}

.tool-side-card .nl-card-head {
  margin-bottom: 0;
}

.tool-side-card .nl-card-head h3 {
  font-size: 1.2rem;
}

.nl-summary-helper {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--ink-soft);
}

.tool-summary-list {
  display: grid;
  gap: 8px;
}

.tool-summary-row {
  display: grid;
  gap: 3px;
  padding: 12px 14px;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: var(--paper);
}

.tool-summary-row span {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.tool-summary-row strong {
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1.5;
  color: var(--ink);
}

.tool-summary-empty {
  margin: 0;
  padding: 14px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

.nl-summary-actions {
  display: grid;
  gap: 10px;
}

.nl-summary-actions .nl-btn {
  width: 100%;
  justify-content: center;
  min-height: 46px;
}

.nl-hint {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.55;
  color: var(--muted);
}

/* Status messages (created / updated by tool-pages.js) */

.booking-status {
  padding: 12px 14px;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  line-height: 1.55;
  border: 1px solid var(--line);
}

.booking-status.is-info {
  background: var(--paper);
  border-color: var(--line);
  color: var(--ink-soft);
}

.booking-status.is-success {
  background: #f0f7f1;
  border-color: #c4e2c9;
  color: #2c6a41;
}

.booking-status.is-error {
  background: var(--pink-wash);
  border-color: #f0bcd0;
  color: var(--pink-deep);
}

.booking-status.is-warning {
  background: #fbf3e6;
  border-color: #ecd7a8;
  color: #8a5a12;
}

/* ---------- Archive records (built by newsletter-archive.js) ---------- */

.nl-archive-list {
  display: grid;
  gap: 16px;
}

.admin-record-card {
  display: grid;
  gap: 12px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper-2);
}

.admin-record-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
}

.admin-record-head strong {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 1.28rem;
  line-height: 1.2;
  color: var(--ink);
}

.admin-badge {
  flex: none;
  padding: 5px 11px;
  border-radius: 999px;
  background: var(--pink-wash);
  color: var(--pink-deep);
  font-size: 0.64rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.admin-record-card small {
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.admin-record-card > p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 1rem;
  line-height: 1.6;
}

.archive-article-body {
  display: grid;
  gap: 12px;
  padding-top: 4px;
  border-top: 1px solid var(--line-soft);
  color: var(--ink);
  line-height: 1.72;
}

.archive-article-body p {
  margin: 0;
}

.archive-article-body a {
  color: var(--pink-deep);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ---------- Footer ---------- */

.nl-footer {
  margin-top: 64px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 16px 32px;
  align-items: baseline;
  justify-content: space-between;
}

.nl-footer strong {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 1.05rem;
}

.nl-footer p {
  font-size: 0.88rem;
  color: var(--muted);
}

.nl-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.nl-footer-links a {
  font-size: 0.86rem;
  font-weight: 500;
  color: var(--ink-soft);
}

.nl-footer-links a:hover {
  color: var(--pink-deep);
}

/* ---------- Responsive ---------- */

@media (max-width: 940px) {
  .nl-join-layout {
    grid-template-columns: 1fr;
  }

  .tool-side-card {
    position: static;
  }

  .nl-issue-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .menu-toggle {
    display: inline-flex;
  }

  .nl-nav .nav-links {
    display: none;
    position: absolute;
    top: 64px;
    right: 20px;
    left: 20px;
    z-index: 30;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 12px 16px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--paper-2);
    box-shadow: 0 20px 44px rgba(22, 21, 26, 0.12);
  }

  .nl-nav .nav-links.open {
    display: flex;
  }

  .nl-nav .nav-links a {
    padding: 8px 0;
  }

  .nl-hero {
    padding: 36px 0 30px;
  }

  .nl-field-grid,
  .nl-check-grid {
    grid-template-columns: 1fr;
  }

  .nl-span-2 {
    grid-column: auto;
  }

  .nl-issue-grid {
    grid-template-columns: 1fr;
  }

  .nl-card {
    padding: 22px;
  }
}
