.book-promotion-modal:not([open]) { display: none; }
.book-promotion-modal, .book-promotion-modal * { box-sizing: border-box; }
.book-promotion-modal {
  box-sizing: border-box;
  width: min(92vw, 760px);
  max-width: 760px;
  max-height: min(90vh, 720px);
  margin: auto;
  padding: 0;
  overflow: auto;
  border: 0;
  border-radius: 24px;
  background: #fffaf0;
  color: #17243a;
  box-shadow: 0 28px 90px rgba(5, 12, 25, .56);
}

.book-promotion-modal::backdrop {
  background: rgba(7, 16, 33, .76);
  backdrop-filter: blur(4px);
}

.book-promotion-modal__card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(210px, .85fr) minmax(0, 1.15fr);
  min-height: 420px;
  overflow: hidden;
  background: linear-gradient(135deg, #fff9ed 0%, #fffdf8 55%, #f2e1ba 100%);
}

.book-promotion-modal__image-wrap {
  min-height: 100%;
  background: #213451;
}

.book-promotion-modal__image {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 420px;
  object-fit: cover;
}

.book-promotion-modal__content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: 48px 46px 34px;
}

.book-promotion-modal__eyebrow {
  margin: 0 0 14px;
  color: #9b681c;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.book-promotion-modal__title {
  margin: 0;
  color: #14213d;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.8rem, 4vw, 2.7rem);
  line-height: 1.05;
}

.book-promotion-modal__subtitle {
  margin: 12px 0 0;
  color: #506078;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1rem;
  font-style: italic;
  line-height: 1.35;
}

.book-promotion-modal__headline {
  margin: 26px 0 8px;
  color: #1d3454;
  font-size: 1.1rem;
  font-weight: 800;
  line-height: 1.35;
}

.book-promotion-modal__text {
  margin: 0 0 24px;
  color: #3c4a5f;
  font-size: 1rem;
  line-height: 1.55;
}

.book-promotion-modal__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 22px;
  border-radius: 999px;
  background: #e17d16;
  color: #fff !important;
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  box-shadow: 0 7px 16px rgba(157, 77, 8, .24);
  transition: background-color .16s ease, transform .16s ease, box-shadow .16s ease;
}

.book-promotion-modal__cta:hover,
.book-promotion-modal__cta:focus-visible {
  background: #b85e0e;
  color: #fff;
  box-shadow: 0 9px 22px rgba(116, 56, 6, .32);
  transform: translateY(-1px);
}

.book-promotion-modal__dismiss,
.book-promotion-modal__close {
  border: 0;
  background: transparent;
  color: #4f5c6f;
  cursor: pointer;
}

.book-promotion-modal__dismiss {
  margin: 16px 0 0;
  padding: 5px 1px;
  font-size: .9rem;
  text-decoration: underline;
}

.book-promotion-modal__close {
  position: absolute;
  z-index: 1;
  top: 12px;
  right: 14px;
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, .9);
  color: #13213b;
  font-size: 1.8rem;
  line-height: 1;
  box-shadow: 0 3px 12px rgba(0, 0, 0, .18);
}

.book-promotion-modal :focus-visible {
  outline: 3px solid #146ebe;
  outline-offset: 3px;
}

@media (max-width: 640px) {
  .book-promotion-modal {
    width: min(94vw, 430px);
    max-height: 92vh;
    border-radius: 18px;
  }

  .book-promotion-modal__card {
    display: block;
    min-height: 0;
  }

  .book-promotion-modal__image {
    min-height: 0;
    max-height: 245px;
    aspect-ratio: 16 / 9;
  }

  .book-promotion-modal__content {
    padding: 28px 27px 24px;
  }

  .book-promotion-modal__headline {
    margin-top: 20px;
  }

  .book-promotion-modal__cta {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .book-promotion-modal__cta {
    transition: none;
  }
}
