/* =====================================================================
   DIGITAL GARDEN — grunge / pixel / terminal theme
   Edit the :root variables below to recolor the whole site at once.
   ===================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&family=VT323&display=swap');

:root {
  --bg:        #0b0b0f;
  --bg-2:      #13131a;
  --panel:     #16161f;
  --fg:        #cfcfd6;
  --muted:     #6f6f7d;
  --accent:    #00ff9c;  /* acid green  */
  --accent-2:  #ff2e63;  /* hot magenta */
  --accent-3:  #7df9ff;  /* cyan        */
  --line:      #2a2a36;
  --glow:      0 0 6px currentColor;
  --font-head: 'Press Start 2P', 'Courier New', monospace;
  --font-body: 'VT323', 'Courier New', monospace;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 22px;
  line-height: 1.5;
  min-height: 100vh;
  position: relative;
  background-image:
    radial-gradient(circle at 50% -10%, rgba(0,255,156,0.06), transparent 55%),
    radial-gradient(circle at 50% 110%, rgba(255,46,99,0.06), transparent 55%);
}

/* CRT scanline overlay — purely decorative, ignores clicks */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.45;
  background: repeating-linear-gradient(
    to bottom,
    rgba(0,0,0,0)   0px,
    rgba(0,0,0,0)   2px,
    rgba(0,0,0,0.30) 3px,
    rgba(0,0,0,0.30) 4px
  );
  mix-blend-mode: multiply;
}

a {
  color: var(--accent-3);
  text-decoration: none;
  border-bottom: 1px dotted var(--accent-3);
}
a:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
  text-shadow: var(--glow);
}

.wrap {
  max-width: 780px;
  margin: 0 auto;
  padding: 28px 20px 90px;
  position: relative;
  z-index: 1;
}

/* ---------- header / nav ---------- */
.site-header {
  border: 1px solid var(--line);
  background: var(--panel);
  padding: 16px 18px;
  margin-bottom: 28px;
}
.logo {
  font-family: var(--font-head);
  font-size: 16px;
  color: var(--accent);
  text-shadow: var(--glow);
  margin: 0 0 4px;
  letter-spacing: 1px;
}
.tagline {
  color: var(--muted);
  font-size: 18px;
  margin: 0;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
  border-top: 1px dashed var(--line);
  padding-top: 12px;
}
.nav a {
  font-family: var(--font-head);
  font-size: 10px;
  color: var(--fg);
  border: 1px solid var(--line);
  padding: 7px 9px;
  background: var(--bg-2);
}
.nav a:hover {
  color: var(--accent);
  border-color: var(--accent);
  box-shadow: var(--glow);
}
.nav a.active {
  color: var(--bg);
  background: var(--accent);
  border-color: var(--accent);
}

/* ---------- headings ---------- */
h1, h2, h3 {
  font-family: var(--font-head);
  color: var(--accent);
  text-shadow: var(--glow);
  line-height: 1.5;
}
h1 { font-size: 22px; margin: 0 0 18px; }
h2 { font-size: 15px; margin: 34px 0 14px; }
h3 { font-size: 12px; color: var(--accent-3); }

p { margin: 0 0 16px; }
.muted { color: var(--muted); }

/* blinking cursor / block */
.blink {
  display: inline-block;
  color: var(--accent);
  animation: blink 1.1s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

/* ---------- panels / cards ---------- */
.panel {
  border: 1px solid var(--line);
  background: var(--panel);
  padding: 18px;
  margin: 0 0 22px;
}
.panel.alt { background: var(--bg-2); }

/* ---------- note list (garden) ---------- */
.note-list { list-style: none; padding: 0; margin: 0; }
.note-list li {
  border-left: 3px solid var(--accent-2);
  padding: 10px 14px;
  margin: 0 0 12px;
  background: var(--bg-2);
}
.note-list li:hover { border-left-color: var(--accent); }
.note-list .title { font-size: 24px; }
.note-list .meta { color: var(--muted); font-size: 17px; }
.tags { margin-top: 6px; }
.tag {
  display: inline-block;
  font-size: 15px;
  color: var(--accent-3);
  border: 1px solid var(--line);
  padding: 1px 7px;
  margin: 2px 4px 2px 0;
  cursor: pointer;
}
.tag:hover, .tag.active {
  color: var(--bg);
  background: var(--accent-3);
  border-color: var(--accent-3);
}

/* ---------- terminal block ---------- */
.terminal {
  border: 1px solid var(--accent);
  background: #05060a;
  padding: 16px 18px;
  box-shadow: var(--glow);
  font-size: 20px;
}
.terminal .prompt { color: var(--accent); }
.terminal .out { color: var(--fg); }

/* ---------- blockquote ---------- */
blockquote {
  margin: 0 0 16px;
  padding: 8px 16px;
  border-left: 3px solid var(--accent-3);
  color: var(--muted);
  background: var(--bg-2);
}

hr {
  border: none;
  border-top: 1px dashed var(--line);
  margin: 30px 0;
}

/* ---------- footer ---------- */
.site-footer {
  margin-top: 50px;
  padding-top: 18px;
  border-top: 1px dashed var(--line);
  color: var(--muted);
  font-size: 17px;
  text-align: center;
}

/* ---------- glitch title ---------- */
.glitch { position: relative; }
.glitch::before, .glitch::after {
  content: attr(data-text);
  position: absolute;
  left: 0; top: 0;
  width: 100%;
  overflow: hidden;
  pointer-events: none;
}
.glitch::before { color: var(--accent-2); transform: translate(-2px,0); clip-path: inset(0 0 55% 0); opacity: 0; }
.glitch::after  { color: var(--accent-3); transform: translate(2px,0);  clip-path: inset(55% 0 0 0); opacity: 0; }
.glitch:hover::before { opacity: .8; animation: glitch1 .4s steps(2) infinite; }
.glitch:hover::after  { opacity: .8; animation: glitch2 .4s steps(2) infinite; }
@keyframes glitch1 { 50% { transform: translate(2px,-1px); } }
@keyframes glitch2 { 50% { transform: translate(-2px,1px); } }

/* ---------- responsive ---------- */
@media (max-width: 520px) {
  body { font-size: 20px; }
  .logo { font-size: 13px; }
  .nav a { font-size: 9px; }
}
