/* ===== PROJECTS (목록) ===== */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--space-base);
}

.project-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  word-break: keep-all;
  overflow-wrap: anywhere;
  background: var(--canvas);
  border: 1px solid var(--hairline-soft);
  border-radius: var(--radius-xl);
  padding: var(--space-lg);
  cursor: pointer;
  transition:
    border-color 0.2s,
    transform 0.2s;
}

.project-card:hover {
  border-color: var(--primary);
  transform: translateY(-3px);
}

.project-title {
  font-size: 20px;
  font-weight: 500;
  margin-bottom: 12px;
}

.project-desc {
  font-size: 14px;
  line-height: 1.43;
  letter-spacing: -0.14px;
  color: var(--charcoal);
  margin-bottom: var(--space-base);
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: auto;
  margin-bottom: 12px;
}

.tag {
  font-size: 12px;
  font-weight: 700;
  background: var(--primary-soft);
  color: var(--primary);
  padding: 4px 10px;
  border-radius: var(--radius-full);
}

.project-more {
  font-size: 13px;
  font-weight: 700;
  color: var(--primary);
}
/* ============================================================
 PROJECT DETAIL PAGE (프로젝트 상세)
 ============================================================ */
#detail-view {
  display: none;
}

.detail-page {
  max-width: 900px;
  margin: 0 auto;
  padding: 100px 24px 80px;
  background: var(--canvas);
}

.detail-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 700;
  color: var(--steel);
  background: none;
  border: none;
  cursor: pointer;
  margin-bottom: var(--space-xl);
  padding: 0;
}

.detail-back:hover {
  color: var(--ink-deep);
}

.detail-header {
  margin-bottom: var(--space-xxl);
}

.detail-title {
  font-size: 32px;
  font-weight: 500;
  margin-bottom: 8px;
}

.detail-period {
  font-size: 14px;
  color: var(--steel);
  margin-bottom: var(--space-base);
}

.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.detail-tag {
  font-size: 12px;
  font-weight: 700;
  background: var(--surface-soft);
  color: var(--charcoal);
  border: 1px solid var(--hairline);
  padding: 4px 12px;
  border-radius: var(--radius-full);
}

.detail-section {
  margin-bottom: var(--space-section-sm);
  background: var(--surface-soft);
  border-radius: var(--radius-xl);
  padding: var(--space-xl);
}

.detail-section-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: var(--space-base);
  display: flex;
  align-items: center;
  gap: 8px;
}

.detail-section-title::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary);
  flex-shrink: 0;
}

.detail-list {
  padding-left: 18px;
}

.detail-list li {
  font-size: 14px;
  line-height: 1.7;
  color: var(--charcoal);
  margin-bottom: 6px;
}

.detail-subsection {
  margin-bottom: var(--space-lg);
}

.detail-subsection-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink-deep);
  margin-bottom: 8px;
}

.screenshot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
}

.screenshot-box {
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-lg);
  background: var(--canvas);
  border: 1px dashed var(--hairline);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--stone);
  font-size: 13px;
  overflow: hidden;
  text-align: center;
  padding: var(--space-base);
}

.screenshot-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.detail-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
}

.retro-text {
  font-size: 14px;
  line-height: 1.8;
  color: var(--charcoal);
}

.project-kind {
  margin-bottom: 8px;
}

.project-subtitle {
  font-size: small;
  margin-bottom: 8px;
}

.project-subtitle-tight {
  margin-top: 0;
}

.project-detail {
  display: none;
}
