/* --- Base and Background --- */
html {
    height: 100%;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Lato', sans-serif; /* A clean, readable font for the body */
    color: #e0e0e0; /* A soft white for text, easy on the eyes */
    background-color: #121212; /* A very dark, near-black for a professional feel */
    background-image: linear-gradient(rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0)); /* Subtle top-down gradient */
}

/* --- Main Two-Column Container --- */
.main-container {
    display: flex; /* This creates the two columns */
    align-items: flex-start; /* Aligns items to the top */
    max-width: 1200px; /* Limits width on very large screens */
    margin: 50px auto; /* Centers the container on the page */
    padding: 20px;
    gap: 40px; /* Space between the two columns */
}

/* --- Left Column (Book Cover) --- */
.left-column {
    flex: 0 0 40%; /* Tells the column to take up about 40% of the width */
    max-width: 450px;
}

.left-column img {
    width: 100%;
    height: auto;
    border-radius: 4px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

/* --- Right Column (Text Content) --- */
.right-column {
    flex: 1; /* Tells the column to take the remaining space */
}

.book-title {
    font-family: 'Cinzel', serif; /* An elegant, epic serif font */
    font-size: 3em;
    color: #E8CDB4; /* A warm, golden color for the title */
    margin: 0 0 5px 0;
    line-height: 1.1;
    letter-spacing: 1px;
}

.author-name {
    font-size: 1.2em;
    color: #a0a0a0;
    margin: 0 0 30px 0;
    font-style: italic;
}

/* --- Call-to-Action Button --- */
.buy-button {
    display: inline-block;
    background-color: #d9483b; /* Red sampled from the cover's title */
    color: #ffffff;
    padding: 15px 35px;
    margin-bottom: 40px;
    border-radius: 5px;
    text-decoration: none;
    font-size: 1.2em;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.buy-button:hover {
    background-color: #b83428;
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(217, 72, 59, 0.4);
}

/* --- Blurb and Quote Styling --- */
.blurb {
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    padding-top: 25px;
    line-height: 1.7;
}

.blurb blockquote {
    font-family: 'Cinzel', serif;
    font-size: 1.4em;
    margin: 0 0 25px 0;
    padding-left: 20px;
    border-left: 3px solid #d9483b;
    color: #fff;
    font-style: normal;
}

.blurb cite {
    display: block;
    font-family: 'Lato', sans-serif;
    font-style: italic;
    font-size: 0.8em;
    margin-top: 10px;
    color: #ccc;
}

/* --- Availability Section --- */
.availability {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    font-size: 0.9em;
    text-align: center;
    color: #aaa;
}

.stores {
    font-weight: bold;
    color: #fff;
    font-size: 1.1em;
}

/* --- MOBILE RESPONSIVENESS --- */
/* This is the magic for phones. It stacks the columns. */
@media (max-width: 800px) {
    .main-container {
        flex-direction: column; /* Stack columns vertically */
        align-items: center; /* Center items in the new vertical layout */
        margin: 20px auto;
        gap: 30px;
    }

    .left-column {
        flex-basis: auto; /* Let the column size itself */
        width: 100%;
        max-width: 350px; /* Control cover size on mobile */
    }

    .right-column {
        text-align: center;
    }
    
    .blurb {
        text-align: left; /* Keep blurb text left-aligned for readability */
    }

    .book-title {
        font-size: 2.2em;
    }
}