h1 {
  margin: 0 0 8px;
  font-size: clamp(1.55rem, 2.1vw, 2rem);
  font-weight: 650;
  letter-spacing: 0.01em;
}

#content {
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
}

.subtext {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 0.95rem;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 18px;
}

.card {
  display: block;
  text-decoration: none;
  color: inherit;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 12px;
  background: var(--surface);
  transition: none;
}

.card:hover,
.card:focus-visible {
  border-color: var(--border);
  background-color: var(--surface);
  outline: none;
  text-decoration: none;
}

.card-photo {
  width: 100%;
  aspect-ratio: 4 / 3;
  height: auto;
  min-height: 220px;
  border: none;
  border-radius: 10px;
  margin-bottom: 12px;
}

.name {
  margin: 0;
  font-size: 1rem;
  line-height: 1.3;
}

.designation {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.4;
}

.card .photo {
  filter: grayscale(100%);
  object-position: center top;
  transition: filter 0.28s ease;
}

.card:hover .photo,
.card:focus-visible .photo,
.card:active .photo {
  filter: grayscale(0%);
}

@media (max-width: 700px) {
  #content {
    padding: 16px;
  }

  .grid {
    grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
    gap: 12px;
  }

  .card-photo {
    min-height: 180px;
  }
}
