/* Reader styling follows Theme and CoverHeader in the native app. */
.story-reader {
  --bg: #fff; --surface: #f6f5f2; --ink: #111; --body: #1e1e1e;
  --muted: #5f5f5f; --rule: #e4e2dc; --accent: #2445e6; --accent-soft: #e9edfd;
}
@media (prefers-color-scheme: dark) {
  .story-reader { --bg: #000; --surface: #1c1c1e; --ink: #f6f5f2; --body: #e4e2dd;
    --muted: #a8a7a3; --rule: #2a2a2d; --accent: #9db0ff; --accent-soft: #1f2648; }
}
.story-reader .wrap { max-width: 960px; padding: 0; }
.story-reader article { padding: 0; }
.reader-cover { position: relative; isolation: isolate; overflow: hidden; background: var(--surface);
  border-radius: 0 0 28px 28px; padding: 120px 14px 14px; }
.reader-cover.has-cover { padding-top: clamp(200px, 34vw, 420px); }
.reader-cover-image { position: absolute; inset: 0; z-index: -1; }
.reader-cover-image img { width: 100%; height: 100%; object-fit: cover; display: block; }
.reader-panel { max-width: 680px; margin-inline: auto; padding: 16px; border-radius: 22px; }
.reader-panel h1 { font-size: clamp(28px, 4vw, 38px); line-height: 1.16; margin: 0 0 12px; overflow-wrap: anywhere; }
.reader-panel .byline { margin: 0; text-decoration: none; width: fit-content; min-height: 44px; }
.reader-panel .byline > span:last-child { min-width: 0; overflow-wrap: anywhere; }
.reader-panel .avatar { width: 32px; height: 32px; flex: 0 0 32px; }
.reader-body { max-width: 680px; margin-inline: auto; padding: 24px; }
.reader-body .eyebrow { margin: 0 0 24px; font-size: 14px; letter-spacing: .07em; }
.reader-body .story { margin: 0; font-size: 17px; line-height: 1.85; overflow-wrap: anywhere; }
.story-reader .cta { max-width: 632px; margin: 8px auto 40px; border-radius: 22px; border: 1px solid var(--rule); }
.story-reader footer.site { margin-inline: 24px; }
.story-reader .topbar .wordmark { font-size: 24px; }
.story-reader .page { max-width: 1008px; }
.story-reader .page:has(> .topbar:only-child) { margin-bottom: 16px; }
@media (max-width: 600px) {
  .story-reader .page { padding-inline: 14px; }
  .story-reader .topbar nav { gap: 14px; font-size: 14px; }
  .story-reader .topbar nav a[href="/support"] { display: none; }
  .story-reader .cta { margin-inline: 24px; padding: 24px 16px; }
}
@media (prefers-reduced-transparency: reduce) {
  .reader-panel { background: var(--surface); backdrop-filter: none; -webkit-backdrop-filter: none; }
}
