/* ============================================================
   PROJECTS section — extends theme.css design system.
   All custom classes are prefixed `proj-`.
   ============================================================ */

.proj-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--gap);
}

.proj-card {
  display: flex;
  flex-direction: column;
  padding: 26px 26px 24px;
}

/* terminal-flavored meta row */
.proj-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 16px;
}

.proj-index {
  color: var(--amber);
  letter-spacing: 0.5px;
  flex: none;
}

.proj-marker {
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-align: right;
}

.proj-title {
  font-family: var(--font-sans);
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -0.4px;
  line-height: 1.2;
  color: var(--text);
}

.proj-subtitle {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--text-dim);
  margin-top: 6px;
}

.proj-summary {
  color: var(--text-dim);
  font-size: 15px;
  line-height: 1.6;
  margin-top: 12px;
}

.proj-bullets {
  list-style: none;
  margin: 18px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.proj-bullets li {
  position: relative;
  padding-left: 20px;
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--text);
}

.proj-bullets li::before {
  content: "▹";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--amber);
  font-family: var(--font-mono);
}

.proj-tags {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 20px 0 0;
  padding: 0;
}

/* push the link to the bottom so cards align nicely */
.proj-link {
  margin-top: auto;
  padding-top: 22px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-mono);
  font-size: 13.5px;
  color: var(--teal);
  align-self: flex-start;
  transition: color .2s var(--ease);
}

.proj-link:hover {
  color: var(--amber);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.proj-arrow {
  transition: transform .2s var(--ease);
}

.proj-link:hover .proj-arrow {
  transform: translate(2px, -2px);
}

.proj-link:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- responsive ---------- */
@media (max-width: 720px) {
  .proj-grid {
    grid-template-columns: 1fr;
  }
  .proj-card {
    padding: 22px 20px 20px;
  }
  .proj-marker {
    max-width: 52%;
  }
}
