:root {
  color: #151515;
  background: #fff;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
}

.site-topbar {
  height: 64px;
  display: grid;
  grid-template-columns: 36px 1fr;
  align-items: center;
  gap: 12px;
  padding: 0 16px;
}

.site-topbar img {
  width: 24px;
  height: 24px;
  justify-self: center;
}

.site-topbar h1 {
  margin: 0;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.2;
}

main {
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto;
  padding: 48px 0;
}

.tool-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 40px 24px;
}

.tool-card {
  position: relative;
  display: block;
  color: inherit;
  text-decoration: none;
}

.tool-card__image {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 8px;
  background: #f8f8ff;
}

.tool-card__image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.tool-card__content {
  padding-top: 16px;
}

.tool-card h2 {
  margin: 0 0 7px;
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0;
}

.tool-card p {
  max-width: 34ch;
  margin: 0;
  color: #6b6b66;
  font-size: 0.875rem;
  line-height: 1.5;
}

.tool-card:focus-visible {
  outline: 2px solid #151515;
  outline-offset: 7px;
  border-radius: 8px;
}

@media (max-width: 760px) {
  main {
    width: min(100% - 32px, 540px);
    padding: 32px 0;
  }

  .tool-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
