/* PrepRise blog — standalone stylesheet (no dependency on the hashed app bundle).
   Mirrors the app's brand tokens: charcoal-on-white, emerald as the scarce accent,
   Space Grotesk for display + Manrope for body. Editorial, conventional, disciplined. */
:root {
  --bg: #ffffff;
  --bg-tint: #f3f9f4;
  --surface: #ffffff;
  --border: #e5ece7;
  --hairline: #eef3ef;
  --text: #15211b;
  --text-soft: #36423c;
  --muted: #5a6675;
  --accent: #1f9e74;
  --accent-deep: #0f7a55;
  --ring: rgba(31,158,116,0.35);
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background:
    radial-gradient(120% 60% at 50% -10%, #eaf5ec 0%, rgba(234,245,236,0) 55%),
    var(--bg);
  color: var(--text);
  font-family: 'Manrope', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
.wrap { max-width: 720px; margin: 0 auto; padding: 40px 24px 96px; }

/* ── Masthead ─────────────────────────────────────────────── */
.masthead {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; margin-bottom: 36px;
}
.brand-link { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-link .mark svg { display: block; }
.brand {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 20px; font-weight: 800; letter-spacing: -0.02em; color: var(--text);
}
.brand span { color: var(--accent); }
.masthead-cta {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 14px; font-weight: 700; color: var(--accent-deep);
  background: rgba(31,158,116,0.08); border: 1px solid rgba(31,158,116,0.22);
  border-radius: 99px; padding: 8px 16px; text-decoration: none;
  transition: background 0.15s;
}
.masthead-cta:hover { background: rgba(31,158,116,0.15); }

/* ── Blog index ───────────────────────────────────────────── */
.blog-intro { margin-bottom: 8px; }
.eyebrow {
  font-family: 'Space Grotesk', sans-serif; font-size: 13px; font-weight: 700;
  letter-spacing: 0.02em; color: var(--accent-deep); margin-bottom: 8px;
}
h1.blog-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(30px, 5vw, 42px); font-weight: 700; letter-spacing: -0.025em;
  line-height: 1.05; color: var(--text); text-wrap: balance;
}
.blog-dek { color: var(--muted); font-size: 16px; margin-top: 12px; max-width: 60ch; }

.post-list { list-style: none; margin-top: 40px; }
.post-list li { border-top: 1px solid var(--hairline); }
.post-list li:last-child { border-bottom: 1px solid var(--hairline); }
.post-row {
  display: block; text-decoration: none; color: inherit;
  padding: 26px 4px; transition: background 0.15s, padding-left 0.15s;
  border-radius: 12px;
}
.post-row:hover { background: var(--bg-tint); padding-left: 14px; }
.post-row .post-meta { font-size: 13px; color: var(--muted); font-weight: 600; margin-bottom: 8px; }
.post-row h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 21px; font-weight: 700; letter-spacing: -0.015em; line-height: 1.25;
  color: var(--text); margin-bottom: 8px; text-wrap: balance;
}
.post-row p { color: var(--text-soft); font-size: 15px; margin: 0; }
.post-row .read-more {
  display: inline-block; margin-top: 12px; font-size: 14px; font-weight: 700;
  color: var(--accent-deep);
}

/* ── Article ──────────────────────────────────────────────── */
.article-head { margin-bottom: 32px; }
.back-btn {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 14px; font-weight: 700; color: var(--accent-deep);
  background: rgba(31,158,116,0.08); border: 1px solid rgba(31,158,116,0.22);
  border-radius: 99px; padding: 7px 16px 7px 12px;
  text-decoration: none; margin-bottom: 28px; transition: background 0.15s;
}
.back-btn:hover { background: rgba(31,158,116,0.15); }
.back-btn svg { flex-shrink: 0; }
.article-meta { font-size: 14px; color: var(--muted); font-weight: 600; margin-bottom: 12px; }
.article-meta .dot { margin: 0 8px; opacity: 0.5; }
h1.article-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(28px, 4.6vw, 40px); font-weight: 700; letter-spacing: -0.025em;
  line-height: 1.08; color: var(--text); text-wrap: balance;
}
.lead {
  background: var(--bg-tint); border: 1px solid var(--border); border-radius: 16px;
  padding: 20px 22px; color: var(--text-soft); font-size: 16px; margin: 28px 0 8px;
}
.lead strong { color: var(--text); }

article { font-size: 16.5px; }
article h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 24px; font-weight: 700; letter-spacing: -0.015em;
  margin: 42px 0 14px; color: var(--text); text-wrap: balance;
}
article h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 18px; font-weight: 700; margin: 28px 0 10px; color: var(--text);
}
article p { margin-bottom: 16px; color: var(--text-soft); }
article ul, article ol { margin: 0 0 16px 22px; }
article li { margin-bottom: 10px; color: var(--text-soft); }
article strong { color: var(--text); font-weight: 700; }
article a { color: var(--accent-deep); font-weight: 600; }
article a:hover { text-decoration: underline; }
:where(a):focus-visible { outline: none; box-shadow: 0 0 0 3px var(--ring); border-radius: 4px; }

/* Takeaways / key-facts box — machine-readable summary, good for AI + skimmers */
.takeaways {
  background: linear-gradient(135deg, rgba(31,158,116,0.09), rgba(31,158,116,0.04));
  border: 1px solid rgba(31,158,116,0.28); border-radius: 16px;
  padding: 22px 24px; margin: 32px 0;
}
.takeaways h2 { margin: 0 0 12px; font-size: 18px; }
.takeaways ul { margin: 0 0 0 20px; }
.takeaways li { color: var(--text-soft); }

/* End-of-post soft CTA */
.post-cta {
  margin: 40px 0 8px; padding: 26px 24px; border-radius: 18px;
  background: var(--surface); border: 1px solid var(--border);
  box-shadow: 0 10px 30px -18px rgba(15,122,85,0.4);
}
.post-cta h2 {
  font-family: 'Space Grotesk', sans-serif; font-size: 20px; font-weight: 700;
  margin: 0 0 8px; color: var(--text);
}
.post-cta p { margin: 0 0 16px; color: var(--text-soft); font-size: 15px; }
.post-cta .cta-btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--accent); color: #fff; font-weight: 700; font-size: 15px;
  padding: 11px 22px; border-radius: 99px; text-decoration: none;
  transition: background 0.15s, transform 0.15s;
}
.post-cta .cta-btn:hover { background: var(--accent-deep); transform: translateY(-1px); }

/* ── Footer ───────────────────────────────────────────────── */
.footer {
  margin-top: 52px; padding-top: 24px; border-top: 1px solid var(--border);
  color: var(--muted); font-size: 14px; line-height: 1.6;
}
.footer-links { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 16px; }
.footer-links a { font-size: 15px; color: var(--accent-deep); font-weight: 600; text-decoration: none; }
.footer-links a:hover { text-decoration: underline; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .post-row, .post-cta .cta-btn, .masthead-cta, .back-btn { transition: none; }
}
