/* ===== RESET ===== */

* {
  box-sizing: border-box;
}

/* ===== BASE ===== */

html {
  font-size: 16px;
}

body {
  margin: 0;
  padding: 1.5rem;

  /* MATRIX GREEN */
  background-color: #00ff66;

  /* OFF-BLACK TEXT */
  color: #002b1a;

  font-family: "IBM Plex Mono", monospace;
  line-height: 1.6;
}

/* ===== LINKS / NAV ===== */

.nav {
  margin-bottom: 2rem;
}

.nav a {
  color: #001f14;
  text-decoration: none;
  margin-right: 1rem;
  font-weight: 600;
}

.nav a:hover,
.nav a:focus {
  text-decoration: underline;
}

/* ===== TERMINAL TEXT ===== */

pre,
code {
  font-family: inherit;
  white-space: pre-wrap;
}

/* ===== SUBTLE TERMINAL FEEL ===== */

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;

  /* very subtle scanlines */
  background: repeating-linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.04),
    rgba(0, 0, 0, 0.04) 1px,
    transparent 1px,
    transparent 3px
  );
}

/* ===== ACCESSIBILITY ===== */

a:focus {
  outline: 2px dashed #001f14;
  outline-offset: 4px;
}

/* ===== MOBILE ===== */

@media (max-width: 600px) {
  body {
    padding: 1rem;
  }

  .nav a {
    display: inline-block;
    margin-bottom: 0.5rem;
  }
}

