/* Card styling for the blog listing. Colours come from the theme's
   existing --color-* variables (theme-variables.css) so dark mode "just works" -
   no new custom properties are defined here. */

.post-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
}

.post-card {
  display: block;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: 10px;
  padding: 1.75rem;
  text-decoration: none;
  color: var(--color-text-main);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.post-card:hover,
.post-card:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
  border-color: var(--color-primary);
  text-decoration: none;
}

.post-card:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

.post-card-title {
  font-family: 'Newsreader', Georgia, serif;
  font-size: 1.5rem;
  margin: 0 0 0.5rem;
  color: var(--color-text-main);
}

.post-card-meta {
  font-size: 0.875rem;
  color: var(--color-text-secondary);
  margin-bottom: 0.75rem;
}

.post-card-excerpt {
  margin: 0;
  line-height: 1.6;
  color: var(--color-text-muted);
}

.new-badge {
  background: #F97316;
  color: #1a1a1a; /* dark text on coral: ~7:1 contrast, white text was ~2.8:1 and failed AA */
  padding: 0.15rem 0.6rem;
  border-radius: 12px;
  font-size: 0.7rem;
  font-weight: 600;
  margin-left: 0.5rem;
  vertical-align: middle;
}
