/* ── Hero ── */
.page-hero {
    background: linear-gradient(135deg, #2d1b4e 0%, #4a3270 40%, #5a3a82 70%, #3d2860 100%);
    padding: 32px 28px 28px;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.page-hero::before {
    content: '📚';
    position: absolute; right: 5%; top: 50%;
    transform: translateY(-50%);
    font-size: 220px; opacity: 0.06; pointer-events: none;
}
.page-hero-eyebrow {
    font-size: 0.75rem; font-weight: 700; letter-spacing: 0.16em;
    text-transform: uppercase; color: rgba(255,255,255,0.6);
    margin-bottom: 14px;
}
.page-hero h1 {
    font-family: 'Fredoka', cursive;
    font-size: clamp(2.4rem, 6vw, 4rem);
    font-weight: 700; color: white; line-height: 1.1;
    margin-bottom: 16px;
}
.page-hero p {
    font-size: clamp(0.95rem, 2vw, 1.1rem);
    color: rgba(255,255,255,0.82);
    line-height: 1.7; max-width: 520px;
    margin: 0 auto 28px;
}
.theme-pills {
    display: flex; gap: 8px; flex-wrap: wrap; justify-content: center;
    margin-top: 12px;
}
.theme-pill {
    font-size: 0.72rem; font-weight: 700; padding: 6px 14px;
    border-radius: 999px; color: white;
    background: rgba(255,255,255,0.18);
    border: 1px solid rgba(255,255,255,0.25);
}

/* -- Book grid - bookshelf -- */
.books-section { padding: 72px 28px 48px; background: #fdfbf5; position: relative; }
.books-section::before {
    content: ''; position: absolute; inset: 0 0 auto 0; height: 18px;
    background: linear-gradient(180deg, rgba(64,59,51,.06), transparent); pointer-events: none;
}
.books-grid {
    max-width: 1100px; margin: 0 auto;
    display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 28px 28px; align-items: end;
}
.bookshelf-plank {
    max-width: 1100px; margin: 8px auto 0;
    height: 18px; background: linear-gradient(180deg, #c9a87a 0%, #a68a5b 55%, #8a6f3e 100%);
    border-radius: 4px; box-shadow: 0 6px 14px rgba(64,59,51,.22), inset 0 2px 0 rgba(255,255,255,.35);
    position: relative;
}
.bookshelf-plank::after {
    content: ''; position: absolute; left: 0; right: 0; bottom: -14px; height: 14px;
    background: linear-gradient(180deg, rgba(64,59,51,.14), transparent);
    filter: blur(2px); pointer-events: none;
}
.bookshelf-label {
    max-width: 1100px; margin: 10px auto 0; font-size: .72rem; font-weight: 700;
    letter-spacing: .1em; text-transform: uppercase; color: rgba(64,59,51,.45); text-align: right;
}
.book-card {
    display: flex; flex-direction: column;
    border-radius: 18px; overflow: hidden;
    background: white;
    box-shadow: 0 4px 20px rgba(64,59,51,0.10);
    transition: transform 0.25s, box-shadow 0.25s;
}
.book-card:hover { transform: translateY(-7px); box-shadow: 0 16px 40px rgba(64,59,51,0.16); }
.book-cover {
    position: relative; aspect-ratio: 2/3;
    overflow: hidden;
}
.book-cover img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform 0.4s ease;
}
.book-card:hover .book-cover img { transform: scale(1.04); }
.book-badge {
    position: absolute; top: 12px; left: 12px;
    font-size: 0.65rem; font-weight: 800; letter-spacing: 0.06em;
    padding: 4px 10px; border-radius: 999px;
    background: var(--rose);
}
.book-badge.new { background: #6b4fa0; }
.book-badge.coming { background: var(--charcoal-lt); }
.book-badge.published { background: var(--teal-dk); }
.book-badge.preview { background: var(--gold); }
.book-body { padding: 18px 18px 20px; flex: 1; display: flex; flex-direction: column; }
.book-title { font-size: 1rem; font-weight: 800; color: var(--charcoal); margin-bottom: 6px; line-height: 1.2; }
.book-theme { font-size: 0.72rem; font-weight: 700; color: var(--teal-dk); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 6px; }
.book-desc { font-size: 0.84rem; color: var(--charcoal-lt); line-height: 1.5; flex: 1; margin-bottom: 14px; }
.book-age { font-size: 0.7rem; font-weight: 700; color: var(--rose); margin-bottom: 10px; }
.book-cta { font-weight: 700; font-size: 0.84rem; color: var(--rose); display: inline-flex; align-items: center; gap: 4px; transition: gap 0.2s; }
.book-card:hover .book-cta { gap: 8px; }

/* ── Coming soon books ── */
.coming-section { padding: 72px 28px; background: var(--beige); }
.coming-grid {
    max-width: 1100px; margin: 0 auto;
    display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 20px;
}
.coming-card {
    background: white; border-radius: 16px; padding: 28px 22px;
    border: 2px dashed rgba(64,59,51,0.15);
    display: flex; flex-direction: column; gap: 10px;
    transition: border-color 0.2s, transform 0.2s;
}
.coming-card:hover { border-color: var(--teal); transform: translateY(-3px); }
.coming-emoji { font-size: 2.4rem; }
.coming-title { font-size: 1rem; font-weight: 800; color: var(--charcoal); }
.coming-desc { font-size: 0.84rem; color: var(--charcoal-lt); line-height: 1.5; flex: 1; }
.coming-label { font-size: 0.68rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em; color: var(--teal-dk); margin-top: auto; }

/* ── CTA strip ── */
.cta-strip {
    background: var(--teal-dk); padding: 72px 28px; text-align: center;
    position: relative; overflow: hidden;
}
.cta-strip::before {
    content: '✦'; position: absolute; left: -30px; top: 50%;
    transform: translateY(-50%); font-size: 200px; opacity: 0.05;
    pointer-events: none;
}
.cta-strip h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); font-weight: 900; color: white; margin-bottom: 14px; }
.cta-strip p { font-size: 1rem; color: rgba(255,255,255,0.85); line-height: 1.7; max-width: 480px; margin: 0 auto 28px; }
    .btn-primary {
    background: white; color: var(--teal-dk); font-weight: 700;
    border-radius: 14px; padding: 14px 32px; font-size: 1rem;
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
    transition: transform 0.15s, box-shadow 0.15s;
}
.btn-secondary {
    transition: background 0.2s;
}
.btn-secondary:hover { background: rgba(255,255,255,0.25); }
.cta-buttons { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ── Footer ── */

/* ── Touch / mobile ── */
@media(pointer:coarse) {
    .book-card { -webkit-tap-highlight-color: transparent; }
    .book-card.tapped { transform: translateY(-7px); box-shadow: 0 16px 40px rgba(64,59,51,0.16); }
    .book-card.tapped .book-cover img { transform: scale(1.04); }
    .book-card.tapped .book-cta { gap: 8px; }
    /* bigger tap targets */
    .book-cta { padding: 10px 0; }
    .book-body { padding: 16px 16px 18px; }
}

/* ── Responsive ── */
@media(max-width:600px) {
    .books-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
    .books-section { padding: 52px 16px; }
    .coming-section { padding: 52px 16px; }
    .page-hero { padding: 60px 16px 52px; }
    .cta-buttons { flex-direction: column; align-items: center; }
    .btn-primary, .btn-secondary { width: 100%; max-width: 280px; justify-content: center; }
}