.axioma-shell {
  position: relative;
  z-index: 1;
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 34px 0 0;
}

.axioma-shell.topnav {
  flex-wrap: wrap;
}

.chapter-nav {
  flex: 0 0 100%;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.chapter-nav a {
  border: 1px solid rgba(0, 255, 153, 0.20);
  border-radius: 8px;
  padding: 6px 8px;
  background: rgba(0, 255, 153, 0.04);
  color: var(--muted) !important;
  font-size: 12px;
  line-height: 1.1;
  text-decoration: none;
}

.chapter-nav a:hover,
.chapter-nav a:focus-visible {
  border-color: var(--green);
  color: var(--green) !important;
  outline: 0;
}

.axioma-shell + section,
body > section {
  position: relative;
  z-index: 1;
  width: min(960px, calc(100% - 32px));
  max-width: 960px !important;
  margin: 0 auto 56px !important;
}

body {
  margin: 0 !important;
  color: var(--text) !important;
  font-family: "Share Tech Mono", Consolas, monospace !important;
}

.axiom-box {
  border: 1px solid var(--line) !important;
  border-radius: 8px !important;
  background: var(--panel) !important;
  box-shadow: none !important;
}

h1, h2, h3 {
  color: var(--green) !important;
  letter-spacing: 0 !important;
}

h1 {
  font-size: clamp(38px, 6vw, 72px) !important;
  line-height: 1 !important;
  text-shadow: 0 0 24px var(--shadow);
}

p, li, blockquote, .note, .mini {
  color: var(--muted) !important;
}

a {
  color: var(--green) !important;
}

.header-image,
.illustration {
  text-align: center;
}

.header-image img,
.illustration img {
  border-radius: 8px !important;
  box-shadow: 0 20px 48px rgba(0, 255, 153, 0.14) !important;
}

.nav-links {
  border-top: 1px solid var(--line);
  padding-top: 18px;
}

code {
  background: rgba(0, 255, 153, 0.10) !important;
  border-radius: 4px;
}

@media (max-width: 800px) {
  .chapter-nav {
    justify-content: flex-start;
  }
}
