:root {
  --bg:      #0d1117;
  --fg:      #c9d1d9;
  --dim:     #6e7681;
  --accent:  #7ee787;   /* prompt green */
  --link:    #79c0ff;
  --warn:    #ffa657;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--fg);
  font-family: "JetBrains Mono", "Fira Code", "SFMono-Regular",
               Consolas, "Liberation Mono", monospace;
  font-size: 15px;
  line-height: 1.55;
  padding: 2.5rem 1.25rem;
}

.window {
  max-width: 860px;
  margin: 0 auto;
  background: #0b0f14;
  border: 1px solid #21262d;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,.5);
}

.titlebar {
  display: flex; gap: .5rem; align-items: center;
  padding: .5rem .75rem;
  background: #161b22;
  border-bottom: 1px solid #21262d;
  font-size: 12px; color: var(--dim);
}
.dot { width: 12px; height: 12px; border-radius: 50%; }
.dot.r { background: #ff5f56; }
.dot.y { background: #ffbd2e; }
.dot.g { background: #27c93f; }

.term { padding: 1.25rem 1.5rem; }

.prompt { color: var(--accent); }
.prompt::before { content: "$ "; color: var(--dim); }
.prompt.user::before {
  content: "mike-pech@blog:~$ ";
  color: var(--dim);
}

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

h1, h2, h3 { font-weight: 600; color: #e6edf3; }

h2::before {
  content: "## ";
  color: var(--dim);
  font-weight: 400;
}

code {
  background: #161b22;
  border: 1px solid #21262d;
  padding: 0 .3em;
  border-radius: 4px;
  font-size: .9em;
}

pre {
  background: #161b22;
  border: 1px solid #21262d;
  padding: 1rem;
  border-radius: 6px;
  overflow-x: auto;
}

/* The blink is the soul of the terminal look */
.cursor {
  display: inline-block;
  width: 0.6ch;
  height: 1.05em;
  background: var(--accent);
  vertical-align: -0.15em;
  animation: blink 1s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

/* Optional scanline / phosphor glow */
.scan::after {
  content: "";
  position: absolute; inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(
    to bottom, transparent 0 3px,
    rgba(255,255,255,.02) 3px 4px
  );
}

.post-meta { color: var(--dim); font-size: .85em; }
