:root {
  --phosphor: #33ff66;
  --phosphor-dim: #1a8f38;
  --bg: #0a0f0a;
}

body {
  margin: 0;
  min-height: 100vh;              /* so the centering actually has an axis */
  background: var(--bg);
  color: var(--phosphor);
  font-family: "Courier New", ui-monospace, monospace;
  display: flex;
  align-items: center;
  justify-content: center;
  text-shadow: 0 0 4px var(--phosphor-dim);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(
    to bottom,
    transparent 0,
    transparent 2px,
    rgba(0, 0, 0, 0.25) 4px
  );
}

.main {
  width: 100%;
  max-width: 50rem;              /* readable ceiling on desktop */
  padding: 0 1rem;               /* gutter so text never touches the edge */
  box-sizing: border-box;
}

h1 { font-weight: normal; letter-spacing: 2px; }

h1::after {
  content: "_";
  animation: blink 1s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

.topnav {
  border-top: 2px solid var(--phosphor-dim);
  display: flex;                 /* replaces float */
  flex-wrap: wrap;               /* links stack instead of overflowing */
  margin: 12px 0;
}

.topnav a {
  color: var(--phosphor);
  text-align: center;
  padding: 12px 10px;      /* was 14px 16px — reclaim 12px per link */
  text-decoration: none;
  font-size: 15px;         /* was 17px — tightens the long label most */
  white-space: nowrap;     /* "The Home Lab" stays on one line */
}

.topnav a:hover,
.topnav a.active {
  background-color: var(--phosphor);
  color: var(--bg);
  text-shadow: none;
}

.content { line-height: 1.7; }

.content img {
  max-width: 100%;
  height: auto;
}