/* ==UserStyle==
@name         OpenDyslexic Everywhere
@namespace    esotericallynatured.com/anchor-type
@version      0.1.0
@description  Reads every website in OpenDyslexic, with adjustable letter, word and line spacing. From the Anchor Type bench at esotericallynatured.com.
@author       Esoterically Natured
@homepageURL  https://esotericallynatured.com/anchor-type.html
@license      CC0-1.0 (this style). OpenDyslexic by Abbie Gonzalez is SIL OFL 1.1.
@preprocessor default
@var text rcLetter "Letter spacing (e.g. 0, 0.035em, 0.07em)" 0.035em
@var text rcWord   "Word spacing (e.g. 0, 0.16em, 0.32em)" 0.16em
@var text rcLine   "Line height for paragraphs (e.g. normal, 1.6, 1.8)" 1.6
==/UserStyle== */

/* Install with the Stylus extension (Chrome, Edge, Firefox, Opera): open this file's URL and choose Install.
   Fonts: installed copies are used first (local()). If OpenDyslexic is not installed, the woff2 files are fetched
   from the Fontsource package on jsDelivr. Installing the font on your computer is faster and more private, and
   it also works on sites whose security policy blocks web fonts. */

@-moz-document regexp("https?://.*") {
  @font-face{font-family:"OpenDyslexic";font-style:normal;font-weight:400;font-display:swap;
    src:local("OpenDyslexic"),local("OpenDyslexic-Regular"),url("https://cdn.jsdelivr.net/npm/@fontsource/opendyslexic@5.3.0/files/opendyslexic-latin-400-normal.woff2") format("woff2")}
  @font-face{font-family:"OpenDyslexic";font-style:normal;font-weight:700;font-display:swap;
    src:local("OpenDyslexic Bold"),local("OpenDyslexic-Bold"),url("https://cdn.jsdelivr.net/npm/@fontsource/opendyslexic@5.3.0/files/opendyslexic-latin-700-normal.woff2") format("woff2")}
  @font-face{font-family:"OpenDyslexic";font-style:italic;font-weight:400;font-display:swap;
    src:local("OpenDyslexic Italic"),local("OpenDyslexic-Italic"),url("https://cdn.jsdelivr.net/npm/@fontsource/opendyslexic@5.3.0/files/opendyslexic-latin-400-italic.woff2") format("woff2")}
  @font-face{font-family:"OpenDyslexic";font-style:italic;font-weight:700;font-display:swap;
    src:local("OpenDyslexic Bold Italic"),local("OpenDyslexic-BoldItalic"),url("https://cdn.jsdelivr.net/npm/@fontsource/opendyslexic@5.3.0/files/opendyslexic-latin-700-italic.woff2") format("woff2")}

  /* Leave code, terminals, icon fonts and math alone */
  body :where(*:not(pre,pre *,code,kbd,samp,svg,svg *,math,math *,[class*="icon"],[class*="Icon"],[class^="fa"],[class*=" fa-"],.material-icons,.material-symbols-outlined,[aria-hidden="true"])){
    font-family:"OpenDyslexic",Verdana,Arial,sans-serif!important;
    letter-spacing:var(--rcLetter)!important;
    word-spacing:var(--rcWord)!important;
  }
  body :where(p,li,dd,blockquote,td,figcaption){line-height:var(--rcLine)!important}
  body :where(em,i,cite){font-style:normal!important;font-weight:700!important}
}
