/* ── Blog listing ──────────────────────────────────────────── */

.blog-hero {
  padding: 4rem 0 2rem;
}

.blog-hero h1 {
  font-size: clamp(2rem, 5vw, 3.4rem);
  max-width: none;
}

.blog-hero p {
  color: var(--muted);
  max-width: 60ch;
  margin-top: 0.75rem;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
  padding: 2rem 0 5rem;
}

.blog-card-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.blog-card {
  background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.01));
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 1.75rem;
  transition: border-color 0.2s ease, transform 0.2s ease;
  height: 100%;
}

.blog-card-link:hover .blog-card {
  border-color: rgba(114, 224, 168, 0.35);
  transform: translateY(-2px);
}

.blog-meta {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.9rem;
}

.blog-meta span + span::before {
  content: '·';
  margin-right: 0.75rem;
  color: var(--muted);
}

.blog-card h3 {
  font-size: 1.15rem;
  line-height: 1.3;
  margin: 0 0 0.75rem;
  color: var(--text);
}

.blog-excerpt {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.65;
  margin: 0 0 1.25rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.read-more {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--accent-2);
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.read-more::after {
  content: '→';
}

/* ── Article page ──────────────────────────────────────────── */

.article-page {
  min-height: 100vh;
}

.article-breadcrumb {
  padding: 1.25rem 0 0;
  font-size: 0.88rem;
  color: var(--muted);
}

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

.article-breadcrumb a:hover {
  color: var(--text);
}

.article-breadcrumb span {
  margin: 0 0.45rem;
  opacity: 0.5;
}

.article-shell {
  padding: 2rem 0 6rem;
}

.blog-article {
  max-width: 720px;
  margin: 0 auto;
}

.article-header {
  margin-bottom: 2.5rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--line);
}

.article-header h1 {
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  max-width: none;
  line-height: 1.15;
  margin-bottom: 1.1rem;
}

.article-intro {
  color: var(--muted);
  font-size: 1.1rem;
  line-height: 1.75;
  margin: 0;
}

.blog-article section {
  margin-bottom: 2.25rem;
}

.blog-article h2 {
  font-size: clamp(1.3rem, 2.5vw, 1.75rem);
  margin: 2.5rem 0 1rem;
  padding-top: 0.5rem;
  border-top: 1px solid var(--line);
  color: var(--text);
}

.blog-article section:first-of-type h2 {
  border-top: none;
  padding-top: 0;
}

.blog-article h3 {
  font-size: 1.1rem;
  color: var(--accent-2);
  margin: 1.5rem 0 0.5rem;
}

.blog-article p {
  color: var(--muted);
  line-height: 1.8;
  margin: 0 0 1rem;
}

.blog-article ul,
.blog-article ol {
  color: var(--muted);
  line-height: 1.8;
  padding-left: 1.4rem;
  margin: 0 0 1rem;
}

.blog-article li + li {
  margin-top: 0.35rem;
}

.blog-article blockquote {
  border-left: 3px solid var(--accent);
  margin: 1.5rem 0;
  padding: 0.85rem 1.25rem;
  background: rgba(114, 224, 168, 0.05);
  border-radius: 0 10px 10px 0;
  color: var(--text);
  font-style: italic;
}

.blog-article pre {
  background: #08101f;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1.25rem;
  overflow-x: auto;
  margin: 1.25rem 0 1.5rem;
}

.blog-article pre code {
  font-size: 0.88rem;
  color: #d8e7ff;
}

.blog-article strong {
  color: var(--text);
  font-weight: 600;
}

.article-meta-bar {
  display: flex;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 0.5rem;
  margin-bottom: 0.25rem;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
}

.article-meta-bar span + span::before {
  content: '·';
  margin-right: 1rem;
  color: var(--muted);
  font-weight: 400;
}

@media (max-width: 860px) {
  .blog-grid {
    grid-template-columns: 1fr;
  }

  .blog-article h2 {
    font-size: 1.35rem;
  }
}
