:root {
  --brand: #1448A0;
  --brand-dark: #0f3573;
  --bg: #ffffff;
  --text: #1e293b;
  --text-light: #64748b;
  --border: #e2e8f0;
  --section-alt: #f8fafc;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

/* ---------- NAV ---------- */
nav {
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  padding: 1rem 2rem;
  position: sticky;
  top: 0;
  z-index: 100;
}
nav .inner {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
nav .logo {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--brand);
  text-decoration: none;
}
nav .nav-right {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}
nav a.nav-link {
  color: var(--text);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
}
nav a.nav-link:hover { color: var(--brand); }
nav a.cta {
  background: var(--brand);
  color: var(--bg);
  padding: 0.5rem 1.25rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
}
nav a.cta:hover { background: var(--brand-dark); }

/* ---------- BLOG INDEX ---------- */
.blog-hero {
  text-align: center;
  padding: 4rem 2rem 2rem;
  max-width: 760px;
  margin: 0 auto;
}
.blog-hero h1 {
  font-size: 2.25rem;
  line-height: 1.2;
  margin-bottom: 0.75rem;
}
.blog-hero p {
  font-size: 1.1rem;
  color: var(--text-light);
}
.post-list {
  max-width: 760px;
  margin: 2rem auto 4rem;
  padding: 0 2rem;
  list-style: none;
}
.post-list li {
  padding: 1.75rem 0;
  border-bottom: 1px solid var(--border);
}
.post-list li:last-child { border-bottom: none; }
.post-list a {
  color: var(--text);
  text-decoration: none;
}
.post-list h2 {
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
  line-height: 1.3;
}
.post-list a:hover h2 { color: var(--brand); }
.post-list p {
  color: var(--text-light);
  font-size: 1rem;
}
.post-list .meta {
  display: block;
  color: var(--text-light);
  font-size: 0.85rem;
  margin-top: 0.5rem;
}

/* ---------- ARTICLE ---------- */
article {
  max-width: 720px;
  margin: 0 auto;
  padding: 3rem 2rem 2rem;
}
article .breadcrumb {
  font-size: 0.9rem;
  color: var(--text-light);
  margin-bottom: 1.5rem;
}
article .breadcrumb a {
  color: var(--text-light);
  text-decoration: none;
}
article .breadcrumb a:hover { color: var(--brand); }
article h1 {
  font-size: 2.1rem;
  line-height: 1.25;
  margin-bottom: 0.5rem;
}
article .post-meta {
  font-size: 0.9rem;
  color: var(--text-light);
  margin-bottom: 1.5rem;
  letter-spacing: 0.01em;
}
article .post-meta time { color: var(--text-light); }
article .lede {
  font-size: 1.15rem;
  color: var(--text-light);
  margin-bottom: 2rem;
}
article h2 {
  font-size: 1.4rem;
  margin: 2.5rem 0 0.75rem;
  line-height: 1.3;
}
article h3 {
  font-size: 1.1rem;
  margin: 1.75rem 0 0.5rem;
}
article p {
  margin-bottom: 1rem;
}
article ul, article ol {
  margin: 0 0 1.25rem 1.5rem;
}
article li { margin-bottom: 0.4rem; }
article strong { color: var(--text); }
article a {
  color: var(--brand);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ---------- INLINE CTA ---------- */
.cta-box {
  background: var(--section-alt);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem;
  margin: 2rem 0;
  text-align: center;
}
.cta-box p {
  margin-bottom: 1rem;
  color: var(--text);
}
.cta-box a.cta {
  display: inline-block;
  background: var(--brand);
  color: var(--bg);
  padding: 0.65rem 1.5rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
}
.cta-box a.cta:hover { background: var(--brand-dark); }

/* ---------- RELATED ---------- */
.related {
  max-width: 720px;
  margin: 3rem auto 0;
  padding: 2rem;
  border-top: 1px solid var(--border);
}
.related h2 {
  font-size: 1.1rem;
  margin-bottom: 1rem;
}
.related ul { list-style: none; margin: 0; }
.related li { margin-bottom: 0.5rem; }
.related a {
  color: var(--brand);
  text-decoration: none;
}
.related a:hover { text-decoration: underline; }

/* ---------- FOOTER ---------- */
footer {
  text-align: center;
  padding: 2rem;
  font-size: 0.85rem;
  color: var(--text-light);
  border-top: 1px solid var(--border);
  margin-top: 3rem;
}
footer a { color: var(--brand); text-decoration: none; }
footer a:hover { text-decoration: underline; }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 600px) {
  .blog-hero h1 { font-size: 1.6rem; }
  article h1 { font-size: 1.6rem; }
  article .lede { font-size: 1rem; }
  article h2 { font-size: 1.2rem; }
}
