/* ============================================================
   MARYAM RAFIEE — ESSAYS LISTING PAGE (essays.html) STYLES
   Loaded together with base.css.
   ============================================================ */

.essays-section { padding: 4rem 2rem; }
.essays-inner { max-width: 1100px; margin: 0 auto; }

.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
}
.grid-item {
  background: var(--cream); border: 1px solid var(--border);
  border-radius: 8px; overflow: hidden;
  display: flex; flex-direction: column;
  text-decoration: none; transition: box-shadow 0.2s, transform 0.2s;
}
.grid-item:hover { box-shadow: 0 8px 32px rgba(0,0,0,0.08); transform: translateY(-2px); }
.grid-item img { width: 100%; height: 200px; object-fit: cover; display: block; background: var(--sand); }
.grid-item-placeholder { width: 100%; height: 200px; background: var(--sand); }
.grid-item-content { padding: 1.5rem; display: flex; flex-direction: column; flex: 1; }
.publication-name {
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--accent-text); margin-bottom: 0.5rem;
}
.post-meta { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 0.6rem; flex-wrap: wrap; }
.post-date, .reading-time { font-size: 0.78rem; color: var(--text-light); }
.post-title {
  font-family: var(--serif); font-size: 1.15rem; font-weight: 700;
  line-height: 1.3; color: var(--text-dark); margin-bottom: 0.75rem;
}
.post-excerpt {
  font-size: 0.875rem; line-height: 1.7; color: var(--text-mid);
  flex: 1; margin-bottom: 1rem;
  display: -webkit-box; -webkit-line-clamp: 4;
  -webkit-box-orient: vertical; overflow: hidden;
}
.read-more { font-size: 0.8rem; font-weight: 700; color: var(--accent-text); align-self: flex-start; margin-top: auto; }

@media (max-width: 600px) {
  .essays-section { padding: 2.5rem 1.25rem; }
}
