.article-hero {
  --article-hero-overlay: 0.4;
  --article-hero-position: center center;
  --article-hero-title-size: 84px;
  position: relative;
  display: grid;
  width: 100%;
  min-height: 27rem;
  max-height: 36rem;
  aspect-ratio: 16 / 9;
  align-items: end;
  overflow: hidden;
  background:
    radial-gradient(circle at 22% 12%, rgba(255, 255, 255, 0.74), transparent 38%),
    #f4f1e6;
  color: #14241e;
  isolation: isolate;
}

.article-hero__image,
.article-hero__overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.article-hero__image {
  z-index: -2;
  object-fit: cover;
  object-position: var(--article-hero-position);
}

.article-hero__overlay {
  z-index: -1;
  background: linear-gradient(
    180deg,
    rgba(244, 241, 230, calc(var(--article-hero-overlay) * 0.58)) 0%,
    rgba(244, 241, 230, var(--article-hero-overlay)) 52%,
    rgba(244, 241, 230, calc(var(--article-hero-overlay) + 0.16)) 100%
  );
}

.article-hero__content {
  display: flex;
  width: min(100%, 62rem);
  min-width: 0;
  flex-direction: column;
  align-items: center;
  margin-inline: auto;
  padding: clamp(2.5rem, 7vw, 5.5rem) clamp(1.5rem, 6vw, 5rem);
  text-align: center;
  text-shadow: 0 1px 14px rgba(244, 241, 230, 0.92);
}

.article-hero--text-left .article-hero__content {
  align-items: flex-start;
  margin-inline: 0 auto;
  text-align: left;
}

.article-hero__category,
.article-hero__meta {
  font-family: "Plus Jakarta Sans", "Segoe UI Emoji", "Apple Color Emoji", "Segoe UI Symbol", "Noto Color Emoji", sans-serif;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  line-height: 1.35;
  text-transform: uppercase;
}

.article-hero__category {
  margin: 0;
  color: #7a6348;
}

.article-hero__title {
  max-width: 16ch;
  margin: 0.8rem 0 0;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(1.75rem, 6vw, var(--article-hero-title-size));
  font-style: italic;
  font-weight: 400;
  hyphens: auto;
  -webkit-hyphens: auto;
  hyphenate-character: "-";
  hyphenate-limit-chars: 8 4 4;
  letter-spacing: -0.025em;
  line-height: 0.98;
  overflow-wrap: normal;
  word-break: normal;
}

.article-hero__excerpt {
  max-width: 43rem;
  margin: 1.1rem 0 0;
  color: rgba(20, 36, 30, 0.78);
  font-family: "Crimson Pro", Georgia, serif;
  font-size: clamp(1.15rem, 2vw, 1.45rem);
  hyphens: auto;
  -webkit-hyphens: auto;
  hyphenate-character: "-";
  hyphenate-limit-chars: 8 4 4;
  line-height: 1.45;
  overflow-wrap: normal;
  word-break: normal;
}

.article-hero__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: inherit;
  gap: 0.45rem 0.7rem;
  margin: 1.25rem 0 0;
  color: rgba(20, 36, 30, 0.62);
  font-weight: 600;
  letter-spacing: 0.12em;
}

.article-hero--editor {
  box-shadow: inset 0 0 0 1px rgba(211, 200, 181, 0.72);
}

.article-hero--mobile {
  min-height: 29rem;
  max-height: 38rem;
  aspect-ratio: 4 / 5;
}

.article-hero--mobile .article-hero__content {
  align-items: center;
  padding: 2.5rem 1.35rem;
  text-align: center;
}

.article-hero--mobile .article-hero__title {
  max-width: 14ch;
  font-size: min(var(--article-hero-title-size), 3.25rem);
  line-height: 1.02;
}

.article-hero--mobile .article-hero__excerpt {
  display: -webkit-box;
  max-width: 28rem;
  overflow: hidden;
  font-size: 1.08rem;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
}

@media (max-width: 767px) {
  .article-hero {
    min-height: 29rem;
    max-height: none;
    aspect-ratio: 4 / 5;
  }

  .article-hero__content,
  .article-hero--text-left .article-hero__content {
    align-items: center;
    padding: 2.5rem 1.35rem;
    text-align: center;
  }

  .article-hero__title {
    max-width: 14ch;
    font-size: min(var(--article-hero-title-size), 3.4rem);
  }

  .article-hero__excerpt {
    display: -webkit-box;
    overflow: hidden;
    font-size: 1.08rem;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4;
  }
}
