@font-face {
  font-family: "JetBrains Mono Nerd";
  src: url("/fonts/jetbrains-mono-nerd-regular.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
:root {
  color-scheme: dark;
  --bg: #101310;
  --text: #e9ede4;
  --muted: #99a193;
  --accent: #c1e697;
  --line: #30382d;
  --mono: "JetBrains Mono Nerd", ui-monospace, monospace;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--mono);
  font-size: 13px;
  -webkit-font-smoothing: antialiased;
}
::selection {
  background: var(--accent);
  color: var(--bg);
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input {
  font: inherit;
  color: inherit;
  border: 0;
  border-radius: 0;
  background: none;
}
a,
button,
input {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 1px solid var(--accent);
  outline-offset: 5px;
}
[hidden] {
  display: none !important;
}
.page {
  width: min(100% - 80px, 800px);
  min-height: 100svh;
  margin: auto;
  display: flex;
  flex-direction: column;
}
header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 42px 0;
  font-size: 12px;
}
.wordmark {
  color: var(--text);
}
.wordmark span {
  color: var(--muted);
}
@media (prefers-reduced-motion: no-preference) {
  .entry {
    animation: command-reveal 140ms ease-out;
  }
}
@keyframes command-reveal {
  from {
    opacity: 0;
    transform: translateY(2px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
main {
  width: 100%;
  margin: auto 0;
  padding: 65px 0 160px;
}
.invocation {
  font-size: 12px;
  color: var(--muted);
  margin: 0 0 24px;
}
.invocation span {
  color: var(--accent);
  margin-right: 10px;
}
#typing-toggle {
  margin-left: 16px;
  padding: 5px 0;
  font-size: 10px;
  color: var(--muted);
}
#typing-toggle:hover {
  color: var(--accent);
}
h1 {
  display: grid;
  position: relative;
  width: 100%;
  min-width: 0;
  font: 400 clamp(32px, 4.5vw, 60px)/1.3 var(--mono);
  letter-spacing: 0;
  margin: 0;
}
#line-number {
  position: absolute;
  right: calc(100% + 10px);
  top: 0;
  display: flex;
  align-items: center;
  height: 1lh;
  color: var(--muted);
  pointer-events: none;
  user-select: none;
}
#line-number span {
  font-size: 12px;
  line-height: 1;
}
.typing-sizer,
.typing-line {
  grid-area: 1 / 1;
  min-width: 0;
  padding-right: 1ch;
}
.typing-sizer {
  visibility: hidden;
}
.typing-line {
  position: relative;
  white-space: pre-wrap;
}
.typing-line.is-running .cursor {
  animation: blink-cursor 1s step-end infinite;
}
@keyframes blink-cursor {
  50% {
    opacity: 0;
  }
}
.cursor {
  position: relative;
  display: inline-block;
  width: 0;
  height: 1.1em;
  vertical-align: -0.2em;
}
.cursor::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 1ch;
  height: 100%;
  background: var(--accent);
  mix-blend-mode: difference;
}
.typing-line.is-positioned .cursor {
  position: absolute;
  pointer-events: none;
}
.vim-status {
  display: flex;
  gap: 14px;
  min-height: 16px;
  margin: 20px 0 0;
  font-size: 10px;
  letter-spacing: 0.04em;
  color: var(--muted);
}
#vim-mode {
  min-width: 6ch;
  color: var(--accent);
}
#vim-action {
  min-width: 4ch;
}
.description {
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}
.terminal {
  margin-top: 62px;
}
#output:empty {
  display: none;
}
#output {
  max-height: 210px;
  overflow-y: auto;
  overflow-wrap: anywhere;
  scrollbar-width: thin;
  scrollbar-color: var(--line) var(--bg);
  margin-bottom: 18px;
}
.entry {
  margin: 0 0 18px;
  line-height: 1.8;
  font-size: 12px;
}
.entry:last-child {
  margin-bottom: 0;
}
.echo {
  color: var(--muted);
  white-space: pre-wrap;
}
.echo::before {
  content: "$ ";
  color: var(--accent);
}
.response {
  margin-top: 5px;
  color: var(--text);
  white-space: pre-wrap;
}
.response a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 4px;
}
#command-form {
  display: flex;
  align-items: center;
  gap: 14px;
  border-top: 1px solid var(--line);
  padding: 16px 0 10px;
}
#command-form label {
  color: var(--accent);
  white-space: nowrap;
}
#command-input {
  flex: 1;
  min-width: 0;
  padding: 6px 0;
  caret-color: var(--accent);
  line-height: 1.5;
  caret-shape: block;
}
#command-input::placeholder {
  color: var(--muted);
  opacity: 0.72;
}
#command-input:focus-visible {
  outline: none;
}
#command-form:focus-within {
  border-color: var(--accent);
}
#command-form button {
  color: var(--muted);
  min-width: 36px;
  min-height: 36px;
  font-size: 17px;
}
#command-form button:hover {
  color: var(--accent);
}
.hint {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 10px;
  color: var(--muted);
}
.hint button {
  color: var(--muted);
  padding: 8px 0 8px 16px;
}
.hint button:hover {
  color: var(--accent);
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
@media (max-width: 600px) {
  .page {
    width: calc(100% - 48px);
  }
  header {
    padding: 28px 0;
    font-size: 11px;
  }
  main {
    padding: 52px 0 110px;
  }
  h1 {
    font-size: clamp(27px, 7vw, 40px);
  }
  .invocation {
    font-size: 11px;
    margin-bottom: 22px;
  }
  .description {
    font-size: 12px;
    margin-top: 18px;
  }
  .terminal {
    margin-top: 45px;
  }
  #command-input {
    font-size: 16px;
  }
  #command-input::placeholder {
    font-size: 12px;
  }
}
@media (max-height: 600px) {
  main {
    padding: 35px 0 55px;
  }
  header {
    padding: 24px 0;
  }
}
