/* ── Page shell (shared across non-landing pages) ── */
.page {
  min-height: 100vh;
  display: flex;
  position: relative;
  z-index: 1;
}

.page__content {
  margin-left: clamp(2rem, 32vw, 520px);
  max-width: 580px;
  padding: 6rem 2rem 6rem 0;
  width: 100%;
}

/* ── Back link ── */
.back-link {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.07em;
  color: var(--text-dim);
  margin-bottom: 3rem;
  transition: color 0.2s;
}

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

/* ── Page heading ── */
.page-heading {
  font-family: var(--font-serif);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  line-height: 1.05;
  color: var(--text);
  margin-bottom: 0.75rem;
}

.page-subheading {
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 300;
  color: var(--text-dim);
  margin-bottom: 3.5rem;
}

/* ── Project list ── */
.project-list {
  list-style: none;
  display: flex;
  flex-direction: column;
}

/* ── Project item ── */
.project-item {
  padding: 2.25rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.project-item:last-child {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.project-item__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.9rem;
}

.project-item__num {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  color: var(--text-dim);
  opacity: 0.5;
}

.project-item__links {
  display: flex;
  gap: 1.25rem;
}

.project-item__link {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  color: var(--text-dim);
  transition: color 0.2s;
}

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

.project-item__link.accent {
  color: var(--accent);
}

.project-item__link.accent:hover {
  color: #e05040;
}

/* ── Project name ── */
.project-item__name {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.15;
  margin-bottom: 0.75rem;
}

/* ── Project description ── */
.project-item__desc {
  font-family: var(--font-sans);
  font-size: 0.925rem;
  font-weight: 300;
  color: var(--text-dim);
  line-height: 1.7;
  margin-bottom: 1.1rem;
}

/* ── Tags ── */
.project-item__tags {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tag {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.06em;
  color: var(--text-dim);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 0.25rem 0.6rem;
  opacity: 0.7;
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .page__content {
    margin-left: 0;
    max-width: 100%;
    padding: 6rem 1.5rem 4rem;
  }
}
