/* Article presentation; the site's shared post styles supply the reading column. */
body.dark-mode {
    --black: #f2f2f2;
    --border: rgba(255, 255, 255, .18);
    --prompt: #8a8a8a;
    --gray-500: #a0a0a0;
    --gray-700: #e5e5e5;
}
.article-header { display: flex; justify-content: space-between; align-items: flex-start; }
.top-nav { position: static; gap: 26px; padding-top: 4px; }
.back-link { display: inline-block; margin-bottom: 28px; color: var(--prompt); font: 13px 'Courier New', monospace; text-decoration: none; }
.back-link:hover { color: var(--black); }
h1 { font-family: 'Courier New', Courier, monospace; font-size: clamp(24px, 3vw, 32px); line-height: 1.25; letter-spacing: -.7px; margin: 18px 0 24px; text-wrap: wrap; }
.byline { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-bottom: 28px; color: var(--gray-500); font-size: 13px; }
.byline a { color: var(--black); text-decoration: none; }
.byline a:hover { text-decoration: underline; }
.content { border-top: 0; padding-top: 0; margin-top: 36px; }
.content h2, .content h3, .content h4 { font-family: 'Courier New', Courier, monospace; font-weight: 700; line-height: 1.5; color: var(--black); position: relative; scroll-margin-top: 32px; }
.content h2 { font-size: 18px; margin: 44px 0 16px; }
.content h3 { font-size: 16px; margin: 32px 0 16px; }
.content h4 { font-size: 16px; margin: 24px 0 12px; }
.content h2:before, .content h3:before { content: none; }
.content p, .content li { line-height: 1.75; }
a:focus-visible, button:focus-visible, select:focus-visible { outline: 2px solid var(--black); outline-offset: 4px; }
@media (max-width: 600px) {
    .article-header { margin-bottom: 36px; }
    .top-nav { gap: 16px; }
    h1 { letter-spacing: -.4px; }
    .content h2 { font-size: 17px; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    body, a, button { transition: none; }
}

/* Figures, the reward formula, the quoted source and the reference list. */
.content .rt-figure { margin: 32px 0; }
.content .rt-figure img { display: block; width: 100%; height: auto; border-radius: 8px; }
.content .rt-figure figcaption { margin-top: 10px; font-size: 14px; line-height: 1.5; color: var(--gray-500); }
.content pre.rt-formula { text-align: center; padding: 16px; border-radius: 8px; background: #fafafa; white-space: pre-wrap; }
.dark-mode .content pre.rt-formula { background: #1a1a1a; }
.content .rt-quote { margin: 24px 0; padding: 4px 0 4px 20px; border-left: 3px solid var(--border); }
.content .rt-quote p { margin: 0 0 8px; }
.content .rt-quote p:before { content: none; }
.content .rt-quote footer { font-size: 13px; color: var(--gray-500); }
.content a.cite { text-decoration: none; white-space: nowrap; }
.content .rt-references ol { font-size: 14px; line-height: 1.55; padding-left: 28px; }
.content .rt-references li { margin-bottom: 8px; line-height: 1.55; overflow-wrap: anywhere; scroll-margin-top: 32px; }
.content .rt-references li:target { background: rgba(255, 220, 100, .25); }
