/**
 * styles.css
 * Theme: "Classic Seminary" (Burgundy & Italics)
 * Update: Increased Sermon text size to be nearly as large as Bible text.
 */

/* --- 1. Variables & Reset --- */
:root {
    /* Palette */
    --primary-dark: #222222;      /* Soft Black */
    --primary-accent: #7f1d1d;    /* Deep Burgundy */
    --primary-accent-hover: #991b1b;
    
    --bg-color: #f9f7f5;          /* Warm, Paper-like Cream */
    --bg-white: #ffffff;          
    --text-main: #333333;         
    --text-muted: #666666;        
    
    /* Bible Block Colors */
    --bible-bg: #f0ece6;          /* Darker "Linen" for reduced glare */
    --bible-border: #7f1d1d;      
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* --- 2. Body Layout (Robust Logic) --- */
html {
    background-color: var(--bg-color);
    overflow-x: hidden; 
}

body {
    max-width: 800px;
    margin: 0 auto; 
    padding: 40px 20px; 
    
    font-family: Georgia, "Times New Roman", Times, serif;
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.6;
    
    min-height: 100vh;
}

/* --- 3. Typography --- */
h1, h2, h3 {
    font-family: "Playfair Display", Georgia, serif;
    line-height: 1.2;
}

h1 {
    font-size: 2.4rem;
    font-weight: 700;
    color: var(--primary-accent);
    text-align: center;
    margin-bottom: 10px;
}

h2 {
    font-size: 1.8rem;
    color: var(--primary-dark);
    margin-top: 40px;
    margin-bottom: 15px;
    border-bottom: 1px solid #e0e0e0;
    padding-bottom: 10px;
}

h3 {
    font-size: 1.4rem;
    font-style: italic;
    color: var(--primary-accent);
    margin-top: 30px;
    margin-bottom: 15px;
}

/* * UPDATED: Regular Paragraph Text 
 * Increased from 1.1rem to 1.18rem.
 * This is very close to the Bible text (1.25rem) but distinct enough to keep hierarchy.
 */
p {
    margin-bottom: 1.5em;
    font-size: 1.18rem; 
}

a {
    color: var(--primary-accent);
    text-decoration: none;
    transition: color 0.2s;
}

a:hover {
    color: var(--primary-accent-hover);
    text-decoration: underline;
}

/* Subtitle / Intro Text */
.intro-text, main > p:first-of-type {
    text-align: center;
    font-style: italic;
    color: var(--text-muted);
    margin-bottom: 40px;
    font-size: 1.15rem; /* Slightly larger to match new body size */
}

/* --- 4. Header --- */
header, .site-header {
    text-align: center;
    margin-bottom: 40px;
}

header img, .site-header img {
    max-height: 80px;
    width: auto;
    display: block;
    margin: 0 auto;
}

/* --- 5. Navigation --- */
.chapter-nav {
    background-color: #ffffff;
    border: 1px solid #e5e5e5;
    padding: 15px;
    margin: 30px 0;
    border-radius: 4px;
}

.chapter-nav ul {
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.chapter-nav a {
    font-family: -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    color: #555;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.chapter-nav a:hover {
    color: var(--primary-accent);
    text-decoration: none;
}

/* --- 6. Grids (Home Page) --- */
.testament-title {
    text-align: center;
    font-style: italic;
    color: var(--primary-accent);
    margin-bottom: 20px;
    border-bottom: none;
}

.chapter-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 12px;
    list-style: none;
    margin-bottom: 50px;
}

.chapter-grid li a {
    display: block;
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    padding: 12px;
    text-align: center;
    border-radius: 4px;
    color: var(--primary-dark);
    font-family: -apple-system, BlinkMacSystemFont, sans-serif;
    font-weight: 500;
    font-size: 0.95rem;
    box-shadow: 0 1px 2px rgba(0,0,0,0.03);
    text-decoration: none;
}

.chapter-grid li a:hover {
    border-color: var(--primary-accent);
    color: var(--primary-accent);
    transform: translateY(-1px);
    box-shadow: 0 3px 5px rgba(0,0,0,0.08);
}

/* --- 7. Content / Bible Blocks --- */
.paper-card {
    background-color: #ffffff;
    padding: 40px;
    border: 1px solid #eee;
    border-radius: 4px;
    margin-bottom: 40px;
}

/* * BIBLE TEXT - KEPT EXACTLY AS REQUESTED 
 * Font size: 1.25rem
 */
.bible-passage {
    background-color: var(--bible-bg);
    border-left: 4px solid var(--primary-accent);
    padding: 30px;
    margin: 35px 0;
    
    font-style: normal;
    font-size: 1.25rem; 
    line-height: 1.8;
    color: #1a1a1a;
    font-family: Georgia, "Times New Roman", serif;
}

.bible-passage small {
    display: block;
    margin-top: 15px;
    font-style: normal;
    font-weight: bold;
    color: var(--primary-accent);
    font-family: sans-serif;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.site-footer {
    text-align: center;
    font-size: 0.85rem;
    color: #888;
    margin-top: 50px;
    border-top: 1px solid #eee;
    padding-top: 20px;
}

/* --- 8. Mobile Fixes --- */
@media (max-width: 640px) {
    body {
        padding: 20px 15px; 
        width: 100%;
    }

    .chapter-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .chapter-nav ul {
        flex-direction: column;
        text-align: center;
    }
    
    .chapter-nav li {
        width: 100%;
        margin-bottom: 5px;
    }
    
    .chapter-nav a {
        display: block;
        background-color: #f8f8f8;
        padding: 8px;
        border-radius: 4px;
    }

    .paper-card {
        padding: 0;
        border: none;
        background-color: transparent;
    }
}