@import url('https://fonts.googleapis.com/css2?family=VT323&family=IBM+Plex+Mono:ital,wght@0,300;0,400;0,500;0,700;1,400&display=swap');

:root {
  --bg:           #080808;
  --bg-card:      #0e0e0e;
  --bg-hover:     #141414;
  --text:         #c4c4bc;
  --text-dim:     #555550;
  --text-muted:   #2a2a28;
  --accent:       #00cc44;
  --accent-glow:  rgba(0, 204, 68, 0.18);
  --accent-dim:   #004d1a;
  --amber:        #f5a623;
  --amber-glow:   rgba(245, 166, 35, 0.15);
  --border:       #1a1a1a;
  --border-light: #242424;
}

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

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 15px;
  line-height: 1.75;
  min-height: 100vh;
}

::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--accent-dim); }
::selection { background: var(--accent); color: #000; }

/* ── NOISE GRAIN ── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 9999;
  opacity: 0.4;
}

/* ── SCANLINES ── */
.scanlines { position: relative; overflow: hidden; }
.scanlines::after {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 3px,
    rgba(0,0,0,0.06) 3px,
    rgba(0,0,0,0.06) 4px
  );
  pointer-events: none;
  z-index: 1;
}

/* ── NAV ── */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(8,8,8,0.96);
  border-bottom: 1px solid var(--border-light);
  backdrop-filter: blur(8px);
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
}

.nav-logo {
  font-family: 'VT323', monospace;
  font-size: 1.8rem;
  color: var(--accent);
  text-decoration: none;
  text-shadow: 0 0 12px var(--accent-glow), 0 0 24px var(--accent-glow);
}
.nav-logo span { color: var(--text-dim); font-size: 1rem; }

.nav-links { display: flex; gap: 2rem; list-style: none; }
.nav-links a {
  color: var(--text-dim);
  text-decoration: none;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: color 0.2s, text-shadow 0.2s;
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--accent);
  text-shadow: 0 0 8px var(--accent-glow);
}

.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 4px; }
.hamburger span { display: block; width: 22px; height: 2px; background: var(--text-dim); transition: 0.3s; }

/* ── HERO ── */
.hero {
  min-height: 88vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 6rem 2rem 4rem;
  max-width: 900px;
  margin: 0 auto;
}

.hero-prompt {
  font-family: 'VT323', monospace;
  font-size: 1rem;
  color: var(--accent);
  text-shadow: 0 0 10px var(--accent-glow);
  letter-spacing: 0.06em;
  margin-bottom: 1.5rem;
  opacity: 0;
  animation: fadeUp 0.6s ease forwards 0.2s;
}

.hero h1 {
  font-family: 'VT323', monospace;
  font-size: clamp(4rem, 12vw, 9rem);
  color: var(--accent);
  text-shadow: 0 0 20px var(--accent-glow), 0 0 60px rgba(0,204,68,0.08);
  line-height: 0.9;
  margin-bottom: 2rem;
  opacity: 0;
  animation: fadeUp 0.7s ease forwards 0.4s;
}

.hero h1 .cursor {
  display: inline-block;
  width: 0.45em;
  height: 0.65em;
  background: var(--accent);
  margin-left: 4px;
  vertical-align: text-top;
  position: relative;
  top: 0.22em;
  animation: blink 1.1s step-end infinite;
  box-shadow: 0 0 12px var(--accent);
}

.hero-sub {
  font-size: 1rem;
  color: var(--text-dim);
  max-width: 600px;
  margin-bottom: 3rem;
  line-height: 1.9;
  opacity: 0;
  animation: fadeUp 0.7s ease forwards 0.6s;
}
.hero-sub strong { color: var(--amber); }

.hero-cta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeUp 0.7s ease forwards 0.8s;
}

/* ── BUTTONS ── */
.btn {
  display: inline-block;
  padding: 0.65rem 1.5rem;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid var(--accent);
  color: var(--accent);
  background: transparent;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}
.btn:hover { background: var(--accent); color: #000; box-shadow: 0 0 20px var(--accent-glow); }
.btn-amber { border-color: var(--amber); color: var(--amber); }
.btn-amber:hover { background: var(--amber); color: #000; box-shadow: 0 0 20px var(--amber-glow); }

/* ── SECTION ── */
.section { max-width: 900px; margin: 0 auto; padding: 5rem 2rem; }

.section-label {
  font-family: 'VT323', monospace;
  font-size: 0.85rem;
  letter-spacing: 0.2em;
  color: var(--accent);
  text-shadow: 0 0 8px var(--accent-glow);
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.section h2 {
  font-family: 'VT323', monospace;
  font-size: clamp(2rem, 5vw, 3.5rem);
  color: var(--text);
  line-height: 1;
  margin-bottom: 1.5rem;
}
.section p { color: var(--text-dim); max-width: 640px; margin-bottom: 1.5rem; }

.divider { border: none; border-top: 1px solid var(--border); margin: 0; }

/* ── POST CARDS ── */
.post-grid { display: grid; gap: 1px; background: var(--border); border: 1px solid var(--border); }

.post-card {
  background: var(--bg);
  padding: 2rem;
  text-decoration: none;
  display: block;
  transition: background 0.2s;
  position: relative;
}
.post-card::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: var(--accent-dim);
  transition: background 0.2s, box-shadow 0.2s;
}
.post-card:hover { background: var(--bg-hover); }
.post-card:hover::before { background: var(--accent); box-shadow: 2px 0 12px var(--accent-glow); }

.post-meta {
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 0.6rem;
  display: flex;
  gap: 1.5rem;
}
.post-meta .tag { color: var(--accent); opacity: 0.7; }

.post-card h3 {
  font-family: 'VT323', monospace;
  font-size: 1.7rem;
  color: var(--text);
  line-height: 1.1;
  margin-bottom: 0.75rem;
  transition: color 0.2s;
}
.post-card:hover h3 { color: var(--accent); }
.post-card p { font-size: 0.85rem; color: var(--text-dim); line-height: 1.7; max-width: 600px; }

.read-more {
  display: inline-block;
  margin-top: 1rem;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  opacity: 0;
  transition: opacity 0.2s;
}
.post-card:hover .read-more { opacity: 1; }

/* ── TERMINAL BOX ── */
.terminal {
  background: #000;
  border: 1px solid var(--border-light);
  border-left: 3px solid var(--accent);
  padding: 1.5rem 1.75rem;
  margin: 2rem 0;
}
.terminal-bar { display: flex; gap: 6px; margin-bottom: 1rem; }
.terminal-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--text-muted); }
.terminal pre {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.8rem;
  color: var(--accent);
  line-height: 1.6;
  white-space: pre-wrap;
  text-shadow: 0 0 6px var(--accent-glow);
}

/* ── TIMELINE ── */
.timeline { position: relative; padding-left: 2rem; }
.timeline::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 1px;
  background: linear-gradient(to bottom, var(--accent), var(--accent-dim), transparent);
}
.timeline-item { position: relative; padding-bottom: 3rem; padding-left: 1.5rem; }
.timeline-item::before {
  content: '';
  position: absolute;
  left: -2rem; top: 0.35rem;
  width: 9px; height: 9px;
  border: 1px solid var(--accent);
  background: var(--bg);
  box-shadow: 0 0 8px var(--accent-glow);
}
.timeline-year {
  font-family: 'VT323', monospace;
  font-size: 2.5rem;
  color: var(--accent);
  text-shadow: 0 0 12px var(--accent-glow);
  line-height: 1;
  margin-bottom: 0.25rem;
}
.timeline-item h3 { font-family: 'VT323', monospace; font-size: 1.5rem; color: var(--text); margin-bottom: 0.5rem; }
.timeline-item p { font-size: 0.85rem; color: var(--text-dim); max-width: 580px; }

/* ── GALLERY ── */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}
.gallery-item { background: var(--bg-card); padding: 1.75rem; transition: background 0.2s; }
.gallery-item:hover { background: var(--bg-hover); }
.gallery-item .artifact-type { font-size: 0.65rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--accent); margin-bottom: 0.6rem; }
.gallery-item h3 { font-family: 'VT323', monospace; font-size: 1.4rem; color: var(--text); margin-bottom: 0.5rem; line-height: 1.1; }
.gallery-item p { font-size: 0.8rem; color: var(--text-dim); line-height: 1.65; }
.artifact-placeholder {
  width: 100%; height: 140px;
  background: #050505;
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1rem;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.78rem;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  text-align: center;
  padding: 1rem;
  line-height: 1.7;
}

/* ── POST PAGE ── */
.post-header { max-width: 760px; margin: 0 auto; padding: 5rem 2rem 3rem; }
.post-header h1 {
  font-family: 'VT323', monospace;
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  line-height: 1;
  color: var(--text);
  margin-bottom: 1.5rem;
}
.post-header .lede {
  font-size: 1rem;
  color: var(--amber);
  font-style: italic;
  line-height: 1.7;
  border-left: 3px solid var(--amber);
  padding-left: 1.25rem;
}

.post-body { max-width: 760px; margin: 0 auto; padding: 0 2rem 6rem; }
.post-body p { margin-bottom: 1.5rem; color: var(--text); font-size: 0.9rem; line-height: 1.9; }
.post-body h2 {
  font-family: 'VT323', monospace;
  font-size: 2rem;
  color: var(--accent);
  text-shadow: 0 0 10px var(--accent-glow);
  margin: 3rem 0 1rem;
}
.post-body blockquote {
  border-left: 3px solid var(--accent-dim);
  padding: 1rem 1.5rem;
  margin: 2rem 0;
  background: #000;
  color: var(--text-dim);
  font-style: italic;
  font-size: 0.9rem;
}
.post-body .highlight { color: var(--amber); }

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
  text-decoration: none;
  margin-bottom: 2rem;
  transition: color 0.2s;
}
.back-link:hover { color: var(--accent); }
.back-link::before { content: '←'; }

/* ── ABOUT ── */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: start; }
.stat-block { border-top: 1px solid var(--border-light); padding-top: 1.5rem; margin-top: 1.5rem; }
.stat-block .stat-num { font-family: 'VT323', monospace; font-size: 3.5rem; color: var(--accent); text-shadow: 0 0 12px var(--accent-glow); line-height: 1; }
.stat-block .stat-label { font-size: 0.72rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--text-dim); }

/* ── FOOTER ── */
footer {
  border-top: 1px solid var(--border);
  padding: 2.5rem 2rem;
  text-align: center;
  font-size: 0.72rem;
  color: var(--text-muted);
  letter-spacing: 0.08em;
}
footer a { color: var(--text-dim); text-decoration: none; transition: color 0.2s; }
footer a:hover { color: var(--accent); }
footer .footer-logo { font-family: 'VT323', monospace; font-size: 1.4rem; color: var(--accent-dim); display: block; margin-bottom: 0.75rem; text-shadow: 0 0 8px var(--accent-glow); }

/* ── ANIMATIONS ── */
@keyframes blink { 0%,100% { opacity:1; } 50% { opacity:0; } }
@keyframes fadeUp { from { opacity:0; transform:translateY(16px); } to { opacity:1; transform:translateY(0); } }

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 56px; left: 0; right: 0;
    background: rgba(8,8,8,0.98);
    flex-direction: column;
    padding: 1.5rem 2rem;
    border-bottom: 1px solid var(--border);
    gap: 1.25rem;
  }
  .nav-links.open { display: flex; }
  .hamburger { display: flex; }
  .about-grid { grid-template-columns: 1fr; gap: 2rem; }
  .hero { padding: 4rem 1.5rem 3rem; }
  .section { padding: 3rem 1.5rem; }
  .post-header, .post-body { padding-left: 1.5rem; padding-right: 1.5rem; }
}
