@font-face {
  font-family: "Hack";
  src: url("/assets/fonts/Hack-NF.ttf");
  display: swap;
}

:root {
  color-scheme: dark;
  --background: #000000;
  --foreground: #f4f4f4;
  --strong: #ffffff;
  --muted: #a8a8a8;
  --dim: #6d6d6d;
  --line: #3a3a3a;
}

* {
  box-sizing: border-box;
  font-family: "Hack", monospace;
}

html,
body,
body > div:first-child,
div#__next,
div#__next > div {
  height: 100%;
  overflow: auto;
  scrollbar-width: none;
}

body {
  margin: 0;
  background: var(--background);
  color: var(--foreground);
}

a {
  color: var(--strong);
  text-decoration: underline;
  text-decoration-color: var(--dim);
  text-underline-offset: 0.16em;
}

::-webkit-scrollbar {
  width: 0;
  height: 0;
}

.app-shell {
  min-width: max-content;
  height: 100%;
  color: var(--foreground);
  font-size: 0.75rem;
  line-height: 1rem;
}

.page-shell {
  width: 100%;
  height: 100%;
  padding: 0.5rem;
  background: var(--background);
}

.terminal-shell {
  height: 100%;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  padding: 2rem;
  background: var(--background);
}

.terminal-scroll {
  height: 100%;
  overflow-y: auto;
}

.history-entry {
  display: block;
}

.history-command {
  display: flex;
  flex-direction: row;
  column-gap: 0.5rem;
}

.history-command .ps1 {
  flex-shrink: 0;
}

.history-command__text {
  flex-grow: 1;
  color: var(--strong);
  overflow-wrap: anywhere;
}

.history-output {
  margin: 0 0 0.75rem;
  line-height: normal;
  white-space: pre-wrap;
}

.globe-frame {
  margin: 0.75rem 0 0.85rem;
  color: var(--strong);
  font: inherit;
  line-height: 1;
  white-space: pre;
}

.loader {
  display: inline-block;
  min-width: 4.5rem;
  color: var(--strong);
}

.hint {
  color: var(--muted);
}

.input-row {
  display: flex;
  flex-direction: row;
  column-gap: 0.5rem;
  margin-top: 0.75rem;
}

.input-row.is-hidden {
  display: none;
}

.ps1 {
  flex-shrink: 0;
  color: var(--muted);
}

.ps1__user,
.ps1__host {
  color: var(--strong);
}

.ps1__sep {
  color: var(--muted);
}

#prompt {
  flex-grow: 1;
  min-width: 2rem;
  border: 0;
  outline: 0;
  padding: 0;
  background: transparent;
  color: var(--strong);
  caret-color: var(--strong);
  font: inherit;
}

#prompt.is-error {
  color: var(--muted);
}

::selection {
  background: var(--strong);
  color: var(--background);
}

@media (min-width: 768px) {
  .app-shell {
    min-width: 100%;
    font-size: 1rem;
    line-height: 1.5rem;
  }
}

@media (max-width: 720px) {
  .app-shell {
    min-width: 100%;
    font-size: clamp(0.74rem, 3.2vw, 0.95rem);
    line-height: 1.35;
  }

  .page-shell {
    padding: 0;
  }

  .terminal-shell {
    min-height: 100%;
    border-right: 0;
    border-left: 0;
    border-radius: 0;
    padding: 1rem;
  }

  .globe-frame {
    font-size: clamp(0.62rem, 2.55vw, 0.82rem);
  }

  .history-command,
  .input-row {
    column-gap: 0.35rem;
  }
}
