
:root {
    --bg: #fdfdfb;
    --text: #222222;
    --accent: #0056b3;
    --border: #e0e0e0;
}
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Georgia, serif;
    line-height: 1.75;
    max-width: 720px;
    margin: 0 auto;
    padding: 2rem 1.25rem;
    background: var(--bg);
    color: var(--text);
    font-size: 1.1rem;
}
img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 1.5rem auto;
}
nav.chapter-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    margin: 1.5rem 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    font-family: system-ui, sans-serif;
    font-size: 0.95rem;
}
nav.chapter-nav a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 500;
}
nav.chapter-nav a:hover {
    text-decoration: underline;
}
ul.toc {
    list-style: none;
    padding: 0;
}
ul.toc li {
    padding: 0.6rem 0;
    border-bottom: 1px solid var(--border);
}
ul.toc a {
    text-decoration: none;
    color: var(--accent);
    font-size: 1.15rem;
}
ul.toc a:hover {
    text-decoration: underline;
}
