:root {
  color-scheme: dark;
  --background: #07110d;
  --surface: #0a1812;
  --text: #b9f5cb;
  --muted: #72a982;
  --line: #3d7650;
  --focus: #f1ca70;
  font-family: "Courier New", Courier, monospace;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--background);
}

body {
  min-height: 100vh;
  margin: 0;
  display: grid;
  place-items: center;
  padding: clamp(1rem, 4vw, 3rem);
  color: var(--text);
  background: linear-gradient(160deg, var(--surface), var(--background) 65%);
}

.terminal {
  width: min(100%, 68rem);
  min-height: min(42rem, calc(100vh - 2rem));
  padding: clamp(1.25rem, 4vw, 3.5rem);
  border: 1px solid var(--line);
  background: rgb(4 15 10 / 75%);
  box-shadow: 0 0 3rem rgb(47 157 80 / 10%);
}

.terminal__header {
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line);
}

.terminal__eyebrow {
  margin: 0 0 0.5rem;
  color: var(--muted);
  font-size: 0.875rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-size: clamp(2rem, 9vw, 6rem);
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.terminal__output {
  padding-top: clamp(2rem, 8vh, 5rem);
  line-height: 1.7;
  text-transform: uppercase;
}

.terminal__ready {
  margin-top: 2rem;
}

.terminal__ready span {
  display: inline-block;
  margin-left: 0.3em;
  animation: cursor 1s steps(1, end) infinite;
}

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

a {
  color: var(--text);
  text-underline-offset: 0.25em;
}

a:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 0.3rem;
}

@keyframes cursor {
  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;
  }
}

