/* Heat Death Studio — Terminal Aesthetic */

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --green: #3f3;
  --green-dim: #1a9c1a;
  --green-glow: rgb(51 255 51 / 40%);
  --amber: #ffb300;
  --amber-glow: rgb(255 179 0 / 40%);
  --bg: #0a0a0a;
  --bg-lighter: #111;
  --text-dim: #1a6b1a;
  --font-mono: "IBM Plex Mono", "Fira Code", "Cascadia Code", "SF Mono",
    "Consolas", "Liberation Mono", monospace;
}

html {
  font-size: 16px;
  background: var(--bg);
}

body {
  font-family: var(--font-mono);
  color: var(--green);
  background: var(--bg);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  -webkit-font-smoothing: none;
  -moz-osx-font-smoothing: unset;
}

/* CRT container */
.crt {
  position: relative;
  width: 100%;
  max-width: 640px;
  border: 1px solid var(--green-dim);
  border-radius: 2px;
  padding: 2rem;
  background: var(--bg);
  box-shadow:
    0 0 20px rgb(51 255 51 / 5%),
    inset 0 0 60px rgb(0 0 0 / 30%);
  overflow: hidden;
  animation: flicker 4s infinite;
}

/* Scanline overlay */
.scanlines {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    to bottom,
    transparent 0,
    transparent 2px,
    rgb(0 0 0 / 15%) 2px,
    rgb(0 0 0 / 15%) 4px
  );
  pointer-events: none;
  z-index: 10;
}

/* Phosphor glow on the whole terminal */
.terminal {
  position: relative;
  text-shadow: 0 0 8px var(--green-glow);
}

/* ASCII logo */
.ascii-logo {
  font-size: 0.55rem;
  line-height: 1.15;
  color: var(--green);
  text-align: center;
  margin-bottom: 1.5rem;
  white-space: pre;
  overflow-x: auto;
}

@media (width >= 480px) {
  .ascii-logo {
    font-size: 0.7rem;
  }
}

/* Boot / prompt lines */
.prompt-block {
  margin-bottom: 1.5rem;
}

.system-line {
  font-size: 0.85rem;
  line-height: 1.6;
  color: var(--green-dim);
}

.system-line::before {
  content: "";
}

/* Main content */
.content-block {
  margin-bottom: 1.5rem;
}

.tagline {
  font-size: 1.1rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
  color: var(--green);
}

.about {
  font-size: 0.85rem;
  line-height: 1.7;
  color: var(--green);
  max-width: 50ch;
}

/* Separators */
.separator {
  color: var(--green-dim);
  font-size: 0.8rem;
  margin: 1rem 0;
  overflow: hidden;
  white-space: nowrap;
}

/* Status block */
.status-block {
  margin-bottom: 1.5rem;
}

.status-line {
  font-size: 0.8rem;
  line-height: 1.8;
}

.label {
  color: var(--green-dim);
}

.value {
  color: var(--green);
}

.value.amber {
  color: var(--amber);
  text-shadow: 0 0 8px var(--amber-glow);
}

/* Blinking cursor and status */
@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

.blink {
  animation: blink 1.2s step-end infinite;
}

.cursor {
  animation: blink 0.8s step-end infinite;
  color: var(--green);
}

/* Footer */
.footer-block {
  margin-top: 1rem;
}

.footer-text {
  font-size: 0.7rem;
  color: var(--text-dim);
  margin-bottom: 1rem;
}

.cursor-line {
  font-size: 0.85rem;
}

/* Screen reader only */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Subtle CRT flicker */
@keyframes flicker {
  0% { opacity: 0.97; }
  5% { opacity: 1; }
  10% { opacity: 0.98; }
  15% { opacity: 1; }
  100% { opacity: 1; }
}

/* Mobile adjustments */
@media (width <= 480px) {
  .crt {
    padding: 1rem;
  }

  .ascii-logo {
    font-size: 0.4rem;
  }

  .separator {
    font-size: 0.65rem;
  }
}
