/* ============================================
   Two Swords Digital Solutions — Newsletter CSS
   Used by NewsletterLayout.astro
   ============================================ */

:root {
  --gold: #C9973A;
  --gold-light: #E8C07A;
  --dark: #1A1A2E;
  --mid: #2E2E4E;
  --text: #2C2C2C;
  --text-muted: #666;
  --bg: #FAFAF8;
  --border: #E5E5E5;
  --max-w: 680px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 16px; -webkit-text-size-adjust: 100%; }

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
}

/* ── Nav ── */
.nl-nav {
  background: var(--dark);
  border-bottom: 2px solid var(--gold);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nl-nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0.75rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nl-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: #fff;
}

.nl-logo-text {
  font-size: 0.85rem;
  font-weight: 600;
  line-height: 1.2;
}

.nl-logo-text span {
  display: block;
  color: var(--gold-light);
  font-weight: 400;
  font-size: 0.75rem;
}

.nl-back {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.8rem;
  color: var(--gold-light);
  text-decoration: none;
  transition: color 0.2s;
}

.nl-back:hover { color: #fff; }

/* ── Issue Header ── */
.nl-header {
  background: linear-gradient(135deg, var(--dark) 0%, var(--mid) 100%);
  padding: 3rem 1.5rem 2.5rem;
  text-align: center;
}

.nl-header-inner {
  max-width: var(--max-w);
  margin: 0 auto;
}

.nl-masthead {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.5rem;
}

.nl-meta {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.5);
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
}

.nl-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 700;
  color: #fff;
  line-height: 1.25;
  margin-bottom: 1rem;
}

.nl-preview {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.7);
  line-height: 1.6;
  max-width: 520px;
  margin: 0 auto;
}

/* ── Main Content ── */
.nl-main {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 2.5rem 1.5rem 4rem;
}

.nl-article {
  background: #fff;
  border-radius: 8px;
  border: 1px solid var(--border);
  padding: 2.5rem;
  margin-bottom: 2rem;
}

/* Article typography */
.nl-article h2 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--dark);
  margin: 2rem 0 0.75rem;
  padding-bottom: 0.4rem;
  border-bottom: 2px solid var(--gold);
}

.nl-article h2:first-child { margin-top: 0; }

.nl-article h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--mid);
  margin: 1.5rem 0 0.5rem;
}

.nl-article p {
  margin-bottom: 1.1rem;
  color: var(--text);
  font-size: 0.97rem;
}

.nl-article ul, .nl-article ol {
  margin: 0 0 1.1rem 1.5rem;
}

.nl-article li {
  margin-bottom: 0.4rem;
  font-size: 0.97rem;
}

.nl-article strong { color: var(--dark); }

.nl-article a {
  color: var(--gold);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.nl-article a:hover { color: var(--dark); }

.nl-article blockquote {
  border-left: 3px solid var(--gold);
  margin: 1.5rem 0;
  padding: 0.75rem 1.25rem;
  background: #FFFBF4;
  border-radius: 0 6px 6px 0;
  font-style: italic;
  color: var(--mid);
}

.nl-article hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 2rem 0;
}

/* Tip box */
.nl-article .tip-box {
  background: #F0F7FF;
  border: 1px solid #C0D8F0;
  border-radius: 6px;
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
}

.nl-article .tip-box p { margin-bottom: 0; font-size: 0.93rem; }

/* ── CTA Box ── */
.nl-cta-box {
  background: linear-gradient(135deg, var(--dark) 0%, var(--mid) 100%);
  border-radius: 10px;
  padding: 2rem;
  text-align: center;
  margin-bottom: 2rem;
}

.nl-cta-headline {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.6rem;
}

.nl-cta-body {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.75);
  margin-bottom: 1.25rem;
  max-width: 440px;
  margin-left: auto;
  margin-right: auto;
}

.nl-cta-btn {
  display: inline-block;
  background: var(--gold);
  color: var(--dark);
  font-weight: 700;
  font-size: 0.9rem;
  padding: 0.7rem 1.75rem;
  border-radius: 6px;
  text-decoration: none;
  transition: background 0.2s, transform 0.15s;
}

.nl-cta-btn:hover {
  background: var(--gold-light);
  transform: translateY(-1px);
}

/* ── Issue Nav ── */
.nl-issue-nav {
  text-align: center;
}

.nl-issue-link {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-decoration: none;
}

.nl-issue-link:hover { color: var(--gold); }

/* ── Footer ── */
.nl-footer {
  background: var(--dark);
  color: rgba(255,255,255,0.5);
  text-align: center;
  padding: 2rem 1.5rem;
  font-size: 0.8rem;
}

.nl-footer-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-top: 0.75rem;
}

.nl-footer-links a {
  color: var(--gold-light);
  text-decoration: none;
  transition: color 0.2s;
}

.nl-footer-links a:hover { color: #fff; }

/* ── Responsive ── */
@media (max-width: 600px) {
  .nl-article { padding: 1.5rem; }
  .nl-main { padding: 1.5rem 1rem 3rem; }
  .nl-header { padding: 2rem 1rem 1.75rem; }
  .nl-cta-box { padding: 1.5rem 1rem; }
}
