/* ── Newsletter — shared styles ─────────────────────────────────────────── */

:root {
  --nl-bg-1: #1c4e7a;
  --nl-bg-2: #0d2848;
  --nl-bg-3: #061427;
  --nl-bg-4: #02080f;
  --nl-paper: #f4e8c8;
  --nl-rule:  rgba(244, 232, 200, 0.18);
  --nl-card:  rgba(8, 28, 60, 0.55);
  --nl-card-hover: rgba(14, 42, 80, 0.68);
  --nl-border: rgba(140, 210, 255, 0.20);
  --nl-border-strong: rgba(140, 210, 255, 0.55);
  --nl-text:  rgba(255, 255, 255, 0.78);
  --nl-text-strong: rgba(255, 255, 255, 0.92);
  --nl-text-soft: rgba(255, 255, 255, 0.55);
  --nl-cyan:  rgba(140, 210, 255, 0.85);

  /* Per-issue theme — each issue page overrides these */
  --theme-glow:   rgba(140, 210, 255, 0.18);
  --theme-accent: #80d8ff;
  --theme-rule:   rgba(140, 210, 255, 0.6);
}

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

body {
  min-height: 100vh;
  font-family: 'Georgia', 'Times New Roman', serif;
  color: var(--nl-text);
  padding: 0 0 80px;
  position: relative;
  background:
    radial-gradient(ellipse 80% 40% at 50% 0%, var(--theme-glow) 0%, transparent 70%),
    linear-gradient(175deg, var(--nl-bg-1) 0%, var(--nl-bg-2) 35%, var(--nl-bg-3) 70%, var(--nl-bg-4) 100%);
  background-attachment: fixed;
}

/* Subtle dotted halftone overlay for newsprint texture */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.06;
  background-image: radial-gradient(rgba(255,255,255,0.6) 1px, transparent 1px);
  background-size: 4px 4px;
  z-index: 0;
}

/* ── Reef silhouette (kept consistent with site) ──────────────────────── */
.reef-silhouette {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  height: 100px;
  background: linear-gradient(180deg, transparent 0%, rgba(2,8,15,0.55) 35%, rgba(2,8,15,0.96) 100%);
  clip-path: polygon(
    0% 58%, 3% 38%, 6% 54%, 9% 28%, 12% 46%,
    15% 22%, 18% 40%, 21% 18%, 24% 36%, 27% 12%,
    30% 32%, 33%  8%, 36% 26%, 39%  6%, 42% 20%,
    45%  4%, 48% 16%, 51%  2%, 54% 14%, 57%  5%,
    60% 18%, 63%  7%, 66% 24%, 69% 10%, 72% 28%,
    75% 16%, 78% 33%, 81% 20%, 84% 38%, 87% 26%,
    90% 43%, 93% 30%, 96% 48%, 100% 33%, 100% 100%, 0% 100%
  );
  pointer-events: none;
  z-index: 0;
}

/* ── Header (matches site nav) ─────────────────────────────────────────── */
header {
  position: relative;
  z-index: 2;
  background: rgba(2, 8, 20, 0.65);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--nl-border);
  padding: 18px 32px;
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  font-family: system-ui, -apple-system, sans-serif;
}
header a {
  color: rgba(255,255,255,0.5);
  text-decoration: none;
  font-size: 13px;
  letter-spacing: 1px;
  transition: color 0.15s;
}
header a:hover { color: #fff; }
header a.active { color: #fff; }
header .site-name {
  font-size: 18px;
  font-weight: 800;
  color: #fff;
  letter-spacing: 2px;
  text-decoration: none;
}

/* ── Content layout ────────────────────────────────────────────────────── */
.content {
  position: relative;
  z-index: 1;
  max-width: 880px;
  margin: 56px auto 0;
  padding: 0 24px;
}
.article-content { max-width: 720px; }

/* ── Masthead (used on index) ──────────────────────────────────────────── */
.masthead {
  text-align: center;
  padding-bottom: 32px;
  border-bottom: 3px double var(--nl-rule);
  margin-bottom: 40px;
}
.masthead-eyebrow {
  font-family: system-ui, -apple-system, sans-serif;
  font-size: 11px;
  letter-spacing: 6px;
  text-transform: uppercase;
  color: var(--nl-paper);
  opacity: 0.7;
  margin-bottom: 12px;
}
.masthead-title {
  font-family: 'Georgia', serif;
  font-size: 44px;
  font-weight: 800;
  color: var(--nl-paper);
  letter-spacing: 1px;
  line-height: 1.1;
  font-style: italic;
}
.masthead-tagline {
  font-family: system-ui, -apple-system, sans-serif;
  margin-top: 12px;
  font-size: 13px;
  letter-spacing: 1px;
  color: var(--nl-text-soft);
  font-style: italic;
}

/* ── Issue card grid (index page) ──────────────────────────────────────── */
.issues {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
  margin-bottom: 48px;
}
.issue-card {
  display: flex;
  flex-direction: column;
  padding: 24px;
  border-radius: 14px;
  background: var(--nl-card);
  border: 1px solid var(--nl-border);
  text-decoration: none;
  color: inherit;
  transition: transform 0.15s, background 0.15s, border-color 0.15s;
  font-family: 'Georgia', serif;
}
.issue-card:hover {
  transform: translateY(-3px);
  background: var(--nl-card-hover);
  border-color: var(--nl-border-strong);
}
.card-eyebrow {
  font-family: system-ui, -apple-system, sans-serif;
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--nl-cyan);
  margin-bottom: 10px;
}
.card-eyebrow span + span::before {
  content: '·';
  margin: 0 8px;
  color: rgba(140,210,255,0.35);
}
.card-title {
  font-size: 22px;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.3px;
  line-height: 1.2;
  margin-bottom: 12px;
}
.card-deck {
  font-size: 15px;
  line-height: 1.6;
  color: var(--nl-text);
  flex: 1;
  margin-bottom: 18px;
  font-style: italic;
}
.card-cta {
  font-family: system-ui, -apple-system, sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--theme-accent);
}

/* ── Article (issue page) ──────────────────────────────────────────────── */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: system-ui, -apple-system, sans-serif;
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--nl-cyan);
  text-decoration: none;
  margin-bottom: 28px;
  opacity: 0.85;
  transition: opacity 0.12s, color 0.12s;
}
.back-link:hover { color: #fff; opacity: 1; }

.byline {
  font-family: system-ui, -apple-system, sans-serif;
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--nl-cyan);
  margin-bottom: 8px;
}
.byline span + span::before {
  content: '·';
  margin: 0 10px;
  color: rgba(140,210,255,0.35);
}
.issue-title {
  font-family: 'Georgia', serif;
  font-size: 36px;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.3px;
  line-height: 1.2;
  margin-bottom: 12px;
}
.issue-deck {
  font-size: 18px;
  line-height: 1.5;
  color: var(--nl-text);
  font-style: italic;
  margin-bottom: 32px;
  padding-left: 14px;
  border-left: 3px solid var(--theme-rule);
}
.article-content p {
  font-size: 16px;
  line-height: 1.85;
  color: var(--nl-text);
  margin-bottom: 18px;
}
.article-content p.lede {
  font-size: 18px;
  line-height: 1.7;
  color: var(--nl-text-strong);
}
.article-content p.lede::first-letter {
  font-family: 'Georgia', serif;
  font-size: 56px;
  float: left;
  line-height: 1;
  padding: 6px 10px 0 0;
  color: var(--theme-accent);
  font-weight: 800;
}
.article-content h3 {
  font-family: 'Georgia', serif;
  font-size: 22px;
  font-weight: 800;
  color: #fff;
  margin: 32px 0 12px;
  letter-spacing: 0.2px;
}
.article-content blockquote {
  margin: 28px 0;
  padding: 18px 24px;
  border-left: 3px solid var(--theme-rule);
  background: rgba(8, 28, 60, 0.4);
  font-size: 19px;
  line-height: 1.55;
  color: var(--nl-text-strong);
  font-style: italic;
  border-radius: 0 8px 8px 0;
}
.article-content a { color: var(--theme-accent); }
.article-content a:hover { color: #fff; }

/* ── Spotlight card ───────────────────────────────────────────────────── */
.spotlight {
  margin: 32px 0 12px;
  padding: 24px;
  border-radius: 14px;
  background: rgba(8, 28, 60, 0.5);
  border: 1px solid var(--nl-border);
  box-shadow: 0 0 32px var(--theme-glow);
}
.spotlight-head {
  display: flex;
  gap: 18px;
  align-items: center;
  margin-bottom: 16px;
}
.spotlight-swatch {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  flex-shrink: 0;
  border: 2px solid rgba(255,255,255,0.18);
  box-shadow: 0 0 22px var(--theme-glow), inset 0 0 14px rgba(255,255,255,0.1);
}
.spotlight-meta { flex: 1; min-width: 0; }
.spotlight-eyebrow {
  font-family: system-ui, -apple-system, sans-serif;
  font-size: 10px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--theme-accent);
  margin-bottom: 4px;
}
.spotlight-name {
  font-family: 'Georgia', serif;
  font-size: 22px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 2px;
}
.spotlight-sci {
  font-size: 13px;
  font-style: italic;
  color: var(--nl-text-soft);
  margin-bottom: 8px;
}
.spotlight-tier {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 10px;
  font-family: system-ui, -apple-system, sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
}
.tier-rare      { background: rgba(64,196,255,0.22); color: #80d8ff; }
.tier-uncommon  { background: rgba(118,255,3,0.18);  color: #b9f266; }
.tier-legendary { background: rgba(255,128,171,0.22); color: #ffb3d1; }
.spotlight p {
  font-size: 15px;
  line-height: 1.75;
  color: var(--nl-text);
  margin-bottom: 12px;
}
.spotlight p:last-child { margin-bottom: 0; }

.signoff {
  margin-top: 32px;
  font-size: 14px;
  color: var(--nl-text-soft);
  font-style: italic;
  letter-spacing: 0.3px;
}

/* ── Buttons / footer ─────────────────────────────────────────────────── */
.play-btn {
  display: inline-block;
  margin-top: 28px;
  padding: 14px 48px;
  font-family: system-ui, -apple-system, sans-serif;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #0a3050;
  background: #fff;
  border-radius: 40px;
  text-decoration: none;
  box-shadow: 0 4px 32px rgba(0,100,200,0.4);
  transition: transform 0.12s, background 0.12s;
}
.play-btn:hover { background: #d0f0ff; transform: scale(1.04); color: #0a3050; }

footer {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 40px 24px 20px;
  font-family: system-ui, -apple-system, sans-serif;
  font-size: 12px;
  color: rgba(255,255,255,0.35);
}
footer a { color: rgba(140,210,255,0.6); text-decoration: none; }
footer a:hover { color: #fff; }

@media (max-width: 600px) {
  .masthead-title { font-size: 32px; }
  .issue-title { font-size: 28px; }
  .article-content p.lede::first-letter { font-size: 44px; }
}
