@font-face {
  font-family: "Terminess Nerd Font Mono";
  src: url("/fonts/TerminessNerdFontMono-Regular.ttf") format("truetype");
  font-display: swap;
}

:root {
  --bg: #050301;
  --bg-soft: #0a0602;
  --ink: #ff9e2c;
  --ink-soft: #f08a22;
  --ink-dim: #c66a1a;
  --line: #b85d14;
  --line-soft: rgba(184, 93, 20, 0.45);
  --panel: #050301;
  --max-width: 784px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    repeating-linear-gradient(
      to bottom,
      rgba(255, 158, 44, 0.03) 0,
      rgba(255, 158, 44, 0.03) 1px,
      transparent 1px,
      transparent 3px
    ),
    var(--bg);
  color: var(--ink);
  font-family: "Terminess Nerd Font Mono", "Courier New", Courier, "Nimbus Mono PS", "Liberation Mono", "DejaVu Sans Mono", monospace;
  line-height: 1.45;
}

a {
  color: inherit;
}

img {
  max-width: 100%;
}

code,
pre,
kbd {
  font: inherit;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  padding: 0.5rem 0.7rem;
  color: var(--bg);
  background: var(--ink);
}

.skip-link:focus {
  top: 1rem;
}

.viewport {
  min-height: 100vh;
  width: min(var(--max-width), calc(100vw - 2rem));
  margin: 0 auto;
  padding: 1.5rem 0 4rem;
}

.screen {
  display: flex;
  flex-direction: column;
  min-height: calc(100vh - 5.5rem);
  border: 1px solid var(--line);
  background: var(--panel);
}

.window-bar,
.status-bar,
.pane-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 1.9rem;
  padding: 0.2rem 0.6rem;
  border-bottom: 1px solid var(--line);
  background: var(--bg-soft);
}

.window-title,
.pane-bar span,
.status-bar span,
.line-label {
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.pane-icon {
  font-size: 1.05rem;
  line-height: 1;
}

.window-nav {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.window-nav a {
  text-decoration: none;
}

.status-link,
.install-list a {
  text-decoration: none;
}

.status-link:hover,
.status-link:focus-visible,
.install-list a:hover,
.install-list a:focus-visible {
  text-decoration: underline;
}

.screen-main {
  flex: 1;
  padding: 0;
}

.page-home .screen {
  min-height: 0;
}

.page-home .screen-main {
  flex: 0 0 auto;
  padding-bottom: 0.45rem;
}

.status-bar {
  background: var(--ink);
  color: var(--bg);
}

.window-bar-bottom {
  justify-content: flex-start;
  gap: 0.55rem;
  min-height: 0;
  padding: 0.05rem 0.45rem 0.18rem;
  font-size: 0.9rem;
  line-height: 1;
}

.window-bar-bottom a {
  text-decoration: none;
  white-space: nowrap;
}

.window-bar-bottom a:hover,
.window-bar-bottom a:focus-visible {
  text-decoration: underline;
}

.retro-home,
.docs-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(15rem, 0.9fr);
  gap: 0;
}

.docs-grid {
  min-height: calc(100vh - 5.8rem);
  grid-template-columns: minmax(15rem, 0.8fr) minmax(0, 1.7fr);
}

.pane {
  min-width: 0;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.retro-home .pane-sidebar {
  display: flex;
  flex-direction: column;
  border-right: 0;
}

.retro-home .pane-sidebar .pane-body {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.pane-full {
  grid-column: 1 / -1;
  border-right: 0;
}

.pane-wide {
  min-width: 0;
}

.pane-large {
  min-height: 24rem;
}

.pane-body {
  padding: 0.7rem 0.85rem 1rem;
}

.mascot-block {
  display: flex;
  justify-content: center;
  margin-top: auto;
  margin-bottom: 0;
  padding: 0.75rem 0 0;
}

.mascot {
  display: block;
  width: min(100%, 11rem);
  height: auto;
  image-rendering: pixelated;
}

.pane-body h1,
.pane-body h2,
.pane-body h3,
.pane-body p,
.pane-body ul,
.pane-body ol,
.pane-body pre,
.pane-body table,
.pane-body blockquote,
.pane-body dl {
  margin-top: 0;
}

.pane-body h1 {
  margin-bottom: 0.4rem;
  font-size: clamp(2.2rem, 7vw, 4.4rem);
  line-height: 1;
}

.one-liner,
.page-summary,
.page-intro,
.pane-body blockquote,
.index-list span,
.key-value span {
  color: var(--ink-soft);
}

.lede {
  max-width: 40rem;
}

.line-label {
  margin: 0 0 0.65rem;
  color: var(--ink-dim);
}

pre {
  overflow-x: hidden;
  margin: 0;
  padding: 0;
  background: transparent;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.index-list,
.key-value,
.docs-nav,
.toc-block ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.index-list li,
.key-value li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.35rem 0;
  border-top: 1px solid var(--line-soft);
}

.index-list li:first-child,
.key-value li:first-child {
  border-top: 0;
  padding-top: 0;
}

.index-list a,
.docs-nav a,
.toc-block a {
  text-decoration: none;
}

.docs-nav {
  margin-top: 1rem;
}

.install-list {
  margin-bottom: 1rem;
}

.docs-overview-list {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
}

.docs-overview-list li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.5rem 0;
  border-top: 1px solid var(--line-soft);
}

.docs-overview-list li:first-child {
  padding-top: 0;
  border-top: 0;
}

.docs-overview-list a {
  text-decoration: none;
}

.docs-overview-list span {
  color: var(--ink-soft);
  text-align: right;
}

.install-list li {
  justify-content: flex-start;
}

.docs-nav a,
.toc-block a {
  display: block;
  padding: 0.3rem 0;
  color: var(--ink-soft);
}

.docs-nav a.is-active,
.docs-nav a:hover,
.toc-block a:hover {
  color: var(--ink);
}

.docs-grid-single aside .pane-body h1 {
  font-size: clamp(1.35rem, 3vw, 2.2rem);
  line-height: 1;
  margin-bottom: 0.55rem;
  word-break: break-word;
  overflow-wrap: anywhere;
}

.doc-body h1,
.doc-body h2,
.doc-body h3 {
  line-height: 1.15;
}

.doc-body h1 {
  font-size: 1.75rem;
}

.doc-body h2 {
  margin-top: 1.8rem;
  font-size: 1.28rem;
}

.doc-body h3 {
  margin-top: 1.4rem;
  font-size: 1rem;
}

.doc-body p,
.doc-body ul,
.doc-body ol,
.doc-body pre,
.doc-body table,
.doc-body blockquote,
.doc-body dl {
  margin: 0.9rem 0 0;
}

.doc-body ul,
.doc-body ol {
  padding-left: 1.25rem;
}

.doc-body li + li {
  margin-top: 0.25rem;
}

.doc-body pre,
.doc-body table {
  width: 100%;
}

.doc-body .highlight {
  margin: 0.9rem 0 0;
}

.doc-body pre {
  padding: 0.75rem;
  border: 1px solid var(--line-soft);
}

.doc-body .highlight pre,
.doc-body .highlight code {
  color: var(--ink) !important;
  background: transparent !important;
}

.doc-body blockquote {
  padding-left: 0.8rem;
  border-left: 1px solid var(--line);
}

.doc-body table {
  border-collapse: collapse;
}

.doc-body th,
.doc-body td {
  padding: 0.45rem 0.55rem;
  border: 1px solid var(--line-soft);
  text-align: left;
  vertical-align: top;
}

.doc-body dd {
  margin-left: 0;
  padding-left: 0.8rem;
  border-left: 1px solid var(--line-soft);
}

@media (max-width: 1080px) {
}

@media (max-width: 860px) {
  .viewport {
    width: min(var(--max-width), calc(100vw - 1rem));
    padding-top: 0.5rem;
  }

  .retro-home,
  .docs-grid,
  .docs-grid-single {
    grid-template-columns: 1fr;
  }

  .screen-main {
    padding: 0;
  }

  .pane {
    border-right: 0;
  }

  .window-bar,
  .status-bar,
  .pane-bar,
  .index-list li,
  .key-value li,
  .docs-overview-list li {
    align-items: flex-start;
    flex-direction: column;
  }

  .docs-overview-list span {
    text-align: left;
  }
}
