:root{
  --bg: #020604;
  --fg: #a7ffcb;
  --dim: rgba(167,255,203,.65);
  --line: rgba(0,255,120,.18);
  --glow: rgba(0,255,120,.35);
  --accent: #00ff78;
}

*{ box-sizing: border-box; }
html, body { height: 100%; }
body{
  margin: 0;
  background: radial-gradient(900px 500px at 15% 10%, rgba(0,255,120,.10), transparent 55%),
              radial-gradient(900px 500px at 85% 30%, rgba(0,255,120,.07), transparent 55%),
              var(--bg);
  color: var(--fg);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  line-height: 1.55;
  overflow-x: hidden;
}

/* matrix canvas stays behind content */
#matrix{
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  filter: blur(.2px);
  opacity: .75;
}

/* CRT shell that sits above canvas */
.crt{
  position: relative;
  z-index: 1;
  min-height: 100%;
}

/* subtle scanlines + vignette */
.crt::before{
  content:"";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    repeating-linear-gradient(
      to bottom,
      rgba(255,255,255,.03),
      rgba(255,255,255,.03) 1px,
      rgba(0,0,0,0) 3px,
      rgba(0,0,0,0) 6px
    );
  mix-blend-mode: overlay;
  opacity: .18;
  z-index: 2;
}
.crt::after{
  content:"";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(1200px 600px at 50% 10%, transparent 40%, rgba(0,0,0,.55));
  z-index: 2;
}

.wrap{
  width: min(860px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 2.25rem 0 3rem;
}

.site-header{
  width: min(860px, calc(100% - 2rem));
  margin: 1.25rem auto 0;
  padding: 1rem 1.25rem;
  border: 1px solid var(--line);
  background: rgba(0,0,0,.35);
  backdrop-filter: blur(6px);
  border-radius: 14px;
  box-shadow: 0 0 0 1px rgba(0,255,120,.08), 0 0 24px rgba(0,255,120,.08);
}

.prompt{
  font-size: 1.05rem;
  letter-spacing: .02em;
  text-shadow: 0 0 10px var(--glow);
}
.dim{ color: var(--dim); }
.small{ font-size: .92rem; }
.ok{ color: var(--accent); }

.nav{
  margin-top: .6rem;
  font-size: .95rem;
}
.nav a{
  color: var(--fg);
  text-decoration: none;
  border-bottom: 1px dashed rgba(0,255,120,.25);
}
.nav a:hover{
  color: var(--accent);
  border-bottom-color: rgba(0,255,120,.6);
  text-shadow: 0 0 12px var(--glow);
}
.sep{ padding: 0 .5rem; color: rgba(0,255,120,.35); }

.card{
  margin-top: 1.25rem;
  padding: 1.25rem 1.25rem;
  border: 1px solid var(--line);
  background: rgba(0,0,0,.30);
  backdrop-filter: blur(6px);
  border-radius: 16px;
  box-shadow: 0 0 0 1px rgba(0,255,120,.06), 0 0 26px rgba(0,255,120,.06);
}

.title{
  margin: 0 0 .5rem;
  font-size: 1.25rem;
  text-transform: lowercase;
  letter-spacing: .06em;
}

.section-title{
  margin: 0 0 .75rem;
  font-size: 1.1rem;
  text-transform: lowercase;
  letter-spacing: .08em;
  color: var(--accent);
  text-shadow: 0 0 12px rgba(0,255,120,.22);
}

.lead{
  margin: 0 0 .6rem;
  color: var(--fg);
}

.post{ margin-top: .5rem; }
.post-meta{
  display: flex;
  gap: .6rem;
  align-items: baseline;
  font-size: .92rem;
  color: var(--dim);
}
.tag{
  padding: .1rem .45rem;
  border: 1px solid rgba(0,255,120,.25);
  border-radius: 999px;
  background: rgba(0,255,120,.06);
  color: var(--fg);
}
.post-title{
  margin: .55rem 0 .55rem;
  font-size: 1.15rem;
}

.code{
  margin: .9rem 0;
  padding: .85rem .9rem;
  border: 1px solid rgba(0,255,120,.22);
  border-radius: 12px;
  background: rgba(0,0,0,.55);
  overflow: auto;
  box-shadow: inset 0 0 0 1px rgba(0,255,120,.05);
}
code{
  color: rgba(167,255,203,.92);
}

.links{
  margin: .25rem 0 0;
  padding-left: 1.1rem;
}
.links a{
  color: var(--fg);
  text-decoration: none;
  border-bottom: 1px dashed rgba(0,255,120,.25);
}
.links a:hover{
  color: var(--accent);
  border-bottom-color: rgba(0,255,120,.6);
  text-shadow: 0 0 12px var(--glow);
}

.footer{
  margin-top: 1.2rem;
  padding: .25rem .2rem;
  text-align: center;
}

.typed{
  color: var(--accent);
  text-shadow: 0 0 16px var(--glow);
}
.cursor{
  display: inline-block;
  margin-left: .2rem;
  color: var(--accent);
  opacity: .9;
}
.cursor.blink{
  animation: blink 1.05s steps(1, end) infinite;
}
@keyframes blink{
  50%{ opacity: 0; }
}

/* optional: slightly “fuzzy” glow */
.card, .site-header{
  text-shadow: 0 0 10px rgba(0,255,120,.12);
}

/* reduce motion if user prefers */
@media (prefers-reduced-motion: reduce){
  #matrix{ display: none; }
  .cursor.blink{ animation: none; }
}
