/* Cyrano Theme - Traditional Romantic */
@import url('https://fonts.googleapis.com/css2?family=Crimson+Text:ital,wght@0,400;0,600;0,700;1,400&family=Playfair+Display:ital,wght@0,400;0,700;1,400&display=swap');

:root {
    --primary-color: #600000; /* Darker Red */
    --secondary-color: #3e2723; /* Darker Wood */
    --accent-color: #c5a059; /* Muted Gold */
    --paper-color: #fdfbf7; /* Off-white paper */
    --bg-color: #1a0f0a; /* Dark desk background */
    --text-color: #2c1810;
    --link-color: #800000;
    --link-hover-color: #a52a2a;
    --border-color: #d3c09a;
}

body {
    font-family: 'Crimson Text', serif;
    background-color: var(--bg-color);
    /* Hero image as background */
    background-image: url('../images/ca_hero.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
    color: var(--text-color);
    margin: 0;
    padding: 0;
    line-height: 1.8;
    font-size: 18px;
}

a {
    color: var(--link-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--link-hover-color);
    text-decoration: underline;
}

/* Layout */
.container {
    max-width: 960px; /* Narrower for a letter feel */
    margin: 40px auto;
    padding: 40px;
    /* Gradient: Fully transparent top, fading to opaque */
    background: linear-gradient(to bottom,
        rgba(253, 251, 247, 0) 0%,
        rgba(253, 251, 247, 0.9) 150px,
        rgba(253, 251, 247, 1) 300px
    );
    /* Shadow shifted down to hide top edge */
    box-shadow: 0 30px 40px -10px rgba(0,0,0,0.5);
    border: none;
    min-height: 100vh;
}

/* Header */
header {
    text-align: center;
    margin-bottom: 40px;
    border-bottom: none;
    padding-bottom: 20px;
    position: relative;
}

header h1 {
    font-family: 'Playfair Display', serif;
    font-size: 4rem;
    color: var(--primary-color);
    margin: 10px 0 0 0;
    text-shadow: 0 0 20px rgba(253, 251, 247, 0.8); /* Light glow for readability */
}

header p {
    font-family: 'Crimson Text', serif;
    font-style: italic;
    font-size: 1.4rem;
    color: var(--accent-color);
    margin-top: 5px;
}

/* Navigation */
nav {
    background: transparent;
    box-shadow: none;
    border: none;
    padding: 15px 0;
    margin: 30px 0 40px 0;
    border-radius: 0;
}

.menu {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    gap: 30px;
}

.menu li a {
    color: var(--primary-color);
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    padding: 5px 10px;
    font-weight: bold;
    background: transparent;
}

.menu li a:hover {
    color: var(--secondary-color);
    text-decoration: none;
    background: transparent;
    transform: none;
    box-shadow: none;
}

/* Main Content Area */
.content-wrapper {
    display: grid;
    grid-template-columns: 1fr 250px;
    gap: 60px;
}

main {
    background-image: linear-gradient(rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0.5)), url('../images/ca_parchment.jpg');
    background-color: rgba(255, 255, 255, 0.4); /* Fallback */
    background-repeat: repeat;
    padding: 40px;
    border-radius: 8px;
    border: 1px solid rgba(128, 0, 0, 0.15); /* Subtle deep red border */
    box-shadow:
        inset 0 0 30px rgba(139, 69, 19, 0.05), /* Inner aging effect */
        0 2px 10px rgba(0,0,0,0.05); /* Slight lift */
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    color: var(--primary-color);
    margin-top: 0;
}

h1 { font-size: 2.5rem; border-bottom: none; padding-bottom: 10px; margin-bottom: 20px; }
h2 { font-size: 2rem; }

p {
    font-size: 1.2rem;
    margin-bottom: 1.5em;
}

/* Sidebar */
aside {
    background: transparent;
    padding: 0 0 0 30px;
    border-radius: 0;
    border: none;
    height: fit-content;
}

.widget {
    margin-bottom: 30px;
}

.widget h3 {
    font-size: 1.4rem;
    border-bottom: none;
    padding-bottom: 5px;
    margin-bottom: 15px;
    color: var(--secondary-color);
}

.widget ul {
    list-style: none;
    padding: 0;
}

.widget ul li {
    margin-bottom: 10px;
    border-bottom: none;
    padding-bottom: 5px;
}

.widget ul li:last-child {
    border-bottom: none;
}

.widget ul li a::before {
    content: "♥";
    color: var(--primary-color);
    margin-right: 8px;
    font-size: 0.8rem;
}

/* Footer */
footer {
    margin-top: 60px;
    text-align: center;
    padding: 20px;
    border-top: 2px solid var(--primary-color);
    font-size: 0.9rem;
    color: var(--secondary-color);
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
    text-align: center;
}

.footer-section h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.footer-menu {
    display: flex;
    flex-direction: row;
    gap: 20px;
    justify-content: center;
    align-items: center;
    padding: 0;
    margin: 0;
}

.footer-menu li a {
    color: var(--secondary-color);
    font-family: 'Crimson Text', serif;
    text-transform: none;
    font-size: 1rem;
    padding: 0;
}

.footer-menu li a:hover {
    color: var(--primary-color);
    text-decoration: underline;
    background: none;
    box-shadow: none;
    transform: none;
}

.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding-top: 20px;
    margin-top: 20px;
}

/* Responsive */
@media (max-width: 768px) {
    .content-wrapper {
        grid-template-columns: 1fr;
    }

    header h1 {
        font-size: 2.5rem;
    }

    .menu {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }
}
