:root {
  color-scheme: dark;
  --background: #000;
  --foreground: #bfbfbf;
  --link: #fff;
  --muted: #929292;
  font-family: "Cascadia Mono", "SFMono-Regular", Menlo, Consolas, "Liberation Mono", monospace;
  font-size: 18px;
  line-height: 1.5;
  color: var(--foreground);
  background: var(--background);
}

* { box-sizing: border-box; }
body { margin: 0; }
::selection { background: #333; color: #fff; }
[hidden] { display: none !important; }

.terminal { max-width: calc(70ch + 48px); padding: 40px 24px 64px; }
p, ul { margin: 0; }
section, nav { margin-bottom: 22px; }
.command { margin-bottom: 22px; }
.links { display: flex; flex-wrap: wrap; column-gap: 32px; row-gap: 12px; padding: 0; list-style: none; }
a { color: var(--link); text-decoration: underline dotted; text-underline-offset: 5px; text-decoration-thickness: 1px; }
a:hover { text-decoration-style: solid; }
a:focus-visible, button:focus-visible { outline: 1px solid var(--link); outline-offset: 5px; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }

.prompt { display: flex; align-items: baseline; flex-wrap: wrap; gap: 0 1ch; }
.input-wrap { position: relative; flex: 1; min-width: 0; }
#command-input { display: block; width: 100%; min-width: 0; height: 1.5em; padding: 0; border: 0; border-radius: 0; background: transparent; outline: none; caret-color: var(--foreground); }
.input-wrap:focus-within { box-shadow: 0 1px 0 #666; }
.cursor, .static-cursor { display: inline-block; width: 1ch; height: 1.1em; background: var(--foreground); vertical-align: -.15em; }
.cursor { position: absolute; top: .2em; left: 0; pointer-events: none; }
.input-wrap:focus-within .cursor, .input-wrap.has-value .cursor { display: none; }
.run-command { border: 0; background: transparent; padding: 0 8px; opacity: 0; pointer-events: none; }
.prompt:focus-within .run-command, .prompt.has-value .run-command { opacity: 1; pointer-events: auto; }
.entry { margin-bottom: 22px; overflow-wrap: anywhere; }
.entry .command { white-space: pre-wrap; }
.response { white-space: pre-wrap; overflow-wrap: anywhere; }
.response a { display: inline-block; margin-top: 8px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }

@media (prefers-reduced-motion: no-preference) {
  .cursor { animation: blink 1.2s step-end 5; }
  @keyframes blink { 50% { opacity: 0; } }
}
@media (max-width: 600px) {
  :root { font-size: 16px; }
  .terminal { padding: 28px 20px 48px; }
  .links { gap: 16px 24px; }
  .links a { display: inline-flex; align-items: center; min-height: 44px; }
  .run-command { opacity: 1; pointer-events: auto; min-width: 44px; min-height: 44px; }
}
