@font-face {
  font-family: "Instrument Sans";
  src: url("../fonts/instrument-sans.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
}

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

:root {
  --nestor-bg: #08090b;
  --nestor-fg: #efefed;
  --nestor-text: rgba(239, 239, 237, 0.76);
  --nestor-muted: rgba(239, 239, 237, 0.58);
  --nestor-rule: rgba(255, 255, 255, 0.1);
  --nestor-rule-strong: rgba(255, 255, 255, 0.16);
  --nestor-panel: rgba(255, 255, 255, 0.025);
  --nestor-blue: #7eb6ff;
  --md-text-font: "Instrument Sans";
  --md-code-font: "Geist Mono";
  --md-primary-fg-color: var(--nestor-bg);
  --md-primary-fg-color--light: var(--nestor-bg);
  --md-primary-fg-color--dark: var(--nestor-bg);
  --md-accent-fg-color: var(--nestor-blue);
}

[data-md-color-scheme="slate"] {
  --md-default-bg-color: var(--nestor-bg);
  --md-default-fg-color: var(--nestor-fg);
  --md-default-fg-color--light: var(--nestor-text);
  --md-default-fg-color--lighter: var(--nestor-muted);
  --md-default-fg-color--lightest: var(--nestor-rule);
  --md-code-bg-color: rgba(255, 255, 255, 0.035);
  --md-code-fg-color: rgba(239, 239, 237, 0.9);
  --md-typeset-a-color: var(--nestor-fg);
}

body {
  color: var(--nestor-text);
  font-feature-settings: "ss01" 1, "ss02" 1;
  -webkit-font-smoothing: antialiased;
}

.md-grid {
  max-width: 88rem;
}

.md-header {
  background: rgba(8, 9, 11, 0.94);
  border-bottom: 1px solid var(--nestor-rule);
  box-shadow: none;
  backdrop-filter: blur(14px);
}

.md-header__inner {
  min-height: 3.4rem;
}

.md-header__button.md-logo {
  margin: 0;
  padding: 0.62rem;
}

.md-header__button.md-logo img,
.md-header__button.md-logo svg,
.md-nav__button.md-logo img,
.md-nav__button.md-logo svg {
  width: 1.9rem;
  height: 1.9rem;
}

.md-header__title {
  margin-left: 0.3rem;
  font-family: "Instrument Sans", sans-serif;
  font-size: 0.86rem;
  font-weight: 600;
  letter-spacing: -0.025em;
}

.md-header__topic:first-child {
  font-size: 1rem;
  letter-spacing: -0.045em;
}

.md-search__form {
  background: var(--nestor-panel);
  border: 1px solid var(--nestor-rule);
  border-radius: 0.45rem;
}

.md-search__input {
  font-family: "Geist Mono", monospace;
  font-size: 0.68rem;
}

.md-main__inner {
  margin-top: 0;
}

.md-sidebar {
  padding-top: 1.45rem;
}

.md-sidebar--primary {
  border-right: 1px solid var(--nestor-rule);
}

.md-sidebar--secondary {
  border-left: 1px solid var(--nestor-rule);
}

.md-nav {
  font-size: 0.72rem;
}

.md-nav__title,
.md-nav__link {
  font-family: "Geist Mono", monospace;
}

.md-nav__title {
  color: var(--nestor-muted);
  font-size: 0.64rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.md-nav__link {
  color: var(--nestor-muted);
}

.md-nav__link:is(:focus, :hover),
.md-nav__link--active {
  color: var(--nestor-fg);
}

.md-nav__link--active {
  position: relative;
}

.md-nav__link--active::before {
  position: absolute;
  top: 0.55em;
  left: -0.75rem;
  width: 0.28rem;
  height: 0.28rem;
  border-radius: 50%;
  background: var(--nestor-blue);
  content: "";
}

.md-content__inner {
  padding-top: 2.9rem;
  padding-bottom: 4rem;
}

.md-typeset {
  color: var(--nestor-text);
  font-size: 0.82rem;
  line-height: 1.72;
}

.md-typeset h1,
.md-typeset h2,
.md-typeset h3 {
  color: var(--nestor-fg);
  font-family: "Instrument Sans", sans-serif;
  font-weight: 600;
  letter-spacing: -0.035em;
}

.md-typeset h1 {
  margin-bottom: 1.1rem;
  font-size: clamp(2.25rem, 5vw, 3.35rem);
  line-height: 1.02;
}

.md-typeset h2 {
  margin-top: 2.8rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--nestor-rule);
  font-size: 1.55rem;
}

.md-typeset h3 {
  font-size: 1.05rem;
}

.md-typeset strong {
  color: var(--nestor-fg);
}

.md-typeset a {
  text-decoration-color: rgba(126, 182, 255, 0.4);
  text-underline-offset: 0.17em;
}

.md-typeset a:is(:focus, :hover) {
  color: var(--nestor-blue);
}

.md-typeset code,
.md-typeset kbd,
.md-typeset pre {
  border-radius: 0.42rem;
}

.md-typeset code {
  color: rgba(239, 239, 237, 0.88);
}

.md-typeset .highlight,
.md-typeset table:not([class]) {
  border: 1px solid var(--nestor-rule-strong);
  border-radius: 0.55rem;
  box-shadow: none;
}

.md-typeset .highlight code {
  line-height: 1.7;
}

.md-typeset table:not([class]) th {
  background: var(--nestor-panel);
  color: var(--nestor-muted);
  font-family: "Geist Mono", monospace;
  font-size: 0.63rem;
  font-weight: 500;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.md-typeset table:not([class]) td,
.md-typeset table:not([class]) th {
  border-color: var(--nestor-rule);
}

.md-typeset .admonition,
.md-typeset details {
  background: var(--nestor-panel);
  border-color: var(--nestor-rule-strong);
  border-radius: 0.55rem;
  box-shadow: none;
}

.md-footer {
  background: var(--nestor-bg);
  border-top: 1px solid var(--nestor-rule);
}

.md-footer-meta {
  background: transparent;
}

.md-copyright {
  color: var(--nestor-muted);
  font-family: "Geist Mono", monospace;
  font-size: 0.62rem;
}

@media screen and (max-width: 76.2344em) {
  .md-sidebar--primary,
  .md-sidebar--secondary {
    border: 0;
  }
}

@media screen and (max-width: 44.9844em) {
  .md-content__inner {
    padding-top: 1.8rem;
  }

  .md-typeset h1 {
    font-size: 2.25rem;
  }
}
