/* ==========================================================================
   Component: Hero banner
   Left-aligned copy over a background illustration.
   Per the design note the banner is hidden on phones.
   Requires: common.css
   ========================================================================== */

.di-hero {
  position: relative;
  overflow: hidden;
  background-color: var(--di-cream);
  background-image: linear-gradient(90deg, #faf6ef 0%, rgba(250, 246, 239, .85) 34%, rgba(250, 246, 239, 0) 62%),
                    url("../svg/hero-books.svg");
  background-repeat: no-repeat;
  background-position: left center, right center;
  background-size: cover, auto 100%;
}

.di-hero__inner {
  display: flex;
  align-items: center;
  min-height: 420px;
  padding-block: 48px;
}

.di-hero__content {
  max-width: 520px;
}

.di-hero__eyebrow {
  display: inline-block;
  margin: 0 0 18px;
  padding: 6px 14px;
  border-radius: var(--di-radius-sm);
  background-color: #e6dcc4;
  color: #6b5525;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 1.1px;
  text-transform: uppercase;
}

.di-hero__title {
  margin: 0 0 16px;
  font-size: clamp(2rem, 1.2rem + 2.8vw, 3.25rem);
  font-weight: 600;
  line-height: 1.14;
  letter-spacing: -.5px;
  color: var(--di-text);
}

.di-hero__text {
  margin: 0 0 28px;
  max-width: 420px;
  font-size: var(--di-fs-base);
  color: #4b524e;
}

.di-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.di-hero__actions .di-btn { min-width: 148px; }

.di-hero__actions .di-btn--outline { background-color: var(--di-white); }

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 1199.98px) {
  .di-hero__inner { min-height: 360px; }
  .di-hero__content { max-width: 460px; }
}

@media (max-width: 991.98px) {
  .di-hero {
    background-image: linear-gradient(90deg, #faf6ef 0%, rgba(250, 246, 239, .9) 46%, rgba(250, 246, 239, .2) 78%),
                      url("../svg/hero-books.svg");
    background-size: cover, auto 86%;
  }

  .di-hero__inner { min-height: 300px; padding-block: 36px; }
  .di-hero__text { max-width: 340px; }
}

/* Design note: the banner does not show on phones */
@media (max-width: 767.98px) {
  .di-hero { display: none; }
}
