/* Books page only */
.books-hero { 
	background-image: url('../images/hero-background.png');
  	background-repeat: no-repeat;
  	background-position: center;
 	background-size: cover;
	/*background: var(--ink); */
	color: var(--cream); 
	padding: 104px 0 108px; 
}
.books-hero__inner { display: grid; grid-template-columns: minmax(0, 1fr) 270px; gap: 70px; align-items: end; }
.books-hero h1 { max-width: 760px; font-size: clamp(42px, 5vw, 64px); line-height: 1.1; margin-bottom: 22px; }
.books-hero__inner > div > p:last-child { max-width: 560px; color: rgba(246, 241, 230, .7); font-size: 17px; }
.books-hero__note { color: var(--gold-light); font-family: var(--font-display); font-size: 20px; font-style: italic; line-height: 1.45; padding-bottom: 5px; }

.books-catalog { padding: 88px 0 96px; background: var(--cream); }
.books-catalog__head { display: flex; justify-content: space-between; gap: 40px; align-items: end; margin-bottom: 42px; }
.books-catalog__head h2 { font-size: 36px; }
.books-catalog__head > p { max-width: 310px; color: var(--brown-text); font-size: 15px; }
.books-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
.book-card { display: grid; grid-template-columns: minmax(175px, 37%) 1fr; background: var(--cream-deep); border: 1px solid rgba(23, 19, 15, .1); min-height: 450px; }
.book-card--edition { background: var(--parchment); }
.book-card__image { display: flex; align-items: center; justify-content: center; padding: 35px 22px; background: rgba(23, 19, 15, .045); overflow: hidden; }
.book-card__image img { width: min(100%, 188px); max-height: 335px; object-fit: contain; filter: drop-shadow(10px 12px 10px rgba(23, 19, 15, .2)); transition: transform .25s ease; }
.book-card:hover .book-card__image img { transform: translateY(-5px); }
.book-card__content { display: flex; flex-direction: column; align-items: flex-start; padding: 39px 34px 33px; }
.book-card__type { color: var(--gold-dark); font-size: 12px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 14px; }
.book-card h3 { font-size: 27px; line-height: 1.17; margin-bottom: 7px; }
.book-card__subtitle { color: var(--gold-dark); font-family: var(--font-display); font-size: 17px; font-style: italic; line-height: 1.35; }
.book-card__description { color: var(--brown-text); font-size: 14.5px; line-height: 1.65; margin: 19px 0; }
.book-card__meta { display: grid; gap: 5px; color: var(--brown-text); font-size: 12.5px; margin-bottom: 24px; }
.book-card .link-arrow { margin-top: auto; }

.books-reading { background: var(--ink-soft); color: var(--cream); padding: 75px 0; }
.books-reading__inner { display: grid; grid-template-columns: 1.25fr 1fr auto; align-items: end; gap: 46px; }
.books-reading h2 { font-size: 34px; line-height: 1.2; max-width: 420px; }
.books-reading__inner > p { color: rgba(246, 241, 230, .68); font-size: 15px; }
.books-reading .btn { margin-bottom: 2px; }

@media (max-width: 1024px) { .books-grid { gap: 20px; } .book-card { grid-template-columns: 1fr; } .book-card__image { min-height: 290px; } .book-card__content { min-height: 310px; } .books-reading__inner { grid-template-columns: 1fr 1fr; } .books-reading .btn { justify-self: start; } }
@media (max-width: 860px) { .books-hero { padding: 78px 0 84px; } .books-hero__inner { grid-template-columns: 1fr; gap: 22px; } .books-hero__note { max-width: 360px; } .books-catalog { padding: 64px 0 70px; } .books-catalog__head { align-items: start; flex-direction: column; gap: 16px; } .books-reading__inner { grid-template-columns: 1fr; gap: 24px; } }
@media (max-width: 580px) { .books-hero { padding: 62px 0 68px; } .books-hero__inner > div > p:last-child { font-size: 16px; } .books-hero__note { font-size: 18px; } .books-catalog__head h2, .books-reading h2 { font-size: 29px; } .books-grid { grid-template-columns: 1fr; } .book-card { grid-template-columns: 130px 1fr; min-height: 0; } .book-card__image { min-height: 100%; padding: 23px 12px; } .book-card__image img { max-height: 205px; } .book-card__content { min-height: 0; padding: 27px 20px; } .book-card h3 { font-size: 22px; } .book-card__subtitle { font-size: 15px; } .book-card__description { font-size: 13.5px; margin: 13px 0; } .book-card__meta { margin-bottom: 17px; } .books-reading { padding: 60px 0; } }

/* ==================================================
   THE UNBROKEN LEDGER
   Pre-Launch Featured Book Layout
   ================================================== */

/* Allow the single featured book to fill the page */
.books-grid {
    grid-template-columns: minmax(0, 1fr);
}

/* Balanced image and text columns */
.book-card--featured {
    grid-template-columns: minmax(0, 43%) minmax(0, 1fr);
    min-height: 510px;
}

/* Give the cover more display space */
.book-card--featured .book-card__image {
    padding: 28px 24px;
    background: transparent;
    min-width: 0;
}

/* Enlarge the transparent book mockup */
.book-card--featured .book-card__image img {
    width: 100%;
    max-width: 390px;
    max-height: 460px;
    height: auto;
    object-fit: contain;
}

/* Improve the spacing around the book description */
.book-card--featured .book-card__content {
    justify-content: center;
    padding: 48px 48px 42px;
    min-width: 0;
}

.book-card--featured h3 {
    font-size: clamp(28px, 3vw, 38px);
    line-height: 1.2;
}

/* Tablets */
@media (max-width: 1024px) {
    .book-card--featured {
        grid-template-columns: minmax(0, 42%) minmax(0, 1fr);
    }

    .book-card--featured .book-card__image img {
        max-height: 420px;
    }

    .book-card--featured .book-card__content {
        padding: 32px;
    }
}

/* Smaller tablets and phones */
@media (max-width: 700px) {
    .book-card--featured {
        grid-template-columns: minmax(0, 1fr);
        min-height: 0;
    }

    .book-card--featured .book-card__image {
        min-height: 0;
        padding: 30px 24px 12px;
    }

    .book-card--featured .book-card__image img {
        width: 100%;
        max-width: 310px;
        max-height: 390px;
        margin: 0 auto;
    }

    .book-card--featured .book-card__content {
        min-height: 0;
        padding: 24px 28px 32px;
    }
}
