@font-face {
  font-family: 'VT323';
  src: url('fonts/VT323-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  color-scheme: dark;
  --bg: #0a0e0a;
  --chrome: #111;
  --border: #333;
  --fg: #33ff33;
  --amber: #ffb000;
}

body {
  min-height: 100vh;
  background: var(--bg);
  color: var(--fg);
  font-family: 'VT323', 'Courier New', Courier, monospace;
  font-size: clamp(1.05rem, 1.4vw + 0.7rem, 1.35rem);
  padding: clamp(1rem, 4vw, 3rem);
  line-height: 1.5;
}

.backlink {
  display: inline-block;
  margin-bottom: 1.25rem;
  color: var(--amber);
  text-decoration: none;
}

.backlink:hover,
.backlink:focus-visible {
  text-decoration: underline;
}

.monitor {
  max-width: 900px;
  margin: 0 auto;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 0 40px rgba(51, 255, 51, 0.08);
}

.monitor__bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--chrome);
  padding: 0.6rem 0.9rem;
  border-bottom: 1px solid var(--border);
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: inline-block;
}

.dot--red { background: #ff5f56; }
.dot--yellow { background: #ffbd2e; }
.dot--green { background: #27c93f; }

.monitor__title {
  margin-left: 0.75rem;
  color: #888;
  font-size: 0.85em;
}

.monitor__screen {
  position: relative;
  height: clamp(320px, 60vh, 560px);
  padding: clamp(1rem, 3vw, 2rem);
  background:
    repeating-linear-gradient(
      0deg,
      rgba(51, 255, 51, 0.04) 0px,
      rgba(51, 255, 51, 0.04) 1px,
      transparent 1px,
      transparent 3px
    ),
    radial-gradient(ellipse at center, #0d130d 0%, #060906 100%);
}

.term-log {
  height: 100%;
  overflow-y: auto;
  cursor: pointer;
  scroll-behavior: smooth;
}

.term-log:focus-visible {
  outline: none;
  box-shadow: inset 0 0 0 1px rgba(255, 176, 0, 0.35);
}

.term-line {
  margin-bottom: 0.3rem;
  word-break: break-word;
}

.term-prompt {
  color: var(--amber);
}

.term-cmd {
  color: var(--fg);
}

.term-line--pending {
  opacity: 0.55;
}

.term-line--done {
  opacity: 1;
}

.term-output {
  margin: 0 0 0.7rem 0;
  color: #cfe9cf;
}

.output p {
  margin-bottom: 0.9rem;
  max-width: 68ch;
}

.output a {
  color: var(--fg);
}

.cursor {
  display: inline-block;
  width: 0.55em;
  height: 1.1em;
  background: var(--fg);
  vertical-align: text-bottom;
  animation: blink 1s steps(1) infinite;
}

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

.filelist {
  list-style: none;
  max-width: 68ch;
}

.filelist li {
  margin-bottom: 0.5rem;
}

.filelist a {
  color: var(--fg);
}

.filelist__desc {
  color: #9ec99e;
  margin-left: 0.5em;
}

.filelist__placeholder,
.placeholder {
  color: #6b6b6b;
}

.contact p {
  margin-bottom: 0.7rem;
}

.reveal-btn {
  font-family: inherit;
  font-size: 1em;
  background: transparent;
  border: 1px solid var(--fg);
  color: var(--fg);
  padding: 0.25em 0.7em;
  cursor: pointer;
  border-radius: 4px;
}

.reveal-btn:hover,
.reveal-btn:focus-visible {
  background: var(--fg);
  color: #06260a;
}

#email-slot a {
  color: var(--amber);
  margin-left: 0.5em;
}

.hint {
  margin-top: 0.75rem;
  color: #555;
  font-size: 0.8em;
  text-align: center;
}

@media (max-width: 600px) {
  .monitor__title {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cursor {
    animation: none;
    opacity: 1;
  }
}
