/* HOME PAGE PERSONA CARDS
   Used only by index.md. Every rule is scoped to .home-cards or .home-links,
   so this file has no effect on other pages. Colors come from main.css
   variables, so the cards follow the light/dark theme toggle. */

.home-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin: 24px 0 32px;
}

.home-cards .home-card {
  display: flex;
  flex-direction: column;
  margin: 0; /* overrides the theme's generic section margins */
  padding: 20px 24px;
  background-color: var(--color-background-dark);
  border: 1px solid var(--accent-super-dim);
  border-top: 4px solid var(--highlight-dark);
  border-radius: 8px;
  box-shadow: var(--card-box-shadow);
  transition: box-shadow var(--transition), transform var(--transition);
}

.home-cards .home-card:hover {
  box-shadow: var(--search-box-shadow);
  transform: translateY(-2px);
}

.home-cards .home-card h2 {
  margin: 0 0 4px;
  font-size: 22px;
  font-weight: 700;
  border: none;
}

.home-cards .home-card h2 a {
  color: var(--font-color);
  text-decoration: none;
}

.home-cards .home-card .home-card-desc {
  margin: 0 0 12px;
  opacity: 0.75;
}

.home-cards .home-card ul {
  margin: 0 0 16px;
  padding-left: 20px;
  flex-grow: 1;
}

.home-cards .home-card li {
  margin-bottom: 6px;
}

.home-cards .home-card .home-card-cta {
  font-weight: 600;
  text-decoration: none;
}

.home-cards .home-card .home-card-cta:hover {
  text-decoration: underline;
}

.home-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  padding: 16px 0;
  border-top: 1px solid var(--accent-super-dim);
}

@media (max-width: 768px) {
  .home-cards {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-cards .home-card,
  .home-cards .home-card:hover {
    transition: none;
    transform: none;
  }
}
