
:root {
    --width: 720px;
    --font-main: Verdana, Geneva, sans-serif;
    --font-secondary: Verdana, Geneva, sans-serif;
    --font-scale: 1em;
    --background-color: #ffffff;
    --heading-color: #222222;
    --text-color: #444444;
    --link-color: #3273dc;
    --visited-color: #8b6fcb;
    --muted: #666666;
    --rule: #dddddd;
}

@media (prefers-color-scheme: dark) {
    :root {
        --background-color: #01242e;
        --heading-color: #eeeeee;
        --text-color: #dddddd;
        --link-color: #8cc2dd;
        --visited-color: #8b6fcb;
        --muted: #a9b7bd;
        --rule: #1d4450;
    }
}

* { box-sizing: border-box; }

body {
    font-family: var(--font-secondary);
    font-size: var(--font-scale);
    margin: auto;
    padding: 20px;
    max-width: var(--width);
    text-align: left;
    background-color: var(--background-color);
    word-wrap: break-word;
    overflow-wrap: break-word;
    line-height: 1.5;
    color: var(--text-color);
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-main);
    color: var(--heading-color);
}

a {
    color: var(--link-color);
    cursor: pointer;
    text-decoration: none;
}

a:hover { text-decoration: underline; }

nav a { margin-right: 8px; }

header { margin-bottom: 1.25rem; }

a.title { color: inherit; display: inline-block; }
a.title:hover { text-decoration: none; }
.title h1 {
    font-size: 1.5em;
    margin: 0;
}

nav p { margin: 0.4rem 0 0; }

main { line-height: 1.6; }

.lede p { margin: 0 0 0.85rem; }

ul.blog-posts {
    list-style-type: none;
    padding: unset;
    margin: 1.25rem 0 0;
}

ul.blog-posts li {
    padding: 0.15rem 0;
}

ul.blog-posts li a:visited { color: var(--visited-color); }

h1.chapter-title {
    margin: 0 0 0.25rem;
    font-size: 1.75rem;
}

.chapter-sub {
    margin: 0 0 0.75rem;
    color: var(--muted);
}

time {
    font-family: monospace;
    font-style: normal;
    font-size: 15px;
    color: var(--muted);
}

.verses { margin-top: 1.25rem; }

.verse {
    margin: 0 0 1em;
    line-height: 1.65;
}

.verse .ref {
    font-weight: 700;
    color: var(--heading-color);
    margin-right: 0.3rem;
}

.chapter-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px dashed var(--rule);
    flex-wrap: wrap;
}

.chapter-nav .nav-home {
    text-align: center;
}

.pray-wrap {
    margin-top: 1.75rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
}

.pray-button {
    padding: 0;
    margin: 0;
    border: 0;
    background-color: inherit;
    color: inherit;
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    font: inherit;
    min-width: 3rem;
    transition: color 0.15s ease, transform 0.15s ease;
}

.pray-button:hover { transform: translateY(-1px); }

.pray-button.prayed { color: salmon; }

.pray-emoji {
    font-size: 1.45rem;
    line-height: 1;
    display: inline-block;
}

.pray-button.prayed .pray-emoji { animation: namaste 0.4s ease; }

.pray-label {
    font-size: 0.85rem;
    margin-top: 0.1rem;
}

.pray-count {
    margin-top: -2px;
    font-size: 0.9rem;
    font-variant-numeric: tabular-nums;
}

footer {
    padding: 25px 0;
    text-align: center;
    color: var(--muted);
    font-size: 0.92rem;
}

footer a { color: var(--link-color); }

@keyframes namaste {
    0% { transform: scale(1); }
    40% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

@media (max-width: 560px) {
    ul.blog-posts li { flex-direction: column; }
    ul.blog-posts li span {
        flex: none;
        margin-bottom: 0.1rem;
        color: var(--muted);
        font-size: 0.9rem;
    }
}
