.reader-page {
    --reader-width: 760px;
}

.reader-title {
    text-align: center;
    padding: 8px 0 26px;
}

.reader-title h1 {
    font-size: 30px;
    margin-top: 10px;
}

.reader-title h2 {
    font-size: 20px;
    margin: 10px 0;
    font-weight: 500;
}

.reader-tools {
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--paper);
    padding: 20px;
    margin: 0 auto 24px;
    max-width: 1000px;
}

.reader-tools > strong {
    display: block;
    text-align: center;
    font-size: 14px;
    margin-bottom: 14px;
}

.reader-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin: 16px auto;
}

.reader-options {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 13px;
    border-top: 1px solid var(--line);
    padding-top: 16px;
}

.reader-options input {
    accent-color: var(--accent);
    max-width: 160px;
}

.disabled {
    background: transparent;
    border-color: var(--line);
    color: var(--muted);
}

.reader-images {
    width: min(var(--reader-width), 100%);
    margin: 0 auto 26px;
    background: #e1e5eb;
}

.reader-images figure {
    margin: 0;
    position: relative;
}

.reader-images img {
    width: 100%;
    height: auto;
    max-width: 100%;
    display: block;
    margin: 0 auto;
    background: #e1e5eb;
    color: #334155;
}

.reader-images img.image-error {
    aspect-ratio: 3 / 4;
    border: 1px solid #b8c1ce;
}

.reader-images figcaption {
    font-size: 12px;
    color: #536074;
    background: #e1e5eb;
    text-align: center;
    padding: 6px;
}

.reader-disclaimer {
    text-align: center;
    color: var(--muted);
    font-size: 12px;
    margin: 20px auto;
    max-width: 780px;
}

.reader-page.dark {
    color-scheme: dark;
    --back: #111722;
    --paper: #1b2431;
    --ink: #f0f3f8;
    --text: #e0e5ec;
    --muted: #aeb8c6;
    --line: #394555;
    --accent-dark: #ffad89;
}

.reader-page.dark .header-discover, .reader-page.dark .site-footer {
    background: #0b111a;
}

@media (max-width: 560px) {
    .reader-title h1 {
        font-size: 25px;
    }

    .reader-tools {
        padding: 15px 10px;
    }

    .reader-nav {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }

    .reader-options {
        gap: 10px;
    }

    .reader-images {
        width: 100%;
    }
}
