/* squashbooks-index.css
   Index page for /squashbooks/. Load after bettersquash1.css.
   Version 0.2 */

.bk-wrap { max-width: var(--measure-wide); margin: 0 auto; padding: 0 20px 3rem; }

/* Four spots: one row on desktop, four rows on mobile */
.bk-spots { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; list-style: none; margin: 1.25rem 0 0; padding: 0; }
.bk-spot { margin: 0; }
.bk-spot__link { display: block; color: var(--signature); text-decoration: none; }
.bk-spot__link:hover { display: block; color: var(--signature);}
.bk-spot__link:hover h3 { color: var(--signature); }
.bk-spot__cover { display: block; width: 100%; height: auto; aspect-ratio: 2 / 3; object-fit: contain; background: #eee; border: 1px solid #e5e7eb; padding: 6px; }
.bk-spot__text { display: block; padding-top: 0.7rem; }
.bk-spot h3 { font-family: 'Bebas Neue', sans-serif; font-size: 1.6rem; line-height: 1.05; margin: 0 0 0.2rem; }
.bk-spot p { margin: 0; font-size: 0.9rem; line-height: 1.4; color: #555; }

/* Grey placeholder spots */
.bk-spot--empty .bk-spot__ph {
    display: flex; align-items: center; justify-content: center;
    aspect-ratio: 2 / 3; background: #efefef; border: 2px dashed #c8c8c8; color: #999;
    font-family: 'Bebas Neue', sans-serif; font-size: 1.6rem; letter-spacing: 0.04em;
}

.bk-wrap #books { border-top: none; }

@media (max-width: 699px) {
    .bk-spots { grid-template-columns: 1fr; gap: 1rem; }
    .bk-spot__link { display: grid; grid-template-columns: 110px 1fr; gap: 1rem; align-items: center; }
    .bk-spot__text { padding-top: 0; }
    .bk-spot--empty .bk-spot__ph { aspect-ratio: auto; height: 180px; }
}

section a { color: var(--signature); text-decoration: underline }