/* hackers.nu — Commodore 64 boot screen */
@font-face { font-family:"Press Start 2P"; src:url("/assets/fonts/pressstart-400.woff2") format("woff2"); font-weight:400; font-display:swap; }

:root {
  --border: #6c5fd6;   /* C64 light blue border */
  --screen: #4338c9;   /* C64 blue screen */
  --text:   #b9b0f2;   /* C64 light blue text */
  --bright: #ffffff;
  --px: "Press Start 2P", "Courier New", monospace;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { height: 100%; }
body {
  background: var(--border);
  color: var(--text);
  font-family: var(--px);
  line-height: 1.9;
  display: grid;
  place-items: center;
  padding: clamp(0.6rem, 3vw, 2.5rem);
  min-height: 100vh;
  -webkit-font-smoothing: none;
}
a { color: var(--bright); text-decoration: none; }

.screen {
  width: min(900px, 100%);
  min-height: min(80vh, 640px);
  background: var(--screen);
  border: clamp(10px, 3vw, 26px) solid var(--border);
  padding: clamp(1rem, 4vw, 2.6rem);
  position: relative;
  overflow: hidden;
  font-size: clamp(0.5rem, 2vw, 0.78rem);
}
/* scanlines + faint glow */
.screen::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: repeating-linear-gradient(transparent 0 2px, rgba(0,0,0,0.12) 2px 4px);
  mix-blend-mode: multiply;
}
.boot { white-space: pre-wrap; }
.boot .b { color: var(--bright); }

.title {
  font-size: clamp(1.1rem, 5.5vw, 2.4rem);
  color: var(--bright);
  line-height: 1.2;
  margin: 1.6em 0 0.6em;
  letter-spacing: 0.04em;
}
.tag { margin-bottom: 1.8em; }

.menu { display: grid; gap: 0.9em; margin: 1.2em 0; }
.menu a {
  display: inline-block;
  padding: 0.2em 0;
  transition: color 0.1s;
}
.menu a::before { content: "> "; color: var(--text); }
.menu a:hover { color: var(--screen); background: var(--bright); }
.menu a:hover::before { color: var(--screen); }

.greetz { margin-top: 2em; color: var(--text); opacity: 0.85; font-size: 0.86em; line-height: 1.8; }

.cursor {
  display: inline-block; width: 0.85em; height: 1.1em;
  background: var(--bright); vertical-align: -0.18em; margin-left: 0.1em;
  animation: blink 1s steps(2) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

@media (prefers-reduced-motion: reduce) { .cursor { animation: none; } }
