/* MeshGrid blog (English) */

.blog-page {
  padding-top: calc(var(--header-h) + var(--header-safe) + 1.5rem);
  padding-bottom: 3rem;
  min-height: 60vh;
}

.blog-page-header {
  margin-bottom: 2rem;
}

.blog-page-header h1 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.75rem, 4vw, 2.25rem);
}

.blog-page-header p {
  margin: 0;
  color: var(--text-muted);
  max-width: 52ch;
}

.blog-back {
  display: inline-block;
  margin-bottom: 1rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--green-bright);
  text-decoration: none;
}

.blog-back:hover,
.blog-back:focus-visible {
  color: #5ee397;
  text-decoration: underline;
}

.blog-grid {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 640px) {
  .blog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.blog-card {
  display: flex;
  flex-direction: column;
  background: rgba(12, 14, 13, 0.85);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s, transform 0.15s;
}

.blog-card:hover,
.blog-card:focus-visible {
  border-color: rgba(45, 143, 86, 0.55);
  transform: translateY(-2px);
}

.blog-card-image {
  aspect-ratio: 16 / 9;
  background: rgba(5, 6, 8, 0.6);
  object-fit: cover;
  width: 100%;
}

.blog-card-body {
  padding: 1rem 1.1rem 1.15rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.blog-card-date {
  margin: 0 0 0.45rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--orange);
}

.blog-card-title {
  margin: 0 0 0.55rem;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--text);
}

.blog-card-excerpt {
  margin: 0;
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.blog-empty,
.blog-error,
.blog-loading {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.blog-post-hero {
  margin-bottom: 1.5rem;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
}

.blog-post-hero img {
  display: block;
  width: 100%;
  max-height: 420px;
  object-fit: cover;
}

.blog-post-meta {
  margin: 0 0 0.75rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--orange);
}

.blog-post-title {
  margin: 0 0 1.25rem;
  font-size: clamp(1.65rem, 4vw, 2.35rem);
  line-height: 1.2;
}

.blog-prose {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.7;
}

.blog-prose h2,
.blog-prose h3,
.blog-prose h4 {
  color: var(--text);
  margin: 1.5rem 0 0.65rem;
  line-height: 1.3;
}

.blog-prose p,
.blog-prose ul,
.blog-prose ol {
  margin: 0 0 1rem;
}

.blog-prose a {
  color: var(--green-bright);
}

.blog-prose img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-sm);
}

.blog-prose blockquote {
  margin: 1rem 0;
  padding-left: 1rem;
  border-left: 3px solid var(--green-bright);
  color: var(--text);
}

.blog-site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(5, 6, 8, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.blog-site-header .header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-h);
  padding-top: var(--header-safe);
}

.blog-site-header .logo {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--text);
  font-weight: 700;
}

.blog-site-header .logo-img {
  width: 36px;
  height: 36px;
  border-radius: 9px;
}

.blog-site-header .header-link {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--green-bright);
  text-decoration: none;
}

.blog-site-header .header-link:hover,
.blog-site-header .header-link:focus-visible {
  color: #5ee397;
}
