:root {
  --bg: #111;
  --fg: #f4f4f4;
  --link: #88c0d0;
  --border: #444;
  --accent: #ebcb8b;
  --font-mono: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, Courier, monospace;
}

* {
  box-sizing: border-box;
}

body {
  font-family: 'Courier New', Courier, monospace;
  background-color: var(--bg);
  color: var(--fg);
  line-height: 1.6;
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem;
}

a {
  color: var(--link);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

header {
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

header h1 {
  margin: 0 0 0.5rem 0;
  color: var(--accent);
}

nav {
  margin-top: 1rem;
}

article {
  margin-bottom: 3rem;
  padding-bottom: 2rem;
  border-bottom: 1px dashed var(--border);
}

article header {
  border-bottom: none;
  margin-bottom: 1rem;
  padding-bottom: 0;
}

article h2 {
  margin-top: 0;
  margin-bottom: 0.2rem;
}

article time {
  font-size: 0.9em;
  color: #888;
}

.tags {
  margin-top: 0.5rem;
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.tag {
  font-size: 0.8em;
  padding: 0.1rem 0.4rem;
  background-color: var(--border);
  color: var(--accent);
  border-radius: 3px;
}

footer {
  margin-top: 4rem;
  text-align: center;
  font-size: 0.9rem;
  color: #888;
}

code {
  background: #222;
  padding: 0.2rem 0.4rem;
  border-radius: 3px;
}

pre code {
  display: block;
  padding: 1rem;
  overflow-x: auto;
  background: #1a1a1a;
  border: 1px solid var(--border);
}

blockquote {
  border-left: 3px solid var(--link);
  margin: 1rem 0;
  padding-left: 1rem;
  color: #ccc;
  font-style: italic;
}

/* 1. The Glitch Container */
.glitch-title {
  position: relative;
  color: #00ff41;
  font-family: 'Courier New', monospace;
  text-transform: uppercase;
}

/* Subdued Drift Effect */
.glitch-title::before,
.glitch-title::after {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0.6;
}

.glitch-title::before {
  animation: drift 10s infinite ease-in-out;
  color: #00ff41;
  z-index: -1;
}

.glitch-title::after {
  animation: drift 15s infinite ease-in-out reverse;
  color: rgba(0, 255, 65, 0.3);
  z-index: -2;
}

@keyframes drift {

  0%,
  100% {
    transform: translate(0, 0);
  }

  25% {
    transform: translate(1px, 0.5px);
  }

  50% {
    transform: translate(-0.5px, -0.5px);
  }

  75% {
    transform: translate(-1px, 0.5px);
  }
}

#boot-loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: black;
  color: #00ff41;
  font-family: 'Courier New', monospace;
  z-index: 10000;
  /* Above everything including scanlines */
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeOut 0.5s ease-out 2.5s forwards;
  /* 2.5s delay before fade out */
  pointer-events: none;
  /* Allows interaction as soon as it fades */
}

.boot-text p {
  margin: 5px 0;
  overflow: hidden;
  white-space: nowrap;
  border-right: .15em solid #00ff41;
  width: 0;
  animation: typing 0.4s steps(30, end) forwards;
}

/* Delay typing for each line */
.boot-text p:nth-child(2) {
  animation-delay: 0.5s;
}

.boot-text p:nth-child(3) {
  animation-delay: 1.0s;
}

.boot-text p:nth-child(4) {
  animation-delay: 1.5s;
}

.boot-text p:nth-child(5) {
  animation-delay: 2.0s;
  border-right: none;
}

.status {
  color: #fff;
  font-weight: bold;
}

.blink-green {
  animation: blink 0.8s infinite;
}

@keyframes typing {
  from {
    width: 0
  }

  to {
    width: 100%
  }
}

@keyframes fadeOut {
  from {
    opacity: 1;
  }

  to {
    opacity: 0;
    visibility: hidden;
  }
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}