/* ============================================
   CSS Custom Properties (CSS Variables)
   ============================================ */
:root {
    /* Colors */
    --primary-color: #c44536;
    --secondary-color: #e67e22;
    --text-color: #333;
    --text-light: #555;
    --text-muted: #777;
    --background-color: #fff;
    --background-light: #fafafa;
    --background-gradient: linear-gradient(135deg, #fafafa 0%, #f5f5f5 100%);
    --border-color: #ddd;
    --border-light: #f0f0f0;
    --accent-color: #f0f0f0;
    
    /* Typography */
    --font-family-main: 'Times New Roman', Times, serif;
    --font-family-heading: 'Georgia', serif;
    --font-size-base: 16px;
    --font-size-small: 13px;
    --line-height-base: 1.6;
    --line-height-text: 1.9;
    
    /* Spacing */
    --spacing-xs: 8px;
    --spacing-sm: 15px;
    --spacing-md: 25px;
    --spacing-lg: 40px;
    --spacing-xl: 60px;
    
    /* Layout */
    --max-width: 800px;
    --border-radius: 8px;
    --border-radius-small: 4px;
    
    /* Shadows */
    --shadow-light: 0 2px 4px rgba(0,0,0,0.1);
    --shadow-medium: 0 2px 10px rgba(0,0,0,0.02);
    --shadow-heavy: 0 8px 25px rgba(0,0,0,0.08);
    
    /* Transitions */
    --transition-fast: 0.3s ease;
    --transition-medium: 0.4s ease;
}

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

body {
    font-family: 'Times New Roman', Times, serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* Navigation */
nav {
    margin-bottom: 60px;
    border-bottom: 2px dotted #ddd;
    padding-bottom: 25px;
    position: relative;
}

nav::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 40px;
    height: 2px;
    background: linear-gradient(90deg, #c44536, transparent);
}

nav ul {
    list-style: none;
    display: flex;
    gap: 35px;
    align-items: center;
}

nav a {
    text-decoration: none;
    color: #555;
    font-size: 13px;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: all 0.3s ease;
    position: relative;
    font-weight: 500;
}

nav a::before {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: -5px;
    left: 50%;
    background-color: #c44536;
    transition: all 0.3s ease;
}

nav a:hover {
    color: #c44536;
    transform: translateY(-1px);
}

nav a:hover::before {
    width: 100%;
    left: 0;
}

nav a.active {
    color: #c44536;
}

nav a.active::before {
    width: 100%;
    left: 0;
}

/* Header */
.site-title {
    font-size: 42px;
    font-weight: 300;
    margin-bottom: 35px;
    color: #2c2c2c;
    font-family: 'Georgia', serif;
    letter-spacing: -1px;
    position: relative;
}

.site-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #c44536, #e67e22);
    margin-top: 15px;
    border-radius: 2px;
}

.site-description {
    font-size: 17px;
    line-height: 1.9;
    margin-bottom: 50px;
    color: #4a4a4a;
    font-style: italic;
    padding-left: 20px;
    border-left: 4px solid #f0f0f0;
    background: linear-gradient(135deg, #fafafa 0%, #f5f5f5 100%);
    padding: 20px;
    border-radius: 5px;
}

.site-description a {
    color: #c44536;
    text-decoration: none;
    font-weight: 500;
    border-bottom: 1px dotted #c44536;
    transition: all 0.3s ease;
}

.site-description a:hover {
    background-color: #c44536;
    color: white;
    border-bottom: 1px solid #c44536;
    padding: 2px 4px;
    border-radius: 2px;
}

.subscribe-btn {
    background: linear-gradient(135deg, #555, #777);
    color: white;
    border: none;
    padding: 6px 12px;
    font-size: 11px;
    cursor: pointer;
    margin-left: 8px;
    border-radius: 15px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.subscribe-btn:hover {
    background: linear-gradient(135deg, #c44536, #e67e22);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(196, 69, 54, 0.3);
}

/* Blog Posts */
.blog-posts {
    list-style: none;
}

.blog-post {
    margin-bottom: 60px;
    padding-bottom: 40px;
    border-bottom: 1px solid #f0f0f0;
    position: relative;
    background: linear-gradient(135deg, #fdfdfd 0%, #fafafa 100%);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.02);
    transition: all 0.4s ease;
}

.blog-post::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, #c44536, #e67e22);
    border-radius: 0 8px 8px 0;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.blog-post:hover::before {
    opacity: 1;
}

.blog-post:last-child {
    border-bottom: none;
}

.post-title {
    font-size: 22px;
    font-weight: 400;
    color: #c44536;
    margin-bottom: 25px;
    line-height: 1.4;
    font-family: 'Georgia', serif;
}

.post-title a {
    color: #c44536;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
}

.post-title a::after {
    content: '→';
    opacity: 0;
    margin-left: 8px;
    transition: all 0.3s ease;
    color: #e67e22;
}

.post-title a:hover::after {
    opacity: 1;
    margin-left: 12px;
}

.post-content {
    font-size: 16px;
    line-height: 1.9;
    color: #3c3c3c;
    text-align: justify;
}

.post-content p {
    margin-bottom: 18px;
}

.post-sidebar {
    float: right;
    width: 220px;
    margin-left: 25px;
    margin-bottom: 20px;
    font-size: 13px;
    color: #666;
    line-height: 1.6;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    padding: 18px;
    border-left: 4px solid #c44536;
    border-radius: 0 6px 6px 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    position: relative;
}

.post-sidebar::before {
    content: '';
    position: absolute;
    left: -4px;
    top: 20px;
    width: 0;
    height: 0;
    border-left: 4px solid #c44536;
    border-top: 6px solid transparent;
    border-bottom: 6px solid transparent;
}

.post-sidebar a {
    color: #c44536;
    text-decoration: none;
    font-weight: 500;
    border-bottom: 1px dotted #c44536;
}

.post-sidebar a:hover {
    background-color: #c44536;
    color: white;
    padding: 1px 3px;
    border-radius: 2px;
    border-bottom: 1px solid #c44536;
}

/* Page content styles */
.page-content {
    background: linear-gradient(135deg, #fdfdfd 0%, #fafafa 100%);
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.02);
    margin-bottom: 40px;
}

.page-content h2 {
    font-size: 28px;
    font-weight: 400;
    color: #c44536;
    margin-bottom: 30px;
    font-family: 'Georgia', serif;
}

.page-content h3 {
    font-size: 20px;
    font-weight: 500;
    color: #2c2c2c;
    margin: 25px 0 15px 0;
}

.page-content p {
    margin-bottom: 18px;
    font-size: 16px;
    line-height: 1.9;
    color: #3c3c3c;
}

.page-content ul {
    margin-bottom: 20px;
    padding-left: 30px;
}

.page-content li {
    margin-bottom: 8px;
    color: #3c3c3c;
}

.contact-form {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 8px;
    border-left: 4px solid #c44536;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #2c2c2c;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: inherit;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #c44536;
}

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

.submit-btn {
    background: linear-gradient(135deg, #c44536, #e67e22);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.submit-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(196, 69, 54, 0.3);
}

/* Responsive Design */
@media (max-width: 768px) {
    .post-sidebar {
        float: none;
        width: 100%;
        margin-left: 0;
        margin-bottom: 20px;
    }
    
    nav ul {
        flex-direction: column;
        gap: 15px;
    }
    
    .site-title {
        font-size: 28px;
    }

    .page-content {
        padding: 25px;
    }
}

/* Hover effects */
.blog-post {
    transition: all 0.4s ease;
}

.blog-post:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
}

/* Footer */
.footer {
    margin-top: 80px;
    padding-top: 40px;
    border-top: 2px dotted #ddd;
    text-align: center;
    color: #777;
    font-size: 13px;
    font-style: italic;
    position: relative;
}

.footer::before {
    content: '✦';
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    background: white;
    padding: 0 15px;
    color: #c44536;
    font-size: 16px;
}

/* Reading progress indicator */
.reading-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: linear-gradient(90deg, #c44536, #e67e22);
    z-index: 1000;
    transition: width 0.1s ease;
}

/* Subtle animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.blog-post {
    animation: fadeInUp 0.6s ease forwards;
}

.blog-post:nth-child(2) { animation-delay: 0.1s; }
.blog-post:nth-child(3) { animation-delay: 0.2s; }
.blog-post:nth-child(4) { animation-delay: 0.3s; }
.blog-post:nth-child(5) { animation-delay: 0.4s; }
