/* Project page hero — used by individual project pages via the project-hero title-block partial */

.project-hero {
  position: relative;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  min-height: 380px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  margin-bottom: 2.5rem;
  color: #ffffff;
}

.project-hero-image {
  position: absolute;
  inset: 0;
  background-color: #4c1d95;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

.project-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
    rgba(31, 41, 55, 0.35) 0%,
    rgba(31, 41, 55, 0.75) 70%,
    rgba(31, 41, 55, 0.85) 100%);
}

.project-hero-content {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 3rem 2rem 2.5rem;
}

.project-hero-eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #fdba74;
  padding: 0.25rem 0.65rem;
  border: 1px solid rgba(253, 186, 116, 0.6);
  border-radius: 999px;
  margin-bottom: 1rem;
}

.project-hero-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0 0 0.75rem;
  padding: 0;
}

.project-hero-categories .quarto-category {
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  font-size: 0.78rem;
  letter-spacing: 0.02em;
  border: none;
}

.project-hero-title {
  font-family: "Petrona", serif;
  font-size: clamp(1.9rem, 3.4vw, 2.8rem);
  font-weight: 500;
  line-height: 1.15;
  margin: 0;
  color: #ffffff;
}

.project-hero-subtitle {
  font-size: clamp(1rem, 1.3vw, 1.2rem);
  line-height: 1.45;
  margin: 0.85rem 0 0;
  max-width: 820px;
  opacity: 0.92;
  color: #ffffff;
}

.project-hero-links {
  margin-top: 1.4rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.project-hero-btn {
  display: inline-flex;
  align-items: center;
  background: #ffffff;
  color: #1f2937;
  padding: 0.45rem 0.95rem;
  border-radius: 6px;
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  border: 1px solid transparent;
  transition: background-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.project-hero-btn:hover,
.project-hero-btn:focus {
  background: #f97316;
  color: #ffffff;
  text-decoration: none;
  transform: translateY(-1px);
}

.project-description {
  max-width: 820px;
  margin: 0 auto 1.5rem;
  font-size: 1.05rem;
  color: #4b5563;
}

/* Push Quarto's right-margin TOC below the hero so it doesn't overlap.
   Scoped via :has() so it only fires on pages that actually render the
   hero — not on the listing page, where this stylesheet also cascades. */
body:has(.project-hero) #quarto-margin-sidebar {
  margin-top: 400px;
}

@media (max-width: 768px) {
  .project-hero { min-height: 280px; }
  .project-hero-content { padding: 2rem 1.25rem 1.5rem; }
}
