.presidents { padding-block: clamp(1.5rem, 5vw, 3.5rem); }
.presidents h1 { text-align: center; margin: 0 0 1.5rem; }
.presidents-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 55rem;
  margin: 0 auto;
  padding: 0;
  gap: .85rem;
  list-style: none;
}
.president-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .65rem;
  height: 100%;
  min-height: 13rem;
  aspect-ratio: 1;
  padding: .85rem;
  border: 1px solid #a6b2c5;
  border-radius: .35rem;
  background: #fff;
  color: #811e34;
  text-align: center;
  text-decoration: none;
}
.president-card:hover, .president-card:focus-visible { border-color: #a12841; background: #fff6f7; }
.president-card:focus-visible { outline: 2px solid #a12841; outline-offset: 2px; }
.president-term { color: #354563; font-weight: 600; }
.president-portrait, .president-portrait-missing {
  width: 7rem;
  aspect-ratio: 1;
  object-fit: cover;
  background: #eef1f6;
}
.president-portrait-missing {
  display: grid;
  place-items: center;
  padding: .5rem;
  text-align: center;
  color: #43516b;
  font-size: .875rem;
}
.president-profile {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 1.5rem;
  border: 1px solid #a6b2c5;
  background: #fff;
  padding: clamp(1rem, 4vw, 2.25rem);
  margin-top: 1rem;
}
.president-profile :is(.president-portrait, .president-portrait-missing) { width: min(100%, 13rem); }
.president-profile section { flex: 1 1 18rem; }
.president-profile h2 { margin: 0; }
@media (max-width: 700px) { .presidents-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 380px) { .presidents-grid { grid-template-columns: 1fr; } }
