@import url('https://fonts.googleapis.com/css2?family=Share+Tech+Mono&family=Courier+Prime:wght@400;700&display=swap');

:root {
  --bg0-hard: #1d2021;
  --bg0:      #282828;
  --bg1:      #3c3836;
  --bg2:      #504945;
  --bg3:      #665c54;
  --bg4:      #7c6f64;
  --fg:       #ebdbb2;
  --fg2:      #d5c4a1;
  --fg3:      #bdae93;
  --fg4:      #a89984;
  --red-b:    #fb4934;
  --green-b:  #b8bb26;
  --yellow-b: #fabd2f;
  --blue-b:   #83a598;
  --aqua:     #689d6a;
  --aqua-b:   #8ec07c;
  --orange-b: #fe8019;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Courier Prime', 'Courier New', monospace;
  font-size: 18px;
  line-height: 1.75;
  background: var(--bg0-hard);
  color: var(--fg);
  min-height: 100vh;
}

/* scanline overlay */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background: repeating-linear-gradient(
    to bottom,
    transparent,
    transparent 2px,
    rgba(0,0,0,0.04) 2px,
    rgba(0,0,0,0.04) 4px
  );
  pointer-events: none;
  z-index: 100;
}

a {
  color: var(--orange-b);
  text-decoration: none;
  transition: color 0.15s;
}
a:hover { color: var(--yellow-b); }

/* ─── NAV ─────────────────────────────────────────────── */
nav {
  background: var(--bg0);
  border-bottom: 1px solid var(--bg2);
  padding: 1rem 2rem;
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-family: 'Share Tech Mono', monospace;
  font-size: 1rem;
  letter-spacing: 0.05em;
  color: var(--yellow-b);
  text-decoration: none;
}
.nav-logo:hover { color: var(--yellow-b); opacity: 0.8; }

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  color: var(--fg4);
  text-decoration: none;
  transition: color 0.15s;
}
.nav-links a:hover,
.nav-links a.active { color: var(--orange-b); }

/* ─── CURSOR ──────────────────────────────────────────── */
.cursor {
  display: inline-block;
  width: 0.55em;
  height: 1em;
  background: var(--yellow-b);
  vertical-align: text-bottom;
  animation: blink 1s step-end infinite;
  margin-left: 2px;
}
@keyframes blink { 50% { opacity: 0; } }

/* ─── TAGS ────────────────────────────────────────────── */
.tag {
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.8rem;
  padding: 0.25rem 0.7rem;
  border: 1px solid var(--bg3);
  color: var(--fg4);
  letter-spacing: 0.06em;
}
.tag.hi { border-color: var(--aqua); color: var(--aqua-b); }

/* ─── DIVIDER ─────────────────────────────────────────── */
.divider {
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.75rem;
  color: var(--bg3);
  text-align: center;
  padding: 2rem 0;
  letter-spacing: 0.1em;
}

/* ─── FOOTER ──────────────────────────────────────────── */
footer {
  text-align: center;
  padding: 3rem 2rem 2rem;
  border-top: 1px solid var(--bg2);
}

.footer-ascii {
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.75rem;
  color: var(--bg3);
  margin-bottom: 0.75rem;
  letter-spacing: 0.1em;
}

footer p {
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.8rem;
  color: var(--bg4);
}

footer p span { color: var(--orange-b); }

/* ─── RESPONSIVE ──────────────────────────────────────── */
@media (max-width: 680px) {
  nav { padding: 0.8rem 1.2rem; }
}

@media (max-width: 420px) {
  .nav-links { display: none; }
}
