:root {
  --bg: #050505;
  --text: #b7c1b0;
  --text-strong: #e6efe0;
  --text-dim: #6d7669;
  --accent: #a3ff6f;
  --accent-soft: rgba(163, 255, 111, 0.12);
}

body {
  background:
    radial-gradient(circle at top, rgba(163, 255, 111, 0.08), transparent 38%),
    linear-gradient(180deg, #090909 0%, var(--bg) 100%);
  color: var(--text);
  font-family: "IBM Plex Mono", monospace;
  overflow: hidden;
}

a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.shell-page {
  min-height: 100%;
  width: 100%;
  padding: 24px 28px 32px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.shell__meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.shell__viewport {
  flex: 1;
  overflow: auto;
  padding-right: 8px;
  line-height: 1.55;
  font-size: 16px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.12) transparent;
}

.shell__viewport::-webkit-scrollbar {
  width: 8px;
}

.shell__viewport::-webkit-scrollbar-thumb {
  background-color: rgba(255, 255, 255, 0.12);
}

.terminal-line {
  min-height: 1.55em;
  white-space: pre-wrap;
  word-break: break-word;
}

.terminal-line--prompt {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}

.terminal-line--ascii {
  color: var(--text-strong);
}

.terminal-line--muted,
.line-meta {
  color: var(--text-dim);
}

.prompt {
  color: var(--accent);
  margin-right: 0.35rem;
}

.path {
  color: var(--text-strong);
  margin-right: 0.6rem;
}

.command {
  color: var(--text-strong);
}

.cursor {
  width: 0.72ch;
  height: 1.15em;
  margin-left: 1px;
  display: inline-block;
  vertical-align: middle;
  background-color: var(--accent);
  box-shadow: 0 0 14px var(--accent-soft);
  animation: blink 0.9s steps(1) infinite;
}

.cursor--idle {
  display: none;
}

.terminal-links {
  margin-top: 1.2rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.terminal-links a {
  display: inline-block;
  margin-right: 1.4rem;
  margin-bottom: 0.5rem;
}

@keyframes blink {
  0%,
  49% {
    opacity: 1;
  }

  50%,
  100% {
    opacity: 0;
  }
}

@media only screen and (width <= 640px) {
  .shell-page {
    padding: 14px 14px 22px;
  }

  .shell__meta {
    font-size: 10px;
  }

  .shell__viewport {
    font-size: 13px;
    line-height: 1.5;
  }

  .terminal-links a {
    display: block;
    margin-right: 0;
  }
}
