diff --git a/website/static/fonts/cormorant-garamond-600-latin.woff2 b/website/static/fonts/cormorant-garamond-600-latin.woff2 new file mode 100644 index 00000000..88ec2617 Binary files /dev/null and b/website/static/fonts/cormorant-garamond-600-latin.woff2 differ diff --git a/website/static/fonts/manrope-latin.woff2 b/website/static/fonts/manrope-latin.woff2 new file mode 100644 index 00000000..9d7abb17 Binary files /dev/null and b/website/static/fonts/manrope-latin.woff2 differ diff --git a/website/static/style.css b/website/static/style.css index d14e65f4..12c86ba4 100644 --- a/website/static/style.css +++ b/website/static/style.css @@ -4,6 +4,23 @@ padding: 0; } +/* optional, not swap: a font that misses first paint stays out for that page view instead of visibly switching mid-read. */ +@font-face { + font-family: "Cormorant Garamond"; + font-weight: 600; + font-display: optional; + src: url("/static/fonts/cormorant-garamond-600-latin.woff2") format("woff2"); + unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; +} + +@font-face { + font-family: "Manrope"; + font-weight: 400 800; + font-display: optional; + src: url("/static/fonts/manrope-latin.woff2") format("woff2"); + unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; +} + :root { color-scheme: light; --font-display: "Cormorant Garamond", Georgia, serif; diff --git a/website/templates/base.html b/website/templates/base.html index 3f21ca5b..b1dcc047 100644 --- a/website/templates/base.html +++ b/website/templates/base.html @@ -27,19 +27,20 @@ - - + -