@font-face {
  font-family: "NeueBit";
  src: url("/assets/fonts/regular.woff2") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "NeueBit";
  src: url("/assets/fonts/bold.woff2") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --text: #1C1C1A;
  --bg: #D1DBD5;
}

html, body {
  height: 100%;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: "NeueBit", monospace;
}

.page {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(24px, 5vw, 64px);
  box-sizing: border-box;
}

.terminal {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  line-height: 1;
  max-width: 1100px;
}

#animatedText {
  white-space: pre-line;
}

.cursor {
  display: inline;
  border-right: 2px solid var(--text);
  animation: blink 0.7s steps(2, start) infinite;
}

@keyframes blink {
  from { border-color: var(--text); }
  to { border-color: transparent; }
}

.end p {
  font-size: 20px;
  margin: 0;
}

.end a {
  text-shadow: none;
  color: #000;
  font-size: 40px;
  font-weight: 700;
  line-height: 0.6;
  text-decoration: none;
}

.end a:hover {
  text-decoration-line: underline;
  text-decoration-thickness: 2px;
}

.end {
  opacity: 0;
  transform: translateY(8px);
  animation: fadeIn 0.8s ease forwards;
  animation-delay: 14s;
}

@keyframes fadeIn {
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .cursor { animation: none; border-right: none; }
  .end { animation: none; opacity: 1; transform: none; }
}
