:root {
  --panel-2: rgba(26, 20, 46, 0.95);
  --text: #f7f2ff;
  --muted: #b8acd0;
  --line: rgba(255, 255, 255, 0.1);
  --pink: #ff4fd8;
  --cyan: #61f4ff;
  --lime: #b6ff6a;
  --yellow: #ffe66d;
  --shadow: 0 0 0 2px rgba(255,255,255,0.06), 0 18px 60px rgba(0,0,0,0.45);
  --max-width: 980px;
}

* {
  box-sizing: border-box;
}



body {
  margin: 0;
  font-family: "VT323", monospace;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(255,79,216,0.12), transparent 28%),
    radial-gradient(circle at top right, rgba(97,244,255,0.11), transparent 25%),
    linear-gradient(180deg, #08060d 0%, #0b0814 50%, #07060b 100%);
}

body.menu-open {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
}

.noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.08;
  background-image:
    linear-gradient(rgba(255,255,255,0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.08) 1px, transparent 1px);
  background-size: 4px 4px;
  z-index: 0;
}

.container {
  width: min(calc(100% - 2rem), var(--max-width));
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

/* nav */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(7, 6, 11, 0.7);
  border-bottom: 1px solid var(--line);
}

.navbar {
  min-height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-tag {
  font-family: "Press Start 2P", cursive;
  font-size: 1.5rem;
  color: var(--yellow);
}

.desktop-nav,
.mobile-nav-links {
  list-style: none;
  display: flex;
  gap: 1rem;
  margin: 0;
  padding: 0;
}

.desktop-nav a,
.mobile-nav-links a {
  font-family: "Press Start 2P", cursive;
  font-size: 0.62rem;
  padding: 0.95rem 1rem;
  border: 2px solid transparent;
}

.desktop-nav a:hover,
.desktop-nav a.active,
.mobile-nav-links a:hover {
  border-color: var(--pink);
  color: var(--pink);
  background: rgba(255,79,216,0.08);
}

.menu-toggle {
  display: none;
  width: 54px;
  height: 54px;
  border: 2px solid var(--line);
  background: rgba(255,255,255,0.03);
  border-radius: 14px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 6px;
}

.menu-toggle span {
  width: 24px;
  height: 3px;
  background: var(--text);
}

.menu-toggle.active span:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

.mobile-menu {
  display: none;
  border-top: 1px solid var(--line);
  background: rgba(10,8,18,0.96);
}

.mobile-menu.open {
  display: block;
}

.mobile-nav-links {
  padding: 1rem;
  flex-direction: column;
}

/* blog */
.blog-page {
  padding: 3rem 0 5rem;
}

.blog-post {
  background: var(--panel-2);
  border: 2px solid rgba(255,255,255,0.08);
  border-radius: 24px;
  box-shadow: var(--shadow);
  padding: clamp(1rem, 4vw, 2rem);
}

.back-link {
  display: inline-block;
  margin-bottom: 2rem;
  font-family: "Press Start 2P", cursive;
  font-size: 0.52rem;
  color: var(--cyan);
}

.section-label {
  font-family: "Press Start 2P", cursive;
  font-size: 0.56rem;
  color: var(--cyan);
  letter-spacing: 0.08em;
}

.post-header h1 {
  margin: 1rem 0;
  font-family: "Press Start 2P", cursive;
  font-size: clamp(1.3rem, 4vw, 2.6rem);
  line-height: 1.45;
}

.post-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin: 1.2rem 0;
}

.post-meta-row span {
  padding: 0.55rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255,255,255,0.03);
  font-family: "Press Start 2P", cursive;
  font-size: 0.45rem;
  color: var(--yellow);
}

.post-intro,
.post-section p,
.post-section li,
.caption {
  font-size: clamp(1.25rem, 1.9vw, 1.55rem);
  line-height: 1.45;
  color: var(--muted);
}

.post-section {
  margin-top: 2.5rem;
}

.post-section h2 {
  margin: 0 0 1rem;
  font-family: "Press Start 2P", cursive;
  font-size: clamp(0.9rem, 2vw, 1.2rem);
  line-height: 1.6;
  color: var(--text);
}

.post-section ul {
  padding-left: 1.2rem;
}

.post-section li {
  margin-bottom: 0.5rem;
}

blockquote {
  margin: 1.5rem 0;
  padding: 1rem;
  border-left: 4px solid var(--pink);
  background: rgba(255,79,216,0.08);
  color: var(--text);
  font-size: clamp(1.3rem, 2vw, 1.65rem);
  line-height: 1.45;
}

.post-image-block {
  margin-top: 2.5rem;
}

.image-placeholder {
  min-height: 360px;
  border-radius: 20px;
  border: 2px dashed rgba(255,255,255,0.16);
  background:
    linear-gradient(135deg, rgba(255,79,216,0.15), rgba(97,244,255,0.08)),
    rgba(255,255,255,0.03);
  display: grid;
  place-items: center;
}

.image-placeholder span {
  font-family: "Press Start 2P", cursive;
  font-size: 0.58rem;
  color: var(--yellow);
}

.caption {
  margin-top: 0.75rem;
  font-size: 1.15rem;
}

.post-footer {
  margin-top: 3rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.blog-btn {
  min-height: 52px;
  padding: 0.9rem 1.15rem;
  border-radius: 14px;
  border: 2px solid rgba(97,244,255,0.4);
  background: rgba(97,244,255,0.08);
  color: var(--cyan);
  font-family: "Press Start 2P", cursive;
  font-size: 0.55rem;
}

.blog-btn.alt {
  border-color: rgba(255,230,109,0.4);
  background: rgba(255,230,109,0.08);
  color: var(--yellow);
}

.blog-btn:hover {
  transform: translateY(-2px);
}

@media (max-width: 768px) {
  .desktop-nav {
    display: none;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .navbar {
    min-height: 74px;
  }

  .image-placeholder {
    min-height: 240px;
  }
}

@media (max-width: 480px) {
  .container {
    width: min(calc(100% - 1rem), var(--max-width));
  }

  .blog-btn {
    width: 100%;
    text-align: center;
    justify-content: center;
  }
}