/* Styles for auto-generated /projects/<slug>/ case-study pages.
   Loaded in addition to styles.css; keep selectors namespaced under .project-. */

.project-article {
  padding-block: clamp(2.6rem, 6vw, 4.6rem) 4rem;
}

.project-hero {
  max-width: min(900px, 94vw);
}

.project-eyebrow {
  margin: 0 0 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: clamp(0.78rem, 1vw, 0.92rem);
  font-weight: 600;
  color: var(--muted);
}

.project-hero h1 {
  margin: 0;
  font-size: clamp(2.1rem, 5.6vw, 3.8rem);
  line-height: 1.05;
  text-transform: uppercase;
  font-weight: 700;
}

.project-hero-media {
  width: calc(100% - 60px);
  margin: 2rem auto 0;
}

.project-hero-media img {
  width: 100%;
  max-height: 640px;
  object-fit: cover;
  object-position: center;
  display: block;
}

.project-body {
  padding-top: 2.6rem;
  max-width: min(900px, 94vw);
}

.project-section {
  padding-top: 2.5rem;
  margin-top: 2.5rem;
  border-top: 1px solid #000000;
}

.project-section:first-child {
  padding-top: 0;
  margin-top: 0;
  border-top: 0;
}

.project-section h2 {
  margin: 0 0 1.15rem;
  font-size: clamp(1.35rem, 2.8vw, 2rem);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.project-section p {
  margin: 0 0 1rem;
  color: #171717;
}

.project-section p:last-child {
  margin-bottom: 0;
}

.project-tech-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
}

.project-tech-list li {
  margin: 0 0 0.4rem;
  color: var(--text);
}

.project-tech-list li:not(:last-child)::after {
  content: "\00a0\00b7\00a0\00a0";
  color: var(--muted);
}

.project-section-image {
  margin: 1.5rem 0 0;
}

.project-section-image img {
  width: 100%;
  height: auto;
  display: block;
}

.project-back-link {
  padding-top: 2.8rem;
  max-width: min(900px, 94vw);
}

@media (max-width: 780px) {
  .project-hero-media {
    width: min(900px, 94vw);
    margin-top: 1.4rem;
  }

  .project-section {
    margin-top: 2rem;
    padding-top: 2rem;
  }

  .project-section-image img {
    aspect-ratio: 1 / 1;
    object-fit: cover;
    object-position: center;
  }
}
