* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Helvetica, Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #473144;
    background-color: #FAF9F6;
}

h1, h2 {
    font-family: 'Lora', Impact, serif;
    font-weight: 700;
}

h1 {
    font-size: 2.5rem;
    text-align: center;
    padding: 2rem 1rem;
    color: #473144;
}

h2 {
    font-size: 1.5rem;
    color: #AF1B3F;
    margin-bottom: 1rem;
}

a {
    color: #AF1B3F;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}



.skiptocontent a {
    position: absolute;
    top: -40px;
    left: 0;
    background-color: #AF1B3F;
    color: white;
    padding: 8px 16px;
    text-decoration: none;
    font-weight: bold;
    z-index: 100;
}

.skiptocontent a:focus {
    top: 0;
}



header {
    background-color: white;
    margin-bottom: 2rem;
}



nav {
    border-top: 1px solid #EFC69B;
    border-bottom: 1px solid #EFC69B;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.main-nav {
    display: grid;
    grid-template-columns: 100px 100px 100px;
    justify-content: end;
    justify-items: end;
    list-style: none;
    padding: 0;
    margin: 0;
}

.main-nav li {
    padding: 0;
}

.main-nav a {
    display: block;
    padding: 1rem 1.5rem;
    font-size: 1.1rem;
    color: #AF1B3F;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.main-nav a:hover {
    background-color: #EFC69B;
    text-decoration: none;
}



main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.articles-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}



.articles {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.book-review {
    display: grid;
    grid-template-columns: 150px 1fr;
    gap: 1.5rem;
    padding: 1.5rem;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(71, 49, 68, 0.1);
}



.book-details {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    text-align: right;
    padding-right: 1.5rem;
    border-right: 2px solid #EFC69B;
}

.book-date {
    font-size: 1.5rem;
    font-weight: bold;
    color: #473144;
}

.book-ages,
.book-genre {
    font-size: 0.95rem;
    color: #666;
}

.book-rating {
    font-size: 1.1rem;
    color: #EFC69B;
    margin-top: 0.5rem;
}



.book-content {
    display: flex;
    flex-direction: column;
}

.book-content h2 {
    margin-top: 0;
}

.book-content img {
    max-width: 200px;
    height: auto;
    margin: 1rem auto;
    display: block;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.book-description {
    line-height: 1.7;
    color: #473144;
}

.read-more {
    color: #AF1B3F;
    font-weight: bold;
    white-space: nowrap;
}



.filters {
    background-color: white;
    border: 1px solid #EFC69B;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(71, 49, 68, 0.1);
    height: fit-content;
    position: sticky;
    top: 2rem;
}

.filters p {
    color: #666;
    font-style: italic;
    text-align: center;
}



@media (max-width: 768px) {
    .articles-container {
        grid-template-columns: 1fr;
    }

    .book-review {
        grid-template-columns: 1fr;
    }

    .book-details {
        border-right: none;
        border-bottom: 2px solid #EFC69B;
        padding-right: 0;
        padding-bottom: 1rem;
        text-align: left;
    }

    .main-nav {
        grid-template-columns: 1fr 1fr 1fr;
        justify-items: center;
    }

    h1 {
        font-size: 2rem;
    }
}