.hero {
  min-height: 62vh;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 3rem var(--page-gutter) 4rem;
  background-size: cover;
  background-position: center -150px;
  background-image: url("../img/hero-bg-day.png");
  transition: background-image 0.8s ease;
}

.hero-content {
  width: min(100%, var(--content-max-width));
  color: inherit;
  margin: 0;
  text-align: left;
  display: grid;
  gap: 1rem;
}

.hero-eyebrow {
  margin: 0;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.85;
  color: var(--eyebrow-color);
}

.hero-content h1 {
  max-width: 14ch;
  font-size: clamp(2.5rem, 3.9vw, 4.1rem);
  font-weight: 700;
  line-height: 1.04;
  margin: 0;
  overflow-wrap: break-word;
}

.hero-status {
  max-width: 52ch;
  margin: 0;
  font-size: 1.02rem;
  line-height: 1.55;
  color: var(--muted-color);
}

.hero-actions {
  display: flex;
  justify-content: flex-start;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 0.75rem;
}

.hero-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  padding: 0.95rem 1.4rem;
  border-radius: 999px;
  color: inherit;
  text-decoration: none;
  font-weight: 600;
  transition:
    transform 0.2s ease,
    background-color 0.2s ease,
    color 0.2s ease,
    border-color 0.2s ease;
}

.hero-link:not(.hero-link-primary) {
  border: 1px solid var(--border-color);
  background: var(--surface-overlay);
  box-shadow: var(--button-shadow);
}

.hero-link:hover,
.hero-link:focus-visible {
  transform: translateY(-2px);
}

body.night-theme .hero {
  background-image: url("../img/hero-bg-night.png");
}

.hero-link:not(.hero-link-primary):hover,
.hero-link:not(.hero-link-primary):focus-visible {
  background: var(--surface-overlay-hover);
}

@media (max-width: 768px) {
  .hero {
    min-height: auto;
    padding: 5.5rem var(--page-gutter) 2.5rem;
    background-position: top center;
    background-size: cover;
  }

  .hero-content {
    width: 100%;
    color: inherit;
    gap: 0.85rem;
  }
  .hero-content h1 {
    max-width: 11ch;
    font-size: clamp(1.9rem, 7vw, 2.6rem);
    line-height: 1.08;
  }

  .hero-status {
    max-width: 38ch;
    font-size: 0.92rem;
    line-height: 1.5;
  }

  .hero-eyebrow {
    font-size: 0.8rem;
    letter-spacing: 0.06em;
  }

  .hero-actions {
    gap: 0.75rem;
    margin-top: 1.5rem;
  }

  .hero-link {
    width: auto;
    max-width: none;
    min-width: 150px;
    padding: 0.9rem 1.2rem;
  }
}
