/* User Provided Stylesheet */

/* Inter, the main site's typeface: Inter 4.1 variable (weight and optical size axes) from
   the official release, cut down to the latin subset with pyftsubset. SIL Open Font
   License, fonts/OFL.txt. build-for-site.sh copies fonts/ next to the book, hence the
   absolute /book path; a local preview without it falls back to the system font. */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/book/fonts/inter-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;
}

body {
  font-family: "Inter", ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji",
    "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
}

/* Headings at 600, as on the main site. The theme sets h1 to 800 and h2 to 700 inside
   .article (the page) and .prose. */
.article :where(h1, h2):not(:where([class~="not-prose"], [class~="not-prose"] *)),
.prose :where(h1, h2):not(:where([class~="not-prose"], [class~="not-prose"] *)) {
  font-weight: 600;
}

/* The sidebar marks the book's title in bold; the main site keeps bold for the logo only */
.myst-toc-item.font-bold {
  font-weight: 600;
}

/* Comment Scraper teal in place of the theme's default blue (same values as the main site) */
:root {
  --myst-color-link: #136f79;
  --myst-color-link-hover: #0e555d;
  --myst-color-link-underline: #136f79;
  --myst-color-active: #136f79;
  --myst-color-focus-ring: #136f79;
  --myst-color-primary: #136f79;
}

.dark {
  --myst-color-link: #47c3d1;
  --myst-color-link-hover: #74d3de;
  --myst-color-link-underline: #47c3d1;
  --myst-color-active: #47c3d1;
  --myst-color-focus-ring: #47c3d1;
  --myst-color-primary: #47c3d1;
}
