/* ============================================================
   LANDINGPEAK — blog: index + article
   loads after style.css and reuses its tokens
   ============================================================ */

/* ---------- shared shell ---------- */

.blog-top .topbar-inner { padding: 14px 24px; }
.back-link {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.14em;
  color: var(--text-faint); text-decoration: none;
  transition: color 0.25s ease, transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.back-link:hover { color: var(--accent); transform: translateX(-3px); }

.blog-wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }

/* ---------- index hero ---------- */

.blog-hero { position: relative; padding: 148px 0 56px; overflow: hidden; }
.blog-hero .beam-halo { top: -40%; left: 40%; opacity: 0.55; }
.blog-kicker { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.2em; color: var(--accent); margin-bottom: 18px; }
.blog-hero h1 {
  font-family: var(--font-head); font-weight: 800;
  font-size: clamp(38px, 5.4vw, 68px); line-height: 1.02; letter-spacing: -0.035em;
  margin-bottom: 20px;
}
.blog-hero .lede { max-width: 620px; color: var(--text-dim); font-size: 18px; }

/* ---------- post list ---------- */

.post-list { padding: 20px 0 90px; display: flex; flex-direction: column; gap: 14px; }

.post-card {
  position: relative; display: grid; grid-template-columns: 150px 1fr auto;
  gap: 28px; align-items: center;
  padding: 30px 32px; text-decoration: none; color: inherit;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--panel); overflow: hidden;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.35s ease, box-shadow 0.35s ease;
}
.post-card::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: radial-gradient(500px circle at var(--mx, 50%) var(--my, 120%), rgba(206, 141, 235, 0.07), transparent 65%);
  opacity: 0; transition: opacity 0.4s ease;
}
.post-card:hover {
  transform: translateY(-4px); border-color: rgba(206, 141, 235, 0.4);
  box-shadow: 0 14px 50px rgba(0, 0, 0, 0.5), 0 0 36px rgba(160, 90, 220, 0.12);
}
.post-card:hover::before { opacity: 1; }

.post-meta { font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.16em; color: var(--text-faint); line-height: 2; }
.post-meta b, .post-meta span { display: block; }
.post-meta b { color: var(--accent); font-weight: 400; }
.post-title { font-family: var(--font-head); font-weight: 700; letter-spacing: -0.025em; font-size: clamp(20px, 2.3vw, 27px); line-height: 1.2; margin-bottom: 8px; }
.post-excerpt { color: var(--text-dim); font-size: 14.5px; max-width: 620px; }
.post-read {
  display: inline-block; margin-top: 16px;
  font-size: 9.5px; letter-spacing: 0.16em; color: var(--accent);
  padding: 8px 16px; border-radius: 999px;
  border: 1px solid rgba(206, 141, 235, 0.35);
  background: linear-gradient(100deg, rgba(139, 92, 246, 0.12), rgba(232, 108, 200, 0.05));
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s ease, box-shadow 0.3s ease, color 0.3s ease;
}
.post-card:hover .post-read {
  transform: translateY(-2px); color: #F3D9FF;
  border-color: var(--accent);
  box-shadow: 0 6px 22px rgba(160, 90, 220, 0.35);
}
.post-arrow {
  font-family: var(--font-mono); font-size: 20px; color: var(--text-faint);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), color 0.35s ease;
}
.post-card:hover .post-arrow { color: var(--accent); transform: translateX(5px); }

.post-soon {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  padding: 26px; border: 1px dashed rgba(255, 255, 255, 0.1); border-radius: var(--radius);
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.16em; color: var(--text-faint);
}

/* ---------- article ---------- */

.article { position: relative; padding: 132px 0 40px; overflow: hidden; }
.article .beam-halo { top: -50%; left: 46%; opacity: 0.5; }
.article-head { position: relative; z-index: 1; max-width: 760px; margin: 0 auto; text-align: center; }
.article-back { display: inline-flex; margin-bottom: 26px; }
.article-tag {
  display: inline-block; font-family: var(--font-mono); font-size: 9.5px; letter-spacing: 0.18em;
  color: var(--accent); border: 1px solid rgba(206, 141, 235, 0.35); border-radius: 999px;
  padding: 7px 16px; margin-bottom: 24px;
  background: linear-gradient(100deg, rgba(139, 92, 246, 0.14), rgba(232, 108, 200, 0.07));
}
.article-head h1 {
  font-family: var(--font-head); font-weight: 800;
  font-size: clamp(32px, 4.6vw, 56px); line-height: 1.04; letter-spacing: -0.035em;
  margin-bottom: 22px;
}
.article-head h1 em {
  font-family: var(--font-serif); font-style: italic; font-weight: 400;
  color: var(--accent); letter-spacing: -0.01em;
  text-shadow: 0 0 44px rgba(206, 141, 235, 0.5);
}
.article-byline {
  display: flex; justify-content: center; flex-wrap: wrap; gap: 10px 22px;
  font-family: var(--font-mono); font-size: 9.5px; letter-spacing: 0.16em; color: var(--text-faint);
  padding-top: 22px; border-top: 1px solid var(--line);
}
.article-byline b { color: var(--text-dim); font-weight: 400; }

/* body */
.article-body {
  position: relative; z-index: 1;
  max-width: 680px; margin: 0 auto; padding: 46px 0 20px;
  font-size: 17.5px; line-height: 1.75; color: #C8CCD4;
}
.article-body > p { margin-bottom: 22px; }
.article-body strong { color: var(--text); font-weight: 600; }

.article-body h2 {
  font-family: var(--font-head); font-weight: 700; letter-spacing: -0.028em;
  font-size: clamp(23px, 2.6vw, 31px); line-height: 1.18; color: var(--text);
  margin: 46px 0 16px;
}
.article-body h3 {
  font-family: var(--font-head); font-weight: 600; letter-spacing: -0.02em;
  font-size: 19px; color: var(--text); margin: 30px 0 10px;
}

.lead-para { font-size: 20px; color: var(--text-dim); }

/* numbered steps */
.steps { list-style: none; counter-reset: step; margin: 26px 0 30px; }
.steps > li {
  position: relative; counter-increment: step;
  padding: 0 0 22px 52px; margin-bottom: 22px;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.07);
}
.steps > li:last-child { border-bottom: none; margin-bottom: 0; }
.steps > li::before {
  content: counter(step);
  position: absolute; left: 0; top: 1px;
  width: 32px; height: 32px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono); font-size: 13px; color: var(--accent);
  border: 1px solid rgba(206, 141, 235, 0.4);
  background: rgba(139, 92, 246, 0.08);
}
.steps b {
  display: block; font-family: var(--font-head); font-weight: 700; letter-spacing: -0.02em;
  font-size: 18px; color: var(--text); margin-bottom: 6px;
}
.steps p { font-size: 16px; margin: 0; }

/* pull quote */
.pull {
  margin: 34px 0; padding: 26px 30px;
  border-left: 2px solid var(--accent);
  background: linear-gradient(100deg, rgba(139, 92, 246, 0.09), transparent 70%);
  border-radius: 0 14px 14px 0;
  font-family: var(--font-head); font-weight: 600; letter-spacing: -0.02em;
  font-size: 20px; line-height: 1.4; color: var(--text);
}

/* the "don't bother" box */
.warn-box {
  margin: 32px 0; padding: 24px 28px;
  border: 1px solid rgba(248, 113, 113, 0.25); border-radius: 16px;
  background: rgba(248, 113, 113, 0.04);
}
.warn-box p:last-child { margin-bottom: 0; }
.warn-label { font-family: var(--font-mono); font-size: 9.5px; letter-spacing: 0.18em; color: var(--pain); margin-bottom: 12px; }

/* checklist */
.check-list { list-style: none; margin: 22px 0 30px; display: flex; flex-direction: column; gap: 11px; }
.check-list li { position: relative; padding-left: 28px; font-size: 16px; }
.check-list li::before { content: "✓"; position: absolute; left: 2px; color: var(--ok); font-weight: 700; }

.article-body a:not(.btn) {
  color: var(--accent); text-decoration: none;
  border-bottom: 1px solid rgba(206, 141, 235, 0.35);
  transition: border-color 0.2s ease, text-shadow 0.2s ease;
}
.article-body a:not(.btn):hover { border-color: var(--accent); text-shadow: 0 0 14px rgba(206, 141, 235, 0.5); }

/* sources */
.sources {
  max-width: 680px; margin: 0 auto; padding: 26px 0 0;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.1em; line-height: 2.2; color: var(--text-faint);
}
.sources a { color: var(--text-dim); text-decoration: none; border-bottom: 1px solid rgba(255,255,255,0.12); }
.sources a:hover { color: var(--accent); }

/* end CTA */
.article-cta { padding: 60px 0 96px; }
.cta-card {
  position: relative; max-width: 760px; margin: 0 auto; padding: 44px;
  border: 1px solid rgba(206, 141, 235, 0.3); border-radius: var(--radius);
  background: linear-gradient(165deg, rgba(139, 92, 246, 0.1), var(--panel) 60%);
  text-align: center; overflow: hidden;
}
.cta-card h2 {
  font-family: var(--font-head); font-weight: 700; letter-spacing: -0.03em;
  font-size: clamp(24px, 3vw, 36px); line-height: 1.1; margin-bottom: 14px;
}
.cta-card p { color: var(--text-dim); font-size: 16px; max-width: 480px; margin: 0 auto 26px; }
.cta-row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ---------- responsive ---------- */

@media (max-width: 860px) {
  .post-card { grid-template-columns: 1fr; gap: 16px; padding: 26px 24px; }
  .post-meta { display: flex; gap: 16px; line-height: 1.6; }
  .post-meta b, .post-meta span { display: inline; }
  .post-arrow { display: none; }
}

@media (max-width: 680px) {
  .blog-wrap { padding: 0 16px; }
  .blog-hero { padding: 116px 0 40px; }
  .blog-hero h1 { font-size: 34px; }
  .blog-hero .lede { font-size: 16px; }
  .post-list { padding: 12px 0 70px; }

  .article { padding: 112px 0 30px; }
  .article-head h1 { font-size: 30px; }
  .article-body { font-size: 16.5px; padding: 34px 0 16px; }
  .lead-para { font-size: 18px; }
  .article-body h2 { font-size: 24px; margin: 36px 0 14px; }
  .pull { font-size: 17px; padding: 20px 22px; }
  .steps > li { padding-left: 44px; }
  .steps > li::before { width: 28px; height: 28px; font-size: 12px; }
  .steps b { font-size: 17px; }
  .article-cta { padding: 40px 0 80px; }
  .cta-card { padding: 32px 22px; }
  .cta-row { flex-direction: column; }
  .cta-row .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .post-card, .back-link, .post-arrow { transition: none !important; }
}
