/* A quiet reading pane. The source article, its URL and Ghost editor stay intact. */
.moo-essay-reader {
    box-sizing: border-box;
    position: fixed;
    inset: 0 0 0 auto;
    width: min(780px, 86vw);
    max-width: 100vw;
    height: 100vh;
    height: 100dvh;
    max-height: none;
    margin: 0 0 0 auto;
    padding: 0;
    overflow: hidden;
    border: 0;
    border-left: 1px solid var(--surface-rule, #454640);
    border-radius: 0;
    color-scheme: inherit;
    accent-color: var(--accent-blue, #82b6f2);
    color: var(--primary-text-color, #f4f1e9);
    background: var(--surface-background, #191a18);
    box-shadow: -16px 0 60px #0003;
    font-family: var(--font-sans, sans-serif);
    text-align: left;
}
.moo-essay-reader[open] { animation: moo-reader-enter 300ms cubic-bezier(.22, 1, .36, 1) both; }
.moo-essay-reader[open].is-closing { animation: moo-reader-exit 300ms cubic-bezier(.22, 1, .36, 1) both; pointer-events: none; }
.moo-essay-reader::backdrop { background: rgb(0 0 0 / .28); animation: moo-reader-backdrop-enter 300ms cubic-bezier(.22, 1, .36, 1) both; }
.moo-essay-reader.is-closing::backdrop { animation: moo-reader-backdrop-exit 300ms cubic-bezier(.22, 1, .36, 1) both; }
body.moo-essay-reader-active > .site { transition: transform 300ms cubic-bezier(.22, 1, .36, 1); }
body.moo-essay-reader-open > .site { transform: translateX(-40px); }
.moo-essay-reader-scroll {
    box-sizing: border-box;
    height: 100%;
    padding: 0 44px 64px;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    scroll-padding-top: 90px;
    scrollbar-gutter: stable;
}
.moo-essay-reader-toolbar {
    position: sticky;
    top: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 72px;
    margin-bottom: 30px;
    padding: 10px 0;
    border-bottom: 1px solid var(--surface-rule, #454640);
    background: var(--surface-background, #191a18);
}
.moo-essay-reader :is(button, a) { color: inherit; }
.moo-essay-reader-toolbar :is(button, a) {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 8px 0;
    border: 0;
    border-radius: 0;
    color: var(--accent-blue, #82b6f2);
    background: transparent;
    font: inherit;
    font-size: 14px;
    line-height: 1.45;
    cursor: pointer;
}
.moo-essay-reader :is(button, a, summary):focus-visible { outline: 2px solid var(--accent-blue, #82b6f2); outline-offset: 4px; }
.moo-essay-reader .moo-essay-reader-close { flex: 0 0 auto; color: var(--primary-text-color, #f4f1e9); }
.moo-essay-reader .moo-essay-reader-title {
    margin: 0 0 20px;
    color: inherit;
    font-family: var(--font-serif, Georgia, serif);
    font-size: clamp(30px, 3vw, 44px);
    font-weight: 400;
    line-height: 1.15;
    letter-spacing: -.015em;
    overflow-wrap: anywhere;
}
.moo-essay-reader-byline { margin: 0 0 28px; color: var(--secondary-text-color, #b5b6ae); font-size: 14px; line-height: 1.6; }
.moo-essay-reader-cover { margin: 32px 0; }
.moo-essay-reader-cover img { display: block; width: 100%; height: auto; max-height: 470px; object-fit: contain; }
.moo-essay-reader-cover figcaption { margin: 12px 0 0; font-size: 13px; line-height: 1.65; color: var(--secondary-text-color, #b5b6ae); }
.moo-essay-reader-status { margin: 32px 0; font-size: 16px; line-height: 1.7; color: var(--secondary-text-color, #b5b6ae); }
.moo-essay-reader-body { color: var(--primary-text-color); font-family: var(--gh-font-body, var(--font-sans, sans-serif)); font-size: 18px; line-height: 1.8; overflow-wrap: anywhere; }
.has-serif-body .moo-essay-reader-body { font-family: var(--gh-font-body, var(--font-serif, Georgia, serif)); }
.moo-essay-reader-body :is(p, ul, ol, dl, blockquote, figure, table, pre, details) { margin-top: 1.4em; margin-bottom: 1.4em; }
.moo-essay-reader-body :is(h1, h2, h3, h4, h5, h6) { margin: 1.7em 0 .7em; color: inherit; font-family: var(--font-serif, Georgia, serif); font-weight: 400; line-height: 1.25; scroll-margin-top: 90px; }
.moo-essay-reader-body :is(h1, h2) { font-size: 30px; }
.moo-essay-reader-body h3 { font-size: 25px; }
.moo-essay-reader-body :is(h4, h5, h6) { font-size: 21px; }
.moo-essay-reader-body img { display: block; width: auto; height: auto; max-width: 100%; max-height: 600px; margin: 24px auto; object-fit: contain; }
.moo-essay-reader-body :is(a, a:visited) { color: var(--accent-blue, #82b6f2); text-decoration: underline; text-underline-offset: 3px; }
.moo-essay-reader-body figure { margin-left: 0; margin-right: 0; }
.moo-essay-reader-body figcaption { font-size: 13px; line-height: 1.65; color: var(--secondary-text-color, #b5b6ae); }
.moo-essay-reader-body blockquote { padding-left: 20px; margin-left: 0; margin-right: 0; border-left: 2px solid var(--surface-rule, #454640); color: inherit; }
.moo-essay-reader-body :is(ul, ol) { padding-left: 1.4em; }
.moo-essay-reader-body table { display: block; max-width: 100%; overflow-x: auto; border-collapse: collapse; font-size: 15px; }
.moo-essay-reader-body :is(th, td) { padding: 10px; border: 1px solid var(--surface-rule, #454640); color: inherit; white-space: normal; }
.moo-essay-reader-body pre { padding: 16px; max-width: 100%; overflow-x: auto; white-space: pre; font-size: 14px; background: var(--surface-card, #242522); }
.moo-essay-reader-body :not(pre) > code { color: var(--accent-blue); background: var(--surface-card); padding: .1em .25em; }
.moo-essay-reader-body mark { color: var(--primary-text-color); background: var(--surface-card); text-decoration: underline; text-decoration-color: var(--accent-yellow); }
.moo-essay-reader-body hr { border: 0; height: 1px; margin: 32px 0; background: var(--surface-rule); }
.moo-essay-reader a:hover { opacity: 1; }
.moo-essay-reader-body summary { padding: 12px 0; min-height: 44px; cursor: pointer; }
.moo-essay-reader-body .moo-reader-audio { padding: 18px 0; border-top: 1px solid var(--surface-rule); border-bottom: 1px solid var(--surface-rule); }
.moo-essay-reader-body .moo-reader-audio figcaption { margin: 0 0 12px; color: var(--secondary-text-color); }
.moo-essay-reader-body .moo-reader-audio audio { display: block; width: 100%; max-width: 100%; min-height: 54px; color-scheme: inherit; }
.moo-essay-reader [hidden] { display: none !important; }
@keyframes moo-reader-enter { from { transform: translateX(100%); } to { transform: translateX(0); } }
@keyframes moo-reader-exit { from { transform: translateX(0); } to { transform: translateX(100%); } }
@keyframes moo-reader-backdrop-enter { from { opacity: 0; } to { opacity: 1; } }
@keyframes moo-reader-backdrop-exit { from { opacity: 1; } to { opacity: 0; } }
@media (max-width: 767px) {
    .moo-essay-reader { width: 100%; max-width: 100%; border: 0; }
    .moo-essay-reader-scroll { padding: 0 22px calc(40px + env(safe-area-inset-bottom)); }
    .moo-essay-reader-toolbar { min-height: 66px; margin-bottom: 24px; padding-top: max(8px, env(safe-area-inset-top)); }
    .moo-essay-reader .moo-essay-reader-title { font-size: 31px; line-height: 1.2; }
    .moo-essay-reader-body { font-size: 18px; line-height: 1.75; }
    .moo-essay-reader-cover img { max-height: 380px; }
    body.moo-essay-reader-open > .site { transform: translateX(-16px); }
}
@media (prefers-reduced-motion: reduce) {
    .moo-essay-reader[open], .moo-essay-reader[open].is-closing,
    .moo-essay-reader::backdrop, .moo-essay-reader.is-closing::backdrop { animation: none; }
    body.moo-essay-reader-active > .site { transform: none; transition: none; }
}

@media print {
 body.moo-essay-reader-active {overflow:visible!important;height:auto!important;padding-right:0!important;}
 body.moo-essay-reader-active > :not(.moo-essay-reader) {display:none!important;}
 .moo-essay-reader[open] {display:block!important;position:static!important;inset:auto!important;width:100%!important;height:auto!important;max-width:none!important;max-height:none!important;margin:0!important;padding:0!important;overflow:visible!important;border:0!important;transform:none!important;animation:none!important;}
 .moo-essay-reader-scroll {height:auto!important;max-height:none!important;overflow:visible!important;}
 .moo-essay-reader-toolbar {display:none!important;}
}
