/* ==========================================================================
   CESURNES — page hero (template-parts/page-hero.php)
   The black opening band of the inner pages: optional kicker, a large thin
   title, and an aside line on the right. Pages that want a photo behind it
   get the "page-hero--image" modifier, styled at the end of this file.
   Declarations are the static exports' inline styles, moved onto classes.
   ========================================================================== */

.page-hero {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 52svh;
  padding: 140px var(--shell-edge) clamp(28px, 4vw, 56px);
  background: var(--c-black);
  color: var(--c-white);
}

.page-hero__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px 40px;
}

.page-hero__head {
  display: flex;
  flex-direction: column;
  gap: clamp(10px, 1.2vw, 18px);
}

.page-hero__kicker {
  font-size: clamp(14px, 1.2vw, 16px);
  line-height: 16px;
  font-weight: 300;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.page-hero__title {
  font-size: clamp(40px, 6.6vw, 96px);
  line-height: .92;
  font-weight: 100;
  text-transform: uppercase;
  letter-spacing: -.01em;
}

.page-hero__aside {
  font-size: 14px;
  line-height: 16px;
  font-weight: 300;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--c-dim-soft);
}

/* Background photo, when the page passes one. */
.page-hero__media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ============================================================ photo hero */
/* With a background photo (À propos, Collection): full height, a shade that
   darkens the top edge and fades to black under the copy, a larger title and
   a plain-text aside. */
.page-hero--image {
  position: relative;
  height: 88svh;
  min-height: 560px;
  padding: 0 var(--shell-edge) clamp(20px, 3vw, 40px);
  overflow: hidden;
}

.page-hero--image .page-hero__media { object-position: center 40%; }

.page-hero__shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, .35) 0%, rgba(0, 0, 0, 0) 26%, rgba(0, 0, 0, 0) 48%, var(--c-black) 96%);
}

.page-hero--image .page-hero__inner {
  position: relative;
  gap: 8px 40px;
}

.page-hero--image .page-hero__title { font-size: clamp(44px, 8.4vw, 120px); }

.page-hero--image .page-hero__aside {
  font-size: clamp(14px, 1.5vw, 22px);
  line-height: 1.3;
  text-transform: none;
  letter-spacing: normal;
  color: inherit;
  text-wrap: balance;
}
