@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@200;300;400;600&family=Pixelify+Sans&family=VT323&display=swap');

/* ===================================================================== */
/* =========================== BASE THEME =============================== */
/* ===================================================================== */

:root {
  font-family: 'IBM Plex Mono', monospace;
  font-weight: 200;
  --bg: #000000;
  --border: #ffffff;
  --text: #ffffff;
  --prompt-default: #A5A7A7;
  --prompt-1: #ffffff;
  --prompt-2: #70FDFF;

  /* CV spacing variables */
  --cv-left: 28px;   /* same indentation as #terminal */
  --cv-right: 18px;  /* small gap from right border */
}

@keyframes typing {
  from { width: 0 }
  to   { width: 100% }
}

html, body {
  color: var(--text);
  background-color: var(--bg);
  height: 100%;
  font-size: 16px;
  display: block;
}

html { overflow: auto; }

body {
  padding: 16px;
  box-sizing: border-box;
}

/* ===================================================================== */
/* =========================== TERMINAL LAYOUT ========================== */
/* ===================================================================== */

main {
  display: block;
  box-sizing: border-box;
  height: 100%;
  border: var(--border) solid 2px;
  border-radius: 2px;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
main::-webkit-scrollbar { display: none; }

p {
  display: block;
  line-height: 22px;
  animation: typing 0.5s steps(30, end);
  white-space: nowrap;       /* default terminal-style for output */
  overflow: hidden;
}

div { line-height: 22px; }

@font-face {
  font-family: ascii;
  src: url("./font/IBMPlexMono-Thin.ttf");
}

pre {
  margin: 0;
  padding: 0;
  line-height: 20px !important;
  color: #ffffff;
  font-family: "ascii", monospace;
}

input {
  font-family: 'IBM Plex Mono', monospace;
  padding: 0;
  margin: 0;
  border: none;
  resize: none;
  outline: none;
  font-size: 16px;
  color: #ffffff;
  caret-color: var(--prompt-default);
  width: 50%;
}

a { color: #ffffff; }
a:hover { background-color: var(--border); color: var(--bg); }

/* ===================================================================== */
/* ============================== BARS ================================= */
/* ===================================================================== */

#bars {
  font-family: 'IBM Plex Mono', sans-serif;
  font-size: 16px;
  position: -webkit-sticky;
  position: sticky;
  width: 100%;
  top: 0;
  background-color: var(--bg);
}

#bar-1 { height: 36px; background-color: var(--border); color: var(--bg); line-height: 36px; padding-left: 10px; }
#bar-2 { height: 4px; background-color: var(--border); margin-top: 1px; }
#bar-3 { height: 3px; background-color: var(--border); margin-top: 2px; }
#bar-4 { height: 2px; background-color: var(--border); margin-top: 3px; }
#bar-5 { height: 1px; background-color: var(--border); margin-top: 4px; }

#terminal { margin-left: 20px; }
#input-line { margin-left: 0; overflow-x: hidden; width: 100%; }

.command {
  text-shadow: 0 0 7px #fff, 0 0 151px var(--border);
  color: #ffffff;
}
.output { font-weight: 400 !important; }
.keys { color: #ffffff; font-weight: 400; }

/* ===================================================================== */
/* ========================= RESPONSIVE BASE ============================ */
/* ===================================================================== */

@media (max-width: 600px) {
  body { font-size: 10px; padding: 2px; font-weight: 300; }
  input { font-size: 10px; }
  p { line-height: 14px; }
  pre { line-height: 12px !important; font-size: 9px; }
  main { border-width: 1px; }
  div { line-height: 14px; }
  #terminal { margin-left: 8px; }
  #input-line { margin-left: 0; }
  :root {
    --cv-left: 20px;
    --cv-right: 10px;
  }
}

/* ===================================================================== */
/* =================== CV (always applies via per-line classes) ========= */
/* ===================================================================== */

/* Shared CV line styling — matches contact indentation */
.cv-p, .cv-li, .cv-h1, .cv-h2, .cv-h3,
.cv-link,
.start-p {
  margin-left: var(--cv-left);
  margin-right: var(--cv-right);
  width: calc(100% - (var(--cv-left) + var(--cv-right)));
  box-sizing: border-box;

  /* wrap + legible */
  white-space: pre-wrap !important;
  overflow: visible !important;
  overflow-wrap: anywhere;
  word-break: break-word;
  line-height: 1.5;
  color: var(--text);
}

/* Paragraph rhythm */
.cv-p  { margin-bottom: .55rem; }
.cv-li { margin-bottom: .50rem; }
.start-p { margin-bottom: .85rem; }

/* Headings */
.cv-h1,
.cv-h2,
.cv-h3 {
  font-weight: 700;
  letter-spacing: .02em;
  line-height: 1.55;
  margin-top: 1.1rem;
  margin-bottom: .45rem;
}

/* Make only H1 uppercase and underlined */
.cv-h1 {
  text-transform: uppercase;
  border-bottom: 1px solid currentColor;
  padding-bottom: .15rem;
}

/* H2 normal case (no uppercase, no underline) */
.cv-h2 {
  text-transform: none;
  border-bottom: none;
  padding-bottom: 0;
}

/* Slightly tighter subhead */
.cv-h3 {
  font-weight: 600;
  margin-top: .9rem;
  margin-bottom: .35rem;
}

/* Compact runs of consecutive paragraphs */
.cv-p + .cv-p,
.cv-li + .cv-p,
.cv-p + .cv-li {
  margin-top: .15rem;
}

/* --- DO NOT animate CV link or loader spacers --- */
.cv-link,
.no-typing {
  animation: none !important;
  white-space: normal !important;
  overflow: visible !important;
}

.static-banner {
  animation: none !important;
}

/* Hard-kill any pseudo content or list markers around the link line */
.cv-link::before,
.cv-link::after,
.cv-link a::before,
.cv-link a::after {
  content: none !important;
}
.cv-link {
  list-style: none !important;
  quotes: none !important;
  display: block;
  margin-bottom: 0.75rem;
}

.cv-link a {
  color: #fff;
  text-decoration: underline;
}
.cv-link a:hover {
  background-color: #fff;
  color: #000;
}
