/* ==UserStyle==
@name           Segoe→Verdana + Consolas→Cascadia
@namespace      github.com/openstyles/stylus
@version        1.2.3
@description    Makes all Segoe UI and Roboto render as Verdana instead. And Consolas render as Cascadia Mono. And numbers always in Cascadia.
@author         myf
@license        CC0
@downloadURL none
==/UserStyle== */

@-moz-document url-prefix("https://"), url-prefix("http://") {
/*
https://userstyles.world/style/23838
https://greasyfork.org/en/scripts/549506
Changelog
1.2.3 (2025-09-24) Source code cosmetics.
1.2.2 (2025-09-23) Cleanup and fixes; plus Verdanising Roboto, Cascdadising more monospaces.
1.2.1 (2025-09-14) Published to Greasy Fork.
1.2.0 (2025-09-13) Forced digits to use Cascadia. Don't judge me.
1.0.1 (2025-08-21) Removed the Consolas -> Consolas fallback for when Cascadia is not on the system, since it was picked even when Cascadia was available. Gotta investigate later.
1.0.0 (2025-08-20) Init.

§ Known and worn-out sans-serifs to trusty (and even more worn-out) chunky Verdana.
And digits in Cascadia
*/
/*
¶ "Segoe UI" -> Verdana. 
*/
@font-face { font-family: "Segoe UI"; font-weight: 1 400    ; font-style: normal; src: local("Verdana"); }
@font-face { font-family: "Segoe UI"; font-weight: 1 400    ; font-style: italic; src: local("Verdana Italic"); }
@font-face { font-family: "Segoe UI"; font-weight:  401 1000; font-style: normal; src: local("Verdana Bold"); }
@font-face { font-family: "Segoe UI"; font-weight:  401 1000; font-style: italic; src: local("Verdana Bold Italic"); }
@font-face { font-family: "Segoe UI"; unicode-range: U+30-39; font-style: normal; src: local("Cascadia Mono Regular"); }
@font-face { font-family: "Segoe UI"; unicode-range: U+30-39; font-style: italic; src: local("Cascadia Mono Italic"); }


/*
¶ "Roboto" -> Verdana. 
*/
@font-face { font-family: "Roboto"; font-weight: 1 400    ; font-style: normal; src: local("Verdana"); }
@font-face { font-family: "Roboto"; font-weight: 1 400    ; font-style: italic; src: local("Verdana Italic"); }
@font-face { font-family: "Roboto"; font-weight:  401 1000; font-style: normal; src: local("Verdana Bold"); }
@font-face { font-family: "Roboto"; font-weight:  401 1000; font-style: italic; src: local("Verdana Bold Italic"); }
@font-face { font-family: "Roboto"; unicode-range: U+30-39; font-style: normal; src: local("Cascadia Mono Regular"); }
@font-face { font-family: "Roboto"; unicode-range: U+30-39; font-style: italic; src: local("Cascadia Mono Italic"); }


/*
¶ "Inter" -> Verdana. 
(Just for occasional tests on USO; surprisingly, I usually don't hate Inter that much.)
*/
@font-face { font-family: "Inter"; font-weight: 1 400    ; font-style: normal; src: local("Verdana"); }
@font-face { font-family: "Inter"; font-weight: 1 400    ; font-style: italic; src: local("Verdana Italic"); }
@font-face { font-family: "Inter"; font-weight:  401 1000; font-style: normal; src: local("Verdana Bold"); }
@font-face { font-family: "Inter"; font-weight:  401 1000; font-style: italic; src: local("Verdana Bold Italic"); }
@font-face { font-family: "Inter"; unicode-range: U+30-39; font-style: normal; src: local("Cascadia Mono Regular"); }
@font-face { font-family: "Inter"; unicode-range: U+30-39; font-style: italic; src: local("Cascadia Mono Italic"); }
/*

§ Known and "inferior" monospaces to Cascadia

Cascadia is variable can possibly be NOT installed, but seems hard to make a reliable fallback here.
Currently it is brought to Windows along with https://github.com/microsoft/terminal
Interestingly, putting `src: …, local("Consolas")` fallback makes Firefox pick the Consolas OVER Cascadia.
Should investigate.
Cascadia is variable and does not need to jugle weights.
*/
/*
¶ Consolas -> Cascadia Mono
*/
@font-face { font-family: "Consolas"; font-style: normal; src: local("Cascadia Mono Regular"); }
@font-face { font-family: "Consolas"; font-style: italic; src: local("Cascadia Mono Italic"); }
/*
¶ "Courier" (sic) -> Cascadia Mono
Git uses this "Courier" that is automagically remapped to "Courier new" by browser/system, let's tap to that for now.
https://git-scm.com/docs/gitfaq
*/
@font-face { font-family: "Courier"; font-style: normal; src: local("Cascadia Mono Regular"); }
@font-face { font-family: "Courier"; font-style: italic; src: local("Cascadia Mono Italic"); }
/*
¶ Courier New -> Cascadia Mono
(I love Courier New, but sadly it usually too thin on modern displays.)
* OFF for now /
@font-face { font-family: "Courier New"; font-style: normal; src: local("Cascadia Mono Regular"); }
@font-face { font-family: "Courier New"; font-style: italic; src: local("Cascadia Mono Italic"); }
/*
¶ Roboto Mono -> Cascadia Mono
*/
@font-face { font-family: "Roboto Mono"; font-style: normal; src: local("Cascadia Mono Regular"); }
@font-face { font-family: "Roboto Mono"; font-style: italic; src: local("Cascadia Mono Italic"); }


/* EO: moz-document */ }