body {
  margin: 0;
  padding: 0;
  font-family: 'Spectral', serif;
  background: #111 center no-repeat url("../files/platitude.gif");
  background-size:cover;
  color: #e0dfdc;
  font-size: 16px;
  line-height: 1.6;
}

a {
  color: #cfcfcf;
  text-decoration: none;
  border-bottom: 1px dashed #555;
}
a:hover {
  color: #fff;
  border-color: #999;
}

.page-wrap {
  max-width: 860px;
  margin: 0 auto;
  padding: 2rem;
  background: rgba(0, 0, 0, 0.888);
  border: 1px solid #333;
  box-shadow: 0 0 10px #000;
}

header h1 {
  font-family: 'VT323', monospace;
  font-size: 4rem;
  text-align: center;
  color: #fffae3;
  margin-bottom: 0.5rem;
}

nav {
  display: flex;
  justify-content: center;
  gap: 1.2rem;
  margin-bottom: 2rem;
  font-family: 'VT323', monospace;
  font-size: 1.5rem;
  text-transform: lowercase;
}

.intro {
  font-size: 1.1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #333;
}

.section-blurb {
  margin-top: 2rem;
}

.section-blurb h2 {
  font-family: 'VT323', monospace;
  font-size: 1.8rem;
  color: #f4f1ed;
  border-bottom: 1px solid #444;
  padding-bottom: 0.3rem;
  margin-bottom: 0.5rem;
}

ul {
  list-style: square;
  padding-left: 1.5rem;
}

.ascii-endcap pre {
  background: #000;
  padding: 1rem;
  font-family: monospace;
  font-size: 0.85rem;
  color: #aaa;
  border: 1px solid #333;
  margin-top: 2rem;
  white-space: pre-wrap;
}

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

.terminal-text {
  font-family: 'VT323', monospace;
  color: #00ff99;
  text-shadow: 0 0 5px #00ff99, 0 0 10px #007755;
}

.glitch {
  position: relative;
  display: inline-block;
  color: #65c6ed;
  text-shadow: 0 0 2px #0f0;
  cursor: pointer;
}

.glitch:hover::before,
.glitch:hover::after {
  content: attr(data-text);
  position: absolute;
  left: 0;
  width: 100%;
  overflow: hidden;
}

.glitch:hover::before {
  top: -2px;
  color: #f0f;
  z-index: -1;
  animation: glitchTop 0.2s infinite;
}

.glitch:hover::after {
  top: 2px;
  color: #0ff;
  z-index: -1;
  animation: glitchBot 0.2s infinite;
}

@keyframes glitchTop {
  0% { transform: translateX(0); }
  20% { transform: translateX(-2px); }
  40% { transform: translateX(2px); }
  60% { transform: translateX(-1px); }
  80% { transform: translateX(1px); }
  100% { transform: translateX(0); }
}

@keyframes glitchBot {
  0% { transform: translateX(0); }
  20% { transform: translateX(2px); }
  40% { transform: translateX(-2px); }
  60% { transform: translateX(1px); }
  80% { transform: translateX(-1px); }
  100% { transform: translateX(0); }
}

.redacted-bar {
  display: inline-block;
  width: 160px;
  height: 1.1em;
  background: linear-gradient(
      90deg,
      #fff 0%, #ccc 20%, #eee 40%, #ccc 60%, #fff 80%, #ccc 100%
  );
  background-size: 200% 100%;
  animation: static-glitch 0.3s infinite linear;
  box-shadow: 0 0 1px #fff;
  vertical-align: middle;
  cursor: help;
  position: relative;
  top: -0.05em;
}

@keyframes static-glitch {
  0%   { background-position: 0% 0; }
  50%  { background-position: 100% 0; }
  100% { background-position: 0% 0; }
}

/* .redacted {
  background: #000;
  color: transparent;
  border-radius: 2px;
  padding: 0 0.4em;
  font-size: 0.95em;
} */

.no-grain .grain {
    background-image: none !important;
    background-color: #000 !important; /* optional fallback color */
}

.project {
  margin-bottom: 2rem;
  padding: 1rem;
  border-left: 3px solid #444;
  background-color: rgba(0, 0, 0, 0.4);
}

.project h3 {
  font-family: 'VT323', monospace;
  font-size: 1.3rem;
  margin-bottom: 0.2rem;
  color: #eaeaea;
}

.project p {
  margin: 0;
  font-size: 0.95rem;
  color: #ccc;
  line-height: 1.5;
}

.intro {
  font-size: 1.1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #333;
}

#email-link.revealed {
  color: #00ff99;
  font-style: normal;
  text-decoration: underline;
}

.corner-resume-link {
  position: fixed;
  top: 1rem;
  left: 1rem;
  z-index: 999;
  font-family: 'VT323', monospace;
  font-size: 1.2rem;
  color: #00ff99;
  text-shadow: 0 0 4px #00ff99;
  background: rgba(0, 0, 0, 0.7);
  border: 1px dashed #00ff99;
  padding: 0.3rem 0.8rem;
  animation: warble 1.6s infinite ease-in-out;
  text-decoration: none;
  transition: background 0.2s;
}

.corner-resume-link:hover {
  background: rgba(0, 255, 153, 0.1);
  border-color: #00ffaa;
  text-shadow: 0 0 6px #00ffaa, 0 0 10px #008855;
}

@keyframes warble {
  0%   { transform: rotate(-1deg) scale(1); }
  50%  { transform: rotate(1deg) scale(1.05); }
  100% { transform: rotate(-1deg) scale(1); }
}