/* vangoethem.dev — terminal-funk theme
   Committed dark aesthetic: it's a shell, shells are dark. */

:root {
  --bg:        #0b0f14;
  --bg2:       #0e141b;
  --chrome:    #161c25;
  --border:    #22303d;
  --fg:        #d6e2ea;
  --muted:     #6c7a89;
  --green:     #33ff99;
  --cyan:      #3ad4ff;
  --magenta:   #ff5cf0;
  --yellow:    #ffd24a;
  --red:       #ff5f56;
  --amber:     #ffbd2e;
  --limedot:   #27c93f;
}

* { box-sizing: border-box; }
html, body { height: 100%; }

body {
  margin: 0;
  display: grid;
  place-items: center;
  padding: 1.5rem;
  color: var(--fg);
  font: 15px/1.6 ui-monospace, "SF Mono", SFMono-Regular, "JetBrains Mono", "Fira Code", Menlo, Consolas, monospace;
  background:
    radial-gradient(900px 500px at 15% -10%, rgba(58,212,255,0.10), transparent 60%),
    radial-gradient(900px 600px at 110% 120%, rgba(255,92,240,0.10), transparent 55%),
    var(--bg);
  background-attachment: fixed;
}

/* Scanline shimmer over the whole viewport for that CRT feel */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(
    to bottom,
    rgba(255,255,255,0.015) 0 1px,
    transparent 1px 3px
  );
  mix-blend-mode: overlay;
}

/* ---- terminal window ---- */
.term {
  width: 100%;
  max-width: 38rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  background: linear-gradient(180deg, var(--bg2), var(--bg));
  box-shadow:
    0 0 0 1px rgba(58,212,255,0.06),
    0 24px 70px -20px rgba(0,0,0,0.8),
    0 0 60px -25px rgba(255,92,240,0.35);
}

.term__bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: var(--chrome);
  border-bottom: 1px solid var(--border);
}

.dot { width: 12px; height: 12px; border-radius: 50%; display: inline-block; }
.dot--r { background: var(--red); }
.dot--y { background: var(--amber); }
.dot--g { background: var(--limedot); }

.term__title {
  margin-left: 10px;
  color: var(--muted);
  font-size: 0.8rem;
  letter-spacing: 0.02em;
}

.term__body { padding: 22px 22px 26px; }

/* ---- prompt lines ---- */
.line { margin: 0 0 0.15rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.line + .name,
.line + .out { margin-top: 0.1rem; }

.prompt { color: var(--green); }
.sep    { color: var(--muted); }
.path   { color: var(--cyan); }
.sigil  { color: var(--magenta); margin: 0 0.5ch; font-weight: 700; }

.name {
  margin: 0.1rem 0 1.1rem;
  font-size: clamp(1.6rem, 5.5vw, 2.4rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.1;
  background: linear-gradient(92deg, var(--cyan), var(--green) 45%, var(--magenta));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 0 26px rgba(58,212,255,0.25);
}

.out { margin: 0.1rem 0 1.1rem; }
.comment { color: var(--muted); font-style: italic; }

/* ---- links ---- */
.links {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0.5rem 0 1.3rem;
}

.link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  text-decoration: none;
  color: var(--fg);
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border);
  border-radius: 9px;
  position: relative;
  transition: transform 0.14s ease, border-color 0.14s ease, box-shadow 0.14s ease, background 0.14s ease;
}
.link::before {
  content: "→";
  color: var(--magenta);
  opacity: 0;
  margin-right: -6px;
  transform: translateX(-4px);
  transition: opacity 0.14s ease, transform 0.14s ease;
}
.link:hover,
.link:focus-visible {
  transform: translateX(4px);
  border-color: var(--cyan);
  background: rgba(58,212,255,0.06);
  box-shadow: 0 0 0 1px rgba(58,212,255,0.25), 0 10px 30px -12px rgba(58,212,255,0.5);
  outline: none;
}
.link:hover::before,
.link:focus-visible::before { opacity: 1; transform: translateX(0); }

.ico { width: 20px; height: 20px; flex: 0 0 auto; color: var(--fg); }
.link:hover .ico { color: var(--cyan); }

.link__text { font-weight: 600; }
.link__slug { margin-left: auto; color: var(--muted); font-size: 0.82rem; }

/* ---- blinking cursor ---- */
.cursor {
  display: inline-block;
  width: 0.6ch;
  height: 1.1em;
  vertical-align: text-bottom;
  background: var(--green);
  box-shadow: 0 0 8px var(--green);
  animation: blink 1.05s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

.noscript {
  margin: 0;
  padding: 22px;
  color: var(--muted);
  font-style: italic;
}

@media (prefers-reduced-motion: reduce) {
  .cursor { animation: none; }
  .link { transition: none; }
}
