:root {
  --bg: #07090d;
  --win: #0d1117;
  --bar: #161b22;
  --line: #21262d;
  --fg: #c9d1d9;
  --dim: #6e7681;
  --green: #7ee787;
  --cyan: #79c0ff;
  --yellow: #e3b341;
  --magenta: #d2a8ff;
  --orange: #ffa657;
  --red: #ff7b72;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Consolas, monospace;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 72px;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(ellipse at top, #0d1522 0%, transparent 60%), var(--bg);
  color: var(--fg);
  font: 15px/1.65 var(--mono);
  padding: 32px 16px;
}

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

a {
  color: var(--green);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}
a:focus-visible,
.btn:focus-visible,
input:focus-visible {
  outline: 1px dashed var(--cyan);
  outline-offset: 3px;
}

.scanlines {
  pointer-events: none;
  position: fixed;
  inset: 0;
  background: repeating-linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.018) 0 1px,
    transparent 1px 3px
  );
  z-index: 10;
}

.window {
  max-width: 920px;
  margin: 0 auto;
  background: var(--win);
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.6),
    0 0 0 1px rgba(121, 192, 255, 0.04);
}

.titlebar {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  padding: 10px 16px;
  background: var(--bar);
  border-bottom: 1px solid var(--line);
  border-radius: 10px 10px 0 0;
}
.dots {
  display: flex;
  gap: 7px;
}
.dots i {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #ff5f57;
}
.dots i:nth-child(2) {
  background: #febc2e;
}
.dots i:nth-child(3) {
  background: #28c840;
}
.title {
  color: var(--dim);
  font-size: 13px;
}
.tabs {
  margin-left: auto;
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}
.tabs a {
  color: var(--dim);
  font-size: 13px;
  padding: 2px 8px;
  border-radius: 4px;
}
.tabs a:hover,
.tabs a.active {
  color: var(--cyan);
  background: rgba(121, 192, 255, 0.08);
  text-decoration: none;
}
.tabs a::before {
  content: "./";
  opacity: 0.5;
}

.screen {
  padding: 28px 28px 20px;
}

.block {
  margin-bottom: 44px;
}

.prompt {
  margin: 0 0 10px;
  color: var(--fg);
  word-break: break-word;
}
.user {
  color: var(--cyan);
  font-weight: 600;
}
.path {
  color: var(--green);
  font-weight: 600;
}
.dim {
  color: var(--dim);
}
.hl {
  color: var(--yellow);
}

.cmd::after,
.cursor {
  content: "";
  display: inline-block;
  width: 0.6em;
  height: 1.1em;
  margin-left: 2px;
  vertical-align: text-bottom;
  background: var(--cyan);
  animation: blink 1s steps(1) infinite;
}
.cmd.done::after {
  display: none;
}
@keyframes blink {
  50% {
    opacity: 0;
  }
}

.name {
  margin: 8px 0 2px;
  font-size: clamp(30px, 6vw, 52px);
  line-height: 1.1;
  color: var(--cyan);
  text-shadow: 0 0 18px rgba(121, 192, 255, 0.35);
  letter-spacing: -0.5px;
}
.role {
  margin: 0 0 26px;
  color: var(--magenta);
}
.about {
  margin: 0 0 22px;
  max-width: 72ch;
}

.actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.btn {
  display: inline-block;
  padding: 6px 12px;
  color: var(--bg);
  background: var(--cyan);
  font-weight: 700;
  border-radius: 3px;
}
.btn:hover {
  text-decoration: none;
  filter: brightness(1.1);
}
.btn.ghost {
  background: transparent;
  color: var(--cyan);
  box-shadow: inset 0 0 0 1px var(--cyan);
}

.job {
  border-left: 2px solid var(--line);
  padding: 2px 0 2px 18px;
  margin: 0 0 26px 4px;
  position: relative;
}
.job::before {
  content: "";
  position: absolute;
  left: -6px;
  top: 8px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--win);
  border: 2px solid var(--yellow);
}
.job-head {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}
.hash {
  color: var(--yellow);
}
.tag {
  font-size: 12px;
  padding: 0 6px;
  border-radius: 3px;
  color: var(--green);
  box-shadow: inset 0 0 0 1px var(--green);
}
.tag-blue {
  color: var(--cyan);
  box-shadow: inset 0 0 0 1px var(--cyan);
}
.job h2 {
  margin: 4px 0 0;
  font-size: 16px;
  color: var(--fg);
}
.at {
  color: var(--orange);
  font-weight: 400;
}
.meta {
  margin: 0 0 8px;
  color: var(--dim);
  font-size: 13px;
}
.job ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.job li {
  padding-left: 20px;
  position: relative;
  margin-bottom: 4px;
}
.job li::before {
  content: ">";
  position: absolute;
  left: 2px;
  color: var(--cyan);
}
.job b {
  color: var(--green);
  font-weight: 600;
}

.json {
  margin: 0;
  padding: 16px;
  background: #0a0d12;
  border: 1px solid var(--line);
  border-radius: 6px;
  font: inherit;
  font-size: 14px;
  white-space: pre-wrap;
  word-break: break-word;
}
.json .k {
  color: var(--green);
}
.json .s {
  color: var(--cyan);
}
.json .p {
  color: var(--dim);
}

.ls {
  list-style: none;
  margin: 0;
  padding: 0;
}
.ls li {
  white-space: pre;
  overflow-x: auto;
}
.perm {
  color: var(--dim);
}
.lbl {
  color: var(--magenta);
  display: inline-block;
  width: 10ch;
}

.shell {
  border-top: 1px dashed var(--line);
  padding-top: 22px;
  margin-bottom: 20px;
}
.out {
  white-space: pre-wrap;
  word-break: break-word;
}
.out .line {
  margin: 0 0 4px;
}
.out .err {
  color: var(--red);
}
.out .ok {
  color: var(--cyan);
}
.input-line {
  display: flex;
  gap: 8px;
  align-items: center;
  margin: 0;
}
.input-line label {
  white-space: nowrap;
}
.input-line input {
  flex: 1;
  min-width: 0;
  background: transparent;
  border: 0;
  outline: 0;
  color: var(--fg);
  font: inherit;
  caret-color: var(--cyan);
  padding: 0;
}
.input-line input::placeholder {
  color: var(--dim);
  opacity: 0.6;
}

.foot {
  font-size: 12px;
  text-align: center;
  padding-top: 8px;
  border-top: 1px solid var(--line);
  padding: 14px 0 0;
}

@media (max-width: 640px) {
  body {
    padding: 0;
    font-size: 14px;
  }
  .window {
    border-radius: 0;
    border-left: 0;
    border-right: 0;
  }
  .titlebar {
    border-radius: 0;
  }
  .title {
    display: none;
  }
  .tabs {
    margin-left: 0;
  }
  .screen {
    padding: 20px 16px;
  }
  .ls li {
    white-space: normal;
  }
  .perm {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .cmd::after,
  .cursor {
    animation: none;
  }
}
