/* Blog styles for the Marketing Plan Pros marketing site.
   Tokens and header/footer treatment mirror index.html so the blog reads as
   part of the same site rather than a bolted-on subdomain. */

:root {
  --navy-950: #0a101f;
  --navy-900: #0d1526;
  --navy-850: #101a30;
  --navy-800: #16213a;
  --gold: #f5c426;
  --gold-bright: #ffd23b;
  --gold-deep: #d9a40e;
  --slate: #64748b;
  --slate-light: #cbd5e1;

  /* Same themed surfaces as the homepage, so the toggle carries across. */
  --page: #0d1526;
  --header-bg: #0a101f;
  --footer-bg: #0a101f;
  --surface: #101a30;
  --card-border: rgba(255,255,255,0.07);
  --ink: #ffffff;
  --ink-soft: #cbd5e1;
  --ink-muted: #64748b;
  --rule: rgba(255,255,255,0.06);
  --prose: #e8ecf5;
  --code-bg: rgba(255,255,255,0.07);
  --glow-core: rgba(232,185,35,0.13);
  --glow-halo: rgba(116,108,214,0.12);
}

:root[data-theme="light"] {
  --page: #f6f7fb;
  --header-bg: #ffffff;
  --footer-bg: #101a30;
  --surface: #ffffff;
  --card-border: #e5e9f2;
  --ink: #16223f;
  --ink-soft: #43536f;
  --ink-muted: #5d6b85;
  --rule: rgba(16,26,51,0.08);
  --prose: #26324c;
  --code-bg: rgba(16,26,51,0.06);
  --glow-core: rgba(232,185,35,0.20);
  --glow-halo: rgba(26,26,46,0.05);
}

/* Cursor spotlight, matching the homepage and the portal. */
#cursor-glow {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  opacity: 0; transition: opacity 600ms ease;
  background:
    radial-gradient(360px 360px at var(--gx, 50%) var(--gy, 40%), var(--glow-core), transparent 70%),
    radial-gradient(760px 760px at var(--gx, 50%) var(--gy, 40%), var(--glow-halo), transparent 72%);
}
#cursor-glow.lit { opacity: .9; }
#cursor-glow.boost { opacity: 1; transition-duration: 180ms; }
@media (pointer: coarse) { #cursor-glow { display: none; } }
@media (prefers-reduced-motion: reduce) { #cursor-glow { display: none; } }
.site-header, main, .site-footer { position: relative; z-index: 1; }

.theme-toggle {
  width: 40px; height: 40px; border-radius: 10px; flex-shrink: 0;
  background: transparent; border: 1px solid var(--card-border); color: var(--ink);
  display: inline-flex; align-items: center; justify-content: center; cursor: pointer;
  transition: border-color .15s ease, color .15s ease, background .15s ease;
}
.theme-toggle:hover { border-color: var(--gold); color: var(--gold); background: rgba(245,196,38,0.08); }
.theme-toggle svg { width: 19px; height: 19px; }
:root[data-theme="light"] .theme-toggle .moon,
:root:not([data-theme="light"]) .theme-toggle .sun { display: none; }

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Poppins', 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: var(--page);
  color: var(--ink);
  transition: background .25s ease, color .25s ease;
  -webkit-font-smoothing: antialiased;
}
.container { max-width: 1240px; margin: 0 auto; padding: 0 24px; }
.container.narrow { max-width: 760px; }

/* ===== Header ===== */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--header-bg);
  border-bottom: 1px solid var(--rule);
}
.site-header .container {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; padding-top: 12px; padding-bottom: 12px;
}
.brand { display: inline-flex; flex-direction: column; align-items: center; gap: 4px; text-decoration: none; flex-shrink: 0; }
.brand-word { line-height: 1; text-align: center; }
.brand-word .l1 { display: block; font-size: 15px; font-weight: 700; letter-spacing: 0.14em; color: var(--gold); }
.brand-word .l2 { display: block; font-size: 9px; font-weight: 600; letter-spacing: 0.42em; color: var(--gold); margin-top: 3px; padding-left: 0.42em; }
.main-nav { display: flex; align-items: center; gap: 34px; }
.main-nav a { color: var(--ink); text-decoration: none; font-size: 15.5px; font-weight: 600; transition: color .15s ease; }
.main-nav a:hover, .main-nav a.is-current { color: var(--gold); }

/* Resources dropdown, mirroring the homepage nav. */
.nav-drop { position: relative; }
.nav-drop-btn {
  background: none; border: none; color: var(--ink); cursor: pointer; padding: 0;
  font-family: inherit; font-size: 15.5px; font-weight: 600;
  display: inline-flex; align-items: center; gap: 7px;
  transition: color .15s ease;
}
.nav-drop-btn .caret { font-size: 10px; transition: transform .15s ease; }
.nav-drop-btn:hover, .nav-drop:hover .nav-drop-btn, .nav-drop.open .nav-drop-btn { color: var(--gold); }
.nav-drop:hover .caret, .nav-drop.open .caret { transform: rotate(180deg); }
.nav-drop-menu {
  position: absolute; top: 100%; left: 50%; transform: translateX(-50%);
  padding-top: 16px; display: none; z-index: 130;
}
.nav-drop:hover .nav-drop-menu, .nav-drop.open .nav-drop-menu, .nav-drop:focus-within .nav-drop-menu { display: block; }
.nav-drop-panel {
  background: var(--header-bg); border: 1px solid var(--card-border);
  border-radius: 13px; padding: 8px; min-width: 232px;
  display: flex; flex-direction: column; gap: 2px;
  box-shadow: 0 18px 44px rgba(0,0,0,0.5);
}
.nav-drop-panel a {
  color: var(--ink); text-decoration: none; font-size: 15px; font-weight: 600;
  padding: 11px 15px; border-radius: 9px; white-space: nowrap;
  transition: background .12s ease, color .12s ease;
}
.nav-drop-panel a:hover { background: rgba(245,196,38,0.10); color: var(--gold); }
.btn-gold {
  display: inline-block; background: linear-gradient(135deg, var(--gold-bright), var(--gold-deep));
  color: var(--navy-950); font-weight: 700; font-size: 15px; padding: 12px 22px;
  border-radius: 10px; text-decoration: none; border: none; cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease;
}
.btn-gold:hover { transform: translateY(-1px); box-shadow: 0 10px 26px rgba(232,185,35,0.25); }
.btn-ghost {
  display: inline-block; border: 1px solid var(--card-border); color: var(--ink);
  padding: 12px 22px; border-radius: 10px; text-decoration: none; font-weight: 600; font-size: 15px;
  transition: border-color .15s ease, background .15s ease;
}
.btn-ghost:hover { border-color: var(--gold); background: rgba(232,185,35,0.08); }

/* ===== Blog index ===== */
.blog-hero { padding: 84px 0 44px; background: radial-gradient(900px 420px at 78% -10%, rgba(232,185,35,0.16), transparent 62%); }
.eyebrow { font-size: 12.5px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold); margin-bottom: 14px; }
.blog-hero h1 { font-size: clamp(32px, 5vw, 52px); font-weight: 800; line-height: 1.12; max-width: 16ch; }
.lede { margin-top: 18px; font-size: 17.5px; line-height: 1.7; color: var(--ink-soft); max-width: 62ch; }

.lead-card {
  display: block; text-decoration: none; color: inherit; margin: 40px 0 32px;
  background: var(--surface); border: 1px solid var(--card-border); border-radius: 20px; overflow: hidden;
  transition: transform .2s ease, border-color .2s ease;
}
.lead-card:hover { transform: translateY(-3px); border-color: rgba(232,185,35,0.4); }
.lead-art svg, .card-art svg, .post-cover svg { display: block; width: 100%; height: auto; }
.lead-body { padding: 30px 34px 34px; }
.lead-body h2 { font-size: clamp(24px, 3.4vw, 34px); font-weight: 800; line-height: 1.2; margin-bottom: 12px; }

.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 24px; padding-bottom: 90px; }
.card {
  display: flex; flex-direction: column; text-decoration: none; color: inherit;
  background: var(--surface); border: 1px solid var(--card-border); border-radius: 18px; overflow: hidden;
  transition: transform .2s ease, border-color .2s ease;
}
.card:hover { transform: translateY(-3px); border-color: rgba(232,185,35,0.4); }
.card-body { padding: 22px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.card-body h3 { font-size: 20px; font-weight: 700; line-height: 1.3; margin-bottom: 10px; }
.card-excerpt { color: var(--ink-soft); font-size: 14.8px; line-height: 1.65; flex: 1; }
.card-meta, .post-meta { color: var(--ink-muted); font-size: 13px; font-weight: 500; margin-top: 14px; }

/* ===== Post ===== */
.post { padding: 46px 0 90px; }
.crumbs { margin-bottom: 26px; }
.crumbs a { color: var(--ink-soft); text-decoration: none; font-size: 14px; font-weight: 600; }
.crumbs a:hover { color: var(--gold); }
.post h1 { font-size: clamp(30px, 4.6vw, 46px); font-weight: 800; line-height: 1.15; letter-spacing: -0.01em; }
.post .post-meta { margin-top: 14px; }
.post-cover { margin: 32px 0 40px; border-radius: 16px; overflow: hidden; border: 1px solid var(--card-border); }

.prose { font-size: 17.5px; line-height: 1.78; color: var(--prose); }
.prose > * + * { margin-top: 22px; }
.prose h2 { font-size: 27px; font-weight: 800; line-height: 1.25; margin-top: 48px; color: var(--ink); }
.prose h3 { font-size: 21px; font-weight: 700; line-height: 1.3; margin-top: 36px; color: var(--ink); }
.prose h4 { font-size: 17.5px; font-weight: 700; margin-top: 30px; color: var(--gold); }
.prose a { color: var(--gold); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.prose a:hover { color: var(--gold-bright); }
.prose strong { color: var(--ink); font-weight: 700; }
.prose ul, .prose ol { padding-left: 24px; }
.prose li { margin-top: 10px; }
.prose li::marker { color: var(--gold); }
.prose blockquote {
  border-left: 3px solid var(--gold); padding: 6px 0 6px 22px; margin-left: 0;
  color: var(--ink); font-size: 20px; line-height: 1.6; font-weight: 600; font-style: normal;
}
.prose code {
  background: var(--code-bg); border: 1px solid var(--card-border);
  padding: 2px 7px; border-radius: 6px; font-size: 0.88em;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--gold-bright);
}
.prose hr { border: none; border-top: 1px solid var(--rule); margin: 40px 0; }

.post-cta {
  margin-top: 56px; padding: 30px 32px; border-radius: 18px;
  background: linear-gradient(140deg, rgba(232,185,35,0.13), rgba(232,185,35,0.03));
  border: 1px solid rgba(232,185,35,0.25);
}
.post-cta h3 { font-size: 22px; font-weight: 800; margin-bottom: 10px; }
.post-cta p { color: var(--ink-soft); font-size: 15.5px; line-height: 1.7; }
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 20px; }

.post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 44px; }
.post-nav-item {
  display: block; padding: 20px 22px; border-radius: 14px; text-decoration: none; color: inherit;
  background: var(--surface); border: 1px solid var(--card-border);
  transition: border-color .2s ease;
}
.post-nav-item:hover { border-color: rgba(232,185,35,0.4); }
.post-nav-item span { display: block; color: var(--gold); font-size: 12.5px; font-weight: 700; letter-spacing: 0.06em; margin-bottom: 6px; }
.post-nav-item strong { font-size: 15.5px; font-weight: 600; line-height: 1.4; }
.post-nav-item.align-right { text-align: right; }

/* ===== Footer ===== */
.site-footer { background: var(--footer-bg); border-top: 1px solid var(--rule); padding: 60px 0 34px; color: #fff; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 44px; }
.footer-desc { color: #93a0b8; font-size: 14.5px; line-height: 1.7; margin-top: 18px; max-width: 46ch; }
.footer-col h4 { font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold); margin-bottom: 16px; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 11px; }
.footer-col a { color: #cbd5e1; text-decoration: none; font-size: 14.5px; }
.footer-col a:hover { color: var(--gold); }
.footer-bottom { margin-top: 44px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,0.08); color: #93a0b8; font-size: 13.5px; }

@media (max-width: 880px) {
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .post-nav { grid-template-columns: 1fr; }
  .post-nav-item.align-right { text-align: left; }
  .main-nav { display: none; }
  .header-cta { padding: 10px 16px; font-size: 14px; }
}
@media (max-width: 520px) {
  .lead-body, .card-body { padding: 22px; }
  .prose { font-size: 16.6px; }
  .post-cta { padding: 24px 22px; }
}
