/* Projects page — card grid */


/* Section */

h2.proj-section-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: inherit;
  margin: 1.5rem 0 0.75rem;
  padding: 0;
  border: none;
}

h2.proj-section-title:first-child {
  margin-top: 0;
}

/* Grid */

.proj-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 1rem;
  margin-top: 0.25rem;
}

/* Card */

.proj-card {
  border: 3px solid transparent;
  border-radius: 12px;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  transition: border-color 0.15s;
  position: relative;
}

.proj-card-primary-link {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.proj-card-links {
  position: relative;
  z-index: 2;
}

.proj-card:hover {
  border-color: #2d96bd;
}

body.dark-theme .proj-card:hover {
  border-color: #2d96bd;
}

.proj-card--disabled .proj-card-primary-link {
  pointer-events: none;
}

.proj-card-logo {
  width: 128px;
  height: 128px;
  object-fit: contain;
  margin-bottom: 0.875rem;
}

.proj-card-name {
  font-size: 1.1rem;
  font-weight: 800;
  font-family: inherit;
  margin: 0 0 0.25rem;
  text-align: center;
}

.proj-card-desc {
  font-size: 1.05rem;
  font-family: inherit;
  font-weight: 400;
  color: #161209;
  margin: 0 0 0.5rem;
  line-height: 1.2;
  text-align: left;
}

body.dark-theme .proj-card-desc {
  color: #a9a9b3;
}

.proj-card-status {
  font-size: 1.05rem;
  font-weight: 700;
  color: #d97706;
  margin-bottom: 0.5rem;
}

body.dark-theme .proj-card-status {
  color: #fbbf24;
}

.proj-card-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
}

.proj-card-links a + a::before {
  content: '|';
  margin-right: 0.25rem;
  color: #a9a9b3;
  pointer-events: none;
}

.proj-card-links a {
  font-size: 1rem;
  color: #2d96bd;
  text-decoration: none;
}

.proj-card-links a:hover {
  color: #ef3982;
}

body.dark-theme .proj-card-links a {
  color: #a9a9b3;
}

body.dark-theme .proj-card-links a:hover {
  color: #fff;
}
