/* The colours and fonts of the project page, on mdbook's Coal (dark) and
   Light themes. */
@import url("https://fonts.googleapis.com/css2?family=Noto+Sans:wght@400;600&family=Space+Grotesk:wght@600;700&display=swap");

.coal {
    --bg: #141416;
    --fg: #c6c6cc;
    --sidebar-bg: #18181b;
    --sidebar-fg: #b4b4bc;
    --sidebar-non-existant: #55555c;
    --sidebar-active: #f0915a;
    --sidebar-spacer: #2a2a30;
    --sidebar-header-border-color: #e07a3f;
    --scrollbar: #3a3a42;
    --icons: #6a6a72;
    --icons-hover: #ececef;
    --links: #f0915a;
    --inline-code-color: #ececef;
    --theme-popup-bg: #1f1f23;
    --theme-popup-border: #3a3a42;
    --theme-hover: #26262b;
    --quote-bg: #1f1f23;
    --quote-border: #2c2c32;
    --table-border-color: #2a2a30;
    --table-header-bg: #232328;
    --table-alternate-bg: #18181b;
    --searchbar-border-color: #3a3a42;
    --searchbar-bg: #1f1f23;
    --searchbar-fg: #ececef;
    --searchbar-shadow-color: transparent;
    --searchresults-header-fg: #8f8f98;
    --searchresults-border-color: #3a3a42;
    --searchresults-li-bg: #1f1f23;
    --search-mark-bg: #8a4a24;
    --footnote-highlight: #e07a3f;
    --blockquote-note-color: #f0915a;
}

.light {
    --links: #b8551c;
    --sidebar-active: #b8551c;
    --sidebar-header-border-color: #e07a3f;
    --search-mark-bg: #ffd2b5;
    --blockquote-note-color: #b8551c;
}

html {
    font-family: "Noto Sans", system-ui, sans-serif;
}

.content h1,
.content h2,
.content h3,
.content h4,
.menu-title {
    font-family: "Space Grotesk", "Noto Sans", sans-serif;
    letter-spacing: -0.01em;
}

.coal .content h1,
.coal .content h2,
.coal .content h3,
.coal .content h4,
.coal .menu-title {
    color: #ececef;
}

.content :not(pre) > code {
    border-radius: 5px;
}

.coal .content :not(pre) > code {
    background: #232328;
}

.coal pre,
.coal pre > code.hljs {
    background: #1b1b1f;
}

.content img {
    max-width: min(100%, 640px);
    border-radius: 10px;
    border: 1px solid var(--table-border-color);
}

.content figure {
    margin: 1.5em 0;
}

.content figcaption {
    font-size: 0.9em;
    opacity: 0.75;
    margin-top: 0.4em;
}

.content table {
    display: block;
    overflow-x: auto;
}
