/* ===================================
   CRT + TRUST BLUE THEME (NO JS)
   Background unified: #2e004d
   =================================== */
:root {
  --bg: #2e004d;               /* deep creative purple background */
  --text: #9BDDFF;             /* base trust blue text */
  --text-strong: #00E5FF;      /* bright cyan highlight */
  --text-dim: #6FB7FF;         /* softer secondary tone */
  --link: #9BDDFF;             /* link color */
  --link-hover-bg: #00E5FF;    /* hover invert background */
}

/* ---------- Base ---------- */
body.theme-crt.trust-blue {
  background-color: var(--bg);
  color: var(--text);
  font-family: 'Courier New', Courier, monospace;
  font-size: 16px;
  line-height: 1.55;
  padding: 20px;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  text-shadow:
    0 0 2px rgba(0, 229, 255, 0.85),
    0 0 6px rgba(0, 229, 255, 0.6),
    0 0 10px rgba(0, 229, 255, 0.4);
}

/* CRT scanline overlay */
body.theme-crt.trust-blue::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    repeating-linear-gradient(
      to bottom,
      rgba(255, 255, 255, 0.04) 0px,
      rgba(255, 255, 255, 0.04) 1px,
      transparent 2px,
      transparent 4px
    ),
    radial-gradient(ellipse at center, rgba(0, 180, 255, 0.08), transparent 60%);
  mix-blend-mode: screen;
  opacity: 0.15;
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
  body.theme-crt.trust-blue::before { opacity: 0; }
  .cursor { animation: none; }
}

/* ---------- ASCII Art ---------- */
#ascii-art {
  color: var(--text-strong);
  font-size: 10px;
  text-shadow:
    0 0 2px rgba(0, 229, 255, 0.9),
    0 0 5px rgba(0, 229, 255, 0.7),
    0 0 12px rgba(0, 229, 255, 0.4);
}

pre { white-space: pre; }

/* ---------- Links ---------- */
a {
  color: var(--link);
  text-decoration: none;
  text-shadow:
    0 0 2px rgba(0, 229, 255, 0.85),
    0 0 6px rgba(0, 229, 255, 0.55),
    0 0 10px rgba(0, 229, 255, 0.35);
  transition: background-color 0.15s linear, color 0.15s linear, box-shadow 0.15s linear;
}

a:hover,
a:focus-visible {
  background-color: var(--link-hover-bg);
  color: var(--bg);
  box-shadow: 0 0 12px rgba(0, 229, 255, 0.9);
  text-shadow: none;
  outline: none;
}

/* ---------- Navigation ---------- */
nav {
  margin: 20px 0;
  color: var(--text-dim);
}

/* ---------- Headings ---------- */
h2 {
  color: var(--text-strong);
  border-bottom: 1px solid var(--text-strong);
  padding-bottom: 5px;
  margin-bottom: 10px;
  text-shadow:
    0 0 2px rgba(0, 229, 255, 0.95),
    0 0 6px rgba(0, 229, 255, 0.7),
    0 0 14px rgba(0, 229, 255, 0.45);
}

/* ---------- Cursor ---------- */
.cursor {
  display: inline-block;
  width: 10px;
  height: 16px;
  background-color: var(--text-strong);
  animation: blink 1s step-end infinite;
  box-shadow: 0 0 10px rgba(0, 229, 255, 0.8);
}

@keyframes blink {
  from, to { opacity: 0; }
  50% { opacity: 1; }
}

/* ---------- Section Visibility ---------- */
section { display: none; }
section:target { display: block; }

/* ---------- Responsive ---------- */
@media (max-width: 600px) {
  body.theme-crt.trust-blue {
    padding: 10px;
    font-size: 14px;
  }
  #ascii-art { font-size: 8px; }
  pre { overflow-x: auto; }
}
