:root {
  --bg: #0d0d0d;
  --panel: #111111;
  --ink: #f5f0cc;
  --muted: #b8b39b;
  --yellow: #ffe600;
  --shadow: 8px 8px 0 #000000;
  --max: 1180px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "VT323", monospace;
  font-size: 1.3rem;
  image-rendering: pixelated;
}

/* GRID BACKGROUND */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 14px 14px;
  opacity: 0.2;
  pointer-events: none;
}

/* LAYOUT */
.wrap {
  width: min(calc(100% - 2rem), var(--max));
  margin: auto;
}

/* PIXEL BOX STYLE */
.topbar,
.hero-panel,
.stat-card,
.project-card,
.music-card,
.list-card,
.about-panel,
.contact-box {
  border: 4px solid var(--yellow);
  background: var(--panel);
  box-shadow: var(--shadow);
}

/* NAV */
.topbar {
  display: flex;
  justify-content: space-between;
  padding: 1rem;
  margin: 1rem auto;
}

.brand {
  font-family: "Press Start 2P";
  font-size: 0.8rem;
  color: var(--yellow);
}

.nav-links {
  display: flex;
  gap: 1rem;
}

.nav-links a {
  color: var(--ink);
  text-decoration: none;
}

.nav-links a:hover {
  color: var(--yellow);
}

/* HERO */
.hero-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding: 2rem;
  gap: 2rem;
}

h1, h2, h3 {
  font-family: "Press Start 2P";
  color: var(--yellow);
}

.btn {
  border: 3px solid var(--yellow);
  padding: 0.6rem 1rem;
  font-family: "Press Start 2P";
  text-decoration: none;
  box-shadow: 4px 4px 0 black;
}

.btn.primary {
  background: var(--yellow);
  color: black;
}

/* CARDS */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.project-card .thumb {
  height: 180px;
  background: var(--yellow);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Press Start 2P";
  color: black;
  border-bottom: 4px solid var(--yellow);
}

.card-body {
  padding: 1rem;
}

/* MUSIC */
.music-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.music-card {
  padding: 1rem;
}

/* ANIMATION */
.anim-preview {
  height: 300px;
  border: 4px solid var(--yellow);
  position: relative;
}

.pixel-orb {
  width: 40px;
  height: 40px;
  background: var(--yellow);
  position: absolute;
  animation: move 4s infinite steps(6);
}

@keyframes move {
  0% { transform: translate(0,0); }
  50% { transform: translate(200px,100px); }
  100% { transform: translate(0,0); }
}

/* FOOTER */
.footer {
  display: flex;
  justify-content: space-between;
  padding: 2rem 0;
}

.contact-box a {
  display: block;
  color: var(--ink);
  text-decoration: none;
}

.contact-box a:hover {
  color: var(--yellow);
}

/* RESPONSIVE */
@media (max-width: 800px) {
  .hero-panel,
  .card-grid,
  .music-grid {
    grid-template-columns: 1fr;
  }
}