/* CSS Custom Properties for Holy Light Theme (Default) */
:root {
    --bg-primary: #e8d5b7;
    --bg-secondary: #f2e4c9;
    --bg-tertiary: #dcc9a6;

    --text-primary: #2a1a0a;
    --text-secondary: #4a3010;
    --text-muted: #6b4e2a;

    --accent-primary: #b8860b;
    --accent-hover: #8b6914;

    --border-light: #e6d4b0;
    --border-medium: #d4af37;
    --border-dark: #b8941f;

    --shadow-color: rgba(139, 105, 20, 0.25);
    --link-color: #1a5490;
    --link-hover: #0f3d6b;
}

/* Infernal Dark Theme */
@media (prefers-color-scheme: dark) {
    :root {
        --bg-primary: #1a0f0a;
        --bg-secondary: #2b1810;
        --bg-tertiary: #3d2217;

        --text-primary: #e8d5c4;
        --text-secondary: #d4bca8;
        --text-muted: #b8a090;

        --accent-primary: #ff6b35;
        --accent-hover: #ff8c5a;

        --border-light: #4a2f20;
        --border-medium: #6b4328;
        --border-dark: #8b5a3c;

        --shadow-color: rgba(255, 69, 0, 0.3);
        --link-color: #ff9f6b;
        --link-hover: #ffb88c;
    }
}

/* Base Styles */
body {
    font-family: Georgia, serif;
    line-height: 1.6;
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    transition:
        background-color 0.3s ease,
        color 0.3s ease;
}

header {
    border-bottom: 3px solid var(--border-dark);
    margin-bottom: 30px;
    padding-bottom: 10px;
}

h1 {
    margin: 0;
    font-size: 2.5em;
    color: var(--text-primary);
    font-family:
        -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    text-align: center;
}

.tagline {
    color: var(--text-secondary);
    margin-top: 5px;
    text-align: center;
}

section {
    background: var(--bg-secondary);
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 5px;
    box-shadow: 0 2px 5px var(--shadow-color);
    border: 1px solid var(--border-light);
}

h2 {
    border-bottom: 2px solid var(--border-medium);
    padding-bottom: 5px;
    margin-top: 0;
    color: var(--text-primary);
    text-align: center;
}

ul {
    list-style-type: none;
    padding-left: 0;
}

li {
    margin-bottom: 10px;
}

a {
    color: var(--link-color);
    text-decoration: none;
    font-weight: 500;
}

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

a:focus {
    outline: 2px solid var(--accent-primary);
    outline-offset: 2px;
}

.description {
    color: var(--text-muted);
    font-size: 0.9em;
    margin-left: 20px;
    margin-top: 4px;
}

footer {
    text-align: center;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid var(--border-medium);
    color: var(--text-secondary);
    font-size: 0.9em;
}

/* YouTube channels two-column layout */
@media (min-width: 768px) {
    section:last-of-type ul {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 10px 20px;
        max-width: 600px;
        margin: 0 auto;
    }

    section:last-of-type li {
        text-align: center;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    :root {
        --text-primary: #000000;
        --bg-secondary: #ffffff;
        --link-color: #0000ee;
    }

    @media (prefers-color-scheme: dark) {
        :root {
            --text-primary: #ffffff;
            --bg-secondary: #000000;
            --link-color: #58a6ff;
        }
    }
}
