* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: #fff;
  color: #111;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.page {
  width: min(100%, 520px);
  margin: 0 auto;
  padding: 28px 16px 40px;
}

.site-header {
  margin-bottom: 28px;
}

h1 {
  margin: 0;
  font-size: clamp(2rem, 9vw, 4rem);
  line-height: 0.9;
  letter-spacing: -0.08em;
  text-transform: uppercase;
}

.site-header p,
footer p {
  margin: 10px 0 0;
  font-size: 0.95rem;
  color: #555;
}

.toy-list {
  display: grid;
  gap: 18px;
}

.toy-card {
  display: grid;
  grid-template-columns: 112px 1fr;
  gap: 14px;
  align-items: center;
  color: inherit;
  text-decoration: none;
  border: 2px solid #111;
  padding: 10px;
  transition: transform 120ms ease, background 120ms ease;
}

.toy-card:hover {
  background: #111;
  color: #fff;
  transform: translateY(-2px);
}

.toy-card:hover p {
  color: #ccc;
}

.toy-card img {
  width: 112px;
  aspect-ratio: 1;
  object-fit: cover;
  border: 2px solid currentColor;
  background: #eee;
}

.toy-card h2 {
  margin: 0;
  font-size: 1.15rem;
  letter-spacing: -0.03em;
}

.toy-card p {
  margin: 6px 0 0;
  font-size: 0.9rem;
  color: #555;
}

footer {
  margin-top: 34px;
  border-top: 2px solid #111;
  padding-top: 12px;
}

@media (max-width: 420px) {
  .toy-card {
    grid-template-columns: 1fr;
  }

  .toy-card img {
    width: 100%;
  }
}