/*
 * Styles for "The Convenience of Interpretation" paper
 * A response to Improbable Planet by Hugh Ross
 */

/* ========== Base Styles ========== */

:root {
    --color-primary: #2C3E50;
    --color-secondary: #3498DB;
    --color-accent: #E74C3C;
    --color-success: #27AE60;
    --color-warning: #F39C12;
    --color-light: #ECF0F1;
    --color-dark: #1A252F;
    --color-text: #333;
    --color-text-light: #666;
    --font-serif: Georgia, 'Times New Roman', serif;
    --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    --max-width: 900px;
    --spacing: 1.5rem;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-serif);
    font-size: 18px;
    line-height: 1.7;
    color: var(--color-text);
    background-color: #fafafa;
    margin: 0;
    padding: 0;
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--spacing);
}

/* ========== Typography ========== */

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-sans);
    color: var(--color-primary);
    margin-top: 2rem;
    margin-bottom: 1rem;
    line-height: 1.3;
}

h1 {
    font-size: 2.5rem;
    margin-top: 0;
}

h2 {
    font-size: 2rem;
    border-bottom: 3px solid var(--color-secondary);
    padding-bottom: 0.5rem;
    margin-top: 3rem;
}

h3 {
    font-size: 1.5rem;
    color: var(--color-dark);
}

p {
    margin-bottom: 1.25rem;
}

.lead {
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--color-primary);
    border-left: 4px solid var(--color-secondary);
    padding-left: 1rem;
    margin: 2rem 0;
}

strong {
    color: var(--color-primary);
}

em {
    font-style: italic;
}

/* ========== Header ========== */

header {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-dark) 100%);
    color: white;
    padding: 4rem 0;
    text-align: center;
}

header h1 {
    color: white;
    font-size: 2.75rem;
    margin-bottom: 0.5rem;
}

header .subtitle {
    font-size: 1.25rem;
    opacity: 0.9;
    margin: 0;
}

header .subtitle em {
    font-style: italic;
}

header .author {
    font-size: 1rem;
    opacity: 0.85;
    margin-top: 0.75rem;
    font-style: italic;
    font-family: var(--font-sans);
}

/* ========== Navigation / Table of Contents ========== */

#toc {
    background: white;
    border-bottom: 1px solid #ddd;
    padding: 1.5rem 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

#toc h3 {
    display: none;
}

#toc ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem 1.5rem;
}

#toc a {
    color: var(--color-primary);
    text-decoration: none;
    font-family: var(--font-sans);
    font-size: 0.95rem;
    padding: 0.25rem 0;
    border-bottom: 2px solid transparent;
    transition: all 0.2s ease;
}

#toc a:hover {
    color: var(--color-secondary);
    border-bottom-color: var(--color-secondary);
}

/* ========== Main Content ========== */

main {
    background: white;
    padding: 3rem 0;
}

article {
    max-width: var(--max-width);
}

section {
    margin-bottom: 3rem;
    padding-top: 1rem;
}

/* ========== Lists ========== */

ul, ol {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
}

li {
    margin-bottom: 0.5rem;
}

.scripture-list {
    background: var(--color-light);
    padding: 1.5rem 2rem;
    border-radius: 8px;
    list-style: none;
}

.scripture-list li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #ddd;
}

.scripture-list li:last-child {
    border-bottom: none;
}

/* ========== Blockquotes ========== */

blockquote {
    background: var(--color-light);
    border-left: 5px solid var(--color-accent);
    margin: 2rem 0;
    padding: 1.5rem 2rem;
    font-style: italic;
    font-size: 1.1rem;
    position: relative;
}

blockquote::before {
    content: '"';
    font-size: 4rem;
    color: var(--color-accent);
    opacity: 0.3;
    position: absolute;
    top: -10px;
    left: 10px;
    font-family: Georgia, serif;
}

/* ========== Callouts ========== */

.callout {
    padding: 1.5rem;
    margin: 2rem 0;
    border-radius: 8px;
    border-left: 5px solid;
}

.callout h4 {
    margin-top: 0;
    font-size: 1.1rem;
}

.callout.info {
    background: #e3f2fd;
    border-color: var(--color-secondary);
}

.callout.info h4 {
    color: var(--color-secondary);
}

.callout.warning {
    background: #fff3e0;
    border-color: var(--color-warning);
}

.callout.warning h4 {
    color: #e65100;
}

.callout.danger {
    background: #ffebee;
    border-color: var(--color-accent);
}

.callout.danger h4 {
    color: var(--color-accent);
}

.callout ul {
    margin-bottom: 0;
}

/* ========== Figures ========== */

figure {
    margin: 2.5rem 0;
    text-align: center;
}

figure.full-width {
    margin-left: -2rem;
    margin-right: -2rem;
}

figure img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

figcaption {
    font-family: var(--font-sans);
    font-size: 0.9rem;
    color: var(--color-text-light);
    margin-top: 1rem;
    font-style: italic;
    max-width: 80%;
    margin-left: auto;
    margin-right: auto;
}

/* ========== Article Footer ========== */

.article-footer {
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 2px solid var(--color-light);
}

.article-footer p {
    font-size: 0.95rem;
    color: var(--color-text-light);
    text-align: center;
}

/* ========== Site Footer ========== */

.site-footer {
    background: var(--color-primary);
    color: white;
    text-align: center;
    padding: 2rem;
    margin-top: 3rem;
}

.site-footer p {
    margin: 0;
    font-size: 0.9rem;
    opacity: 0.8;
}

/* ========== Responsive Design ========== */

@media (max-width: 768px) {
    body {
        font-size: 16px;
    }

    header {
        padding: 2rem 0;
    }

    header h1 {
        font-size: 2rem;
    }

    header .subtitle {
        font-size: 1rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    h3 {
        font-size: 1.25rem;
    }

    #toc ul {
        flex-direction: column;
        align-items: center;
    }

    figure.full-width {
        margin-left: 0;
        margin-right: 0;
    }

    blockquote {
        padding: 1rem 1.5rem;
    }

    blockquote::before {
        font-size: 2.5rem;
    }
}

@media (max-width: 480px) {
    header h1 {
        font-size: 1.75rem;
    }

    .container {
        padding: 0 1rem;
    }
}

/* ========== Print Styles ========== */

@media print {
    header {
        background: none;
        color: black;
        padding: 1rem 0;
    }

    header h1 {
        color: black;
    }

    #toc {
        display: none;
    }

    .callout {
        border: 1px solid #ccc;
        background: none;
    }

    figure img {
        box-shadow: none;
        border: 1px solid #ccc;
    }

    .site-footer {
        background: none;
        color: black;
        border-top: 1px solid #ccc;
    }
}
