/* 
 * Blog and Single Article Styling
 * Based on W2DATA Design System (Max-width 75ch, Inter typography, 1.6 line height)
 */

.single-post-article {
  background: var(--color-white);
  border-bottom: 1px solid var(--color-border);
}

.post-header {
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.post-title {
  font-size: 2.5rem;
  line-height: 1.15;
}

.post-meta {
  font-size: 0.875rem;
  margin-bottom: var(--space-4);
}

.post-meta .meta-sep {
  margin: 0 var(--space-1);
}

.post-thumbnail {
  border-radius: var(--radius-default);
  overflow: hidden;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.post-content {
  font-size: 1.125rem; /* 18px body font for long-form reading */
  line-height: 1.75;
  color: var(--color-text-main);
}

.post-content h2 {
  font-size: 1.75rem;
  margin-top: var(--space-8);
  margin-bottom: var(--space-3);
}

.post-content h3 {
  font-size: 1.375rem;
  margin-top: var(--space-6);
  margin-bottom: var(--space-3);
}

.post-content p, 
.post-content ul, 
.post-content ol {
  margin-bottom: var(--space-4);
}

.post-content ul, 
.post-content ol {
  padding-left: var(--space-4);
}

.post-content li {
  margin-bottom: var(--space-1);
}

/* Blog Archive page styling */
.archive-header {
  border-bottom: 1px solid var(--color-border);
  padding-bottom: var(--space-4);
}

.archive-title {
  font-size: 2.25rem;
}

.resource-card .resource-thumbnail {
  height: 200px;
  overflow: hidden;
  border-radius: 4px;
}

.resource-card .resource-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.resource-card .read-more {
  color: var(--color-primary-blue);
  text-decoration: none;
  transition: var(--transition-fast);
}

.resource-card .read-more:hover {
  color: var(--color-secondary-teal-text);
}

/* 
 * Blog Responsiveness Overrides
 */
@media (max-width: 768px) {
  .post-title {
    font-size: 2rem !important;
  }
  
  .archive-title {
    font-size: 1.75rem !important;
  }
  
  .post-content {
    font-size: 1rem; /* Slightly smaller text for better readability on small screens */
  }
}
