/* ═══════════════════════════════════════════════
   project.css — shared styles for all project pages
   ═══════════════════════════════════════════════ */

/* ── HERO ── */
.project-hero {
  position: relative;
  margin-top: var(--nav-h);
  height: clamp(280px, 45vw, 480px);
  overflow: hidden;
}
.project-hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
}
.project-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(28,28,25,0.1) 0%,
    rgba(28,28,25,0.65) 70%,
    rgba(28,28,25,0.85) 100%
  );
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(1.5rem, 4vw, 3rem) clamp(1.5rem, 8vw, 6rem);
}
.project-hero-tag {
  font-family: var(--font-body);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--sage-lt);
  margin-bottom: 0.5rem;
}
.project-hero-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 400;
  color: var(--parchment);
  line-height: 1.1;
  margin-bottom: 0.5rem;
}
.project-hero-dates {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  color: rgba(240,234,216,0.55);
}

/* ── MAIN ── */
.project-main {
  max-width: 860px;
  margin: 0 auto;
  padding: clamp(3rem, 6vw, 5rem) clamp(1.5rem, 6vw, 3rem);
}

/* ── SECTION ── */
.project-section {
  margin-bottom: 0;
}
.project-section-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.1rem;
  color: var(--charcoal);
  margin-bottom: 0.5rem;
  letter-spacing: 0.01em;
}
.project-body p {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 1rem;
  line-height: 1.85;
  color: var(--ink);
  margin-bottom: 1rem;
}
.project-body p:last-child {
  margin-bottom: 0;
}

/* ── DIVIDER ── */
.project-divider {
  border: none;
  border-top: 1px solid var(--parchment-dk);
  margin: clamp(1.5rem, 3vw, 2rem) 0;
}

/* ── TWO-COL (study area) ── */
.project-two-col {
  display: grid;
  grid-template-columns: 1fr 200px;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
.study-area-tags {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  padding-top: 2.6rem; /* align with body text */
}
.region-tag {
  font-family: var(--font-body);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sage);
  border: 1px solid var(--sage);
  padding: 0.28rem 0.7rem;
  border-radius: 2px;
  text-align: center;
  transition: background 0.2s, color 0.2s;
}
.region-tag:hover {
  background: var(--sage);
  color: var(--parchment);
}

/* ── COLLABORATORS ── */
.collaborators-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1.25rem 2rem;
}
.collaborator-name {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 0.92rem;
  color: var(--charcoal);
  margin-bottom: 0.2rem;
}
.collaborator-affil {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.5;
}

/* ── BACK LINK ── */
.project-back {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 clamp(1.5rem, 6vw, 3rem) clamp(2.5rem, 5vw, 3.5rem);
}
.back-link {
  font-family: var(--font-body);
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--terracotta);
  transition: color 0.2s, letter-spacing 0.2s;
}
.back-link:hover {
  color: var(--terra-lt);
  letter-spacing: 0.16em;
}

/* ── RESPONSIVE ── */
@media (max-width: 640px) {
  .project-two-col {
    grid-template-columns: 1fr;
  }
  .study-area-tags {
    flex-direction: row;
    flex-wrap: wrap;
    padding-top: 0;
  }
  .collaborators-list {
    grid-template-columns: 1fr;
  }
}
