main {
  max-width: 60rem;
  margin: 3rem auto;
  padding: 0 1.5rem;
}

.project-list {
  display: grid;
  gap: 1.25rem;
  max-width: 42rem;
  margin-top: 2rem;
}

.project-card {
  box-sizing: border-box;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  width: 100%;
  padding: 1.25rem;
  border: 2px solid currentColor;
  border-radius: 0.75rem;
  color: inherit;
  text-decoration: none;
}

.project-card:hover {
  transform: translateX(0.25rem);
}

.project-card h2 {
  margin: 0 0 0.5rem;
}

.project-card p {
  margin: 0;
}

.project-image {
  width: 7rem;
  height: 7rem;
  flex: 0 0 7rem;
  border-radius: 0.4rem;
  object-fit: cover;
}

.github-card {
  min-height: 4.5rem;
  padding: 0.5rem 1rem;
}

.github-card .project-image {
  width: 3rem;
  height: 3rem;
  flex-basis: 3rem;
  object-fit: contain;
}

.github-card h2 {
  margin-bottom: 0.2rem;
  font-size: 1rem;
}

.github-card p {
  font-size: 0.8rem;
}

.github-card .github-white {
  display: none;
}

:root[data-theme="dark"] .github-card .github-black {
  display: none;
}

:root[data-theme="dark"] .github-card .github-white {
  display: block;
}

@media (max-width: 480px) {
  .project-card {
    gap: 1rem;
    padding: 1rem;
  }

  .project-image {
    width: 5rem;
    height: 5rem;
    flex-basis: 5rem;
  }
}
