/* Phosphor CRT Terminal Theme */
:root {
  --background: #000000;
  --foreground: #33ff33;
  --foreground-bright: #66ff66;
  --foreground-dim: #1a991a;
  --border: #1a991a;
  --glow-color: rgba(51, 255, 51, 0.6);
}

::selection {
  background: var(--foreground);
  color: var(--background);
  text-shadow: none;
}

body {
  margin: 0;
  padding: 0;
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Courier New", monospace;
  line-height: 1.6;
  color: var(--foreground);
  background-color: var(--background);
}

/* Terminal container with scanline effect */
.terminal {
  background: var(--background);
  color: var(--foreground);
  text-shadow: 0 0 5px var(--glow-color);
}

.terminal-scanline {
  position: relative;
}

/* Static scanlines overlay */
.terminal-scanline::before {
  content: " ";
  display: block;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.25) 50%);
  background-size: 100% 4px;
  z-index: 2;
  pointer-events: none;
}

/* Animated scanline bar */
.terminal-scanline::after {
  content: " ";
  display: block;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: rgba(51, 255, 51, 0.1);
  box-shadow: 0 0 8px rgba(51, 255, 51, 0.3);
  z-index: 3;
  pointer-events: none;
  animation: scanline 6s linear infinite;
}

@keyframes scanline {
  0% {
    top: 0;
  }
  100% {
    top: 100vh;
  }
}

/* Respect reduced motion preference */
@media (prefers-reduced-motion: reduce) {
  .terminal-scanline::after {
    animation: none;
  }
}

main {
  padding: 2vh 5vw;
  position: relative;
  display: block;
  text-align: left;
  max-width: 800px;
  margin: 0 auto;
  min-height: 100vh;
}

figure {
  margin: 0;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
  margin-bottom: 1rem;
  filter: sepia(100%) hue-rotate(70deg) saturate(200%);
  opacity: 0.9;
}

p {
  margin: 1rem 0;
}

/* Links */
a,
a:link,
a:visited {
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Courier New", monospace;
  font-weight: normal;
  display: inline-block;
  color: var(--foreground-bright);
  text-decoration: none;
  text-shadow: 0 0 5px var(--glow-color);
}

a:hover {
  background: var(--foreground);
  color: var(--background);
  text-decoration: none;
  text-shadow: none;
}
