/* Limitless Academy blog styles. Matches the landing page design language. */

:root {
  --ink: #0f172a;
  --body: #334155;
  --muted: #64748b;
  --faint: #94a3b8;
  --line: #e2e8f0;
  --wash: #f8fafc;
  --accent: #2563eb;
  --accent-dark: #1d4ed8;
  --accent-wash: #eff6ff;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Outfit', system-ui, -apple-system, sans-serif;
  background: #ffffff;
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection { background: var(--accent); color: #fff; }

.display {
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.display-medium {
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 760px; margin: 0 auto; padding: 0 24px; }

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 16px 24px; max-width: 1200px; margin: 0 auto;
}
.nav a.wordmark { font-size: 20px; color: var(--ink); text-decoration: none; }
.nav-links { display: flex; gap: 32px; font-size: 15px; font-weight: 500; }
.nav-links a { color: #475569; text-decoration: none; transition: color .2s; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--accent); }
.nav .cta {
  display: inline-flex; align-items: center; font-weight: 500; font-size: 14px;
  padding: 10px 20px; border-radius: 6px; background: var(--ink); color: #fff;
  text-decoration: none; transition: all .2s;
}
.nav .cta:hover { background: var(--accent); transform: translateY(-1px); box-shadow: 0 4px 12px rgba(37,99,235,.25); }
@media (max-width: 860px) { .nav-links { display: none; } }

/* Blog index */
.index-head { padding: 72px 0 40px; }
.index-head h1 { font-size: clamp(40px, 6vw, 64px); line-height: 1.05; margin: 0 0 20px; }
.index-head p { font-size: 19px; line-height: 1.6; color: var(--body); max-width: 640px; margin: 0; }

.post-list { display: grid; gap: 20px; padding: 24px 0 80px; }
.post-card {
  display: block; padding: 28px; border: 1px solid var(--line); border-radius: 12px;
  text-decoration: none; color: inherit; background: #fff; transition: all .2s;
}
.post-card:hover { border-color: #cbd5e1; box-shadow: 0 8px 24px rgba(15,23,42,.06); transform: translateY(-2px); }
.post-card .kicker { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); font-weight: 600; }
.post-card h2 { font-size: 26px; line-height: 1.25; margin: 10px 0 10px; }
.post-card p { margin: 0 0 16px; color: var(--body); line-height: 1.6; font-size: 16px; }
.post-card .meta { font-size: 14px; color: var(--faint); }

/* Article */
.article-head { padding: 64px 0 32px; border-bottom: 1px solid var(--line); }
.breadcrumb { font-size: 14px; color: var(--muted); margin-bottom: 24px; }
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--accent); }
.article-head h1 { font-size: clamp(34px, 5vw, 52px); line-height: 1.1; margin: 0 0 20px; }
.article-meta { font-size: 15px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 8px 16px; }

.answer {
  background: var(--accent-wash); border-left: 3px solid var(--accent);
  padding: 20px 24px; border-radius: 0 8px 8px 0; margin: 36px 0;
}
.answer p { margin: 0; font-size: 17px; line-height: 1.6; color: #1e293b; }
.answer strong { color: var(--ink); }

article.body { padding: 8px 0 56px; font-size: 17.5px; line-height: 1.75; color: var(--body); }
article.body h2 {
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif; font-weight: 700;
  letter-spacing: -0.02em; color: var(--ink);
  font-size: 30px; line-height: 1.25; margin: 48px 0 16px;
}
article.body h3 {
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif; font-weight: 600;
  color: var(--ink); font-size: 21px; line-height: 1.35; margin: 34px 0 12px;
}
article.body p { margin: 0 0 20px; }
article.body a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
article.body ul, article.body ol { margin: 0 0 22px; padding-left: 24px; }
article.body li { margin-bottom: 10px; }
article.body strong { color: var(--ink); font-weight: 600; }
article.body blockquote {
  margin: 28px 0; padding: 4px 0 4px 22px; border-left: 3px solid var(--line);
  color: var(--muted); font-style: italic;
}
article.body code {
  background: var(--wash); border: 1px solid var(--line); border-radius: 4px;
  padding: 2px 6px; font-size: 15px;
}
article.body table {
  width: 100%; border-collapse: collapse; margin: 28px 0; font-size: 16px;
  display: block; overflow-x: auto;
}
article.body th, article.body td {
  border: 1px solid var(--line); padding: 12px 14px; text-align: left; vertical-align: top;
}
article.body th { background: var(--wash); color: var(--ink); font-weight: 600; }
article.body hr { border: 0; border-top: 1px solid var(--line); margin: 44px 0; }

/* Author box */
.author {
  display: flex; gap: 18px; align-items: flex-start; padding: 28px;
  background: var(--wash); border: 1px solid var(--line); border-radius: 12px; margin: 48px 0;
}
.author img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.author .name { font-size: 17px; font-weight: 600; color: var(--ink); margin: 0 0 6px; }
.author p { margin: 0; font-size: 15px; line-height: 1.6; color: var(--body); }

/* FAQ */
.faq { margin: 48px 0; }
.faq h2 { font-size: 30px; margin-bottom: 20px; }
.faq details {
  border: 1px solid var(--line); border-radius: 10px; padding: 18px 22px; margin-bottom: 12px;
  background: #fff;
}
.faq summary {
  cursor: pointer; font-weight: 600; color: var(--ink); font-size: 17px;
  list-style: none; display: flex; justify-content: space-between; gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent); font-size: 22px; line-height: 1; }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { margin: 14px 0 0; color: var(--body); line-height: 1.7; font-size: 16.5px; }

/* CTA band */
.cta-band {
  background: #0f172a; border-radius: 16px; padding: 48px 40px; margin: 56px 0 72px;
  text-align: center; color: #fff;
}
.cta-band h2 { font-size: clamp(26px, 4vw, 36px); line-height: 1.2; margin: 0 0 14px; color: #fff; }
.cta-band p { color: #cbd5e1; font-size: 17px; line-height: 1.6; margin: 0 auto 26px; max-width: 520px; }
.cta-band a {
  display: inline-flex; align-items: center; gap: 8px; background: var(--accent); color: #fff;
  font-weight: 600; font-size: 16px; padding: 14px 28px; border-radius: 8px; text-decoration: none;
  transition: all .2s;
}
.cta-band a:hover { background: #3b82f6; transform: translateY(-2px); }

/* Related */
.related { margin: 0 0 72px; }
.related h2 { font-size: 24px; margin: 0 0 18px; }
.related ul { list-style: none; padding: 0; margin: 0; }
.related li { padding: 14px 0; border-top: 1px solid var(--line); }
.related a { color: var(--ink); text-decoration: none; font-weight: 500; font-size: 17px; }
.related a:hover { color: var(--accent); }

/* Footer */
footer.site {
  background: #fff; border-top: 1px solid var(--line); padding: 48px 0 40px; margin-top: 40px;
}
.footer-row {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px;
  max-width: 1200px; margin: 0 auto; padding: 0 24px;
}
.footer-row a.wordmark { font-size: 22px; color: var(--ink); text-decoration: none; }
.footer-links { display: flex; flex-wrap: wrap; gap: 28px; }
.footer-links a { font-size: 15px; font-weight: 500; color: var(--muted); text-decoration: none; }
.footer-links a:hover { color: var(--accent); }
.footer-copy { font-size: 14px; color: var(--faint); font-weight: 500; }
.footer-legal {
  max-width: 1200px; margin: 32px auto 0; padding: 32px 24px 0;
  border-top: 1px solid var(--line); text-align: center; font-size: 13px; color: var(--faint);
}
