/* ========================================
   Project Page Styles
   ======================================== */

.project-nav {
  padding: 2rem 2.5rem;
}

.back-link {
  font-family: var(--sans);
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--light-gray);
  text-decoration: none;
  transition: color 0.3s ease;
}

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

.project-page {
  max-width: 720px;
  margin: 0 auto;
  padding: 4rem 2.5rem 8rem;
}

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

.project-header .chapter-label {
  margin-bottom: 1.5rem;
}

.project-title {
  font-family: var(--serif);
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--black);
  margin-bottom: 1rem;
}

.project-tagline {
  font-family: var(--sans);
  font-size: 1.05rem;
  font-weight: 300;
  line-height: 1.6;
  color: var(--gray);
}

/* ---- Media (images & videos) ---- */

.project-media {
  margin: 2.5rem 0;
}

.project-media.feature {
  margin-top: 0;
  margin-bottom: 3rem;
}

.project-media img,
.project-media video {
  width: 100%;
  height: auto;
  display: block;
}

.project-media figcaption {
  font-family: var(--sans);
  font-size: 0.8rem;
  font-weight: 300;
  color: var(--light-gray);
  margin-top: 0.75rem;
}

/* ---- Body ---- */

.project-body {
  border-top: 1px solid var(--faint);
  padding-top: 3rem;
}

.project-text {
  font-family: var(--sans);
  font-size: 1.05rem;
  font-weight: 300;
  line-height: 1.7;
  color: var(--gray);
}

.project-text + .project-text {
  margin-top: 1.5rem;
}

.project-text a {
  color: var(--gray);
  text-decoration: underline;
  text-underline-offset: 0.2em;
  transition: color 0.3s ease;
}

.project-text a:hover {
  color: var(--black);
}

@media (max-width: 768px) {
  .project-page {
    padding: 2rem 1.5rem 6rem;
  }

  .project-header {
    margin-bottom: 2rem;
  }

  .project-media.feature {
    margin-bottom: 2rem;
  }
}
