/* SPDX-License-Identifier: CC-BY-4.0 */
/* Small mdBook theme layer that keeps the docs visually consistent with the
   landing page: system fonts, a cool light backdrop, and one periwinkle accent.
   mdBook's own assets and bundled fonts stay local; no network request is made. */

:root {
  --font-sans:
    ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue",
    Arial, "Noto Sans", "PingFang SC", "Microsoft YaHei", sans-serif;
  --mono-font:
    ui-monospace, "SFMono-Regular", "SF Mono", Menlo, Consolas, "Liberation Mono",
    monospace;
  --content-max-width: 800px;
}

body {
  font-family: var(--font-sans);
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.light,
html:not(.js) {
  --bg: #fbfbf9;
  --fg: #1b1c20;
  --sidebar-bg: #f3f3f0;
  --sidebar-fg: #4b4d55;
  --sidebar-non-existant: #6f7178;
  --sidebar-active: #4f5ccc;
  --sidebar-spacer: #e2e2dd;
  --scrollbar: #c4c5c0;
  --icons: #777981;
  --icons-hover: #1b1c20;
  --links: #4f5ccc;
  --inline-code-color: #3f4bb8;
  --theme-popup-bg: #ffffff;
  --theme-popup-border: #e3e3de;
  --theme-hover: #f0f0ed;
  --quote-bg: #f3f3f0;
  --quote-border: #d9d9d3;
  --warning-border: #b86a22;
  --table-border-color: #e3e3de;
  --table-header-bg: #f3f3f0;
  --table-alternate-bg: #fafaf8;
  --searchbar-border-color: #d6d6d0;
  --searchbar-bg: #ffffff;
  --searchbar-fg: #1b1c20;
  --searchbar-shadow-color: #6673dc;
  --searchresults-header-fg: #6a6c74;
  --searchresults-border-color: #e3e3de;
  --searchresults-li-bg: #ffffff;
  --search-mark-bg: #edefff;
  --color-scheme: light;
}

h1,
h2,
h3,
h4 {
  letter-spacing: -0.018em;
}

h1 {
  font-weight: 700;
}

h2 {
  margin-top: 2em;
  border-bottom-color: #e6e6e2;
}

a {
  text-underline-offset: 0.15em;
}

code {
  border-radius: 5px;
}

pre {
  border-radius: 10px;
}

table {
  font-size: 0.94em;
}

table th {
  font-weight: 600;
}

.menu-title {
  color: #1b1c20;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.chapter li.chapter-item {
  line-height: 1.5;
}

.content {
  padding-bottom: 4rem;
}

.content main {
  line-height: 1.65;
}

#searchbar {
  border-radius: 8px;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
