:root {
  --font-family: 'Departure Mono', monospace;
}

.index-content h1 {
  font-size: 3rem;
  line-height: 1.1;
  margin-bottom: 0.5rem;
  font-weight: bold;
  color: var(--accent);
}

body, code, pre, .logo, .menu, .post-title, .post-content {
  font-family: 'Departure Mono', monospace;
}

/* CRT scanline overlay */
body::after {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 9999;
  background: repeating-linear-gradient(
    to bottom,
    transparent 0px,
    transparent 1px,
    rgba(0, 0, 0, 0.04) 1px,
    rgba(0, 0, 0, 0.04) 2px
  );
}

/* phosphor glow on menu hover */
.menu a:hover {
  text-shadow: 0 0 8px var(--accent);
}

/* blinking cursor in logo */
.logo a::after {
  content: '';
  animation: blink 1s step-end infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

/* back to blog button */
.back-to-blog {
  display: inline-block;
  margin-bottom: 2rem;
  color: var(--accent);
  text-decoration: none;
  opacity: 0.7;
}

.back-to-blog:hover {
  opacity: 1;
  text-shadow: 0 0 8px var(--accent);
}

/* tighter article spacing */
.post.on-list {
  padding-top: 2px;
  margin-top: 0;
}

/* tighter post list spacing */
.post.on-list .post-tags {
  margin-bottom: 4px;
}

.post.on-list .post-content {
  margin-top: 8px;
}

/* sticky footer */
.content {
  flex: 1;
}

.footer {
  margin-top: 12rem;
}

/* homepage hero — fills space between header and footer, centers the stack */
.home-hero {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* homepage profile */
.home-profile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  text-align: center;
}

.profile-photo {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  border: 2px solid var(--accent);
  object-fit: cover;
  filter: grayscale(15%);
}

.home-quote {
  margin: 0;
  opacity: 0.85;
}

.home-socials {
  display: flex;
  gap: 1.2rem;
  flex-wrap: wrap;
}

.home-socials a {
  color: var(--accent);
  text-decoration: none;
}

.home-socials a:hover {
  text-shadow: 0 0 8px var(--accent);
}
