/*
 * The client books page. Loaded only on /our-work.
 *
 * Typographic cards rather than cover images: Amazon's cover art is served from
 * their CDN under terms that do not permit hotlinking outside the Associates
 * programme, and a page of placeholder covers would undercut the one thing this
 * page exists to do, which is look verifiable.
 */

.work {
  padding: 60px 0 90px;
}

.work .container {
  max-width: 1140px;
}

.work__intro {
  max-width: 44rem;
  margin-bottom: 48px;
}

.work__intro h1 {
  font-size: clamp(2rem, 4vw, 2.75rem);
  line-height: 1.2;
  margin-bottom: 16px;
}

.work__intro p {
  font-size: 1.125rem;
  line-height: 1.7;
  color: #55565a;
  margin-bottom: 14px;
}

.work__note {
  font-size: 1rem !important;
  border-left: 3px solid #f47c20;
  padding-left: 16px;
}

.work__grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
}

.work__card {
  display: flex;
  flex-direction: column;
  border: 1px solid #e6e7ea;
  border-radius: 12px;
  padding: 28px;
  background: #fff;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.work__card:hover {
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.08);
  transform: translateY(-3px);
}

.work__genre {
  display: inline-block;
  align-self: flex-start;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 600;
  color: #f47c20;
  background: #fdf1e7;
  border-radius: 999px;
  padding: 5px 12px;
  margin-bottom: 16px;
}

.work__card h2 {
  font-size: 1.25rem;
  line-height: 1.3;
  margin-bottom: 6px;
}

.work__card h2 a {
  color: inherit;
  text-decoration: none;
}

.work__card h2 a:hover {
  color: #f47c20;
}

.work__series {
  font-size: 0.875rem;
  color: #82848a;
  margin-bottom: 4px;
}

.work__author {
  font-weight: 600;
  color: #35363a;
  margin-bottom: 14px;
}

.work__blurb {
  color: #55565a;
  line-height: 1.65;
  margin-bottom: 20px;
  /* Push the link to the bottom so the cards' CTAs line up across the row. */
  flex-grow: 1;
}

.work__link {
  align-self: flex-start;
  font-weight: 600;
  color: #f47c20;
}

.work__link::after {
  content: ' \2197';
}

.work__cta {
  margin-top: 56px;
  padding: 32px 36px;
  border-radius: 12px;
  background: #f7f8fa;
}

.work__cta h2 {
  font-size: 1.3rem;
  margin-bottom: 10px;
}

.work__cta > p {
  color: #55565a;
  line-height: 1.7;
  margin-bottom: 16px;
}

.work__cta ul {
  list-style: none;
  margin: 0 0 18px;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
}

.work__cta a {
  color: #f47c20;
  font-weight: 600;
}

.work__cta-foot {
  margin: 0;
  color: #55565a;
  line-height: 1.7;
}

@media (max-width: 575px) {
  .work {
    padding: 40px 0 60px;
  }

  .work__card {
    padding: 22px;
  }

  .work__cta {
    padding: 24px 22px;
  }
}
