/* Section structure */
.projects-section {
  margin-bottom: 48px;
}

.projects-section:last-child { margin-bottom: 0; }

.projects-section-title {
  color: #fff;
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-subtle);
}

/* Project cards grid */
.project-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 16px;
}

@media (max-width: 600px) {
  .project-cards { grid-template-columns: 1fr; }
}

.project-card {
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 3px;
  padding: 18px 20px;
  display: flex;
  overflow: hidden;
  flex-direction: column;
  position: relative;
  transition: border-color 0.2s;
}

.project-card:hover { border-color: rgba(255, 255, 255, 0.18); }

.project-card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 10px;
}

.project-title {
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 3px;
}

.project-meta {
  color: var(--text-muted);
  font-size: 11px;
}

.project-tag {
  color: var(--text-faint);
  font-size: 9px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  flex-shrink: 0;
  padding-top: 2px;
}

.project-desc {
  color: var(--text);
  font-size: 13px;
  line-height: 1.65;
  margin-bottom: 14px;
  flex: 1;
}

.project-links {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: auto;
}

.project-link {
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.55);
  font-size: 11px;
  padding: 3px 10px;
  text-decoration: none;
  transition: color 0.2s, border-color 0.2s;
}

.project-link:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.3);
}

.project-link:focus-visible {
  outline: 2px solid rgba(180, 100, 255, 0.6);
  outline-offset: 2px;
}

/* Clickable tile — first link covers the whole card via ::after */
.project-card-link {
  position: static;
}
.project-card-link::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
}

/* Secondary links sit above the card overlay */
.project-link:not(.project-card-link) {
  position: relative;
  z-index: 1;
}

/* Compact list (music videos, commercial credits, guest appearances) */
.project-compact-list {
  border-top: 1px solid var(--border-subtle);
  padding-top: 14px;
}

.project-compact-row {
  display: flex;
  gap: 12px;
  margin-bottom: 8px;
  align-items: baseline;
}

.project-compact-label {
  color: var(--text-faint);
  font-size: 10px;
  letter-spacing: 1px;
  text-transform: uppercase;
  flex-shrink: 0;
  min-width: max-content;
}

.project-compact-items {
  color: var(--text-muted);
  font-size: 13px;
}

/* Writing section — single card, wider */
.writing-card {
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 3px;
  padding: 20px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.writing-card-body .project-title { font-size: 15px; margin-bottom: 5px; }
.writing-card-body .project-meta { font-size: 12px; }

@media (max-width: 600px) {
  .writing-card { flex-direction: column; align-items: flex-start; }
}

/* Project card thumbnail — bleeds to card edges */
.project-thumb {
  display: block;
  width: calc(100% + 40px);
  max-width: none;
  margin: -18px -20px 16px;
  height: 156px;
  object-fit: cover;
  object-position: center center;
  flex-shrink: 0;
}

/* Square variant for podcast/square artwork */
.project-thumb--square {
  aspect-ratio: 1 / 1;
  height: auto;
}
