/* New top bar + post-style page intro for classic pages (projects, about, error).
   Everything below them keeps the existing site styles (assets/css/index.css). */

:root {
  --ink: #0f0f0f;
  --muted: #6b6b6b;
  --faint: #9b9b9b;
}

/* ---------- Top bar: back to the feed · who ---------- */

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 4rem;
  font-weight: 500;
}

.topbar-back {
  color: var(--muted);
  text-decoration: none;
  font-size: .9375rem;
  transition: color .15s ease;
}

.topbar-back:hover {
  color: var(--ink);
}

.topbar-me {
  display: flex;
  align-items: center;
  gap: .75rem;
  text-decoration: none;
  line-height: 1.3;
}

/* index.css makes every img full width, so size the avatar explicitly */
.topbar-avatar {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  object-fit: cover;
  flex: none;
}

.topbar-name {
  display: block;
  font-weight: 600;
  font-size: .9375rem;
  color: var(--ink);
}

.topbar-role {
  display: block;
  font-size: .8125rem;
  color: var(--muted);
}

/* ---------- Intro: same meta line as a post in the feed ---------- */

.project-intro {
  margin-bottom: 2.5rem;
  font-weight: 500;
}

.post-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .5rem;
  font-size: .8125rem;
  color: var(--muted);
  margin-bottom: .875rem;
}

.post-type {
  color: var(--ink);
  font-weight: 600;
}

.post-meta .sep {
  color: var(--faint);
}

.project-intro-title {
  font-size: 2rem;
  line-height: 1.2;
  font-weight: 600;
  letter-spacing: -.02em;
  margin-bottom: .5rem;
}

.project-intro-sub {
  font-size: 1.125rem;
  line-height: 1.45;
  color: var(--muted);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  font-size: .75rem;
  color: var(--muted);
  background: #f5f5f3;
  border-radius: 999px;
  padding: .2rem .6rem .2rem .5rem;
}

@media (max-width: 30rem) {
  .topbar {
    margin-bottom: 2.5rem;
  }

  .topbar-role {
    display: none;
  }

  .project-intro-title {
    font-size: 1.625rem;
  }
}
