/* block page */

.block-page {
  color: #111827;
}

/* hero */

.block-hero {
  position: relative;
  display: grid;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  height: 384px;
  overflow: hidden;
}

.block-hero-image {
  display: block;
  width: 100%;
  height: 100%;
  grid-area: 1 / 1;
  object-fit: cover;
  object-position: center;
}

.block-hero-overlay {
  z-index: 1;
  grid-area: 1 / 1;
  background: linear-gradient(
    180deg,
    rgb(17 24 39 / 65%),
    rgb(17 24 39 / 78%)
  );
}

.block-hero-content {
  position: relative;
  z-index: 2;
  align-self: center;
  justify-self: center;
  grid-area: 1 / 1;
  width: min(100% - 32px, 720px);
  text-align: center;
  animation: block-content-in 0.5s ease both;
}

.block-hero-eyebrow {
  display: block;
  margin-bottom: 12px;
  color: rgb(255 255 255 / 65%);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.block-hero-title {
  margin: 0;
  color: #ffffff;
  font-size: clamp(36px, 5vw, 52px);
  font-weight: 800;
  line-height: 1.1;
}

.block-hero-description {
  max-width: 620px;
  margin: 18px auto 0;
  color: rgb(255 255 255 / 75%);
  font-size: 18px;
  line-height: 1.55;
}

/* hero without image */

.block-hero-content-plain {
  width: min(100% - 32px, 720px);
  margin: 0 auto;
  padding-top: 64px;
  text-align: center;
}

.block-hero-content-plain .block-hero-eyebrow {
  color: var(--color-primary);
}

.block-hero-content-plain .block-hero-title {
  color: #111827;
}

.block-hero-content-plain .block-hero-description {
  color: #667085;
}

/* content */

.block-content {
  padding: 64px 0 80px;
}

.block-container {
  width: min(100% - 40px, 768px);
  margin-inline: auto;
}

.block-article section + section {
  margin-top: 36px;
}

.block-article h2 {
  margin: 0 0 16px;
  color: #111827;
  font-size: 24px;
  font-weight: 800;
  line-height: 1.3;
}

.block-article p {
  margin: 0 0 14px;
  color: #667085;
  font-size: 16px;
  line-height: 1.75;
}

.block-article strong {
  color: #344054;
  font-weight: 700;
}

@keyframes block-content-in {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 600px) {
  .block-hero {
    height: 320px;
  }

  .block-hero-title {
    font-size: 34px;
  }

  .block-hero-description {
    font-size: 15px;
  }

  .block-content {
    padding: 48px 0 64px;
  }

  .block-container {
    width: min(100% - 32px, 768px);
  }

  .block-article h2 {
    font-size: 21px;
  }

  .block-article p {
    font-size: 15px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .block-hero-content {
    animation: none;
  }
}

/* Embedded custom blocks on the home page. */

.block-page,
.block-content {
  color: #111827;
  background-color: transparent;
}

.block-container {
  width: 100%;
  max-width: none;
}

.block-hero-overlay {
  background: linear-gradient(
    180deg,
    rgb(17 24 39 / 65%),
    rgb(17 24 39 / 78%)
  );
}

.block-hero-content {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  width: min(100% - 32px, 720px);
  height: 100%;
  margin-inline: auto;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  justify-self: center;
  color: #fff;
  text-align: center;
  text-shadow: 0 2px 18px rgb(0 0 0 / 35%);
}

.block-hero-title {
  color: #fff;
}

.block-hero-description {
  color: rgb(255 255 255 / 85%);
}

.block-hero-content-plain {
  position: relative;
  inset: auto;
  display: block;
  height: auto;
  color: #111827;
  text-shadow: none;
}

.block-hero-content-plain .block-hero-title {
  color: #111827;
}

.block-hero-content-plain .block-hero-description {
  color: #667085;
}

.block-article {
  padding: 36px 40px;
  color: #667085;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  background-color: #fff;
  box-shadow: 0 10px 30px rgb(17 24 39 / 6%);
}

.block-article,
.block-article .trix-content,
.block-article .trix-content div,
.block-article .trix-content p,
.block-article .trix-content li,
.block-article .trix-content blockquote {
  color: #667085;
}

.block-article h1,
.block-article h2,
.block-article h3,
.block-article h4 {
  color: #111827;
}

.block-article strong,
.block-article b {
  color: #344054;
}

.block-article a {
  color: var(--color-primary);
}

@media (max-width: 600px) {
  .block-article {
    padding: 26px 22px;
    border-radius: 14px;
  }
}
