.book-giving-note {
  position: relative;
  display: grid;
  grid-template-columns: minmax(160px, 210px) minmax(0, 1fr);
  align-items: center;
  gap: clamp(22px, 4vw, 46px);
  overflow: hidden;
  margin-bottom: 30px;
  padding: clamp(22px, 4vw, 38px);
  border: 1px solid rgba(53, 95, 143, 0.35);
  border-radius: 14px;
  background: linear-gradient(135deg, #fff5f8 0%, #eef5fc 52%, #f2f9f0 100%);
  box-shadow: 12px 12px 0 rgba(77, 155, 77, 0.16);
}

.book-giving-note::before,
.book-giving-note::after {
  position: absolute;
  border-radius: 999px;
  content: "";
  pointer-events: none;
}

.book-giving-note::before {
  top: -52px;
  right: 8%;
  width: 132px;
  height: 132px;
  background: rgba(200, 78, 120, 0.11);
}

.book-giving-note::after {
  right: -36px;
  bottom: -52px;
  width: 146px;
  height: 146px;
  background: rgba(53, 95, 143, 0.1);
}

.book-giving-logo {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 150px;
  padding: 12px;
  border: 1px solid rgba(53, 95, 143, 0.18);
  border-radius: 12px;
  background: #fff;
  box-shadow: 7px 7px 0 rgba(200, 78, 120, 0.16);
  text-decoration: none;
}

.book-giving-logo img {
  display: block;
  width: min(100%, 190px);
  height: auto;
}

.book-giving-logo span {
  color: #355f8f;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.book-giving-copy {
  position: relative;
  z-index: 1;
}

.book-giving-eyebrow {
  margin: 0 0 8px;
  color: #355f8f;
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.book-giving-copy h3 {
  max-width: 24ch;
  margin: 0;
  font-size: clamp(1.65rem, 3.3vw, 3.4rem);
  line-height: 1.02;
}

.book-giving-copy h3 span {
  display: inline-block;
  color: #c84e78;
  font-size: 1.16em;
}

.book-giving-copy > p:not(.book-giving-eyebrow) {
  max-width: 66ch;
  margin: 14px 0 18px;
  color: var(--muted);
  line-height: 1.65;
}

.book-giving-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #2f7332;
  font-weight: 900;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.book-giving-link:hover {
  color: #c84e78;
}

.book-giving-link span {
  font-size: 1.1em;
}

.book-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}

.book-card {
  display: grid;
  grid-template-columns: minmax(170px, 0.42fr) minmax(0, 1fr);
  gap: clamp(18px, 3vw, 30px);
  padding: clamp(18px, 3vw, 28px);
  border: 1px solid var(--ink);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 12px 12px 0 rgba(17, 99, 92, 0.14);
}

.book-cover {
  display: flex;
  min-height: 280px;
  flex-direction: column;
  justify-content: space-between;
  border: 2px solid var(--ink);
  padding: 20px;
  background: linear-gradient(135deg, var(--teal), var(--ink));
  color: var(--page);
  box-shadow: 8px 8px 0 var(--tools);
}

.book-cover span,
.book-cover small,
.book-status,
.book-topic-list span {
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.book-cover strong {
  font-size: clamp(1.45rem, 2vw, 2rem);
  line-height: 1.05;
}

.book-card-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.book-card h3 {
  font-size: clamp(1.7rem, 3vw, 3.4rem);
  line-height: 1;
}

.book-card p,
.book-cover small {
  line-height: 1.6;
}

.book-card p {
  color: var(--muted);
}

.book-cover small {
  color: rgba(247, 245, 239, 0.72);
}

.book-topic-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

@media (max-width: 1100px) {
  .book-card {
    grid-template-columns: 1fr;
  }

  .book-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .book-giving-note,
  .book-grid,
  .book-card {
    grid-template-columns: 1fr;
  }

  .book-giving-logo {
    min-height: 0;
  }

  .book-giving-logo img {
    width: min(100%, 170px);
  }
}
