:root {
  color-scheme: dark;
  background: #101010;
  color: #ffffff;
  font:
    17px / 1.65 ui-monospace,
    "DejaVu Sans Mono",
    monospace;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
a {
  color: #ffc799;
  text-underline-offset: 0.22em;
}
a:focus-visible,
button:focus-visible {
  outline: 3px solid #ffc799;
  outline-offset: 4px;
}
[hidden] {
  display: none !important;
}
.terminal-mode,
.terminal-mode body {
  overflow: hidden;
  width: 100%;
  height: 100%;
}
#terminal {
  position: relative;
  width: 100%;
  height: 100dvh;
  overflow: hidden;
  outline: none;
  touch-action: none;
}
#terminal canvas {
  display: block;
  touch-action: none;
}
#terminal textarea {
  display: none !important;
}
.plain-switch {
  position: fixed;
  left: 1rem;
  top: -10rem;
  z-index: 2;
  background: #101010;
  padding: 1rem;
}
.plain-switch:focus {
  top: 1rem;
}
#text-content {
  max-width: 76ch;
  padding: 2rem 1.25rem 5rem;
  margin: auto;
}
#text-content nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}
#text-content section {
  margin-top: 3rem;
  scroll-margin-top: 1rem;
}
h1,
h2 {
  line-height: 1.2;
  color: #ffffff;
}
.brand-wordmark img {
  display: block;
  width: 318px;
  max-width: 100%;
  height: auto;
}
p {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
li {
  margin: 0.7rem 0;
}
img {
  max-width: 100%;
  height: auto;
}
code {
  overflow-wrap: anywhere;
}
footer {
  border-top: 1px solid #505050;
  margin-top: 3rem;
  padding-top: 1rem;
}

pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  padding: 1rem;
  border: 1px solid #505050;
}

figure {
  margin: 1.5rem 0;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

@font-face {
  font-family: "Bruv Prompt";
  src: url("./assets/bruv-prompt.woff2") format("woff2");
  unicode-range: U+F460;
  font-display: block;
}

/* HTML demos use the same styled cells as the terminal, without a canvas. */
.demo-note {
  color: #a0a0a0;
  font-size: 0.85rem;
}
.feature-demo {
  position: relative;
}
.demo-screen {
  margin: 0;
  width: 100%;
  padding: 1.5rem 0.9rem 0.9rem;
  white-space: pre;
  overflow-wrap: normal;
  overflow: hidden;
  background: #141820;
  border-color: #343941;
  font-family: "Bruv Prompt", ui-monospace, "DejaVu Sans Mono", monospace;
  font-size: 14px;
  line-height: 1.3;
  font-variant-ligatures: none;
}
.demo-enhanced .demo-transcript {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  border: 0;
}
.demo-toggle {
  position: absolute;
  top: -22px;
  right: 0.3rem;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid #505050;
  border-radius: 3px;
  background: #141820;
  color: #ffffff;
  font: inherit;
  cursor: pointer;
  opacity: 0;
}
.feature-demo:hover .demo-toggle,
.feature-demo:focus-within .demo-toggle {
  opacity: 1;
}
@media (hover: none), (pointer: coarse) {
  .demo-toggle {
    opacity: 1;
  }
}

.install-command button {
  min-height: 44px;
  padding: 0.5rem 0.8rem;
  margin: 0 0.75rem 0.75rem 0;
  background: #ffc799;
  color: #101010;
  border: 0;
  font: inherit;
  cursor: pointer;
}
