.project-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  height: 100%;
  overflow: hidden;
  padding: 1.25rem;
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  background-color: var(--surface);
  transition-property: color, background-color, border-color, outline-color, text-decoration-color, fill, stroke;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 0.2s;
}

.project-card:hover {
  border-color: var(--accent);
}

.project-card-link {
  position: absolute;
  inset: 0;
  z-index: 10;
}

.project-preview {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  border-radius: 0.375rem;
  background-color: color-mix(in srgb, var(--foreground) 58%, var(--background));
}

@media (min-width: 40rem) {
  .project-preview {
    padding: 2rem 2.5rem;
  }
}

.project-window {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
  width: 100%;
  padding: 0.75rem 1.25rem 1rem;
  border-radius: 0.5rem;
  background-color: var(--background);
  box-shadow: var(--card-shadow);
  transition-property: transform, translate, scale, rotate;
  transition-timing-function: cubic-bezier(0, 0, 0.2, 1);
  transition-duration: 0.3s;
}

.project-card:hover .project-window {
  translate: 0 -0.125rem;
}

.project-window-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 1.25rem;
}

.project-window-dots {
  display: flex;
  align-items: center;
  gap: 0.375rem;
}

.project-window-dot {
  width: 0.625rem;
  height: 0.625rem;
  border-radius: calc(infinity * 1px);
}

.project-window-stars {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-family: var(--font-geist-mono);
  font-size: 0.75rem;
  line-height: 1rem;
  color: var(--foreground);
}

.project-window-star {
  translate: 0 -1px;
}

.project-window-path {
  overflow: hidden;
  font-family: var(--font-geist-mono);
  font-size: 0.875rem;
  line-height: 1.25rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.project-window-owner {
  color: var(--chip-2);
}

.project-window-slash {
  color: var(--muted-fg);
}

.project-window-repo {
  color: var(--chip-3);
}

.project-window-desc {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  min-height: 3rem;
  overflow: hidden;
  font-family: var(--font-geist-mono);
  font-size: 13px;
  line-height: 1.5rem;
  color: var(--foreground);
}

.project-window-bottom {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.5rem;
}

.project-window-meta {
  overflow: hidden;
  padding-bottom: 0.125rem;
  font-family: var(--font-geist-mono);
  font-size: 12px;
  color: var(--muted-fg);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.project-avatars {
  display: flex;
  align-items: center;
}

.project-avatars > :not(:last-child) {
  margin-inline-end: -0.5rem;
}

.project-avatar {
  width: 2rem;
  height: 2rem;
  border: 2px solid var(--background);
  border-radius: calc(infinity * 1px);
  background-color: var(--surface);
  object-fit: cover;
}

.project-card-body {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.project-card-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
}

.project-title {
  font-family: var(--font-geist-mono);
  font-size: 1.125rem;
  line-height: 1.75rem;
  font-weight: 700;
  color: var(--foreground);
}

.project-date {
  flex-shrink: 0;
  font-family: var(--font-geist-mono);
  font-size: 0.75rem;
  line-height: 1rem;
  color: var(--muted-fg);
}

.project-description {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  font-family: var(--font-geist-mono);
  font-size: 0.875rem;
  line-height: 1.625;
  color: var(--accent);
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.375rem;
  margin-top: auto;
}

.project-tags-icon {
  flex-shrink: 0;
  color: var(--muted-fg);
}

.project-tag {
  padding: 3px 0.5rem;
  border-radius: 0.375rem;
  background-color: color-mix(in srgb, var(--foreground) 7%, transparent);
  font-family: var(--font-geist-mono);
  font-size: 0.75rem;
  line-height: 1rem;
  font-weight: 500;
}

.project-tag:nth-of-type(4n + 1) {
  color: var(--chip-1);
}

.project-tag:nth-of-type(4n + 2) {
  color: var(--chip-2);
}

.project-tag:nth-of-type(4n + 3) {
  color: var(--chip-3);
}

.project-tag:nth-of-type(4n) {
  color: var(--chip-4);
}