/* Article introductions borrow generous spacing while keeping Simplism's type and artwork. */
.article-hero {
  padding-block: clamp(3rem, 7vw, 6rem) 1.5rem;
}

.article-hero .post-head {
  max-width: 56rem;
  margin: 0 auto clamp(2rem, 5vw, 3.5rem);
  text-align: center;
}

.article-hero-date {
  margin: 0 0 1.25rem;
  color: var(--muted);
  font-size: 0.8125rem;
}

.article-hero .post-title {
  margin: 0;
  font-size: clamp(2rem, 4.5vw, 3.75rem);
  font-family: var(--font-read);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.02em;
  text-wrap: balance;
  overflow-wrap: anywhere;
}

.article-hero .lede {
  max-width: 38rem;
  margin: 1.5rem auto 0;
  color: var(--muted);
}

.article-hero .meta {
  justify-content: center;
  margin: 1.5rem 0 0;
  gap: 0.5rem 1.25rem;
  letter-spacing: 0.01em;
}

.article-share-controls {
  position: relative;
  margin-top: 1.5rem;
}

.article-share {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  min-height: 2.75rem;
  padding: 0.5rem 0.25rem;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.5;
  cursor: pointer;
  transition: opacity 160ms ease;
}

.article-share[hidden],
.article-share-manual[hidden] {
  display: none;
}

.article-share:hover {
  opacity: 0.65;
}

.article-share-dismiss:hover {
  background: var(--fill);
}

.article-share:disabled {
  cursor: progress;
  opacity: 0.65;
}

.article-share svg {
  width: 1.5rem;
  height: 1.5rem;
  flex: 0 0 auto;
}

.article-share-dismiss svg {
  width: 1.125rem;
  height: 1.125rem;
  flex: 0 0 auto;
}

.article-share-status {
  position: absolute;
  top: 3rem;
  left: 50%;
  z-index: 1;
  width: max-content;
  max-width: 100%;
  margin: 0;
  padding: 0.4rem 0.75rem;
  border-radius: 0.5rem;
  background: var(--fill);
  color: var(--text);
  font-size: 0.8125rem;
  line-height: 1.5;
  transform: translateX(-50%);
  pointer-events: none;
}

.article-share-status:empty {
  padding: 0;
  background: transparent;
}

.article-share-manual {
  display: flex;
  align-items: center;
  max-width: 38rem;
  margin: 3rem auto 0;
  border: 1px solid var(--line);
  background: var(--bg);
}

.article-share-link {
  width: 100%;
  min-width: 0;
  min-height: 2.75rem;
  padding: 0.5rem 0.75rem;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 0.8125rem;
}

.article-share-dismiss {
  display: grid;
  place-items: center;
  flex: 0 0 2.75rem;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--text);
  cursor: pointer;
}

/* The existing processed-cover rule remains responsible for its complete 16:9 frame. */
.article-hero .post-cover {
  margin-bottom: 0;
}

@media (prefers-reduced-motion: reduce) {
  .article-share {
    transition: none;
  }
}

@media (max-width: 40rem) {
  .article-hero {
    padding-top: 2.5rem;
  }

  .article-hero-date {
    margin-bottom: 1rem;
  }

  .article-hero .post-head {
    margin-bottom: 2rem;
  }

  .article-hero .lede {
    margin-top: 1.25rem;
  }
}
