/*
 * Front page styles — mobile base.
 * Loaded only on is_front_page() || is_home().
 */

/* index-specific: footer margin-top */
.site-footer {
  margin-top: 20px;
}

/* ========== HERO SECTION ========== */
.hero-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 48px 24px 16px;
  text-align: center;
}

.hero-section h2 {
  font-family: 'DM Serif Display', serif;
  font-size: 1.3rem;
  font-weight: 400;
  color: var(--burgundy-dark);
  margin-bottom: 8px;
}

.hero-section p {
  font-size: 1rem;
  color: var(--text-light);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ========== MASONRY GRID ========== */
.masonry-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px 16px 40px;
}

.masonry-grid {
  column-count: 1;
  column-gap: 24px;
}

/* ========== ARTICLE CARD ========== */
.card-link {
  display: block;
  text-decoration: none;
  color: inherit;
  break-inside: avoid;
  margin-bottom: 24px;
}

.card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
  border: 1px solid var(--border-light);
}

.card-link:hover .card {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.card-thumbnail {
  width: 100%;
  display: block;
}

.card-thumbnail img {
  width: 100%;
  height: auto;
  display: block;
}

.card-thumbnail svg {
  width: 100%;
  height: auto;
  display: block;
}

.card-body {
  padding: 20px 20px 18px;
}

.card-category {
  display: inline-block;
  font-family: 'Source Sans 3', sans-serif;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--burgundy);
  border: 1.2px solid var(--burgundy);
  border-radius: 50px;
  padding: 2px 10px;
  margin-bottom: 10px;
}

.card-title {
  font-family: 'DM Serif Display', serif;
  font-size: 1.15rem;
  font-weight: 400;
  color: var(--text);
  line-height: 1.35;
  margin-bottom: 8px;
  transition: color var(--transition);
}

.card-link:hover .card-title {
  color: var(--burgundy);
}

.card-excerpt {
  font-size: 0.9rem;
  color: var(--text-light);
  line-height: 1.6;
  margin-bottom: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.card-author {
  font-weight: 500;
  color: var(--text-light);
}
