/* Blog styles — uses the same Poppins/Karla design system as the portfolio */

.blog-page {
  max-width: 680px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* — Blog Index — */

.blog-page .blog-hero {
  padding-top: 24px;
  margin-bottom: 2rem;
}

.blog-page .blog-hero h1 {
  font: 28px 'Poppins', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-weight: 700;
  color: #1A1A1A;
  margin-bottom: 0.5rem;
}

.blog-page .blog-hero .subtitle {
  color: #575757;
  font: 16px 'Karla', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-weight: 300;
  max-width: 480px;
  line-height: 1.6;
}

.blog-page .post-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.blog-page .post-item {
  border-top: 1px solid #e6e6e6;
  padding: 1.5rem 0;
}

.blog-page .post-item a {
  text-decoration: none;
  display: block;
  cursor: pointer;
}

.blog-page .post-item .post-date {
  font: 12px 'Poppins', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-weight: 500;
  color: #999999;
  letter-spacing: 0.04em;
  margin-bottom: 0.35rem;
}

.blog-page .post-item .post-title {
  font: 22px 'Poppins', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-weight: 500;
  color: #000000;
  line-height: 1.3;
  margin-bottom: 0.35rem;
  transition: color 0.2s;
}

.blog-page .post-item a:hover .post-title {
  color: #20A6DF;
}

.blog-page .post-item .post-subtitle {
  font: 15px 'Karla', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-weight: 400;
  color: #575757;
  margin-bottom: 0.35rem;
  font-style: italic;
}

.blog-page .post-item .post-excerpt {
  color: #575757;
  font: 15px 'Karla', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-weight: 300;
  line-height: 1.6;
}

/* — Article — */

.blog-page .article-header {
  padding-top: 24px;
  margin-bottom: 2rem;
}

.blog-page .article-header .article-date {
  font: 12px 'Poppins', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-weight: 500;
  color: #999999;
  letter-spacing: 0.04em;
  margin-bottom: 0.75rem;
}

.blog-page .article-header h1 {
  font: 28px 'Poppins', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-weight: 700;
  line-height: 1.2;
  color: #1A1A1A;
  margin-bottom: 0.5rem;
}

.blog-page .article-header .article-subtitle {
  font: 16px 'Karla', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-weight: 400;
  color: #575757;
  font-style: italic;
}

/* — Article Body — */

.blog-page .article-body {
  line-height: 1.7;
}

.blog-page .article-body p {
  font: 16px 'Karla', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  line-height: 1.7;
  color: #575757;
  margin-bottom: 1.5rem;
}

.blog-page .article-body strong {
  font-weight: 500;
  color: #404040;
}

.blog-page .article-body em {
  font-style: italic;
}

.blog-page .article-body a {
  color: #20A6DF;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}

.blog-page .article-body a:hover {
  border-bottom-color: #20A6DF;
}

.blog-page .article-body h2 {
  font: 20px 'Poppins', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-weight: 700;
  color: #1A1A1A;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  line-height: 1.3;
}

.blog-page .article-body code {
  font-family: 'Menlo', 'Consolas', monospace;
  font-size: 14px;
  background: #f0f0f0;
  color: #E94F37;
  padding: 0.15em 0.4em;
  border-radius: 4px;
  border: 1px solid #e6e6e6;
}

.blog-page .article-body img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 1.5rem auto;
  border-radius: 8px;
}

.blog-page .article-body blockquote {
  border-left: 3px solid #5438DC;
  padding-left: 1.25rem;
  margin: 2rem 0;
  color: #575757;
  font-style: italic;
}

/* — Article Footer / CTA — */

.blog-page .article-cta {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid #e6e6e6;
  margin-bottom: 3rem;
}

.blog-page .article-cta p {
  font: 15px 'Karla', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  color: #575757;
  font-style: italic;
  line-height: 1.6;
}

.blog-page .article-cta a {
  color: #20A6DF;
  text-decoration: none;
  font-style: normal;
  font-weight: 500;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}

.blog-page .article-cta a:hover {
  border-bottom-color: #20A6DF;
}

/* — Responsive — */

@media (max-width: 640px) {
  .blog-page .blog-hero h1 { font-size: 24px; }

  .blog-page .article-header { padding-top: 16px; }
  .blog-page .article-header h1 { font-size: 24px; }

  .blog-page .article-body h2 { font-size: 18px; }
}
