/* ==========================================================================
   obsidian.wtf :: cute retro terminal theme
   No build step, no external deps. Palette pulled from the character:
   burgundy-black background, purple/magenta accents, a little red.
   ========================================================================== */

:root {
  --bg:        #140710;
  --bg-deep:   #0d040a;
  --panel:     #1c0b17;
  --panel-2:   #24101e;
  --line:      #3b1a33;
  --ink:       #f4e8f1;
  --muted:     #b893b0;
  --purple:    #b65cff;
  --magenta:   #ff4fd8;
  --red:       #ff2e4c;
  --glow:      rgba(255, 79, 216, 0.35);

  --mono: ui-monospace, "Cascadia Mono", "SF Mono", Menlo, Consolas,
          "Liberation Mono", "DejaVu Sans Mono", monospace;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 16px;
  line-height: 1.55;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  /* faint pixel-grid dots behind everything */
  background-color: var(--bg);
  background-image:
    radial-gradient(rgba(182, 92, 255, 0.14) 1px, transparent 1.5px);
  background-size: 22px 22px;
}

/* --- CRT overlays: scanlines + soft vignette ---------------------------- */
body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 50;
}
body::before {
  background: repeating-linear-gradient(
    to bottom,
    transparent 0,
    transparent 2px,
    rgba(0, 0, 0, 0.16) 2px,
    rgba(0, 0, 0, 0.16) 4px
  );
  mix-blend-mode: multiply;
}
body::after {
  background: radial-gradient(
    ellipse at center,
    transparent 55%,
    rgba(13, 4, 10, 0.55) 100%
  );
}

a {
  color: var(--magenta);
  text-decoration: none;
}
a:hover, a:focus-visible { text-decoration: underline; }
a:focus-visible {
  outline: 2px dashed var(--magenta);
  outline-offset: 3px;
}

img { display: block; max-width: 100%; }

/* --- The terminal window ------------------------------------------------- */
.crt {
  position: relative;
  max-width: 640px;
  margin: 3rem auto 2.5rem;
  background: var(--panel);
  border: 3px solid var(--purple);
  box-shadow:
    0 0 0 3px var(--bg-deep),
    0 0 0 5px var(--line),
    8px 8px 0 var(--bg-deep),
    0 0 48px var(--glow);
}

.titlebar {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.45rem 0.8rem;
  background: var(--purple);
  color: var(--bg-deep);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.02em;
  border-bottom: 3px solid var(--bg-deep);
}
.titlebar .dots { display: flex; gap: 0.35rem; }
.titlebar .dots i {
  display: block;
  width: 11px; height: 11px;
  border: 2px solid var(--bg-deep);
}
.titlebar .dots i:nth-child(1) { background: var(--red); }
.titlebar .dots i:nth-child(2) { background: var(--magenta); }
.titlebar .dots i:nth-child(3) { background: var(--ink); }
.titlebar .title {
  flex: 1;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.screen { padding: 1.5rem 1.4rem 1.25rem; }

/* --- Boot line + prompts ------------------------------------------------- */
.boot {
  margin: 0 0 1.25rem;
  color: var(--muted);
  font-size: 0.8rem;
}
.boot .ok { color: var(--magenta); }

.prompt {
  margin: 2rem 0 0.9rem;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: 0.02em;
}
.prompt::before {
  content: "$ ";
  color: var(--magenta);
}
.prompt::after {
  content: "";
  display: block;
  height: 2px;
  margin-top: 0.4rem;
  background: repeating-linear-gradient(
    to right, var(--line) 0 6px, transparent 6px 10px
  );
}

/* --- Header / identity --------------------------------------------------- */
.me {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.25rem;
  align-items: center;
}
.avatar {
  width: 132px;
  height: 132px;
  object-fit: cover;
  border: 3px solid var(--magenta);
  box-shadow: 6px 6px 0 var(--purple);
  background: var(--bg-deep);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.avatar:hover {
  transform: translate(-2px, -2px) rotate(-1.5deg);
  box-shadow: 9px 9px 0 var(--purple);
}

.name {
  margin: 0;
  font-size: clamp(1.9rem, 6vw, 2.5rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: 0.01em;
  color: var(--ink);
  text-shadow: 0 0 14px var(--glow);
}
.name::before {
  content: "> ";
  color: var(--magenta);
}

.tagline {
  margin: 0.5rem 0 0;
  color: var(--muted);
  font-size: 0.95rem;
  display: inline-block;
  overflow: hidden;
  white-space: nowrap;
  max-width: 35ch;
  animation: typing 1.3s steps(35, end);
}
@keyframes typing { from { max-width: 0; } }
.tagline::before {
  content: "// ";
  color: var(--purple);
}

/* blinking block cursor */
.cursor {
  display: inline-block;
  width: 0.6em;
  height: 1.05em;
  margin-left: 0.15em;
  vertical-align: text-bottom;
  background: var(--magenta);
  animation: blink 1.1s steps(2, start) infinite;
}
@keyframes blink { to { visibility: hidden; } }

/* --- Links --------------------------------------------------------------- */
.links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem;
}
.link {
  --brand: var(--purple);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 0.75rem;
  background: var(--panel-2);
  border: 2px solid var(--line);
  color: var(--ink);
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  transition: transform 0.12s ease, box-shadow 0.12s ease, border-color 0.12s ease;
}
.link:hover, .link:focus-visible {
  text-decoration: none;
  border-color: var(--brand);
  transform: translate(-2px, -2px);
  box-shadow: 4px 4px 0 var(--brand);
}
.link .chip {
  flex: none;
  display: grid;
  place-items: center;
  width: 36px; height: 36px;
  background: var(--brand);
  border: 2px solid var(--bg-deep);
}
.link .chip img { width: 20px; height: 20px; }
.link .label { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.link .arrow {
  color: var(--muted);
  transition: color 0.12s ease, transform 0.12s ease;
}
.link:hover .arrow, .link:focus-visible .arrow {
  color: var(--brand);
  transform: translateX(3px);
}

/* brand colours for the icon chip + hover shadow */
.link-x         { --brand: #000000; }
.link-telegram  { --brand: #3faee8; }
.link-bluesky   { --brand: #1185fe; }
.link-discord   { --brand: #5865f2; }
.link-steam     { --brand: #0c5085; }
.link-instagram { --brand: #d62976; }
.link-instagram .chip { background: linear-gradient(-135deg, #1400c8, #b900b4, #f50000); }
.link-vrchat    { --brand: #191919; }
.link-onlyyeens { --brand: #00aeef; }
.link-x .chip, .link-vrchat .chip { border-color: var(--line); }

/* --- Gallery ------------------------------------------------------------- */
/* adding art: drop a new figure in the grid, done */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 0.9rem;
}
.art { margin: 0; }
.art a {
  display: block;
  aspect-ratio: 1 / 1;
  background:
    repeating-conic-gradient(var(--panel-2) 0 25%, var(--bg-deep) 0 50%)
    0 0 / 16px 16px;
  border: 2px solid var(--line);
  overflow: hidden;
  transition: border-color 0.12s ease, box-shadow 0.12s ease, transform 0.12s ease;
}
.art a:hover, .art a:focus-visible {
  border-color: var(--magenta);
  box-shadow: 4px 4px 0 var(--purple);
  transform: translate(-2px, -2px);
}
.art img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.art figcaption {
  margin-top: 0.4rem;
  font-size: 0.8rem;
  color: var(--muted);
}
.art figcaption::before { content: "└ "; color: var(--purple); }

/* --- Footer / status bar ------------------------------------------------- */
.statusbar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.25rem 1rem;
  padding: 0.35rem 0.8rem;
  background: var(--bg-deep);
  border-top: 3px solid var(--purple);
  color: var(--muted);
  font-size: 0.75rem;
}
.statusbar span::before { content: "["; color: var(--purple); }
.statusbar span::after  { content: "]"; color: var(--purple); }
/* manpage footer: no brackets, just the three parts spread across */
.statusbar.manpage span::before,
.statusbar.manpage span::after { content: none; }
.statusbar a { color: var(--muted); }
.statusbar a:hover { color: var(--magenta); }

/* --- Small screens ------------------------------------------------------- */
@media (max-width: 560px) {
  .crt { margin: 1rem 0.75rem 1.5rem; box-shadow: 0 0 0 3px var(--bg-deep), 0 0 0 5px var(--line), 0 0 36px var(--glow); }
  .screen { padding: 1.25rem 1rem 1rem; }
  .me { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .avatar { width: 120px; height: 120px; }
  .links { grid-template-columns: 1fr; }
}

