/* Library hero: same architecture as Framework. */

.library-hero {
  position: relative;
  display: flex;
  min-height: clamp(560px, 67vw, 760px);
  overflow: hidden;
  color: #f4eee4;
  background: #172018;
}

.library-hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.library-hero-shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(
      90deg,
      rgba(18, 26, 20, .94) 0%,
      rgba(18, 26, 20, .89) 25%,
      rgba(18, 26, 20, .65) 42%,
      rgba(18, 26, 20, .20) 63%,
      rgba(18, 26, 20, .04) 82%
    ),
    linear-gradient(180deg, rgba(0,0,0,.07), rgba(0,0,0,.11));
}

.library-hero-inner {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  padding-top: clamp(54px, 7vw, 88px);
  padding-bottom: clamp(48px, 6vw, 80px);
}

.library-hero-copy {
  width: min(100%, 560px);
  max-width: 560px;
  padding: 0;
}

.library-hero .library-eyebrow {
  color: #ddd0b9;
}

.library-hero-copy h1 {
  margin: 0;
  color: #f5efe5;
  font-family: "Shippori Mincho B1", serif;
  font-size: clamp(3.5rem, 6vw, 6rem);
  font-weight: 400;
  line-height: .96;
  letter-spacing: -.04em;
}

.library-hero-sub {
  margin: 18px 0 0;
  max-width: 500px;
  color: #f0e8db;
  font-family: "Shippori Mincho B1", serif;
  font-size: clamp(1.05rem, 1.6vw, 1.35rem);
  font-style: italic;
  line-height: 1.55;
}

.library-hero-body {
  max-width: 500px;
  margin: 26px 0 0;
  color: #e7dfd3;
  font-size: 1rem;
  line-height: 1.7;
}

@media (max-width: 720px) {
  .library-hero {
    min-height: 680px;
  }

  .library-hero-image {
    object-position: 64% center;
  }

  .library-hero-shade {
    background:
      linear-gradient(
        180deg,
        rgba(18,26,20,.20) 0%,
        rgba(18,26,20,.58) 42%,
        rgba(18,26,20,.91) 74%,
        rgba(18,26,20,.96) 100%
      );
  }

  .library-hero-inner {
    align-items: end;
  }

  .library-hero-copy {
    max-width: 100%;
  }
}
