@font-face {
  font-family: "Jet";
  src: url("assets/fonts/JetBrainsMono-ExtraLight.woff2") format("woff2");
  font-display: swap;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: "Jet", monospace;
  background-color: #0a0a0a;
  line-height: 1.6;
  color: rgb(210, 210, 210);
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; }

/* ── Navbar ── */
.navbar {
  width: 100%;
  height: 4vh;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid rgba(255, 0, 212, 0.3);
  border-bottom: 1px solid rgba(255, 0, 212, 0.3);
  background-color: rgba(10, 10, 10, 0.95);
  backdrop-filter: blur(8px);
  position: fixed;
  top: 0;
  transition: top 0.3s;
  z-index: 1000;
  will-change: top;
}

.navbar.hide { top: -300px; }

.nav-brand {
  margin-left: 2vw;
  font-weight: 600;
  color: rgb(255, 0, 212);
}

.nav-links { display: flex; list-style: none; margin-right: 3vw; }

.nav-link {
  color: rgb(148, 255, 33);
  font-weight: 600;
  margin-left: 3vw;
  transition: opacity 0.2s;
}

.nav-link:hover { opacity: 0.7; }

.nav-toggle { display: none; cursor: pointer; padding: 1vw; position: absolute; top: 5px; right: 1vw; }
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after { display: block; width: 25px; height: 3px; background: rgb(255, 0, 212); position: relative; }
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; }
.nav-toggle span::before { top: -8px; }
.nav-toggle span::after { top: 8px; }

/* ── Layout ── */
main {
  width: 95%;
  max-width: 1800px;
  margin: 80px auto 0;
  padding: 20px;
}

.page { display: none; }
.page.active { display: block; }

/* ── Blog header ── */
.blog-header { padding: 2rem 0 1rem; }

.blog-tagline {
  font-size: 0.85rem;
  color: rgb(200, 200, 200);
  line-height: 1.8;
  margin-bottom: 1rem;
}

.separator {
  text-align: center;
  font-size: large;
  font-family: monospace;
  color: rgb(148, 255, 33);
  margin: 20px 0;
}

/* ── Articles list ── */
.articles-list { display: flex; flex-direction: column; }

.article-item {
  opacity: 0;
  animation: fadeIn 0.4s ease-in-out forwards;
  border-top: 1px solid rgba(255, 0, 212, 0.15);
}
.article-item:last-child { border-bottom: 1px solid rgba(255, 0, 212, 0.15); }

.article-link { display: block; padding: 1.8rem 0; transition: padding-left 0.2s; }
.article-link:hover { padding-left: 0.5rem; }
.article-link:hover .article-title {
  color: rgb(148, 255, 33);
}

.article-meta { display: flex; align-items: center; gap: 1rem; margin-bottom: 0.5rem; }
time { font-size: 0.72rem; color: rgba(210, 210, 210, 0.4); letter-spacing: 0.05em; }

.article-tags { display: flex; gap: 0.4rem; flex-wrap: wrap; }
.tag {
  font-size: 0.65rem;
  padding: 0.1rem 0.5rem;
  border: 1px solid rgba(255, 0, 212, 0.5);
  color: rgb(255, 0, 212);
  cursor: pointer;
  transition: all 0.2s;
  letter-spacing: 0.03em;
}
.tag:hover {
  background: rgb(255, 0, 212);
  color: #000;
}

.article-title { font-size: 1rem; font-weight: 200; margin-bottom: 0.5rem; line-height: 1.4; color: rgb(220, 220, 220); transition: color 0.2s; }
.article-excerpt { font-size: 0.78rem; color: rgba(210, 210, 210, 0.6); line-height: 1.7; }

/* ── Tag reset ── */
.tag-reset {
  display: inline-block; margin-top: 1rem;
  font-family: "Jet", monospace; font-size: 0.7rem;
  padding: 0.2rem 0.6rem;
  border: 1px solid rgb(148, 255, 33); background: rgb(148, 255, 33); color: #000;
  cursor: pointer; letter-spacing: 0.05em; transition: all 0.2s;
}
.tag-reset:hover { background: transparent; color: rgb(148, 255, 33); }

/* ── Article full page ── */
.article-full { padding: 2rem 0 4rem; max-width: 800px; margin: 0 auto; }
.article-header { margin-bottom: 2.5rem; padding-bottom: 2rem; border-bottom: 1px solid rgba(255, 0, 212, 0.2); }
.article-header h1 { font-size: 1.5rem; font-weight: 200; line-height: 1.3; margin: 1rem 0 0.8rem; color: rgb(230, 230, 230); }
.article-header .article-excerpt { font-size: 0.85rem; color: rgba(210, 210, 210, 0.6); line-height: 1.8; }

.article-body { font-size: 0.88rem; line-height: 1.9; color: rgb(190, 190, 190); text-align: justify; }
.article-body h2 {
  font-size: 1rem; font-weight: 200; margin: 2.5rem 0 1rem;
  padding-bottom: 0.3rem; border-bottom: 1px solid rgba(255, 0, 212, 0.2);
  color: rgb(255, 0, 212);
}
.article-body p { margin: 1.2rem 0; }
.article-body em { color: rgba(210, 210, 210, 0.85); font-style: italic; }
.article-body a { color: rgb(148, 255, 33); font-weight: bold; position: relative; transition: opacity 0.2s; }
.article-body a:hover { opacity: 0.7; }

.article-body pre {
  background: rgba(255, 0, 212, 0.04);
  border-left: 2px solid rgb(255, 0, 212);
  padding: 1rem 1.2rem; overflow-x: auto; margin: 1.5rem 0; font-size: 0.78rem; line-height: 1.6;
}
.article-body code { font-family: "Jet", monospace; color: rgb(255, 0, 212); }
.article-body blockquote { border-left: 2px solid rgb(148, 255, 33); padding-left: 1.2rem; color: rgba(148, 255, 33, 0.8); margin: 1.5rem 0; }

/* ── Author sig & music ── */
.author-sig {
  font-size: 0.78rem;
  color: rgba(210, 210, 210, 0.4);
  margin-top: 3rem;
  line-height: 1.8;
}
.author-sig a { color: rgb(148, 255, 33); border-bottom: 1px solid rgba(148, 255, 33, 0.3); }
.author-sig a:hover { color: rgb(255, 0, 212); border-color: rgb(255, 0, 212); }

.article-music { margin-top: 3rem; display: flex; justify-content: center; }

.video-container {
  width: 560px;
  max-width: 100%;
  aspect-ratio: 16 / 9;
  border: 1px solid rgba(255, 0, 212, 0.2);
}
.video-container iframe { width: 100%; height: 100%; border: none; display: block; }

/* ── Animations ── */
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

.error { font-size: 0.8rem; color: rgba(210,210,210,0.3); padding: 2rem 0; }

/* ── Responsive ── */
@media (max-width: 768px) {
  .navbar { height: 6vh; }
  .nav-links { display: none; margin: 0; }
  .nav-brand { width: 75vw; margin-block: 1rem; }
  .nav-links.show {
    display: block; position: absolute; top: 5.8vh; right: 0; width: 100%;
    background-color: rgba(10,10,10,0.97);
    margin: 0;
  }
  .nav-item { display: flex; flex-direction: column; align-items: start; }
  .nav-link { display: block; padding: 10px; }
  .nav-toggle { display: block; margin-top: 10px; }
  main { width: 98%; margin-top: 6vh; padding: 12px; }
  .article-header h1 { font-size: 1.2rem; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}
