@font-face { font-family: "Alegreya"; font-weight: 400; font-style: normal; font-display: swap; src: url("fonts/alegreya-latin-400-normal.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: "Alegreya"; font-weight: 400; font-style: normal; font-display: swap; src: url("fonts/alegreya-latin-ext-400-normal.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Alegreya"; font-weight: 400; font-style: italic; font-display: swap; src: url("fonts/alegreya-latin-400-italic.woff2") format("woff2"); }
@font-face { font-family: "Alegreya"; font-weight: 500; font-style: normal; font-display: swap; src: url("fonts/alegreya-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Space Mono"; font-weight: 400; font-style: normal; font-display: swap; src: url("fonts/space-mono-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Space Mono"; font-weight: 700; font-style: normal; font-display: swap; src: url("fonts/space-mono-latin-700-normal.woff2") format("woff2"); }

@font-face { font-family: "Geist"; font-weight: 400; font-style: normal; font-display: swap; src: url("fonts/geist-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Geist"; font-weight: 500; font-style: normal; font-display: swap; src: url("fonts/geist-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Geist"; font-weight: 600; font-style: normal; font-display: swap; src: url("fonts/geist-latin-600-normal.woff2") format("woff2"); }

[data-md-color-scheme="pereq"] {
  --md-default-bg-color: #F2EDE5;
  --md-default-fg-color: #22201F;
  --md-default-fg-color--light: #625849;
  --md-default-fg-color--lighter: #8A7F6C;
  --md-default-fg-color--lightest: #D9CFBF;
  --md-primary-fg-color: #F2EDE5;
  --md-primary-fg-color--light: #F2EDE5;
  --md-primary-fg-color--dark: #E9E2D6;
  --md-primary-bg-color: #22201F;
  --md-primary-bg-color--light: #625849;
  --md-accent-fg-color: #22201F;
  --md-accent-fg-color--transparent: rgba(34, 32, 31, 0.08);
  --md-typeset-color: #22201F;
  --md-typeset-a-color: #22201F;
  --md-code-bg-color: #E9E2D6;
  --md-code-fg-color: #22201F;
  --md-code-hl-comment-color: #8A7F6C;
  --md-code-hl-keyword-color: #22201F;
  --md-code-hl-string-color: #5B6B4F;
  --md-code-hl-number-color: #7A5A3A;
  --md-code-hl-constant-color: #7A5A3A;
  --md-code-hl-function-color: #22201F;
  --md-code-hl-name-color: #22201F;
  --md-code-hl-operator-color: #625849;
  --md-code-hl-punctuation-color: #625849;
  --md-code-hl-special-color: #4F6273;
  --md-code-hl-generic-color: #4F6273;
  --md-code-hl-variable-color: #22201F;
  --md-footer-bg-color: #F2EDE5;
  --md-footer-bg-color--dark: #E9E2D6;
  --md-footer-fg-color: #22201F;
  --md-footer-fg-color--light: #625849;
  --md-footer-fg-color--lighter: #8A7F6C;
  --md-admonition-bg-color: #E9E2D6;
  --md-admonition-fg-color: #22201F;
  --md-text-font: "Geist";
  --md-code-font: "Space Mono";
}

/* Header and tabs: paper, ink text, a hairline instead of a shadow. */
[data-md-color-scheme="pereq"] .md-header,
[data-md-color-scheme="pereq"] .md-tabs { box-shadow: none; border-bottom: 1px solid #D9CFBF; }
.md-header, .md-tabs, .md-nav, .md-search__input, .md-footer, .md-source, .md-path, .md-post__meta, .md-meta {
  font-family: "Geist", system-ui, sans-serif;
}
.md-tabs__link { font-size: 0.65rem; opacity: 1; }
.md-tabs__item--active .md-tabs__link { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 1.5px; }
.md-nav { font-size: 0.65rem; }

/* Type: Geist for text, Alegreya for headings, links underlined in ink. */
.md-typeset { font-size: 0.8rem; line-height: 1.6; }
.md-typeset h1, .md-typeset h2, .md-typeset h3, .md-typeset h4 { font-family: "Alegreya", Georgia, serif; font-weight: 500; color: #22201F; letter-spacing: -0.01em; }
.md-typeset h1 { font-size: 2rem; }
.md-typeset a { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.md-typeset a:hover { text-decoration-thickness: 2px; }
.md-typeset code { border-radius: 0; font-size: 0.8em; }
.md-typeset pre > code { border: 1px solid #D9CFBF; }
.md-typeset .cm-editor .cm-gutters { background: #E9E2D6; color: #8A7F6C; border-right: 1px solid #D9CFBF; }
.md-typeset .cm-editor .cm-activeLine, .md-typeset .cm-editor .cm-activeLineGutter { background: rgba(34, 32, 31, 0.05); }

/* Admonitions: one neutral style, an ink rule on the left, no coloured icons. */
.md-typeset .admonition, .md-typeset details {
  border: none; border-left: 1.5px solid #22201F; border-radius: 0; box-shadow: none;
  background: #E9E2D6; font-size: 0.8rem;
}
.md-typeset .admonition-title, .md-typeset summary {
  background: none !important; font-family: "Geist", system-ui, sans-serif; text-transform: lowercase; font-size: 0.7rem;
}
.md-typeset .admonition-title::before, .md-typeset summary::before { background-color: #22201F !important; }

/* Buttons and search. */
.md-typeset .md-button { border-radius: 0; border: 1.5px solid #22201F; color: #22201F; font-family: "Geist", system-ui, sans-serif; }
.md-typeset .md-button--primary { background: #22201F; color: #F2EDE5; }
.md-search__form { background: #E9E2D6; border-radius: 0; }

/* Author avatars in greyscale, multiplied onto the paper. */
.md-author img, .md-post__authors img { filter: grayscale(1); mix-blend-mode: multiply; }

/* pereq.dev header and footer, as on the landing page. */
.pq-header { background: var(--md-default-bg-color); color: #22201F; box-shadow: none; border-bottom: 1px solid #D9CFBF; }
.pq-header__inner { display: flex; align-items: center; gap: 24px; height: auto; padding: 18px 40px; }
.pq-drawer { display: none; margin: 0; }
.pq-logo { display: flex; align-items: center; gap: 10px; color: #22201F; text-decoration: none; }
.pq-logo img { width: 92px; height: auto; }
.pq-logo span { font-family: "Geist", system-ui, sans-serif; font-size: 16px; line-height: 1; padding-top: 3px; margin-left: 8px; }
.pq-nav { display: flex; flex-wrap: wrap; gap: 8px 26px; margin-left: auto; font-family: "Geist", system-ui, sans-serif; font-size: 13px; }
.pq-nav a, .pq-footer a { color: #22201F; text-decoration: none; padding-bottom: 9px; background: no-repeat left bottom / 100% 6px; }
.pq-nav a:hover, .pq-nav a[aria-current="page"], .pq-footer a:hover { background-image: url("../../images/underline.png"); }
.pq-header .md-search { margin-left: 0; }

.pq-footer {
  display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 32px;
  padding: 40px; border-top: 1px solid #D9CFBF; background: var(--md-default-bg-color);
  font-family: "Geist", system-ui, sans-serif; font-size: 12.5px; color: #22201F;
}
.pq-footer h4 { margin: 0 0 10px; font-weight: 400; font-size: 12px; color: #625849; }
.pq-footer a { display: table; margin-bottom: 2px; padding-bottom: 6px; background-size: 100% 5px; }
.pq-footer__brand img { width: 64px; }
.pq-footer__brand p { margin: 6px 0 0; color: #625849; }

@media screen and (max-width: 76.234375em) {
  .pq-drawer { display: inline-block; }
}
@media (max-width: 720px) {
  .pq-header__inner { flex-wrap: wrap; padding: 14px 16px; gap: 10px 16px; }
  .pq-nav { order: 3; width: 100%; margin-left: 0; gap: 6px 20px; }
  .pq-footer { grid-template-columns: 1fr 1fr; padding: 32px 24px; }
  .pq-footer__brand { grid-column: 1 / -1; }
}
html { background: var(--md-default-bg-color); }

/* Desktop: the docs search sits at the right end of the tabs row inside the header. */
@media screen and (min-width: 76.25em) {
  .pq-header { position: relative; }
  .pq-header .md-search { position: absolute; right: 40px; bottom: 1px; }
  .pq-header .md-header__button[for="__search"] { display: none; }
  .pq-header .md-tabs { border-top: 1px solid #D9CFBF; }
}
