@font-face {
  font-family: "Space Grotesk";
  src: url("/assets/fonts/space-grotesk-latin.woff2") format("woff2");
  font-display: swap;
  font-weight: 300 700;
}

@font-face {
  font-family: "Inter";
  src: url("/assets/fonts/inter-latin.woff2") format("woff2");
  font-display: swap;
  font-weight: 400 700;
}

@font-face {
  font-family: "JetBrains Mono";
  src: url("/assets/fonts/jetbrains-mono-latin.woff2") format("woff2");
  font-display: swap;
  font-weight: 400 600;
}

:root,
.navy {
  --bg: #0d1117;
  --fg: #e7ecef;
  --sidebar-bg: #101720;
  --sidebar-fg: #98a7b5;
  --sidebar-non-existant: #5e6d7b;
  --sidebar-active: #79d7ff;
  --sidebar-spacer: #2a3745;
  --scrollbar: #344657;
  --icons: #98a7b5;
  --icons-hover: #e7ecef;
  --links: #79d7ff;
  --inline-code-color: #61d6a3;
  --theme-popup-bg: #141a22;
  --theme-popup-border: #2a3745;
  --theme-hover: #20252d;
  --quote-bg: rgb(79 142 247 / 9%);
  --quote-border: #4f8ef7;
  --table-border-color: #2a3745;
  --table-header-bg: #141a22;
  --table-alternate-bg: rgb(20 26 34 / 62%);
  --searchbar-border-color: #344657;
  --searchbar-bg: #141a22;
  --searchbar-fg: #e7ecef;
  --searchbar-shadow-color: rgb(0 0 0 / 35%);
  --searchresults-header-fg: #79d7ff;
  --searchresults-border-color: #2a3745;
  --searchresults-li-bg: #141a22;
  --search-mark-bg: #c48b3a;
}

html,
body {
  font-family: "Inter", sans-serif;
}

body {
  background:
    radial-gradient(circle at 86% 4%, rgb(79 142 247 / 8%), transparent 30rem),
    var(--bg);
}

h1,
h2,
h3,
h4,
.menu-title {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 500;
  letter-spacing: -.025em;
}

h1 {
  font-size: clamp(2.4rem, 7vw, 4.4rem);
  letter-spacing: -.055em;
  line-height: 1;
}

h2 {
  margin-top: 3rem;
}

code,
pre,
.header,
.sidebar {
  font-family: "JetBrains Mono", monospace;
}

.sidebar {
  border-right: 1px solid #2a3745;
  font-size: 17px;
  line-height: 1.45;
}

.sidebar .chapter li.chapter-item {
  margin-top: 5px;
}

.sidebar .chapter li.chapter-item a {
  font-size: 17px;
  line-height: 1.45;
}

.sidebar .chapter li.part-title {
  margin-top: 26px;
  color: #5e6d7b;
  font-size: 12px;
  line-height: 1.4;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.mirmir-docs-home {
  display: inline-flex;
  align-items: center;
  margin: 20px 16px 6px;
  color: #e7ecef;
  font: 600 16px "Space Grotesk", sans-serif;
  letter-spacing: .12em;
  text-decoration: none;
}

.mirmir-docs-home img {
  width: 24px;
  height: 24px;
  margin-right: 9px;
}

.mirmir-codeberg-icon {
  width: 18px;
  height: 18px;
  vertical-align: -3px;
}

.mirmir-docs-version {
  display: inline-flex;
  margin-left: 9px;
  padding: 3px 6px;
  border: 1px solid #344657;
  border-radius: .25rem;
  color: #79d7ff;
  font: 600 10px "JetBrains Mono", monospace;
  vertical-align: middle;
}

.content main {
  max-width: 860px;
}

.content p,
.content li {
  line-height: 1.75;
}

.content img {
  border: 1px solid #344657;
  border-radius: .65rem;
  box-shadow: 0 28px 80px rgb(0 0 0 / 28%);
}

.content pre {
  border: 1px solid #2a3745;
  border-radius: .55rem;
  background: #0a0e13;
}

.content table {
  display: table;
  width: 100%;
}

.content blockquote {
  margin: 1.5rem 0;
  padding: .9rem 1.1rem;
  border-radius: 0 .4rem .4rem 0;
}

.docs-grid {
  display: grid;
  margin: 32px 0;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.docs-card {
  display: block;
  min-height: 144px;
  padding: 20px;
  border: 1px solid #2a3745;
  border-radius: .55rem;
  background: rgb(20 26 34 / 74%);
  color: #e7ecef !important;
  text-decoration: none;
  transition: border-color 140ms ease, transform 140ms ease;
}

.docs-card:hover {
  border-color: #4f8ef7;
  transform: translateY(-2px);
}

.docs-card strong {
  display: block;
  margin-bottom: 9px;
  color: #79d7ff;
  font-family: "Space Grotesk", sans-serif;
  font-size: 18px;
}

.docs-card span {
  color: #98a7b5;
  font-size: 15px;
  line-height: 1.55;
}

.mirmir-page-toc {
  position: fixed;
  top: 5.5rem;
  right: max(1.4rem, calc((100vw - 1540px) / 2));
  display: flex;
  width: 220px;
  max-height: calc(100vh - 7rem);
  overflow-y: auto;
  flex-direction: column;
  gap: 8px;
  color: #5e6d7b;
  font: 15px/1.55 "Inter", sans-serif;
}

.mirmir-page-toc strong {
  margin-bottom: 5px;
  color: #98a7b5;
  font: 600 13px "JetBrains Mono", monospace;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.mirmir-page-toc a {
  color: inherit;
  font-size: 15px;
  line-height: 1.55;
  text-decoration: none;
}

.mirmir-page-toc a:hover {
  color: #79d7ff;
}

.mirmir-page-toc a.nested {
  padding-left: 13px;
}

@media (min-width: 1351px) {
  .content { padding-right: 240px; }
}

@media (max-width: 700px) {
  .menu-title { display: none; }
  .docs-grid { grid-template-columns: 1fr; }
  .content table { display: block; }
}

@media (max-width: 1350px) {
  .mirmir-page-toc { display: none; }
}
