/* Rakuel's own fonts, for the whole site (every page links this first in its <head>).
   Rakuel Serif: the text and the headings, 9 weights (100 Thin .. 900 Black) with italics.
   Rakuel Serif Mono: constant-width fields (ids like #000230, codes, hashes, code); printable
   ASCII plus a few letters (ä ö å é ü €), others fall back to the next monospace font.
   Licences (SIL OFL 1.1) beside the files. Built from Montserrat's metrics, so text sets as wide
   as Montserrat would. */

@font-face { font-family: 'Rakuel Serif'; font-style: normal; font-weight: 100; font-display: swap; src: url('rakuel-serif/RakuelSerif-Thin.woff2?v=3') format('woff2'); }
@font-face { font-family: 'Rakuel Serif'; font-style: italic; font-weight: 100; font-display: swap; src: url('rakuel-serif/RakuelSerif-ThinItalic.woff2?v=3') format('woff2'); }
@font-face { font-family: 'Rakuel Serif'; font-style: normal; font-weight: 200; font-display: swap; src: url('rakuel-serif/RakuelSerif-ExtraLight.woff2?v=3') format('woff2'); }
@font-face { font-family: 'Rakuel Serif'; font-style: italic; font-weight: 200; font-display: swap; src: url('rakuel-serif/RakuelSerif-ExtraLightItalic.woff2?v=3') format('woff2'); }
@font-face { font-family: 'Rakuel Serif'; font-style: normal; font-weight: 300; font-display: swap; src: url('rakuel-serif/RakuelSerif-Light.woff2?v=3') format('woff2'); }
@font-face { font-family: 'Rakuel Serif'; font-style: italic; font-weight: 300; font-display: swap; src: url('rakuel-serif/RakuelSerif-LightItalic.woff2?v=3') format('woff2'); }
@font-face { font-family: 'Rakuel Serif'; font-style: normal; font-weight: 400; font-display: swap; src: url('rakuel-serif/RakuelSerif-Regular.woff2?v=3') format('woff2'); }
@font-face { font-family: 'Rakuel Serif'; font-style: italic; font-weight: 400; font-display: swap; src: url('rakuel-serif/RakuelSerif-Italic.woff2?v=3') format('woff2'); }
@font-face { font-family: 'Rakuel Serif'; font-style: normal; font-weight: 500; font-display: swap; src: url('rakuel-serif/RakuelSerif-Medium.woff2?v=3') format('woff2'); }
@font-face { font-family: 'Rakuel Serif'; font-style: italic; font-weight: 500; font-display: swap; src: url('rakuel-serif/RakuelSerif-MediumItalic.woff2?v=3') format('woff2'); }
@font-face { font-family: 'Rakuel Serif'; font-style: normal; font-weight: 600; font-display: swap; src: url('rakuel-serif/RakuelSerif-SemiBold.woff2?v=3') format('woff2'); }
@font-face { font-family: 'Rakuel Serif'; font-style: italic; font-weight: 600; font-display: swap; src: url('rakuel-serif/RakuelSerif-SemiBoldItalic.woff2?v=3') format('woff2'); }
@font-face { font-family: 'Rakuel Serif'; font-style: normal; font-weight: 700; font-display: swap; src: url('rakuel-serif/RakuelSerif-Bold.woff2?v=3') format('woff2'); }
@font-face { font-family: 'Rakuel Serif'; font-style: italic; font-weight: 700; font-display: swap; src: url('rakuel-serif/RakuelSerif-BoldItalic.woff2?v=3') format('woff2'); }
@font-face { font-family: 'Rakuel Serif'; font-style: normal; font-weight: 800; font-display: swap; src: url('rakuel-serif/RakuelSerif-ExtraBold.woff2?v=3') format('woff2'); }
@font-face { font-family: 'Rakuel Serif'; font-style: italic; font-weight: 800; font-display: swap; src: url('rakuel-serif/RakuelSerif-ExtraBoldItalic.woff2?v=3') format('woff2'); }
@font-face { font-family: 'Rakuel Serif'; font-style: normal; font-weight: 900; font-display: swap; src: url('rakuel-serif/RakuelSerif-Black.woff2?v=3') format('woff2'); }
@font-face { font-family: 'Rakuel Serif'; font-style: italic; font-weight: 900; font-display: swap; src: url('rakuel-serif/RakuelSerif-BlackItalic.woff2?v=3') format('woff2'); }

/* Mono has no thin, light or black cuts: those ask for the nearest one. */
@font-face { font-family: 'Rakuel Serif Mono'; font-style: normal; font-weight: 100 400; font-display: swap; src: url('rakuel-serif-mono/RakuelSerifMono-Regular.woff2') format('woff2'); }
@font-face { font-family: 'Rakuel Serif Mono'; font-style: normal; font-weight: 500; font-display: swap; src: url('rakuel-serif-mono/RakuelSerifMono-Medium.woff2') format('woff2'); }
@font-face { font-family: 'Rakuel Serif Mono'; font-style: normal; font-weight: 600; font-display: swap; src: url('rakuel-serif-mono/RakuelSerifMono-SemiBold.woff2') format('woff2'); }
@font-face { font-family: 'Rakuel Serif Mono'; font-style: normal; font-weight: 700; font-display: swap; src: url('rakuel-serif-mono/RakuelSerifMono-Bold.woff2') format('woff2'); }
@font-face { font-family: 'Rakuel Serif Mono'; font-style: normal; font-weight: 800 900; font-display: swap; src: url('rakuel-serif-mono/RakuelSerifMono-ExtraBold.woff2') format('woff2'); }

:root {
  --font-text: 'Rakuel Serif', Georgia, 'Times New Roman', serif;
  /* Headings: the same family, set heavy (800 where Anton was, 700 where Playfair was). */
  --font-heading: 'Rakuel Serif', Georgia, 'Times New Roman', serif;
  --font-mono: 'Rakuel Serif Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, 'Liberation Mono', monospace;
}

/* The site's text font wherever a page doesn't name one; form controls take their page's font
   instead of the system's. Zero specificity: any page rule wins. */
:where(html) { font-family: var(--font-text); }
:where(button, input, select, textarea, optgroup) { font-family: inherit; }
/* Code and keys in the constant-width face (the browser's own default is its monospace). */
:where(pre, code, kbd, samp, tt) { font-family: var(--font-mono); }
