/* Project detail pages — extends styles.css */

.detail-main {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: calc(var(--nav-h) + 3rem) 1.5rem 5rem;
}

/* ── Back link ─────────────────────────────────────── */

.back-link {
  display: inline-block;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted);
  margin-bottom: 2.5rem;
  transition: color 0.15s ease;
}

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

/* ── Header ────────────────────────────────────────── */

.detail-header {
  margin-bottom: 3rem;
}

.detail-tags {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  flex-wrap: wrap;
  margin-bottom: 1.25rem;
}

.detail-header h1 {
  font-family: var(--serif);
  font-size: clamp(2.25rem, 6vw, 3.75rem);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin-bottom: 1.25rem;
}

.detail-header h1 em {
  font-style: italic;
  color: var(--muted);
}

.detail-lead {
  font-size: 1.0625rem;
  color: var(--muted);
  line-height: 1.7;
  max-width: 52ch;
  margin: 0;
}

.detail-divider {
  border: none;
  border-top: 1px solid var(--border);
  margin-bottom: 0;
}

/* ── Four sections ─────────────────────────────────── */

.detail-sections {
  display: flex;
  flex-direction: column;
}

.detail-section {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 3rem;
  align-items: start;
  padding: 3rem 0;
  border-bottom: 1px solid var(--border);
}

.detail-section-label {
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--green);
  padding-top: 0.2rem;
  line-height: 1.4;
}

.detail-section-body p {
  font-size: 1rem;
  color: var(--muted);
  line-height: 1.75;
  max-width: 54ch;
  margin-bottom: 1rem;
}

.detail-section-body p:last-child { margin-bottom: 0; }

.detail-list {
  list-style: none;
  margin: 1rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.detail-list li {
  font-size: 0.9375rem;
  color: var(--muted);
  line-height: 1.6;
  padding-left: 1rem;
  position: relative;
}

.detail-list li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--green);
  font-weight: 600;
}

.detail-list li strong {
  color: var(--ink);
  font-weight: 600;
}

.detail-cta {
  display: inline-block;
  margin-top: 1.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--green);
  transition: opacity 0.15s ease;
}

.detail-cta:hover { opacity: 0.7; }

/* ── Responsive ────────────────────────────────────── */

@media (max-width: 600px) {
  .detail-section {
    grid-template-columns: 1fr;
    gap: 1rem;
    padding: 2rem 0;
  }
}
