/* ============================================================
   1337-tty.css — the 1995 BSD / tcsh layer
   Loads AFTER style.css and 1337-playtest.css. Replaces the
   DOS register (C:\ prompt, CP437 box rules, underscore cursor)
   with a root shell on a BSD box reached over telnet: block
   cursor, ASCII rules, dim PS1 / bright command.
   style.css is untouched; delete this file to revert.
   ============================================================ */

:root {
  --tty-bg:  #050705;
  --tty-fg:  #3ee63e;   /* matches the Calendly text colour */
  --tty-hi:  #c8ff5a;   /* matches the Calendly primary colour */
  --tty-dim: #1f8a2a;
}

/* ---------- the login transcript at the top ---------- */
.tty {
  margin: 0 0 18px;
  padding: 14px 16px;
  background-color: var(--tty-bg);
  background-image: repeating-linear-gradient(
    to bottom, transparent 0 2px, rgba(0,0,0,.28) 2px 3px);
  color: var(--tty-fg);
  border: 1px solid var(--tty-dim);
  font: inherit;
  font-size: 15px;
  line-height: 1.45;
  white-space: pre-wrap;
  overflow-x: auto;
  text-shadow: 0 0 4px rgba(62,230,62,.45);
}
.tty .sys { color: var(--tty-dim); }

/* ---------- prompt + command, used in the transcript and every legend ---------- */
.ps1 { color: var(--tty-dim); font-weight: normal; }
.cmd { color: var(--tty-hi); }
fieldset.box > legend { text-transform: none; letter-spacing: 0; }

/* ---------- VT-style block cursor (the DOS underscore retires) ---------- */
.cursor.block {
  display: inline-block;
  width: .6em;
  height: 1.1em;
  vertical-align: text-bottom;
  background: var(--tty-fg);
  color: transparent;
  animation: tty-blink 1.06s steps(1) infinite;
}
@keyframes tty-blink { 50% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  .cursor.block { animation: none; }
}

/* ---------- ASCII rules instead of CP437 box drawing ---------- */
.rule {
  overflow: hidden;
  white-space: nowrap;
  letter-spacing: 0;
  color: var(--tty-dim);
}

/* ---------- logout at the foot ---------- */
.signoff .sys { display: block; color: var(--tty-dim); }
