@font-face {
  font-family: "JetBrains Mono";
  src: url("/assets/fonts/jetbrains-mono-nf.woff2") format("woff2");
  font-display: swap;
}
:root {
  color-scheme: light;
  --paper: #f8f8f8;
  --ink: #2a2b33;
  --muted: #6a737d;
  --cyan: #2f5af3;
  --purple: #a00095;
  --gold: #8a5a00;
  --red: #b31d28;
  --selection: #dbeafe;
}
html[data-theme="dark"] {
  color-scheme: dark;
  --paper: #191724;
  --ink: #e0def4;
  --muted: #908caa;
  --cyan: #8be9fd;
  --purple: #bd93f9;
  --gold: #f1fa8c;
  --red: #ff5555;
  --selection: #403d52;
}
* {
  box-sizing: border-box;
}
[hidden] {
  display: none !important;
}
html {
  background: var(--paper);
  color: var(--ink);
}
body {
  margin: 0;
  font:
    15px/1.65 "JetBrains Mono",
    monospace;
  -webkit-font-smoothing: antialiased;
}
::selection {
  background: var(--selection);
  color: var(--ink);
}
.terminal {
  width: 100%;
  min-height: 100svh;
  padding: 28px 32px 48px;
}
button,
input {
  font: inherit;
}
button {
  border: 0;
  border-radius: 0;
  padding: 0;
  background: none;
  color: inherit;
  cursor: pointer;
}
button:focus-visible,
a:focus-visible {
  outline: 1px solid var(--purple);
  outline-offset: 3px;
}
a {
  color: var(--cyan);
  text-underline-offset: 3px;
}
.cli-muted {
  color: var(--muted);
}
.cli-error {
  color: var(--red);
}
.cli-line {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  max-width: 110ch;
}
.cli-command {
  margin-top: 1.5em;
  margin-bottom: 0.5em;
}
.cli-command:first-child {
  margin-top: 0;
}
.cli-user,
.cli-chevron {
  color: var(--purple);
}
.cli-host,
.cli-directory {
  color: var(--cyan);
}
.cli-section-heading {
  color: var(--cyan);
  margin-bottom: 0.5em;
}
.cli-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0 3ch;
  max-width: 110ch;
}
.cli-entry {
  display: inline;
  text-align: left;
  overflow-wrap: anywhere;
}
.cli-entry:hover {
  text-decoration: underline;
}
.cli-list-long {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  gap: 0.25em 3ch;
  max-width: 110ch;
}
.cli-list-long > .cli-muted {
  overflow-wrap: anywhere;
}
#cli-form {
  display: flex;
  align-items: baseline;
  gap: 1ch;
  margin-top: 1.5em;
  max-width: 110ch;
}
.cli-prompt {
  display: inline-flex;
  white-space: nowrap;
}
#cli-path {
  color: var(--gold);
  margin-left: 1ch;
}
.cli-chevron {
  margin-left: 1ch;
}
.cli-input-wrap {
  flex: 1;
  position: relative;
  min-width: 5ch;
  overflow: hidden;
}
#cli-input,
#cli-suggestion {
  padding: 0;
  margin: 0;
  border: 0;
  font: inherit;
  line-height: inherit;
}
#cli-input {
  position: relative;
  display: block;
  width: 100%;
  color: var(--ink);
  background: transparent;
  outline: none;
  caret-color: var(--purple);
}
#cli-suggestion {
  position: absolute;
  inset: 0;
  pointer-events: none;
  color: var(--muted);
  white-space: pre;
  overflow: hidden;
}
.cli-suggestion-prefix {
  color: transparent;
}
#cli-accept {
  color: var(--muted);
}
#cli-candidates {
  max-width: 110ch;
  margin-top: 0.5em;
}
#cli-candidates:empty {
  display: none;
}
.cli-candidate {
  display: flex;
  gap: 3ch;
  text-align: left;
  width: 100%;
}
.cli-candidate > span:first-child {
  color: var(--cyan);
  flex: 0 0 32ch;
  overflow-wrap: anywhere;
}
.cli-candidate .cli-muted {
  overflow-wrap: anywhere;
}
.cli-document {
  max-width: 100ch;
  margin: 0.5em 0;
  overflow-wrap: anywhere;
}
.cli-document h1,
.cli-document h2,
.cli-document h3,
.cli-document h4 {
  font: inherit;
  font-weight: 600;
  color: var(--cyan);
  margin: 1.5em 0 0.5em;
}
.cli-document > h1:first-child {
  margin-top: 0;
}
.cli-document h1::before {
  content: "# ";
}
.cli-document h2::before {
  content: "## ";
}
.cli-document h3::before {
  content: "### ";
}
.cli-document p {
  margin: 0.8em 0;
}
.cli-document pre,
pre.cli-json {
  font: inherit;
  line-height: inherit;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  padding: 0;
  margin: 0.8em 0;
  max-width: 100ch;
}
.cli-document code {
  font: inherit;
  color: var(--gold);
}
.cli-document pre:has(code) {
  white-space: pre;
  overflow-x: auto;
  padding-left: 2ch;
}
.cli-document blockquote {
  margin: 1em 0;
  padding-left: 2ch;
  border-left: 1px solid var(--muted);
  color: var(--muted);
}
.cli-document ul,
.cli-document ol {
  padding-left: 3ch;
}
.cli-document img {
  max-width: min(100%, 640px);
  height: auto;
  display: block;
  margin: 1em 0;
}
.cli-document figure {
  margin: 1em 0;
}
.cli-document table {
  display: block;
  max-width: 100%;
  overflow-x: auto;
  border-collapse: collapse;
}
.cli-document td,
.cli-document th {
  padding: 0.25em 2ch 0.25em 0;
  text-align: left;
}
.cli-json-key {
  color: var(--cyan);
}
.cli-json-string {
  color: var(--gold);
}
.cli-json-literal {
  color: var(--purple);
}
@media (max-width: 640px) {
  body {
    font-size: 14px;
  }
  .terminal {
    padding: 20px 16px 32px;
  }
  #cli-form {
    flex-wrap: wrap;
    gap: 0.2em;
  }
  .cli-prompt {
    width: 100%;
  }
  #cli-input,
  #cli-suggestion {
    font-size: 16px;
    line-height: 1.65;
  }
  #cli-accept {
    min-height: 32px;
    min-width: 32px;
  }
  .cli-list-long {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }
  .cli-list-long > .cli-muted {
    margin-bottom: 0.5em;
  }
  .cli-candidate {
    flex-direction: column;
    gap: 0;
    margin-bottom: 0.5em;
  }
  .cli-candidate > span:first-child {
    flex-basis: auto;
  }
}

/* Visually hidden agent notice — see .agent-notice in tufted.css. */
.agent-notice {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  border: 0;
}
