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

:root {
  --bg: #0d1117;
  --text: #e6edf3;
  --dim: #7d8590;
  --accent: #58a6ff;
  --border: #30363d;
  --green: #3fb950;
  --yellow: #d29922;
}

html, body {
  height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: 'SF Mono', 'Fira Code', 'Cascadia Code', 'JetBrains Mono',
               Menlo, Monaco, Consolas, 'Courier New', monospace;
  font-size: 14px;
  line-height: 1.6;
}

/* ── Terminal layout ──────────────────────── */

#terminal {
  max-width: 860px;
  margin: 0 auto;
  padding: 16px 20px;
  min-height: 100vh;
  min-height: 100dvh;
}

/* ── Input line ───────────────────────────── */

#input-line {
  display: flex;
  align-items: center;
  padding: 4px 0 2px;
}

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

#input-wrapper {
  flex: 1;
  position: relative;
}

#terminal-input {
  width: 100%;
  background: transparent;
  border: none;
  outline: none;
  padding: 0;
  margin: 0;
  color: var(--text);
  font: inherit;
  font-size: 16px;
  caret-color: var(--accent);
  position: relative;
  z-index: 1;
}

#autocomplete-ghost {
  position: absolute;
  top: 0;
  left: 0;
  padding: 0;
  margin: 0;
  color: var(--dim);
  pointer-events: none;
  font: inherit;
  font-size: 16px;
  white-space: nowrap;
  opacity: 0.45;
  z-index: 0;
}

/* ── Greeting ─────────────────────────────── */

.greeting-line {
  margin: 1px 0;
}

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

.fun-fact {
  color: var(--dim);
  margin: 8px 0 12px;
  font-style: italic;
  line-height: 1.5;
}

/* ── Command echo ─────────────────────────── */

.command-echo {
  color: var(--dim);
  margin-top: 16px;
}

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

/* ── Output blocks ────────────────────────── */

.output-block {
  margin: 6px 0 12px;
}

.section-header {
  color: var(--accent);
  margin-top: 14px;
  margin-bottom: 2px;
  font-weight: 600;
}

.section-subtitle {
  color: var(--dim);
  margin-bottom: 6px;
}

.bullet {
  padding-left: 18px;
  margin-bottom: 3px;
  text-indent: -14px;
}

.section-gap {
  margin-top: 20px;
}

/* ── Help ──────────────────────────────────── */

.help-row {
  display: flex;
  gap: 12px;
  padding: 1px 0;
}

.help-cmd {
  color: var(--accent);
  min-width: 130px;
  white-space: nowrap;
}

.help-desc {
  color: var(--dim);
}

/* ── Skills ────────────────────────────────── */

.skill-category {
  margin-bottom: 4px;
}

.skill-label {
  color: var(--accent);
}

.skill-items {
  color: var(--text);
}

/* ── Misc content ─────────────────────────── */

.blog-date {
  color: var(--dim);
}

.error-text {
  color: var(--yellow);
}

.success-text {
  color: var(--green);
}

.dim {
  color: var(--dim);
}

.link {
  color: var(--accent);
  text-decoration: none;
}

.link:hover {
  text-decoration: underline;
}

.autocomplete-options {
  color: var(--dim);
  margin: 4px 0;
}

/* ── Selection ────────────────────────────── */

::selection {
  background: var(--accent);
  color: var(--bg);
}

/* ── Responsive ───────────────────────────── */

@media (max-width: 600px) {
  html, body {
    font-size: 13px;
  }

  #terminal {
    padding: 12px 14px;
  }

  .help-row {
    flex-direction: column;
    gap: 0;
    margin-bottom: 4px;
  }

  .help-cmd {
    min-width: auto;
  }

  .help-desc {
    padding-left: 18px;
  }

}
