/* ── Tokyo Night ──────────────────────────────────── */
:root {
  --bg:        #1a1b26;
  --bg-dark:   #16161e;
  --bg-bar:    #24283b;
  --border:    #292e42;
  --fg:        #c0caf5;
  --fg-dim:    #9aa5ce;
  --muted:     #565f89;
  --green:     #9ece6a;
  --cyan:      #7dcfff;
  --blue:      #7aa2f7;
  --purple:    #9d7cd8;
  --yellow:    #e0af68;
  --red:       #f7768e;
}

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

/* ── Page ─────────────────────────────────────────── */
body {
  min-height: 100vh;
  background: var(--bg-dark);
  color: var(--fg);
  font-family: 'JetBrains Mono', 'Fira Code', 'Courier New', monospace;
  font-size: 14px;
  line-height: 1.75;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2.5rem 1rem;
}

main {
  width: 100%;
  max-width: 760px;
}

/* ── Terminal window ──────────────────────────────── */
.terminal {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  box-shadow:
    0 30px 70px rgba(0, 0, 0, 0.65),
    0 0 0 1px rgba(255, 255, 255, 0.04);
}

/* ── Title bar ────────────────────────────────────── */
.titlebar {
  position: relative;
  background: var(--bg-bar);
  border-bottom: 1px solid var(--border);
  padding: 11px 16px;
  display: flex;
  align-items: center;
  user-select: none;
}

.dots {
  display: flex;
  gap: 7px;
  flex-shrink: 0;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.dot-close    { background: var(--red); }
.dot-minimize { background: var(--yellow); }
.dot-maximize { background: var(--green); }

.titlebar-label {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  font-size: 12px;
  color: var(--muted);
  pointer-events: none;
}

/* ── Terminal body ────────────────────────────────── */
.body {
  padding: 28px 32px 36px;
}

/* ── Prompt line ──────────────────────────────────── */
.prompt { line-height: 1.5; }
.gap    { margin-top: 28px; }

.p-user   { color: var(--green); font-weight: 700; }
.p-at     { color: var(--fg-dim); }
.p-host   { color: var(--green); font-weight: 700; }
.p-dir    { color: var(--cyan); font-weight: 700; }
.p-dollar { color: var(--muted); }
.p-cmd    { color: var(--fg); }
.p-flag   { color: var(--blue); }

/* ── Output blocks ────────────────────────────────── */
.output {
  margin-top: 12px;
  padding-left: 2px;
}

/* whoami */
.out-name {
  font-size: 1.1em;
  font-weight: 700;
  color: var(--blue);
  margin-bottom: 3px;
}

.out-tagline {
  color: var(--cyan);
  margin-bottom: 4px;
}

.output p:not(.out-name):not(.out-tagline):not(.out-heading) {
  color: var(--fg-dim);
}

/* interests */
.out-heading {
  color: var(--yellow);
  font-weight: 700;
  margin-bottom: 8px;
}

.list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.list li {
  color: var(--fg-dim);
  display: flex;
  gap: 10px;
  align-items: baseline;
}

.arrow {
  color: var(--purple);
  flex-shrink: 0;
}

/* contact */
.contacts {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.contact {
  display: grid;
  grid-template-columns: 72px 20px 1fr;
  align-items: baseline;
  gap: 0 4px;
  text-decoration: none;
  color: inherit;
  width: fit-content;
  transition: opacity 0.15s ease;
}

.contact:hover { opacity: 0.65; }

.c-key { color: var(--blue); }
.c-sep { color: var(--muted); }
.c-val { color: var(--cyan); }

.contact:hover .c-val { text-decoration: underline; }

/* ── Cursor ───────────────────────────────────────── */
.cursor {
  color: var(--blue);
  animation: blink 1.1s step-end infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}

/* ── Mobile ───────────────────────────────────────── */
@media (max-width: 580px) {
  body {
    font-size: 12px;
    padding: 0;
    align-items: flex-start;
  }

  main { max-width: 100%; }

  .terminal {
    border-radius: 0;
    border-left: 0;
    border-right: 0;
  }

  .body {
    padding: 18px 16px 28px;
  }

  .contact {
    grid-template-columns: 58px 16px 1fr;
  }
}
