/*
 * Flux hero: solid Ink ground with Chalk type and the Split (Heat left, Cold right)
 * as a hard bar along the bottom edge. With a background image, a solid Ink panel
 * sits over it: no reading copy over photographs without a solid panel (B3, colour).
 */
.rui-hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  display: flex;
  min-height: 600px;
  align-items: center;
  padding: 120px 0 136px;
  color: var(--flux-hero-foreground);
  background-color: var(--flux-hero-background);
  background-image: var(--flux-hero-overlay), var(--rui-hero-background-image, none);
  background-position: center;
  background-size: cover;
}

.rui-hero::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 16px;
  content: "";
  background: linear-gradient(90deg, var(--flux-heat) 50%, var(--flux-cold) 50%);
}

.rui-hero__container {
  position: relative;
  z-index: 2;
  width: 100%;
}

.rui-hero__content {
  max-width: 820px;
  overflow-wrap: anywhere;
}

.rui-hero__content > :first-child {
  margin-top: 0;
}

.rui-hero__content > :last-child {
  margin-bottom: 0;
}

.rui-hero__content h1 {
  max-width: 820px;
  margin-bottom: 24px;
  color: inherit;
}

.rui-hero__content h3:first-child {
  margin-bottom: 20px;
  color: var(--flux-cold);
}

.rui-hero__content p {
  max-width: 640px;
  margin-bottom: 16px;
  font-size: 19px;
}

.rui-hero__content a {
  color: inherit;
}

.rui-hero__buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

@media (max-width: 840px) {
  .rui-hero {
    min-height: 480px;
    padding: 88px 0 104px;
  }
}

@media (max-width: 600px) {
  .rui-hero {
    min-height: 420px;
    padding: 64px 0 88px;
  }

  .rui-hero::after {
    height: 10px;
  }

  .rui-hero__content p {
    font-size: 17px;
  }

  .rui-hero__buttons {
    margin-top: 24px;
    flex-direction: column;
    align-items: stretch;
  }
}
