/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'MedievalSharp', cursive;
    color: #3a2410; /* Dark Brown */
    background-color: #f5e8c8; /* Parchment */
    background-image: url('https://www.transparenttextures.com/patterns/old-paper.png'); /* Subtle parchment texture */
    line-height: 1.8;
    font-size: 18px; /* Readable size for MedievalSharp */
}

.container {
    width: 90%;
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Cinzel Decorative', cursive;
    color: #5a3e2b; /* Muted Brown/Gold for headings */
    margin-bottom: 0.8em;
    margin-top: 1.2em;
    line-height: 1.3;
    text-shadow: 1px 1px 0px #c0a06230; /* Subtle gold shadow */
}

h1 { font-size: 2.8em; text-align: center; }
h2 { font-size: 2.2em; }
h3 { font-size: 1.8em; }

p {
    margin-bottom: 1.2em;
}

a {
    color: #8B4513; /* SaddleBrown or a darker medieval red */
    text-decoration: none;
    font-weight: bold;
}

a:hover, a:focus {
    color: #A0522D; /* Sienna */
    text-decoration: underline;
}

/* Header */
.site-header {
    background-color: #e0c9a6; /* Lighter Parchment for header/footer */
    border-bottom: 3px solid #c0a062; /* Old Gold border */
    padding: 15px 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-title a {
    font-family: 'Cinzel Decorative', cursive;
    font-size: 2em;
    color: #5a3e2b;
    text-decoration: none;
}
.site-title a:hover {
    color: #3a2410;
}

.main-nav ul {
    list-style: none;
    display: flex;
}

.main-nav ul li {
    margin-left: 25px;
}

.main-nav ul li a {
    font-family: 'Cinzel Decorative', serif;
    font-size: 1.1em;
    color: #5a3e2b;
    text-decoration: none;
    padding: 5px 0;
    border-bottom: 2px solid transparent;
    transition: color 0.3s ease, border-bottom-color 0.3s ease;
}

.main-nav ul li a:hover,
.main-nav ul li a.active { /* You can add .active class via PHP for current page */
    color: #3a2410;
    border-bottom-color: #c0a062;
}

/* Main Content Area */
.main-content {
    padding: 30px 0;
    min-height: 60vh; /* Ensure footer doesn't jump up */
}

.main-content .container {
    background-color: #faf0d7; /* Slightly lighter parchment for content box */
    border: 1px solid #d4b996; /* Softer border for content */
    box-shadow: 0 0 15px rgba(0,0,0,0.1);
    padding: 30px;
    border-radius: 3px;
}

/* Book Promo Specifics */
.book-cover-placeholder {
    width: 250px;
    height: 380px;
    background-color: #c0a062;
    border: 5px solid #5a3e2b;
    margin: 20px auto;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #f5e8c8;
    font-family: 'Cinzel Decorative', cursive;
    font-size: 1.5em;
    padding: 10px;
}

.cta-button {
    display: inline-block;
    background-color: #8B4513; /* SaddleBrown */
    color: #f5e8c8; /* Parchment text */
    padding: 12px 25px;
    font-family: 'Cinzel Decorative', cursive;
    font-size: 1.2em;
    text-decoration: none;
    border: 2px solid #5a3e2b;
    border-radius: 5px;
    transition: background-color 0.3s ease, transform 0.2s ease;
    margin-top: 10px;
}

.cta-button:hover {
    background-color: #A0522D; /* Sienna */
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

/* Ornate Divider */
.ornate-divider {
    height: 30px;
    background-image: url("data:image/svg+xml,%3Csvg width='100' height='30' viewBox='0 0 100 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 15 Q 25 0, 50 15 T 100 15' stroke='%23c0a062' stroke-width='2' fill='none'/%3E%3Cpath d='M0 17 Q 25 32, 50 17 T 100 17' stroke='%23c0a062' stroke-width='2' fill='none'/%3E%3C/svg%3E");
    background-repeat: repeat-x;
    background-position: center;
    margin: 30px 0;
    opacity: 0.7;
}

/* Footer */
.site-footer {
    background-color: #e0c9a6;
    border-top: 3px solid #c0a062;
    padding: 20px 0;
    text-align: center;
    font-size: 0.9em;
    margin-top: 30px;
}

.site-footer p {
    margin-bottom: 0.5em;
}

/* Form Styling (for contact page) */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-family: 'Cinzel Decorative', serif;
    color: #5a3e2b;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #c0a062;
    background-color: #fdf5e6; /* Very light parchment for inputs */
    border-radius: 3px;
    font-family: 'MedievalSharp', cursive;
    font-size: 1em;
    color: #3a2410;
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}

.form-group input[type="text"]:focus,
.form-group input[type="email"]:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #8B4513; /* SaddleBrown focus */
    box-shadow: 0 0 5px #c0a06280;
}

/* Initial Caps / Drop Caps (Example) */
.drop-cap::first-letter {
    font-family: 'Cinzel Decorative', cursive;
    font-size: 3em; /* Adjust size as needed */
    float: left;
    line-height: 0.8;
    margin-right: 0.1em;
    margin-top: 0.1em; /* Adjust vertical alignment */
    color: #8B4513; /* Accent color */
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .site-header .container {
        flex-direction: column;
        align-items: center;
    }
    .site-title {
        margin-bottom: 15px;
    }
    .main-nav ul {
        padding-left: 0;
        justify-content: center;
    }
    .main-nav ul li {
        margin: 0 10px;
    }
    h1 { font-size: 2.2em; }
    h2 { font-size: 1.8em; }
    .book-cover-placeholder {
        width: 200px;
        height: 300px;
    }
}