/* ── Hero section ──────────────────────────────────────────── */

.hero-section {
  padding: 2.5rem 0 2.25rem;
  margin-bottom: 1.75rem;
  border-bottom: 1px solid var(--categories-border);
}

.hero-headline {
  font-size: clamp(1.875rem, 5vw, 2.75rem);
  font-weight: 700;
  line-height: 1.15;
  margin: 0 0 0.875rem;
  letter-spacing: -0.02em;
  color: var(--heading-color);
}

.hero-sub {
  font-size: 1.0625rem;
  line-height: 1.7;
  max-width: 52ch;
  margin: 0 0 1.625rem;
  color: var(--label-color);
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.625rem;
  align-items: center;
}

/* Theme-native CTA buttons — use Chirpy's accent and border variables */
.hero-btn {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 1.125rem;
  border-radius: 0.375rem;
  font-size: 0.9375rem;
  font-weight: 500;
  line-height: 1.4;
  text-decoration: none;
  transition: opacity 0.15s ease;
  white-space: nowrap;
}

/* Primary: filled with theme accent, softened ~18% against card bg */
.hero-btn-primary {
  --_btn-color: color-mix(in srgb, var(--link-color) 82%, var(--card-bg) 18%);
  background-color: var(--_btn-color);
  color: var(--main-bg);
  border: 1px solid var(--_btn-color);
}

.hero-btn-primary:hover {
  opacity: 0.82;
  color: var(--main-bg);
  text-decoration: none;
}

/* Secondary: outlined, inherits accent for border and text */
.hero-btn-secondary {
  background-color: transparent;
  color: var(--link-color);
  border: 1px solid var(--categories-border);
}

.hero-btn-secondary:hover {
  background-color: var(--sidebar-hover-bg);
  color: var(--link-color);
  text-decoration: none;
}

/* ── Featured project card on Projects page ────────────────── */

.featured-project {
  border: 1px solid var(--main-border-color);
  border-left: 3px solid var(--link-color);
  border-radius: 0.5rem;
  padding: 1.5rem 1.5rem 1.25rem;
  margin-bottom: 2.25rem;
  background: var(--card-bg);
  box-shadow: var(--card-shadow);
}

/* Deliberate section break before the project list */
.featured-project + h2 {
  padding-top: 1.25rem;
  border-top: 1px solid var(--main-border-color);
  margin-top: 0;
}

.featured-project .fp-label {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--link-color);
  margin-bottom: 0.625rem;
}

.featured-project h3 {
  margin-top: 0;
  margin-bottom: 0.5rem;
  font-size: 1.25rem;
}

.featured-project .fp-meta {
  font-size: 0.85rem;
  color: var(--text-muted-color);
  margin-bottom: 0.875rem;
}

.featured-project .fp-desc {
  font-size: 0.9375rem;
  line-height: 1.68;
  margin-bottom: 1.125rem;
  color: var(--text-color);
}

.featured-project .fp-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  align-items: center;
  font-size: 0.9rem;
}

.featured-project .fp-links a {
  color: var(--link-color);
  font-weight: 500;
  text-decoration: none;
}

.featured-project .fp-links a:hover {
  opacity: 0.7;
}
