:root {
  --bg: #0c0e10;
  --fg: #c9d1c4;
  --bright: #e8ecdc;
  --mute: #6f7a74;
  --green: #9ef0a6;
  --amber: #f0c674;
  --amber-dim: #5c4b22;
  --font: "JetBrains Mono", ui-monospace, Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }

html { background: var(--bg); }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  gap: 48px;
  padding: 40px clamp(20px, 6vw, 80px);
  max-width: 1100px;
  margin-inline: auto;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font);
  font-size: 0.95rem;
  line-height: 1.75;
}

a { color: var(--amber); text-decoration: none; border-bottom: 1px solid var(--amber-dim); }
a:hover { background: var(--amber); color: var(--bg); }
a:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }

/* header */
.bar {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px 28px;
  color: var(--mute);
  font-size: 0.8rem;
}
.bar nav { display: flex; gap: 28px; }
.bar nav a { color: var(--fg); border: 0; }
.bar nav a:hover { background: none; color: var(--green); }

/* main */
main { flex: 1; display: flex; flex-direction: column; gap: 34px; }
.row {
  display: grid;
  grid-template-columns: minmax(0, 62ch) 1fr;
  gap: 48px;
}
.term { max-width: 62ch; }
.pic {
  display: flex;
  justify-content: center;
  align-items: center;
}
.line { margin: 0; }
.prompt { color: var(--green); }
.cmd { color: var(--bright); }
.out { margin: 10px 0 34px; }
.row .out:last-child { margin-bottom: 0; }
.out p { margin: 0 0 1em; }
.out p:last-child { margin-bottom: 0; }

.cursor {
  display: inline-block;
  width: 0.6em;
  height: 1.1em;
  background: var(--green);
  vertical-align: text-bottom;
  animation: blink 1.1s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .cursor { animation: none; } }

.avatar {
  flex: none;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  border: 1px solid #2a2f2b;
  object-fit: cover;
  filter: grayscale(1) contrast(1.05);
  transition: filter 0.4s ease;
}
.avatar:hover { filter: none; }

.tag {
  display: inline-block;
  padding: 0 0.6em;
  border: 1px solid var(--green);
  border-radius: 3px;
  color: var(--green);
  font-size: 0.8rem;
  line-height: 1.9;
}

/* footer */
.foot { color: var(--mute); font-size: 0.75rem; max-width: 80ch; }

@media (max-width: 720px) {
  .row { grid-template-columns: 1fr; gap: 32px; }
  .pic { order: -1; }
  .avatar { width: 112px; height: 112px; }
}
