/* Reset & Base Styles */
:root {
    --bg-color: #f9f7f2;
    --text-color: #2c2c2c;
    --accent-color: #800020;
    /* Bordeaux */
    --gold-color: #D4AF37;
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Lato', sans-serif;
    font-size: 18px;
}

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

body {
    font-family: var(--font-body);
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    font-size: 1.1rem;
    border: 20px solid var(--gold-color);
    min-height: 100vh;
}

h1,
h2,
h3 {
    font-family: var(--font-heading);
    font-weight: 700;
    color: #1a1a1a;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

/* Layout Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.btn {
    display: inline-block;
    padding: 15px 30px;
    background-color: var(--accent-color);
    color: white;
    font-family: var(--font-body);
    font-size: 1.1rem;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    letter-spacing: 1px;
}

.btn:hover {
    background-color: #600018;
    transform: translateY(-2px);
}

/* Header */
header {
    padding: 40px 0;
    text-align: center;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    letter-spacing: 2px;
    color: var(--accent-color);
}

/* Hero Section */
.hero {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 0 100px;
    gap: 60px;
    min-height: 80vh;
}

.hero-content {
    flex: 1;
    max-width: 500px;
}

.hero-image {
    flex: 1;
    max-width: 450px;
    position: relative;
}

.hero-image img {
    width: 100%;
    height: auto;
    box-shadow: 20px 20px 0 var(--gold-color), 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.5s ease;
}

.hero-image:hover img {
    transform: scale(1.02);
}

.book-subtitle {
    font-size: 1.2rem;
    color: var(--accent-color);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 10px;
    display: block;
}

.hero h1 {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 20px;
}

.author-name {
    font-size: 1.5rem;
    font-style: italic;
    color: #555;
    margin-bottom: 40px;
    display: block;
}

/* Synopsis Section */
.synopsis {
    background-color: white;
    padding: 100px 0;
}

.synopsis-content {
    max-width: 850px;
    margin: 0 auto;
    text-align: center;
    display: flow-root;
    /* Fixes float overflow */
}

.synopsis h2 {
    font-size: 2.5rem;
    margin-bottom: 40px;
    color: var(--accent-color);
}

.synopsis p {
    margin-bottom: 20px;
    font-size: 1.1rem;
    text-align: justify;
}

.synopsis-img {
    float: left;
    max-width: 300px;
    margin-right: 30px;
    margin-bottom: 20px;
    border-radius: 4px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

@media (max-width: 768px) {
    .synopsis-img {
        float: none;
        display: block;
        margin: 0 auto 30px;
        max-width: 80%;
    }
}

.author-img {
    max-width: 300px;
    border-radius: 4px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: transform 0.3s ease;
}

.author-img:hover {
    transform: scale(1.05);
}

@media (max-width: 768px) {
    .bio {
        flex-direction: column-reverse;
    }

    .author-img {
        margin: 0 auto 30px;
        max-width: 80%;
    }
}

/* Author Section */
.author {
    padding: 100px 0;
    text-align: center;
}

.author h2 {
    font-size: 2.5rem;
    margin-bottom: 30px;
}

.bio {
    max-width: 1000px;
    margin: 0 auto;
    color: #555;
    display: flex;
    align-items: center;
    gap: 40px;
    text-align: left;
}

.bio-content {
    flex: 1;
}

/* Footer */
footer {
    background-color: #1a1a1a;
    color: #f9f7f2;
    padding: 60px 0;
    text-align: center;
    font-family: var(--font-heading);
}

.footer-links {
    margin-top: 20px;
}

.footer-links a {
    margin: 0 15px;
    color: #888;
}

.footer-links a:hover {
    color: var(--gold-color);
}

/* Separator */
.section-separator {
    max-width: 200px;
    height: 2px;
    background: linear-gradient(to right, transparent, var(--accent-color), transparent);
    margin: 0 auto;
    opacity: 0.6;
    border: none;
}

/* Responsive */
@media (max-width: 768px) {
    .hero {
        flex-direction: column;
        text-align: center;
        padding-top: 20px;
    }

    .hero-image {
        order: -1;
        width: 80%;
    }

    .hero h1 {
        font-size: 3rem;
    }

    .hero-image img {
        box-shadow: 10px 10px 0 var(--gold-color);
    }
}

/* Modal for Image Zoom */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    padding-top: 60px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    cursor: zoom-out;
}

.modal-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 80vh;
    animation: zoom 0.3s;
}

@keyframes zoom {
    from {
        transform: scale(0.1)
    }

    to {
        transform: scale(1)
    }
}

.close {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}