.np-project {
  background-color: var(--np-color-bg);
  color: var(--np-color-ink);
}

.np-project__header {
  padding: 5rem 1.5rem 2.5rem;
}

.np-project__inner {
  max-width: 76rem;
  margin-left: auto;
  margin-right: auto;
}

.np-project__back {
  display: block;
  margin-bottom: 1.25rem;
  color: var(--np-color-ink-soft);
  text-decoration: none;
}

.np-project__back:hover {
  color: var(--np-color-ink);
}

.np-project__categories {
  display: block;
  margin-bottom: 1.25rem;
}

.np-project__title {
  font-size: clamp(2.5rem, 5.5vw, 5.6rem);
  line-height: 1.02;
  margin-bottom: 0;
}

/* Image on the left, project details in a sticky side column on the right. */
.np-project__layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 19rem);
  gap: 3rem 4rem;
  align-items: start;
  max-width: calc(76rem + 3rem);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.np-project__main { min-width: 0; }

.np-project__main .np-prose {
  max-width: none;
  margin: 3rem 0 0;
  padding: 0;
}

.np-project__aside {
  position: sticky;
  top: 6rem;
  display: grid;
  gap: 2rem;
}

.np-project__summary {
  max-width: 40rem;
  margin-bottom: 2rem;
  color: var(--np-color-ink-soft);
  font-size: 1.25rem;
  line-height: 1.6;
}

.np-project__summary > :first-child { margin-top: 0; }
.np-project__summary > :last-child { margin-bottom: 0; }

.np-project__meta {
  flex: 0 1 26rem;
  margin: 0;
  display: grid;
  gap: 1.25rem;
}

.np-project__meta-item {
  display: grid;
  gap: 0.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--np-color-border);
}

.np-project__meta dd {
  margin: 0;
  font-size: 1.0625rem;
}

.np-project__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.np-project__tags li {
  border: 1px solid var(--np-color-border);
  border-radius: var(--np-radius-pill);
  padding: 0.35rem 0.65rem;
  font-family: var(--np-font-mono);
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: var(--np-tracking-label);
  color: var(--np-color-ink);
}

.np-project__cta { margin: 0; }

.np-project__media { margin: 0; }

.np-project__media img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1412 / 885;
  object-fit: cover;
  border-radius: var(--np-radius-card);
  background-color: var(--np-color-surface);
}

.np-project__content {
  padding: 4rem 0 0;
}

.np-project__content:empty {
  display: none;
}

@media (max-width: 62rem) {
  .np-project__layout { grid-template-columns: minmax(0, 1fr); }
  .np-project__aside { position: static; }
}

@media (max-width: 39.99rem) {
  .np-project__header { padding-top: 3rem; }
}
