/* This is a CSS comment. Put your CSS styling below this line */

:root {
    --bg: #ffffff;
    --text: #222222;
    --muted: #666666;
    --border: #dddddd;
    --accent: #0a58ca;
}

[data-theme="dark"] {
    --bg: #121212;
    --text: #e8e8e8;
    --muted: #a0a0a0;
    --border: #333333;
    --accent: #cfcfcf;
}

body {
    font-family: "Lora", Georgia, serif;
    max-width: 750px;
    margin: 0 auto;
    padding: 1rem;
    line-height: 1.6;
    background: var(--bg);
    color: var(--text);
}

a {
    color: var(--accent);
}

nav {
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border);
}

nav a {
    margin-right: 1rem;
}

article {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border);
}

blockquote {
    border-left: 3px solid var(--border);
    margin-left: 0;
    padding-left: 1rem;
    color: var(--muted);
}

footer {
    color: var(--muted);
    font-size: 0.9rem;
}

.covers {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.75rem;
    align-items: start;
}

.covers img {
    width: 100%;
    height: auto;
}

/* 2 per row on small screens */
@media (max-width: 500px) {
    .covers {
        grid-template-columns: repeat(2, 1fr);
    }
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

li {
    margin-bottom: 0.5rem;
}

.quote-source {
    font-size: 0.9rem;
    font-style: italic;
}

/* Dark mode toggle pill */
.dark-toggle {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    color: var(--text);
}

.toggle-pill {
    position: relative;
    box-sizing: border-box;
    width: 3.6rem;
    height: 1.8rem;
    padding: 0 0.4rem;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.toggle-thumb {
    display: block;
    position: absolute;
    top: 0.15rem;
    left: 0.15rem;
    width: 1.4rem;
    height: 1.4rem;
    border-radius: 50%;
    background: var(--bg);
    transition: left 0.25s ease;
}


[data-theme="dark"] .toggle-thumb {
    left: calc(100% - 1.55rem);
}


.sun-pos,
.moon-pos {
    position: relative;
    z-index: 1;
    font-size: 0.85rem;
    line-height: 1;
}

[data-theme="dark"] footer a {
    color: var(--muted);
}
