:root {
  --bg: #05070d;
  --panel: rgba(10, 15, 28, 0.86);
  --cyan: #00f5ff;
  --pink: #ff2bd6;
  --green: #39ff14;
  --text: #d6e2ff;
  --muted: #7f8da3;
  --border: rgba(0, 245, 255, 0.35);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: Consolas, "Courier New", monospace;
  background:
    linear-gradient(rgba(0,245,255,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,43,214,.04) 1px, transparent 1px),
    radial-gradient(circle at top left, rgba(0,245,255,.20), transparent 35%),
    var(--bg);
  background-size: 40px 40px, 40px 40px, auto;
  color: var(--text);
}

.wrap {
  max-width: 1000px;
  margin: 0 auto;
  padding: 50px 22px;
}

.terminal {
  border: 1px solid var(--border);
  background: var(--panel);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 0 30px rgba(0,245,255,.18);
}

.topbar {
  height: 42px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 16px;
  background: rgba(255,255,255,.05);
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.red { background: #ff5f56; }
.yellow { background: #ffbd2e; }
.green { background: #27c93f; }

.titlebar {
  margin-left: 12px;
  color: var(--muted);
  font-size: .9rem;
}

.content {
  padding: 34px;
}

h1 {
  color: var(--cyan);
  margin-top: 0;
  text-shadow:
    0 0 12px rgba(0,245,255,.7),
    2px 2px 0 rgba(255,43,214,.55);
}

h2, h3 {
  color: var(--pink);
}

p, li {
  color: #b7c4d9;
  line-height: 1.7;
}

a {
  color: var(--cyan);
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 28px;
}

.btn {
  color: var(--cyan);
  text-decoration: none;
  border: 1px solid var(--cyan);
  padding: 10px 14px;
  border-radius: 8px;
  background: rgba(0,245,255,.06);
}

.btn:hover {
  background: var(--cyan);
  color: #05070d;
  box-shadow: 0 0 18px rgba(0,245,255,.5);
}

.post-list {
  display: grid;
  gap: 18px;
}

.post-card {
  border: 1px solid rgba(0,245,255,.22);
  background: rgba(255,255,255,.035);
  border-radius: 12px;
  padding: 22px;
}

.post-card:hover {
  border-color: var(--pink);
  box-shadow: 0 0 22px rgba(255,43,214,.20);
}

.post-meta {
  color: var(--muted);
  font-size: .88rem;
  margin: 8px 0 12px;
}

.tag {
  display: inline-block;
  border: 1px solid rgba(57,255,20,.45);
  color: var(--green);
  padding: 3px 8px;
  border-radius: 999px;
  font-size: .78rem;
  margin-right: 6px;
}

.article {
  max-width: 760px;
}

.article code {
  color: var(--green);
  background: rgba(255,255,255,.06);
  padding: 2px 5px;
  border-radius: 4px;
}

pre {
  overflow-x: auto;
  background: rgba(0,0,0,.35);
  border: 1px solid rgba(0,245,255,.2);
  padding: 16px;
  border-radius: 10px;
}

.footer {
  margin-top: 35px;
  color: var(--muted);
  font-size: .9rem;
}

@media (max-width: 700px) {
  .content { padding: 24px; }
}


.article-image {
  width: 100%;
  margin: 30px 0;
  border-radius: 12px;
  border: 1px solid rgba(0,245,255,.25);

  box-shadow:
    0 0 20px rgba(0,245,255,.12),
    0 0 40px rgba(255,43,214,.08);

  transition: 0.25s ease;
}

.article-image:hover {
  transform: scale(1.01);
  border-color: rgba(255,43,214,.5);
}

@media (max-width: 600px) {
  .wrap {
    padding: 24px 12px;
  }

  .content {
    padding: 20px;
  }

  h1 {
    font-size: 2.2rem;
    letter-spacing: -1px;
  }

  h2 {
    font-size: 1.35rem;
  }

  .nav,
  .links {
    flex-direction: column;
  }

  .btn {
    width: 100%;
    text-align: center;
  }

  .post-card {
    padding: 18px;
  }

  pre {
    font-size: 0.82rem;
  }

  .article-image {
    margin: 20px 0;
  }

  .titlebar {
    font-size: 0.75rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}