:root {
    --bg-color: #f4f1ea;
    --text-primary: #2b2b2b;
    --text-secondary: #555555;
    --accent-color: #8b0000;
    --font-heading: 'Merriweather', serif;
    --font-body: 'Open Sans', sans-serif;
    --container-width: 1100px;
}

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

body {
    font-family: var(--font-body);
    background-color: var(--bg-color);
    color: var(--text-primary);
    line-height: 1.7;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23d8d5ce' fill-opacity='0.4'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.container { max-width: var(--container-width); margin: 0 auto; padding: 0 2rem; }

h1, h2, h3, h4, .logo { font-family: var(--font-heading); color: var(--text-primary); }

/* Buttons */
.btn {
    display: inline-block; padding: 0.8rem 2rem; text-decoration: none;
    font-family: var(--font-heading); font-size: 0.9rem;
    transition: all 0.3s ease; border-radius: 2px;
}
.btn-primary { background-color: var(--accent-color); color: white; border: 1px solid var(--accent-color); }
.btn-primary:hover { background-color: #6a0000; }
.btn-outline { border: 1px solid var(--text-primary); color: var(--text-primary); }
.btn-outline:hover { background-color: var(--text-primary); color: var(--bg-color); }

/* Navbar */
.navbar {
    display: flex; justify-content: space-between; align-items: center;
    padding: 2rem 5%;
}
.logo { font-size: 1.5rem; font-weight: 700; letter-spacing: 1px; }
.nav-links { display: flex; list-style: none; gap: 2.5rem; }
.nav-links a { text-decoration: none; color: var(--text-primary); font-family: var(--font-heading); font-size: 0.9rem; letter-spacing: 1px; text-transform: uppercase; }
.nav-links a:hover { color: var(--accent-color); }

/* Hero */
.hero {
    display: flex; align-items: center; justify-content: space-between;
    max-width: var(--container-width); margin: 4rem auto; padding: 0 2rem;
    gap: 4rem;
}
.hero-content { flex: 1; }
.tagline { text-transform: uppercase; letter-spacing: 3px; font-size: 0.8rem; color: var(--accent-color); margin-bottom: 1rem; font-weight: 600;}
.hero-content h1 { font-size: 3.5rem; line-height: 1.2; margin-bottom: 1.5rem; font-style: italic; }
.description { font-size: 1.1rem; color: var(--text-secondary); margin-bottom: 2.5rem; }
.actions { display: flex; gap: 1rem; }
.hero-image { flex: 1; text-align: center; }
.hero-image img { max-width: 100%; height: auto; box-shadow: 20px 20px 0px rgba(0,0,0,0.05); border: 1px solid #ddd; }

/* Sections */
section { padding: 6rem 0; }
.section-title { font-size: 2.5rem; margin-bottom: 3rem; text-align: center; font-style: italic; }

/* Books */
.books-section { background-color: white; border-top: 1px solid #e5e5e5; border-bottom: 1px solid #e5e5e5; }
.books-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 3rem; text-align: center; }
.book-card img { width: 220px; height: auto; box-shadow: 5px 5px 15px rgba(0,0,0,0.1); margin-bottom: 1.5rem; transition: transform 0.3s; }
.book-card:hover img { transform: translateY(-10px); }
.book-card h3 { font-size: 1.4rem; margin-bottom: 0.5rem; }
.book-card .year { color: var(--accent-color); font-size: 0.9rem; margin-bottom: 1rem; font-family: var(--font-heading); font-style: italic;}
.book-card .excerpt { color: var(--text-secondary); margin-bottom: 1.5rem; font-size: 0.95rem; }
.link { color: var(--text-primary); text-decoration: none; font-weight: 600; font-size: 0.9rem; border-bottom: 1px solid var(--text-primary); padding-bottom: 2px;}
.link:hover { color: var(--accent-color); border-color: var(--accent-color); }

/* About */
.about-container { display: flex; gap: 4rem; align-items: center; }
.about-image { flex: 1; }
.about-image img { width: 100%; filter: grayscale(100%) sepia(10%); box-shadow: -15px 15px 0px var(--accent-color); }
.about-text { flex: 1.5; }
.about-text h2 { font-size: 2.5rem; margin-bottom: 1.5rem; font-style: italic; }
.about-text p { margin-bottom: 1.2rem; color: var(--text-secondary); font-size: 1.05rem; }

/* Events */
.events-section { background-color: #2b2b2b; color: white; }
.events-section .section-title { color: white; }
.events-list { display: flex; flex-direction: column; gap: 1rem; }
.event-item {
    display: flex; align-items: center; padding: 2rem; background-color: rgba(255,255,255,0.05);
    border-left: 4px solid var(--accent-color); transition: background 0.3s;
}
.event-item:hover { background-color: rgba(255,255,255,0.1); }
.event-date { width: 100px; text-align: center; font-family: var(--font-heading); }
.month { display: block; font-size: 0.9rem; color: var(--accent-color); font-weight: 700; }
.day { display: block; font-size: 2.5rem; line-height: 1; }
.event-details { flex: 1; padding: 0 2rem; }
.event-details h3 { color: white; margin-bottom: 0.5rem; font-size: 1.3rem; }
.event-details p { color: #aaa; font-size: 0.9rem; }
.event-details .event-desc { color: #ddd; margin-top: 0.5rem; }
.event-action .btn-outline { border-color: white; color: white; }
.event-action .btn-outline:hover { background-color: white; color: #2b2b2b; }

/* Newsletter */
.newsletter-container { text-align: center; max-width: 600px; }
.newsletter h2 { font-size: 2rem; margin-bottom: 1rem; font-style: italic; }
.newsletter p { color: var(--text-secondary); margin-bottom: 2rem; }
.newsletter-form { display: flex; gap: 0.5rem; }
.newsletter-form input { flex: 1; padding: 1rem; border: 1px solid #ccc; font-family: var(--font-body); background: transparent; }
.newsletter-form input:focus { outline: none; border-color: var(--text-primary); }
.newsletter-form button { border-radius: 0; }

/* Footer */
footer { border-top: 1px solid #e5e5e5; padding: 4rem 0 2rem; background-color: white; }
.footer-content { display: flex; justify-content: space-between; margin-bottom: 3rem; }
.footer-left h3 { margin-bottom: 1rem; }
.footer-left p { color: var(--text-secondary); font-size: 0.9rem; }
.footer-right { display: flex; gap: 1.5rem; }
.footer-right a { color: var(--text-primary); text-decoration: none; font-family: var(--font-heading); font-style: italic; }
.footer-right a:hover { color: var(--accent-color); }
.copyright { text-align: center; color: #999; font-size: 0.85rem; }

@media (max-width: 768px) {
    .hero, .about-container { flex-direction: column; text-align: center; }
    .hero-content h1 { font-size: 2.5rem; }
    .actions { justify-content: center; }
    .event-item { flex-direction: column; text-align: center; gap: 1.5rem; }
    .event-details { padding: 0; }
    .newsletter-form { flex-direction: column; }
    .footer-content { flex-direction: column; text-align: center; gap: 2rem; }
    .footer-right { justify-content: center; }
}
