/* ==========================================================================
   SIMPLC Blog — Index & Article Typography
   Extends ../styles.css design tokens
   ========================================================================== */

.blog-hero {
  padding: calc(var(--nav-height) + 4.5rem) 0 3rem;
}

.blog-breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-subtle);
  margin-bottom: 1.25rem;
}

.blog-breadcrumb a {
  color: var(--text-muted);
  text-decoration: none;
}

.blog-breadcrumb a:hover {
  color: var(--accent);
}

.blog-hero-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.2vw, 3.1rem);
  line-height: 1.12;
  letter-spacing: -0.025em;
  margin: 0.75rem 0 1rem;
  max-width: 18ch;
}

.blog-hero-lead {
  color: var(--text-muted);
  font-size: 1.08rem;
  max-width: 64ch;
  margin: 0;
}

.blog-pillars {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
  margin-top: 2rem;
}

.pillar-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.4rem;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.pillar-card:hover {
  border-color: var(--accent-border);
  transform: translateY(-2px);
}

.pillar-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.pillar-card h3 {
  font-family: var(--font-display);
  font-size: 1.12rem;
  margin: 0 0 0.5rem;
}

.pillar-card p {
  color: var(--text-muted);
  font-size: 0.92rem;
  margin: 0;
}

.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.post-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.post-card:hover {
  border-color: var(--accent-border);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.post-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--text-subtle);
  margin-bottom: 0.75rem;
}

.post-card h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  line-height: 1.3;
  margin: 0 0 0.65rem;
}

.post-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin: 0 0 1.25rem;
  flex: 1;
}

.post-read-more {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--accent);
}

.blog-upcoming-box {
  background: var(--surface);
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.blog-upcoming-box h2 {
  font-family: var(--font-display);
  font-size: 1.45rem;
  margin: 0.35rem 0 0.5rem;
}

.blog-upcoming-box p {
  color: var(--text-muted);
  margin: 0;
  max-width: 58ch;
}

/* Article Page Layout */
.article-shell {
  padding: calc(var(--nav-height) + 4rem) 0 5rem;
}

.article-container {
  max-width: 780px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.article-header {
  margin-bottom: 2.25rem;
  padding-bottom: 1.75rem;
  border-bottom: 1px solid var(--border);
}

.article-title {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 4vw, 2.75rem);
  line-height: 1.15;
  letter-spacing: -0.025em;
  margin: 0.75rem 0 1rem;
}

.article-subtitle {
  font-size: 1.12rem;
  color: var(--text-muted);
  margin: 0 0 1.25rem;
}

.article-cover {
  width: 100%;
  height: auto;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  margin: 0 0 2rem;
}

.article-body {
  font-size: 1.04rem;
  line-height: 1.78;
  color: var(--text);
}

.article-body h2 {
  font-family: var(--font-display);
  font-size: 1.55rem;
  line-height: 1.25;
  margin: 2.4rem 0 0.85rem;
}

.article-body h3 {
  font-family: var(--font-display);
  font-size: 1.22rem;
  margin: 1.75rem 0 0.6rem;
}

.article-body p {
  margin: 0 0 1.2rem;
  color: var(--text-muted);
}

.article-body strong {
  color: var(--text);
}

.article-body ul,
.article-body ol {
  margin: 0 0 1.25rem;
  padding-left: 1.4rem;
  color: var(--text-muted);
}

.article-body li {
  margin-bottom: 0.45rem;
}

.article-body code {
  font-family: var(--font-mono);
  font-size: 0.88em;
  background: var(--surface-elevated);
  border: 1px solid var(--border);
  padding: 0.12rem 0.38rem;
  border-radius: 5px;
  color: var(--cyan);
}

.article-body pre {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.1rem 1.25rem;
  overflow-x: auto;
  margin: 1.4rem 0;
}

.article-body pre code {
  background: none;
  border: none;
  padding: 0;
  color: var(--text);
  font-size: 0.88rem;
  line-height: 1.6;
}

.article-cta {
  margin-top: 3rem;
  padding: 1.75rem;
  background: var(--surface);
  border: 1px solid var(--accent-border);
  border-radius: var(--radius-lg);
}

.article-cta h3 {
  font-family: var(--font-display);
  margin: 0.35rem 0 0.5rem;
}

.article-cta p {
  color: var(--text-muted);
  margin: 0 0 1.25rem;
}

.article-cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}
