/* Explain: Base reset, typography, site-wide background, and dark reading theme. */
* {
    box-sizing: border-box;
}

html {
    color: var(--text-color);
    overflow-x: hidden;
}

body {
    margin: 0;
    overflow-x: hidden;
    font-family: var(--font-body);
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    background-image:
        linear-gradient(rgba(0, 0, 0, 0.82), rgba(0, 0, 0, 0.82)),
        url('https://files.cdn-files-a.com/uploads/12319002/normal_gi-6a84326c267f0.jpg?format=avif');
    background-size: cover, cover;
    background-position: center, center;
    background-attachment: fixed, fixed;
    background-repeat: no-repeat, no-repeat;
    background-color: #0a0705;
}

/* Dark, warm reading background for the New Testament study pages (Matthew and future books) */
.study-reading-theme {
    background-color: #0a0604;
    background-image:
        radial-gradient(ellipse 120% 75% at 50% -8%, rgba(197, 160, 89, 0.16) 0%, rgba(197, 160, 89, 0) 58%),
        linear-gradient(180deg, rgba(10, 6, 4, 0.95) 0%, rgba(24, 15, 8, 0.92) 48%, rgba(11, 7, 5, 0.96) 100%),
        url('https://files.cdn-files-a.com/uploads/12319002/normal_gi-6a84326c267f0.jpg?format=avif');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
}

img {
    display: block;
    max-width: 100%;
}

@keyframes slowGlow {
    0%, 100% { opacity: 0.75; text-shadow: 0 0 4px rgba(197, 160, 89, 0.3); }
    50% { opacity: 1; text-shadow: 0 0 12px rgba(197, 160, 89, 0.9); }
}
.animate-slow-glow {
    animation: slowGlow 4s ease-in-out infinite;
}

/* Subtly increase main body text readability on tablets and laptops */
@media (min-width: 768px) {
    main .text-lg:not([class*="md:text-"]):not([class*="lg:text-"]):not([class*="xl:text-"]) {
        font-size: 1.25rem; /* ~20px (equivalent to text-xl) */
        line-height: 1.8;
    }
    main .text-base:not([class*="md:text-"]):not([class*="lg:text-"]):not([class*="xl:text-"]) {
        font-size: 1.125rem; /* ~18px (equivalent to text-lg) */
        line-height: 1.75;
    }
}

