/*==================================================
    PrintPlayland
    Books and the Smiling Sun author page
==================================================*/

.book-cover{
    aspect-ratio:3 / 4;
    display:flex;
    align-items:center;
    justify-content:center;
    background:#f8fafc;
    border-radius:12px 12px 0 0;
    overflow:hidden;
}

.book-cover img{
    width:100%;
    height:100%;
    object-fit:contain;
}

.book-ages{
    font-weight:600;
    color:#0369a1;
}

.book-layout{
    display:grid;
    grid-template-columns:minmax(0, 2fr) minmax(0, 3fr);
    gap:2rem;
    align-items:start;
}

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

.book-cover-large{
    border-radius:12px;
    box-shadow:0 8px 24px rgba(15, 23, 42, .15);
    aspect-ratio:auto;
}

.book-cover-large img{
    height:auto;
}

.book-facts{
    display:grid;
    grid-template-columns:max-content 1fr;
    gap:.5rem 1rem;
    margin:0 0 1.5rem;
}

.book-facts dt{
    font-weight:700;
}

.book-facts dd{
    margin:0;
}

.book-buy{
    background:#fffbeb;
    border:1px solid #fde68a;
    border-radius:12px;
    padding:1.25rem;
}

.book-buy h2{
    margin-top:0;
    font-size:1.25rem;
}

.book-stores{
    display:flex;
    flex-wrap:wrap;
    gap:.5rem;
}

.book-blurb p:first-of-type{
    font-size:1.1rem;
}

.author-box{
    display:flex;
    gap:1.5rem;
    align-items:flex-start;
}

.author-box img{
    flex:none;
    border-radius:50%;
}

.author-box h2{
    margin-top:0;
}

@media (max-width:560px){
    .author-box{
        flex-direction:column;
        align-items:center;
        text-align:center;
    }
}
