/**
 * Hero block.
 *
 * Static stylesheet, registered per block — see callout.css for why. The photograph
 * fills the block, darkened enough that the white type reads on any part of it.
 */

.hero {
  position: relative;
  display: grid;
  align-items: end;
  overflow: hidden;
  color: #ffffff;
  background: #222222;
}

.hero--small {
  min-height: 50vh;
}

.hero--medium {
  min-height: 75vh;
}

.hero--full {
  min-height: 100vh;
}

/* The Figure of studiometa/ui: the figure, its inner box and the image fill the
   block. Written out rather than left to the Tailwind classes of the Figure template,
   which the theme build does not scan. */
.hero__background,
.hero__background .figure__inner,
.hero__background .figure__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero__background {
  margin: 0;
  opacity: 0.7;
}

.hero__background .figure__img {
  max-width: none;
  object-fit: cover;
}

.hero__content {
  position: relative;
  padding: clamp(1.5rem, 5vw, 4rem) clamp(1rem, 4vw, 3rem);
}

.hero__title {
  font-size: clamp(2rem, 6vw, 4.5rem);
  font-weight: 500;
  line-height: 1;
}

.hero__subtitle {
  max-width: 34ch;
  margin-top: 1rem;
  font-size: clamp(1.125rem, 2vw, 1.5rem);
  line-height: 1.3;
}

.hero__cta {
  display: inline-block;
  margin-top: 1.5rem;
  padding: 0.75rem 1.25rem;
  font-size: 0.6875rem;
  font-weight: 500;
  color: inherit;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  border: 1px solid currentcolor;
}
