/* A typographic pass only. Keep the original ink, art, and page structure. */
@media screen {
  :root { --fss-letter-edge: #c8a15a; }
  body { -webkit-text-stroke: .025em var(--fss-letter-edge); }
  button, input, textarea, select { -webkit-text-stroke: .018em var(--fss-letter-edge); }
  /* Do not outline native math notation, controls inside graphics, or icons. */
  math, math *, svg, svg *, [aria-hidden="true"], input::placeholder, textarea::placeholder {
    -webkit-text-stroke: 0;
  }

  /* The original size buttons still apply to research and prose readers. */
  .reading-page .reading-panel :is(p, li, blockquote):not(.sr-only):not(.meta):not(.paper-metadata):not(.speech-note) {
    line-height: 2;
  }
  .reading-page .reading-panel p + p { margin-block-start: 1.15em; }
  .reading-page .reading-panel :is(p, blockquote) + blockquote,
  .reading-page .reading-panel blockquote + p { margin-block-start: 1.35em; }

  /* Standalone story shelves and public reading copy, not game controls/HUD. */
  :is(.story-library, .question-dialog, .abuela-prayer-text) p:not(.sr-only),
  .story-feature-copy p:not(.sr-only),
  body:not(.book-page):not(:has(.cabinet, .app, canvas, .chess-app)) main :is(p, blockquote):not(.sr-only):not(.brand):not(.engine-brand):not(.score-status) {
    font-size: 1.25rem;
    line-height: 1.75;
  }
  :is(.story-library, .question-dialog, .abuela-prayer-text) p + p,
  body:not(.book-page) main:not(:has(.cabinet, canvas)) :is(p + p, blockquote + p, p + blockquote) {
    margin-block-start: 1.15em;
  }
  .story-library .story-intro,
  .story-feature-copy .story-intro { font-size: 1.5rem; }
  .home-page .wonder-home > p:not(.wonder-kicker),
  .home-page .world-signature {
    font-size: clamp(1.125rem, 2.5vw, 1.375rem);
    line-height: 1.6;
  }
  .score-status { line-height: 1.6; }

  /* Keep readable solid type in high-contrast mode. */
  @media (forced-colors: active) {
    *, *::before, *::after { -webkit-text-stroke: 0 !important; }
  }
}
