/* The beetlebug site kit: tokens, fonts, and the header with the project switcher.
   Each site keeps a copy of this file. The source is beetlebug.org/kit/. */
@font-face { font-family: "Inter"; font-weight: 400 500; font-style: normal; font-display: swap; src: local("Inter"), local("Inter Regular"), url("fonts/Inter-Regular.ttf") format("truetype"); }
@font-face { font-family: "Inter"; font-weight: 600 800; font-style: normal; font-display: swap; src: local("Inter Bold"), local("Inter-Bold"), url("fonts/Inter-Bold.ttf") format("truetype"); }
@font-face { font-family: "IBM Plex Mono"; font-weight: 400; font-style: normal; font-display: swap; src: local("IBM Plex Mono"), local("IBMPlexMono"), url("fonts/IBMPlexMono-Regular-Latin1.woff2") format("woff2"); unicode-range: U+0000, U+000D, U+0020-007E, U+00A0-00FF, U+0131, U+0152-0153, U+02C6, U+02DA, U+02DC, U+2013-2014, U+2018-201A, U+201C-201E, U+2020-2022, U+2026, U+2030, U+2039-203A, U+2044, U+2074, U+20AC, U+2122, U+2212, U+FB01-FB02; }
@font-face { font-family: "IBM Plex Mono"; font-weight: 600 700; font-style: normal; font-display: swap; src: local("IBM Plex Mono Bold"), local("IBMPlexMono-Bold"), url("fonts/IBMPlexMono-Bold-Latin1.woff2") format("woff2"); unicode-range: U+0000, U+000D, U+0020-007E, U+00A0-00FF, U+0131, U+0152-0153, U+02C6, U+02DA, U+02DC, U+2013-2014, U+2018-201A, U+201C-201E, U+2020-2022, U+2026, U+2030, U+2039-203A, U+2044, U+2074, U+20AC, U+2122, U+2212, U+FB01-FB02; }
:root {
  color-scheme: light dark;
  --accent: #1f3a6e;
  --accent-strong: #152a52;
  --accent-soft: #e2e6ee;
  --accent-ink: #f8f4ea;
  --sib: #5c574d;
  --bg: #f8f4ea;
  --bg-soft: #efe9da;
  --bg-deep: #e5ddc9;
  --surface: #fbf8f1;
  --code-bg: #efe9da;
  --text: #2a2721;
  --text-2: #45413a;
  --text-3: #5c574d;
  --line: #e2dacb;
  --line-strong: #cbc1ac;
  --ink-bar: #2a2721;
  --ink-bar-text: #f8f4ea;
  --bar-muted: #a39a86;
  --warn: #8a4600;
  --warn-soft: #f6e6c8;
  --tok-kw: #1f3a6e;
  --tok-str: #6a4b1c;
  --tok-var: #45413a;
  --tok-com: #5c574d;
  --tok-num: #6a4b1c;
  --shadow: none;
  --head: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SF Mono", "Cascadia Code", "DejaVu Sans Mono", Menlo, Consolas, monospace;
  --wrap: 1180px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --accent: #a9c1ee;
    --accent-strong: #c9d8f5;
    --accent-soft: #232d40;
    --accent-ink: #14161b;
    --sib: #9d9687;
    --bg: #1a1915;
    --bg-soft: #23211b;
    --bg-deep: #2d2a23;
    --surface: #1f1d18;
    --code-bg: #23211b;
    --text: #e4ddcd;
    --text-2: #c6bfb0;
    --text-3: #9d9687;
    --line: #332f28;
    --line-strong: #555046;
    --ink-bar: #2d2a23;
    --ink-bar-text: #ece6d8;
    --bar-muted: #6b6558;
    --warn: #f0b867;
    --warn-soft: #2e2617;
    --tok-kw: #a9c1ee;
    --tok-str: #dcc08e;
    --tok-var: #c6bfb0;
    --tok-com: #9d9687;
    --tok-num: #dcc08e;
    --shadow: none;
  }
}
:root[data-theme="dark"] {
    --accent: #a9c1ee;
    --accent-strong: #c9d8f5;
    --accent-soft: #232d40;
    --accent-ink: #14161b;
    --sib: #9d9687;
    --bg: #1a1915;
    --bg-soft: #23211b;
    --bg-deep: #2d2a23;
    --surface: #1f1d18;
    --code-bg: #23211b;
    --text: #e4ddcd;
    --text-2: #c6bfb0;
    --text-3: #9d9687;
    --line: #332f28;
    --line-strong: #555046;
    --ink-bar: #2d2a23;
    --ink-bar-text: #ece6d8;
    --bar-muted: #6b6558;
    --warn: #f0b867;
    --warn-soft: #2e2617;
    --tok-kw: #a9c1ee;
    --tok-str: #dcc08e;
    --tok-var: #c6bfb0;
    --tok-com: #9d9687;
    --tok-num: #dcc08e;
    --shadow: none;
}

:root[data-theme="light"] { color-scheme: light; }
:root[data-theme="dark"] { color-scheme: dark; }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 76px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.62 var(--sans);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-underline-offset: .18em; }
a:hover { color: var(--accent-strong); }
code, pre, kbd { font-family: var(--mono); }
h1, h2, h3, h4 { font-family: var(--head); }

/* The header. */
.bb-top {
  position: sticky; top: 0; z-index: 50;
  background: var(--bg);
  border-bottom: 1px solid var(--line-strong);
}
.bb-wrap { display: flex; align-items: center; gap: 16px; height: 60px; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.bb-sep { color: var(--text-3); font-size: 13px; margin-left: -4px; }
.bb-logo { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font: 700 22px/1 var(--head); }
.bb-logo:hover { color: var(--text); }
.bb-glyph { width: 34px; height: 26px; border-radius: 0; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; font: 600 13px/1 var(--mono); }
.bb-links { margin-left: auto; display: flex; gap: 4px; align-items: center; }
.bb-links a { color: var(--text-2); text-decoration: none; padding: 8px 9px; border-radius: 0; font: 600 17px/1 var(--head); font-variant-caps: all-small-caps; letter-spacing: .06em; }
.bb-links a:hover { color: var(--text); background: var(--bg-soft); }
.bb-links a[aria-current] { color: var(--text); background: none; box-shadow: inset 0 -2px var(--text); }
.bb-links .bb-sib { display: inline-flex; gap: 6px; align-items: center; }
.bb-links .bb-sib::before { content: ""; width: 7px; height: 7px; background: currentColor; }
.bb-theme { flex: none; display: inline-flex; align-items: center; gap: 6px; min-width: 5.2em; margin-left: 8px; padding: 6px 10px; border: 1px solid var(--line-strong); border-radius: 0; background: var(--surface); color: var(--text-2); font: 600 15px/1 var(--head); font-variant-caps: all-small-caps; letter-spacing: .06em; cursor: pointer; }
.bb-theme:hover { color: var(--text); background: var(--bg-soft); }
.bb-theme:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.bb-theme .tt-icon { font-variant-caps: normal; font-size: 13px; }

/* The project switcher. */
.bb-switch { position: relative; }
.bb-switch summary { display: inline-flex; align-items: center; gap: 6px; list-style: none; cursor: pointer; color: var(--text-2); font-size: 13px; font-weight: 600; }
.bb-switch summary::-webkit-details-marker { display: none; }
.bb-switch summary:hover, .bb-switch[open] summary { color: var(--text); }
.bb-switch summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.bb-menu { position: absolute; top: calc(100% + 6px); left: 0; z-index: 30; width: 300px; max-width: calc(100vw - 24px); padding: 6px 0; background: var(--surface); border: 1px solid var(--line-strong); border-radius: 0; box-shadow: none; }
.bb-menu a { display: grid; grid-template-columns: 34px 1fr auto; column-gap: 12px; align-items: center; padding: 8px 14px; color: var(--text); text-decoration: none; }
.bb-menu a:hover, .bb-menu a:focus-visible { background: var(--bg-soft); color: var(--text); outline: none; }
.bb-menu .bb-glyph { grid-row: 1 / span 2; width: 34px; height: 26px; display: grid; place-items: center; background: var(--bg-deep); color: var(--text-2); font: 600 12px/1 var(--mono); border-radius: 0; }
.bb-menu .bb-glyph svg { width: 16px; height: 16px; }
.bb-menu a[aria-current] .bb-glyph { background: var(--accent); color: var(--accent-ink); }
.bb-menu .bb-name { grid-column: 2; font: 600 15px/1.25 var(--head); white-space: nowrap; }
.bb-menu small { grid-column: 2; font: 400 12.5px/1.3 var(--sans); color: var(--text-3); white-space: nowrap; }
.bb-menu a[aria-current]::after { content: "\25CF  here"; grid-column: 3; grid-row: 1 / span 2; font: 600 13px/1 var(--head); font-variant-caps: all-small-caps; letter-spacing: .06em; color: var(--accent); white-space: pre; }
.bb-menu .bb-home { border-bottom: 1px solid var(--line); margin-bottom: 4px; padding-bottom: 10px; }
.bb-menu p { margin: 8px 0 2px; padding: 10px 14px 4px; border-top: 1px solid var(--line-strong); font: 700 12px/1 var(--head); letter-spacing: .1em; text-transform: uppercase; color: var(--text); }
.bb-menu .bb-home + p { border-top: 0; margin-top: 0; }
.bb-switch .bb-caret { display: inline-block; transition: transform .15s; }
.bb-switch[open] .bb-caret { transform: rotate(180deg); }

@media (max-width: 720px) {
  .bb-links a:not(.bb-keep) { display: none; }
  .bb-wrap { gap: 12px; padding: 0 16px; }
  .bb-theme { min-width: 0; margin-left: 4px; padding: 5px 7px; }
  .bb-theme .tt-text { display: none; }
}
