/* ------------------------------------------------------------------
   Terminal-style personal site — style.css
   Black CRT console look. Mobile friendly.
------------------------------------------------------------------ */

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

:root {
  --bg: #0a0a0a;
  --fg: #e6e6e6;
  --accent: #83e771;   /* prompt green */
  --link: #ffe14d;     /* links */
  --dim: #8a8a8a;
  --font: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
}

html,
body {
  height: 100%;
  background: var(--bg);
}

body {
  color: var(--fg);
  font-family: var(--font);
  font-size: 18px;
  line-height: 1.5;
  overflow: hidden;
}

/* Faint CRT scanlines for flavour (purely decorative). */
#scanlines {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 10;
  background: repeating-linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.02),
    rgba(255, 255, 255, 0.02) 1px,
    transparent 1px,
    transparent 3px
  );
}

::-webkit-scrollbar {
  width: 0 !important;
  height: 0 !important;
}

#console {
  width: 100vw;
  height: 100vh;
  overflow-y: auto;
  padding: 18px 16px 40px;
  overflow-wrap: break-word;
  word-break: break-word;
  cursor: text;
}

#output {
  white-space: pre-wrap;
}

.line {
  min-height: 1.5em;
}

/* Command echo shown above its output. */
.echo {
  color: var(--fg);
}

.prompt {
  color: var(--accent);
  font-weight: 600;
}

/* ---------- input line ---------- */

#input-line {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-top: 2px;
}

#prompt {
  color: var(--accent);
  font-weight: 600;
  white-space: nowrap;
}

#cmdline {
  flex: 1;
  background: transparent;
  color: var(--fg);
  font: inherit;
  caret-color: var(--accent);
  min-width: 0;
}

/* ---------- rich text bits ---------- */

a,
a:visited {
  color: var(--link);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

.dim { color: var(--dim); }
.green { color: var(--accent); }
.orange { color: #ffab5e; }
.cyan { color: #6fd6ff; }
.pink { color: #ff8fd0; }
.magenta { color: #ff6ef0; }

.center { display: block; text-align: center; }
.big { font-size: 1.6em; }
.huge { font-size: 2.4em; }
.small { font-size: 0.75em; }

hr.rule {
  border: 0;
  border-top: 1px dashed #333;
  margin: 10px 0;
}

/* ---------- blinking cursor while booting ---------- */

.cursor::after {
  content: "_";
  animation: flicker 0.8s linear infinite;
}

@keyframes flicker {
  0% { opacity: 0; }
  50% { opacity: 1; }
  100% { opacity: 0; }
}

@media (max-width: 480px) {
  body { font-size: 15px; }
  #console { padding: 14px 12px 32px; }
}
