:root {
  color-scheme: dark;
  font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
  background: #07110e;
  color: #d8f7e7;
}

* {
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  margin: 0;
  display: grid;
  place-items: center;
  padding: clamp(1rem, 4vw, 4rem);
  background:
    radial-gradient(circle at 15% 15%, #12382c 0, transparent 32rem),
    linear-gradient(145deg, #050907, #091a14);
}

.terminal {
  width: min(58rem, 100%);
  overflow: hidden;
  border: 1px solid #2b5d49;
  border-radius: 0.9rem;
  background: rgb(4 12 9 / 92%);
  box-shadow: 0 2rem 6rem rgb(0 0 0 / 45%);
}

.terminal-bar {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.8rem 1rem;
  border-bottom: 1px solid #1d3d31;
  background: #0d2019;
}

.terminal-bar span {
  width: 0.72rem;
  height: 0.72rem;
  border-radius: 50%;
  background: #ff6b68;
}

.terminal-bar span:nth-child(2) {
  background: #f7c85a;
}

.terminal-bar span:nth-child(3) {
  background: #63d68a;
}

.terminal-bar p {
  margin: 0 0 0 0.35rem;
  color: #83ad9b;
  font-size: 0.82rem;
}

.terminal-body {
  padding: clamp(1.25rem, 4vw, 3.5rem);
}

.prompt {
  margin: 0 0 2rem;
  color: #8bc5ad;
}

.prompt strong {
  color: #f2fff8;
  font-weight: 600;
}

.output {
  min-height: 15.5rem;
}

.output p {
  margin: 0 0 1rem;
  color: #effff6;
  font-size: clamp(1rem, 2.4vw, 1.35rem);
  line-height: 1.55;
}

.output span {
  display: inline-block;
  width: 2.5rem;
  color: #5ee19b;
}

.result {
  margin: 1rem 0 2.5rem;
  color: #89cbae;
  line-height: 1.7;
}

.cursor {
  display: inline-block;
  width: 0.65em;
  height: 1.1em;
  margin-left: 0.3em;
  vertical-align: -0.2em;
  background: #5ee19b;
  animation: blink 1s steps(1) infinite;
}

nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

a {
  padding: 0.7rem 1rem;
  border: 1px solid #397258;
  border-radius: 0.45rem;
  color: #caffdf;
  text-decoration: none;
  transition: border-color 160ms ease, background 160ms ease, color 160ms ease;
}

a:hover,
a:focus-visible {
  border-color: #66e5a2;
  background: #123c2c;
  color: #fff;
  outline: none;
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
