/* ================= PÁGINA YANDERES ================= */
main {
  max-width: var(--max-width-content);
  margin: 2rem auto;
  padding: 1rem;
}

/* TÍTULO PRINCIPAL */
main h1 {
  font-size: 2rem;
  font-weight: 600;
  border-bottom: 1px solid #a2a9b1;
  margin-bottom: 24px;
  padding-bottom: 6px;
}

/* CONTAINER DOS CARDS */
.cards-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* 🔹 3 por linha */
  gap: 24px;
}

/* CARD (ESTILO ENCICLOPÉDIA) */
.card {
  background-color: var(--color-bg-card);
  border: 1px solid var(--color-border);
  padding: 16px;
}

/* IMAGEM */
.card img {
  width: 100%;
  margin-bottom: 12px;
  max-height: 59vh;
  object-fit: cover;
  object-position: top center;
}

/* TÍTULO DA PERSONAGEM */
.card h2 {
  color: var(--color-primary);
  font-size: 1.2rem;
  font-weight: 600;
  border-bottom: 1px solid #a2a9b1;
  margin-bottom: 8px;
  padding-bottom: 4px;
}

/* PARÁGRAFOS */
.card p {
  margin-bottom: 10px;
  line-height: 1.6;
}

/* LISTAS */
.card ul {
  margin-left: 20px;
}

.card li {
  margin-bottom: 4px;
}

/* ================= FOOTER ================= */
.site-footer {
  margin-top: 3rem;
  padding: 1.5rem;
  background-color: var(--footer-bg);
  color: var(--footer-text);
  text-align: center;
  border-top: 1px solid var(--footer-border);
  font-size: var(--font-size-sm);
}
.site-footer a {
  color: var(--footer-text);
  text-decoration: none;
  font-weight: 600;
}
.site-footer a:hover {
  color: var(--color-primary);
}
.site-footer p {
  margin: 0;
  line-height: 1.5;
}

/* ================= RESPONSIVO ================= */

/* Tablet */
@media (max-width: 1024px) {
  .cards-container {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Mobile */
@media (max-width: 768px) {
  .cards-container {
    grid-template-columns: 1fr;
  }

  .card img {
    max-height: none;
    object-fit: contain;
  }
}
