:root {
  --color-brand-primary: #7A1E1E;
  --color-brand-content: #7A1E1E;
  --color-brand-visited: #6B2424;
  --color-background-primary: #101010;
  --color-background-secondary: #171717;
  --color-foreground-primary: #E7E0D0;
  --color-foreground-secondary: #A8A299;
  --color-sidebar-background: #0B0B0B;
  --color-sidebar-background-border: #2A2A2A;
  --color-sidebar-link-text: #D8D1C3;
  --color-sidebar-link-text--top-level: #E7E0D0;
  --color-link: #9A3A3A;
  --color-link--hover: #B85A5A;
  --color-api-name: #9A3A3A;
  --font-stack: "Roboto Condensed", "Arial Narrow", "Aptos", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-stack--monospace: "SFMono-Regular", "JetBrains Mono", "Cascadia Code", monospace;
}

body {
  font-family: var(--font-stack);
  letter-spacing: 0;
}

.sidebar-brand {
  border-bottom: 1px solid #2A2A2A;
  padding-bottom: 1.1rem;
}

.sidebar-brand img {
  max-width: 220px;
}

.sidebar-brand-text {
  display: none;
}

.sidebar-tree .caption {
  color: #8F8A80;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.content {
  --color-link: #9A3A3A;
  --color-link--hover: #B85A5A;
}

.content h1,
.content h2,
.content h3 {
  color: #E7E0D0;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.content h1 {
  border-bottom: 2px solid #7A1E1E;
  padding-bottom: 0.4rem;
}

.admonition {
  border-radius: 0;
  border-left: 3px solid #7A1E1E;
  background: #151515;
}

.highlight {
  border-radius: 0;
  border: 1px solid #2A2A2A;
}

.sig {
  border-radius: 0;
  border-left: 3px solid #7A1E1E;
}

code.literal {
  border-radius: 0;
  color: #E7E0D0;
}

table.docutils {
  border: 1px solid #2A2A2A;
}

table.docutils th {
  background: #171717;
  color: #E7E0D0;
  border-bottom: 2px solid #7A1E1E;
}

@media (prefers-color-scheme: light) {
  :root {
    --color-background-primary: #101010;
    --color-background-secondary: #171717;
    --color-foreground-primary: #E7E0D0;
    --color-foreground-secondary: #A8A299;
  }
}
