:root {
    --bg-color: #fdfdfd;
    --text-color: #1a1a1a;
    --accent-color: #c0392b; /* A deep, serious red */
    --sidebar-bg: #f8f9fa;
    --border-color: #e1e4e8;
    --header-font: 'Playfair Display', serif;
    --body-font: 'Libre Baskerville', serif;
}

body {
    font-family: var(--body-font);
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.8;
    margin: 0;
}

/* Landing Page Styles */
.hero {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 2rem;
    background: linear-gradient(rgba(255,255,255,0.9), rgba(255,255,255,0.9)), url('https://www.transparenttextures.com/patterns/paper-fibers.png');
}

.hero h1 {
    font-family: var(--header-font);
    font-size: 4rem;
    margin-bottom: 0.5rem;
    color: var(--accent-color);
}

.hero .dedication {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 4px;
    margin-bottom: 2rem;
    color: #7f8c8d;
}

.appeal-box {
    max-width: 800px;
    background: white;
    padding: 3rem;
    border: 1px solid var(--border-color);
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    border-radius: 4px;
}

.appeal-box h2 {
    font-family: var(--header-font);
    margin-bottom: 1.5rem;
}

.demographics {
    font-weight: bold;
    color: var(--accent-color);
    margin: 1.5rem 0;
}

.cta-button {
    background-color: var(--accent-color);
    color: white;
    padding: 1rem 2.5rem;
    border: none;
    border-radius: 4px;
    font-size: 1.1rem;
    cursor: pointer;
    font-family: var(--header-font);
    transition: background 0.3s;
    text-decoration: none;
    display: inline-block;
    margin-top: 2rem;
}

.cta-button:hover {
    background-color: #a93226;
}

/* Treatise Layout (App) */
.treatise-container {
    display: flex;
    height: 100vh;
}

.sidebar {
    width: 300px;
    background-color: var(--sidebar-bg);
    border-right: 1px solid var(--border-color);
    overflow-y: auto;
    padding: 2rem 1rem;
    display: flex;
    flex-direction: column;
}

.sidebar h2 {
    font-family: var(--header-font);
    font-size: 1.5rem;
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem;
    color: var(--accent-color);
}

.volume-nav {
    flex-grow: 1;
}

.community-section {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}

.volume-list {
    list-style: none;
    padding: 0;
}

.volume-item {
    margin-bottom: 1.5rem;
}

.volume-title {
    font-weight: bold;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #555;
    margin-bottom: 0.5rem;
    display: block;
}

.chapter-link {
    display: block;
    padding: 0.4rem 0.8rem;
    color: var(--text-color);
    text-decoration: none;
    font-size: 0.95rem;
    border-left: 2px solid transparent;
}

.chapter-link:hover, .chapter-link.active {
    color: var(--accent-color);
    border-left-color: var(--accent-color);
    background: #f0f0f0;
}

.content-area {
    flex-grow: 1;
    overflow-y: auto;
    padding: 4rem;
    max-width: 900px;
    margin: 0 auto;
}

.treatise-text {
    font-size: 1.2rem;
    line-height: 2;
}

.treatise-text h1 {
    font-family: var(--header-font);
    font-size: 2.5rem;
    margin-bottom: 2rem;
    border-bottom: 2px solid var(--accent-color);
    padding-bottom: 1rem;
}

/* Utils */
.hidden { display: none !important; }
