/* ─────────────────────────────────────────────
   On The Drip Newsletter — shared stylesheet
   Used by /newsletter and /newsletter/{slug}/
   Mirrors design tokens from the homepage.
   ───────────────────────────────────────────── */

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

:root {
  --gold: #C9A84C;
  --gold-light: #E2C97E;
  --gold-glow: rgba(201,168,76,.3);
  --bg: #FFFFFF;
  --bg2: #F5F5F5;
  --bg3: #FAFAFA;
  --fg: #0F1A2E;
  --fg50: #5b6577;
  --fg30: #9aa0ab;
  --border: rgba(15,26,46,.08);
  --teal: #2EC4B6;
  --teal-dark: #1B998B;
  --blue: #4A90E2;
  --radius: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --shadow-sm: 0 2px 8px rgba(15,26,46,.04);
  --shadow-md: 0 8px 24px rgba(15,26,46,.06);
  --shadow-lg: 0 20px 60px rgba(15,26,46,.10);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--fg);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

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

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

.hl-gold { color: var(--gold); }

/* ───── Nav ───── */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 24px; gap: 24px;
}
.nav-brand { display: flex; align-items: center; gap: 12px; }
.nav-logo { width: 40px; height: 40px; }
.nav-brand-name { font-size: 1rem; font-weight: 800; letter-spacing: 1px; color: var(--fg); }
.nav-brand-loc {
  font-size: .65rem; font-weight: 600; color: var(--teal-dark);
  text-transform: uppercase; letter-spacing: 1.5px;
}
.nav-links { display: flex; align-items: center; gap: 32px; list-style: none; }
.nav-links a {
  font-size: .92rem; font-weight: 500; color: var(--fg50);
  transition: color .2s;
}
.nav-links a:hover { color: var(--fg); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 22px; border-radius: 999px; font-weight: 700; font-size: .9rem;
  border: none; cursor: pointer; transition: transform .15s, box-shadow .15s, background .15s;
  text-decoration: none;
}
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-gold { background: var(--gold); color: #fff; }
.btn-gold:hover { background: var(--gold-light); color: #fff; }
.btn-teal { background: var(--teal); color: #fff; }
.btn-teal:hover { background: var(--teal-dark); }
.btn-outline { background: transparent; border: 2px solid var(--fg); color: var(--fg); }

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-inner { padding: 12px 16px; gap: 12px; }
  .nav-cta { padding: 8px 14px; font-size: .8rem; }
}

/* ───── Archive hero ───── */
.archive-hero {
  padding: 80px 0 40px;
  background: linear-gradient(180deg, var(--bg3) 0%, var(--bg) 100%);
  text-align: center;
}
.archive-hero .section-label {
  display: inline-block;
  color: var(--teal-dark); font-size: .72rem; font-weight: 700;
  letter-spacing: 2px; text-transform: uppercase; margin-bottom: 14px;
}
.archive-hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 5vw, 3.4rem); font-weight: 800;
  letter-spacing: -.02em; line-height: 1.1; margin-bottom: 16px;
}
.archive-hero .hero-sub {
  font-size: 1.05rem; color: var(--fg50); line-height: 1.6;
  max-width: 640px; margin: 0 auto;
}

/* ───── Filter section ───── */
.filter-section { padding: 32px 0 80px; }
.filter-row {
  display: flex; flex-wrap: wrap; gap: 10px; justify-content: center;
  margin-bottom: 40px;
}
.filter-pill {
  padding: 9px 18px; border-radius: 999px; border: 1.5px solid var(--border);
  background: var(--bg); color: var(--fg50); font-size: .88rem; font-weight: 600;
  cursor: pointer; transition: all .15s; font-family: inherit;
}
.filter-pill:hover { color: var(--fg); border-color: var(--fg30); }
.filter-pill.active {
  background: var(--fg); color: var(--bg); border-color: var(--fg);
}

/* ───── Post grid + cards ───── */
.nl-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
@media (max-width: 1024px) { .nl-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px)  { .nl-grid { grid-template-columns: 1fr; } }

.nl-card {
  display: block;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform .2s, box-shadow .2s, border-color .2s;
  color: var(--fg);
  text-decoration: none;
}
.nl-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(201,168,76,.3);
}
.nl-img {
  width: 100%; height: 200px; object-fit: cover;
}
.nl-card-body { padding: 20px 22px 24px; }
.nl-card h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.18rem; font-weight: 700; line-height: 1.3;
  margin: 12px 0 8px; color: var(--fg);
}
.nl-card .nl-date {
  font-size: .78rem; color: var(--fg30); font-weight: 600;
  text-transform: uppercase; letter-spacing: .5px; margin-bottom: 10px;
}
.nl-card .nl-excerpt {
  color: var(--fg50); font-size: .9rem; line-height: 1.55;
}

/* ───── Category pills ───── */
.cat-pill {
  display: inline-block;
  font-size: .68rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 1px;
  padding: 4px 10px; border-radius: 999px;
}
.cat-physical  { background: rgba(46,196,182,.12); color: var(--teal-dark); }
.cat-mental    { background: rgba(74,144,226,.12); color: var(--blue); }
.cat-spiritual { background: rgba(201,168,76,.14); color: #8a7220; }

/* ───── Individual post page ───── */
.post { padding: 56px 0 32px; }
.post-container { max-width: 760px; padding: 0 24px; }
.back-link {
  display: inline-block; font-size: .85rem; color: var(--fg50);
  font-weight: 600; margin-bottom: 24px; transition: color .15s;
}
.back-link:hover { color: var(--gold); }

.post-meta {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  font-size: .85rem; color: var(--fg50); margin-bottom: 18px;
}
.post-meta-sep { color: var(--fg30); }

.post-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.9rem, 4.5vw, 2.8rem);
  font-weight: 800; line-height: 1.15;
  letter-spacing: -.015em; margin-bottom: 16px;
}
.post-excerpt {
  font-size: 1.1rem; line-height: 1.6; color: var(--fg50);
  margin-bottom: 32px; font-weight: 400;
}

.post-hero-img {
  width: 100%; height: 420px; object-fit: cover;
  border-radius: var(--radius-lg);
  margin-bottom: 40px;
}
@media (max-width: 640px) { .post-hero-img { height: 280px; } }

.post-body p {
  font-size: 1.05rem; line-height: 1.78;
  margin-bottom: 22px; color: #2a3346;
}
.post-body p:first-child::first-letter {
  font-family: 'Playfair Display', serif;
  font-size: 3.2rem; font-weight: 800; float: left;
  line-height: .9; padding: 6px 10px 0 0; color: var(--gold);
}

.pull-quote {
  font-family: 'Playfair Display', serif;
  font-size: 1.55rem; line-height: 1.4; font-weight: 700;
  color: var(--fg); font-style: italic;
  border-left: 4px solid var(--gold);
  padding: 8px 0 8px 24px;
  margin: 36px 0;
}

/* ───── Big CTA (Join the Newsletter) ───── */
.big-cta {
  position: relative;
  padding: 96px 0;
  background:
    radial-gradient(circle at 85% 15%, rgba(201,168,76,.16) 0%, transparent 55%),
    linear-gradient(135deg, #0F1A2E 0%, #1a2440 100%);
  color: #fff;
  overflow: hidden;
  text-align: center;
}
.big-cta::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    radial-gradient(circle at 12% 88%, rgba(201,168,76,.08) 0%, transparent 38%);
  pointer-events: none;
}
.big-cta-inner { position: relative; max-width: 640px; margin: 0 auto; }
.big-cta-eyebrow {
  color: var(--gold);
  font-size: .78rem; font-weight: 700;
  letter-spacing: 2.4px; text-transform: uppercase;
  margin-bottom: 18px;
}
.big-cta-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.1rem, 5.2vw, 3.2rem);
  font-weight: 800; line-height: 1.08;
  letter-spacing: -.02em; color: #fff;
  margin-bottom: 18px;
}
.big-cta-sub {
  color: rgba(255,255,255,.72);
  font-size: 1.05rem; line-height: 1.6;
  margin-bottom: 36px;
}
.big-cta-form {
  display: flex; gap: 12px;
  max-width: 520px; margin: 0 auto;
}
.big-cta-input {
  flex: 1; padding: 16px 22px;
  border-radius: 999px;
  border: 1.5px solid rgba(255,255,255,.16);
  background: rgba(255,255,255,.06);
  color: #fff; font-size: 1rem;
  font-family: inherit; outline: none;
  transition: border-color .2s, background .2s;
}
.big-cta-input::placeholder { color: rgba(255,255,255,.42); }
.big-cta-input:focus {
  border-color: var(--gold);
  background: rgba(255,255,255,.10);
  box-shadow: 0 0 0 4px rgba(201,168,76,.12);
}
.big-cta-btn {
  padding: 16px 30px;
  border-radius: 999px;
  border: none;
  background: var(--gold);
  color: #0F1A2E;
  font-family: inherit; font-size: 1rem; font-weight: 800;
  letter-spacing: .3px;
  cursor: pointer;
  transition: transform .15s, box-shadow .15s, background .2s;
  white-space: nowrap;
}
.big-cta-btn:hover {
  background: var(--gold-light);
  transform: translateY(-1px);
  box-shadow: 0 10px 28px rgba(201,168,76,.32);
}
.big-cta-success {
  display: none;
  margin-top: 22px;
  color: var(--gold);
  font-weight: 600;
  font-size: .95rem;
}
.big-cta-success.show { display: block; }

@media (max-width: 640px) {
  .big-cta { padding: 72px 0; }
  .big-cta-form { flex-direction: column; padding: 0 8px; }
  .big-cta-btn { padding: 14px 24px; }
}

/* ───── Related grid ───── */
.related-section { padding: 64px 0 80px; background: var(--bg3); }
.related-section h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem; font-weight: 800; margin-bottom: 28px; text-align: center;
}

/* ───── Footer ───── */
.footer { background: #0F1A2E; color: rgba(255,255,255,.7); padding: 56px 0 0; }
.footer-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px;
  padding-bottom: 40px;
}
.footer-col h4 {
  color: #fff; font-size: .72rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 1px; margin-bottom: 14px;
}
.footer-col p, .footer-col a { display: block; margin-bottom: 8px; font-size: .9rem; line-height: 1.6; }
.footer-col a:hover { color: var(--gold); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 20px 0; text-align: center; font-size: .82rem;
  color: rgba(255,255,255,.4);
}
@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
}
