﻿*,
*::before,
*::after {
    box-sizing: border-box;
}


body {
    margin: 0;
    background: #f6f3ef;
    color: #333;
    font-family: "Noto Serif", serif;
    line-height: 1.7;
}


header {
    text-align: center;
    padding: 60px 20px 40px;
}


header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 12px;
}


header p {
    font-size: 1.05rem;
    color: #666;
    margin: 0;
}


.book-grid {
    max-width: 1400px;
    margin: 0 auto 60px;
    padding: 0 40px;


    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}


.book-card {
    background: white;
    border-radius: 14px;
    padding: 28px;


    box-shadow:
        0 12px 30px rgba(0,0,0,0.08);


    display: flex;
    flex-direction: column;


    transition: transform .25s ease,
                box-shadow .25s ease;
}


.book-card:hover {
    transform: translateY(-6px);


    box-shadow:
        0 18px 40px rgba(0,0,0,0.12);
}


.book-card img {
    width: 100%;
    height: 420px;
    object-fit: cover;


    border-radius: 10px;


    margin-bottom: 24px;
}


.book-card h2 {
    font-family: "Noto Serif", serif;
    font-weight: 700;
    font-size: 1.5rem;


    margin: 0 0 10px;
}


.book-card h3 {
    font-family: "Noto Serif", serif;
    font-weight: 700;
    font-size: 1rem;


    color: #7b5d38;


    margin: 0 0 20px;
}


.book-card p {
    font-family: "Noto Serif", serif;
    font-weight: 400;
    font-size: .98rem;
    margin: 0;
    color: #444;
}


@media (max-width: 1000px) {
    .book-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}


@media (max-width: 700px) {


    header h1 {
        font-size: 2rem;
    }


    .book-grid {
        grid-template-columns: 1fr;
        padding: 0 20px;
    }


    .book-card img {
        height: auto;
    }
}