.project-directory {
  max-width: 70rem;
  margin-block: clamp(24px, 4vw, 52px) 32px;
}

.project-section + .project-section {
  margin-top: 34px;
}

.project-section h2 {
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
  font-size: clamp(1.45rem, 2.5vw, 1.85rem);
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 10rem), 1fr));
  gap: 12px;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}

.project-entry {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 0;
  max-width: 12rem;
  gap: 8px;
}

.project-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 100%;
  aspect-ratio: 1;
  min-height: 0;
  padding: 8px;
  color: var(--text);
  text-align: center;
  text-decoration: none;
  transition: border-color 140ms ease, background-color 140ms ease;
}

.project-card:is(:hover, :focus-visible) {
  border-color: var(--accent-strong);
  background: var(--panel-2);
  color: var(--accent-strong);
}

.project-icon {
  display: block;
  max-width: 100%;
  object-fit: contain;
}

.project-icon--sprite {
  image-rendering: pixelated;
}

.project-card h3 {
  margin: 0;
  font: 700 1rem/1.1 Georgia, "Times New Roman", serif;
  overflow-wrap: anywhere;
}

.project-description {
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.project-installs {
  display: block;
  max-width: 100%;
  object-fit: contain;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
