/* ── Terminal theme ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:        #0B1E12;
  --bg-panel:  #0e2617;
  --bg-inset:  #08170d;
  --border:    #1c3a26;
  --green:     #3FCE6F;
  --green-dim: #6f8f7a;
  --green-br:  #eafff0;
  --amber:     #F5B942;
  --amber-dim: #b98a2e;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--green);
  font-family: 'Courier New', ui-monospace, Menlo, Monaco, monospace;
  font-size: 15px;
  line-height: 1.7;
  padding-top: 42px;
  -webkit-font-smoothing: antialiased;
}

/* subtle scanline texture */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(
    to bottom,
    rgba(0,0,0,0) 0px,
    rgba(0,0,0,0) 2px,
    rgba(0,0,0,0.12) 3px
  );
  z-index: 50;
  opacity: 0.5;
}

/* ── Top window bar ── */
.term-bar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: var(--bg-panel);
  border-bottom: 1px solid var(--border);
}
.dot { width: 11px; height: 11px; border-radius: 50%; }
.dot.r { background: #e05a4a; }
.dot.y { background: #d9a441; }
.dot.g { background: var(--green); }
.term-bar-title {
  margin-left: 8px;
  font-size: 12px;
  color: var(--green-dim);
}
.term-nav {
  margin-left: auto;
  display: flex;
  gap: 16px;
}
.term-nav a {
  color: var(--amber);
  text-decoration: none;
  font-size: 12px;
}
.term-nav a:hover { text-decoration: underline; }

/* ── Session layout ── */
.session {
  max-width: 820px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 5rem;
}

.cmd {
  color: var(--green-dim);
  margin-top: 2.75rem;
}
.cmd::before { content: '$ '; color: var(--green); }
.cmd:first-of-type { margin-top: 0; }

.out { margin-top: 0.5rem; }

/* ── Hero ── */
.hero-name {
  font-family: 'Share Tech Mono', 'Courier New', monospace;
  color: var(--amber);
  font-size: clamp(2rem, 6.5vw, 3.4rem);
  line-height: 1.1;
  font-weight: 400;
  margin: 0.5rem 0 0.25rem;
  letter-spacing: 0.04em;
}
.hero-tag { color: var(--green); }
.hero-tag::before { content: '// '; color: var(--green-dim); }

.cursor {
  display: inline-block;
  width: 0.6em;
  background: var(--green);
  color: var(--green);
  animation: blink 1.1s step-end infinite;
}
@keyframes blink { 50% { opacity: 0; } }

.typing::after {
  content: '▊';
  color: var(--green);
  animation: blink 1.1s step-end infinite;
}

/* ── About prose ── */
.about-text p { color: var(--green-br); max-width: 68ch; margin-bottom: 0.75rem; }
.about-text p:last-child { margin-bottom: 0; }

/* ── Chat ── */
.chat-out { margin-top: 0.75rem; }
.chat-log {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 0.75rem;
}
.chat-line { max-width: 72ch; }
.chat-line .who { color: var(--amber); }
.chat-line.user .who { color: var(--green-dim); }
.chat-line .txt { color: var(--green-br); }
.chat-line.typing-line .txt { color: var(--green-dim); font-style: italic; }

.chat-input-line {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-inset);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 10px 12px;
}
.chat-input-line .prompt { color: var(--green); }
.chat-input-line input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  color: var(--green-br);
  font-family: inherit;
  font-size: 15px;
  min-width: 0;
}
.chat-input-line input::placeholder { color: var(--green-dim); }

.chat-hints {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 0.6rem;
}
.chat-hint {
  background: none;
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--amber);
  font-family: inherit;
  font-size: 12px;
  padding: 4px 10px;
  cursor: pointer;
}
.chat-hint:hover { background: var(--bg-inset); }
.chat-hint::before { content: '> '; color: var(--green-dim); }

/* ── Portfolio list ── */
.portfolio-out {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 2px 28px;
  margin-top: 0.5rem;
}
.co { color: var(--green-br); }
.co .tag { color: var(--green-dim); font-size: 12px; }
.co::before { content: '– '; color: var(--green-dim); }

/* ── Media ── */
.media-out { margin-top: 0.5rem; }
.media-row {
  display: block;
  text-decoration: none;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--border);
}
.media-row:first-child { border-top: 1px solid var(--border); }
.media-row .m-meta { color: var(--green-dim); font-size: 12px; }
.media-row .m-title { color: var(--amber); }
.media-row:hover .m-title { text-decoration: underline; }

/* ── Vibes ── */
.vibes-out { margin-top: 0.5rem; }
.vibe {
  margin-bottom: 0.9rem;
  max-width: 72ch;
}
.vibe .v-name { color: var(--amber); }
.vibe .v-name::before { content: '# '; color: var(--green-dim); }
.vibe .v-desc { color: var(--green-br); }
.vibe.quote .v-desc { color: var(--green); font-style: italic; }

/* ── Contact ── */
.contact-out { margin-top: 0.5rem; }
.contact-out a {
  color: var(--amber);
  text-decoration: none;
  margin-right: 1.25rem;
}
.contact-out a:hover { text-decoration: underline; }

.foot {
  margin-top: 3rem;
  color: var(--green-dim);
  font-size: 12px;
}

@media (max-width: 560px) {
  .term-nav { display: none; }
  body { font-size: 14px; }
}
