body {
  background:
    radial-gradient(circle at 90% 0%, var(--bg-accent-1) 0%, transparent 30%),
    radial-gradient(circle at 0% 100%, var(--bg-accent-2) 0%, transparent 35%),
    var(--bg-canvas);
  line-height: 1.62;
}

main > section:first-of-type {
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 3px);
  background: linear-gradient(145deg, var(--surface-grad-start), var(--surface-grad-end));
  box-shadow: var(--shadow);
  padding: 1.2rem;
  margin-bottom: 1rem;
}

main > section:first-of-type > p:first-child {
  margin: 0 0 .45rem;
  font-size: .78rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--accent-2);
  font-weight: 760;
}

h1 {
  margin-bottom: .25rem;
  font-size: clamp(1.8rem, 3.3vw, 2.7rem);
}

main > section:first-of-type > p:last-child {
  color: var(--muted);
  margin: 0;
}

#catalog {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .85rem;
}

#catalog article {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--shadow);
  padding: 0;
  overflow: hidden;
  transition: box-shadow .16s ease;
}

#catalog article:hover,
#catalog article:focus-within {
  box-shadow: 0 16px 34px rgba(15, 23, 42, 0.14);
}

#catalog article > a {
  display: block;
  height: 100%;
  color: inherit;
}

#catalog figure {
  margin: 0;
  overflow: hidden;
  background: var(--panel);
}

#catalog img {
  display: block;
  width: 100%;
  height: 170px;
  object-fit: cover;
  transform: scale(1.1);
  transform-origin: center;
  transition: transform .16s ease;
}

#catalog h2 {
  margin: .8rem 1rem .35rem;
  font-size: 1.2rem;
  line-height: 1.2;
  transition: color .16s ease;
}

#catalog article:hover h2,
#catalog article:focus-within h2 {
  color: var(--accent);
}

#catalog p {
  margin: 0 1rem 1rem;
  color: var(--muted);
  font-size: .95rem;
}

#catalog a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: -2px;
}

@media (max-width: 980px) {
  #catalog {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  #catalog {
    grid-template-columns: 1fr;
  }
}
