.hero {
  padding-block: clamp(3rem, 8vw, 6rem);
  padding-inline: clamp(1.5rem, 6vw, 5rem);
  border-radius: var(--nnw-radius, 0.75rem);
  color: var(--nnw-text, #241a1d);
  background: color-mix(in srgb, var(--nnw-primary, #8e2035) 7%, var(--nnw-surface, #fffaf9));
}

.hero--start {
  text-align: start;
}

.hero--center {
  text-align: center;
}

.hero__heading {
  margin-block: 0 0.5rem;
  font-family: var(--nnw-heading-font, var(--nnw-body-font, sans-serif));
  font-size: clamp(2rem, 5vw, 3.25rem);
  line-height: 1.15;
}

.hero__subheading {
  margin-block: 0 1.5rem;
  font-size: 1.125rem;
  color: var(--nnw-muted, #7e6870);
}

.hero__button {
  display: inline-block;
  padding-block: 0.6rem;
  padding-inline: 1.25rem;
  border-radius: 999px;
  background: var(--nnw-primary, #8e2035);
  color: #fff;
  text-decoration: none;
}

.hero__eyebrow {
  margin-block: 0 0.75rem;
  color: var(--nnw-primary, #8e2035);
  font-size: 0.85rem;
  font-weight: 600;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.5rem;
}

.hero__link {
  padding-block: 0.6rem;
  color: inherit;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 0.3em;
}

/* Portrait: the picture stands beside the text (Phase 33). */
.hero--portrait {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2.5rem 4rem;
  background: var(--nnw-background, #fffaf9);
}

.hero--portrait .hero__inner {
  flex: 1 1 30rem;
  min-inline-size: 0;
}

.hero__portrait {
  flex: 0 1 24rem;
  min-inline-size: 0;
  margin: 0;
}

.hero__portrait img {
  display: block;
  inline-size: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--nnw-radius, 0.75rem);
}

.hero__portrait figcaption {
  margin-block-start: 0.75rem;
  color: var(--nnw-muted, #7e6870);
  font-size: 0.875rem;
}

/* A photo behind the text: a shade on the text side keeps the picture bright, and the text sits on a
   frosted panel with a thin light border, like the hero slider. */
.hero--photo {
  position: relative;
  display: flex;
  align-items: center;
  min-block-size: clamp(18rem, 34vw, 28rem);
  overflow: hidden;
  color: #fff;
}

/* The photo is an image element in the page, so its address resolves like any other link. */
.hero__background {
  position: absolute;
  inset: 0;
  z-index: 0;
  inline-size: 100%;
  block-size: 100%;
  object-fit: cover;
}

.hero--photo::before {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(90deg, rgb(26 10 18 / 45%), rgb(26 10 18 / 8%) 75%);
  content: '';
}

:where([dir='rtl']) .hero--photo::before {
  background: linear-gradient(270deg, rgb(26 10 18 / 45%), rgb(26 10 18 / 8%) 75%);
}

.hero--photo .hero__inner {
  position: relative;
  z-index: 2;
  max-inline-size: 40rem;
  border: 1px solid rgb(255 255 255 / 28%);
  border-radius: var(--nnw-radius, 0.75rem);
  padding-block: clamp(1.25rem, 3vw, 2rem);
  padding-inline: clamp(1.25rem, 3vw, 2.25rem);
  background: rgb(30 12 20 / 52%);
  box-shadow: 0 1.25rem 3rem rgb(0 0 0 / 25%);
  -webkit-backdrop-filter: blur(10px) saturate(1.2);
  backdrop-filter: blur(10px) saturate(1.2);
  text-shadow: 0 1px 2px rgb(0 0 0 / 35%);
}

.hero--photo .hero__subheading {
  color: rgb(255 255 255 / 92%);
}

.hero--photo .hero__eyebrow {
  color: #f3d9a4;
}
