/* Built like the other pages' heroes (PageHero): the same height, shading, type and motion */
.article-hero {
  position: relative;
  height: 92vh;
  height: 92svh;
  min-height: 620px;
  overflow: hidden;
  background-color: var(--night);
  color: var(--offwhite);
}

/* ============================================ */
/* PHOTOGRAPH */
/* ============================================ */

.article-hero__photo {
  position: absolute;
  inset: 0;
  margin: 0;
  animation: article-hero-settle 2400ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes article-hero-settle {
  from {
    transform: scale(1.12);
  }
  to {
    transform: scale(1);
  }
}

/* The same shading as the page heroes: it gathers behind the headline at the lower left */
.article-hero__photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(ellipse 85% 85% at 18% 88%, rgba(10, 26, 18, 0.9) 0%, rgba(10, 26, 18, 0.76) 50%, rgba(10, 26, 18, 0) 82%), linear-gradient(to top, rgba(10, 26, 18, 0.92) 0%, rgba(10, 26, 18, 0.72) 40%, rgba(10, 26, 18, 0.2) 70%, rgba(10, 26, 18, 0) 84%), linear-gradient(to bottom, rgba(10, 26, 18, 0.5) 0%, rgba(10, 26, 18, 0) 24%);
}

.article-hero__photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* The house grade, as near as CSS gets: the site's own photographs are graded muted and warm in their files */
  filter: saturate(0.65) contrast(1.05) brightness(0.96) sepia(0.08);
}

/* ============================================ */
/* HEADLINE */
/* ============================================ */

.article-hero__wrapper {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding-left: 20px;
  padding-right: 20px;
  padding-bottom: 4rem;
}

/* Tablet Portrait Up - Min 600px */
@media (min-width: 600px) {
  .article-hero__wrapper {
    padding-left: 32px;
    padding-right: 32px;
  }
}

/* Desktop Up - Min 1200px */
@media (min-width: 1200px) {
  .article-hero__wrapper {
    padding-left: 40px;
    padding-right: 40px;
    padding-bottom: 4.5rem;
  }
}

/* Planet Dyna and the topics, as the label */
.article-hero__trail ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 0.6rem;
  margin-top: 0;
  margin-bottom: 1.5rem;
  padding-left: 0;
  font-size: 15px;
  font-weight: 500;
  line-height: 1;
  list-style: none;
  animation: article-hero-fade 1200ms cubic-bezier(0.16, 1, 0.3, 1) 200ms both;
}

.article-hero__trail li:not(:last-child)::after {
  content: "·";
  margin-left: 0.6rem;
  color: var(--secondary-color-lighter);
}

.article-hero__trail a {
  color: var(--secondary-color-lighter);
  text-decoration: none;
}

.article-hero__trail a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.article-hero__title {
  max-width: 1240px;
  margin-top: 0;
  margin-bottom: 0;
  font-size: 42px;
  line-height: 0.98;
  letter-spacing: -0.045em;
}

/* Tablet Portrait Up - Min 600px */
@media (min-width: 600px) {
  .article-hero__title {
    font-size: 60px;
  }
}

/* Tablet Landscape Up - Min 900px */
@media (min-width: 900px) {
  .article-hero__title {
    font-size: 72px;
  }
}

/* Desktop Up - Min 1200px */
@media (min-width: 1200px) {
  .article-hero__title {
    font-size: 88px;
  }
}

/* Big Desktop Up - Min 1800px */
@media (min-width: 1800px) {
  .article-hero__title {
    max-width: 1500px;
    font-size: 112px;
  }
}

.article-hero__summary {
  max-width: 560px;
  margin-top: 1.75rem;
  margin-bottom: 0;
  color: rgba(244, 242, 236, 0.86);
  font-size: 17px;
  line-height: 1.55;
  animation: article-hero-fade 1400ms cubic-bezier(0.16, 1, 0.3, 1) 600ms both;
}

/* Desktop Up - Min 1200px */
@media (min-width: 1200px) {
  .article-hero__summary {
    font-size: 18px;
  }
}

.article-hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1rem;
  margin-top: 1.25rem;
  margin-bottom: 0;
  color: rgba(244, 242, 236, 0.78);
  font-size: 14px;
  line-height: 1.3;
  animation: article-hero-fade 1400ms cubic-bezier(0.16, 1, 0.3, 1) 700ms both;
}

@keyframes article-hero-fade {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Reduced motion shows the opening at rest */
@media (prefers-reduced-motion: reduce) {
  .article-hero__photo,
  .article-hero__trail ul,
  .article-hero__summary,
  .article-hero__meta {
    animation: none;
  }
}
