* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: #fff;
  color: #222;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 48px 28px;
}

h1 {
  margin: 0 0 32px;
  font-size: 28px;
  font-weight: 700;
}

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

.card {
  display: block;
  overflow: hidden;
  border: 1px solid #e6e6e6;
  border-radius: 12px;
  color: inherit;
  text-decoration: none;
  transition: box-shadow 0.15s, transform 0.15s;
}

.card:hover {
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}

.card img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: top;
  border-bottom: 1px solid #e6e6e6;
}

.card h2 {
  margin: 0;
  padding: 14px 16px;
  font-size: 17px;
  font-weight: 600;
}
