/* AI Earning Hub — clean, fast, mobile-first blog styles. No frameworks. */
:root {
  --ink: #1e293b;
  --muted: #64748b;
  --bg: #ffffff;
  --bg-soft: #f8fafc;
  --line: #e2e8f0;
  --brand: #0f172a;
  --accent: #0ea5e9;
  --accent-dark: #0284c7;
  --radius: 12px;
  --wrap: 1120px;
  --article-w: 760px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.7;
  font-size: 17px;
}
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
a { color: var(--accent-dark); }
img { max-width: 100%; height: auto; }

/* Header */
.site-header { background: var(--brand); color: #fff; position: sticky; top: 0; z-index: 50; }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 60px; }
.brand { color: #fff; font-weight: 800; font-size: 20px; text-decoration: none; letter-spacing: -0.3px; }
.brand span { color: var(--accent); }
.main-nav a { color: #cbd5e1; text-decoration: none; margin-left: 18px; font-size: 15px; font-weight: 600; }
.main-nav a:hover { color: #fff; }

/* Hero */
.hero { background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 100%); color: #fff; padding: 64px 0 56px; }
.hero h1 { font-size: 34px; line-height: 1.25; margin: 0 0 14px; letter-spacing: -0.5px; max-width: 720px; }
.hero p { color: #cbd5e1; font-size: 18px; max-width: 640px; margin: 0 0 24px; }
.btn { display: inline-block; background: var(--accent); color: #fff; font-weight: 700;
  padding: 12px 26px; border-radius: 999px; text-decoration: none; font-size: 16px; }
.btn:hover { background: var(--accent-dark); }

/* Sections */
.section { padding: 48px 0; }
.section-soft { background: var(--bg-soft); }
.section h2.section-title { font-size: 26px; margin: 0 0 8px; letter-spacing: -0.3px; }
.section p.section-sub { color: var(--muted); margin: 0 0 28px; max-width: 640px; }

/* Article cards */
.cards { display: grid; grid-template-columns: 1fr; gap: 20px; }
.card { border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; background: #fff;
  display: flex; flex-direction: column; transition: box-shadow .15s ease; }
.card:hover { box-shadow: 0 8px 24px rgba(15,23,42,.08); }
.card .kicker { margin: 0 0 8px; }
.card h3 { margin: 0 0 10px; font-size: 20px; line-height: 1.4; }
.card h3 a { color: var(--ink); text-decoration: none; }
.card h3 a:hover { color: var(--accent-dark); }
.card p.excerpt { color: var(--muted); font-size: 15.5px; margin: 0 0 14px; flex: 1; }
.card .readmore { font-weight: 700; font-size: 15px; text-decoration: none; }
.kicker { color: var(--accent-dark); font-weight: 700; font-size: 12.5px; text-transform: uppercase; letter-spacing: 1px; }

/* Categories */
.cats { display: flex; flex-wrap: wrap; gap: 10px; }
.cat { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 10px 20px;
  font-weight: 600; font-size: 15px; color: var(--ink); text-decoration: none; }
.cat:hover { border-color: var(--accent); color: var(--accent-dark); }

/* CTA band */
.cta-band { background: var(--brand); color: #fff; border-radius: var(--radius); padding: 40px 32px; text-align: center; }
.cta-band h2 { margin: 0 0 10px; font-size: 26px; }
.cta-band p { color: #cbd5e1; margin: 0 0 20px; }

/* Article page */
.article { max-width: var(--article-w); padding-top: 28px; padding-bottom: 40px; }
.breadcrumbs { font-size: 14px; color: var(--muted); margin-bottom: 12px; }
.breadcrumbs a { color: var(--muted); text-decoration: none; }
.breadcrumbs a:hover { text-decoration: underline; }
.article h1 { font-size: 32px; line-height: 1.3; letter-spacing: -0.4px; margin: 6px 0 10px; }
.byline { color: var(--muted); font-size: 14.5px; margin: 0 0 20px; }
.lede { font-size: 19px; color: #334155; border-left: 4px solid var(--accent); padding-left: 16px; margin: 0 0 28px; }
.article h2 { font-size: 24px; margin: 38px 0 12px; letter-spacing: -0.3px; }
.article h3 { font-size: 19px; margin: 26px 0 8px; }
.article p, .article li { color: #334155; }
.article ul, .article ol { padding-left: 22px; }
.article li { margin-bottom: 8px; }
.faq { background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius); padding: 8px 24px 16px; margin: 36px 0; }
.faq h2 { margin-top: 16px; }
.faq h3 { font-size: 17.5px; margin-bottom: 6px; }
.related { border-top: 2px solid var(--line); margin-top: 40px; padding-top: 20px; }
.related h2 { font-size: 20px; }
.related ul { list-style: none; padding: 0; }
.related li { margin-bottom: 10px; }
.related a { font-weight: 600; text-decoration: none; }
.related a:hover { text-decoration: underline; }

/* Legal pages */
.legal { max-width: var(--article-w); padding-top: 28px; padding-bottom: 48px; }
.legal h1 { font-size: 30px; margin-bottom: 16px; }
.legal h2 { font-size: 21px; margin: 28px 0 8px; }

/* Blog index */
.post-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 18px; }
.post-list li { border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; background: #fff; }
.post-list h3 { margin: 4px 0 8px; font-size: 20px; }
.post-list h3 a { color: var(--ink); text-decoration: none; }
.post-list h3 a:hover { color: var(--accent-dark); }
.post-list p { color: var(--muted); font-size: 15.5px; margin: 0; }

/* Footer */
.site-footer { background: var(--bg-soft); border-top: 1px solid var(--line); margin-top: 40px; padding: 36px 0; }
.footer-inner p { margin: 0 0 10px; color: var(--muted); font-size: 15px; }
.footer-inner nav a { color: var(--muted); text-decoration: none; font-size: 14.5px; margin-right: 6px; }
.footer-inner nav a:hover { text-decoration: underline; }
.tiny { font-size: 13px !important; }

@media (min-width: 720px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .hero h1 { font-size: 44px; }
  .article h1 { font-size: 38px; }
}
@media (min-width: 1024px) {
  .cards { grid-template-columns: repeat(3, 1fr); }
}
