@font-face {
  font-family: "Monaspace Neon";
  font-weight: 1 999;
  src: url("fonts/MonaspaceNeon.woff2") format("woff2");
  font-display: swap;
}

@font-face {
  font-family: "Monaspace Krypton";
  font-weight: 1 999;
  src: url("fonts/MonaspaceKrypton.woff2") format("woff2");
  font-display: swap;
}

@font-face {
  font-family: "Monaspace Xenon";
  font-weight: 1 999;
  src: url("fonts/MonaspaceXenon.woff2") format("woff2");
  font-display: swap;
}

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

/* Forced dark theme — matches Hitman B/W logo */
html {
  color-scheme: dark;
}

:root {
  --hue: 0;
  --vermillion: #ff735a;
  --text-color: #f2f2f2;
  --dim-text-color: #ffffff88;
  --background-color: #0a0a0c;
  --link-color: #c8c8c8;
  --link-hover-color: #ffffff;
  --button-color: var(--vermillion);
  --button-hover-color: #ff9480;
  --orb-1: #ffffff12;
  --orb-2: #a0a0a018;
  --orb-3: #ffffff0c;
}

html,
body {
  margin: 0;
  min-height: 100dvh;
}

body {
  font-family: "Monaspace Neon", monospace;
  font-size: calc(max(4.25vmin, 19px));
  font-weight: 200;
  line-height: 133%;
  background-color: var(--background-color);
  color: var(--text-color);
  overflow-x: hidden;
}

@media (max-width: 600px) {
  body {
    font-weight: 300;
  }
}

h1 {
  font-size: calc(max(5vmin, 16pt));
  font-weight: 200;
}

a,
a:visited,
.hoverLink {
  color: var(--link-color);
  cursor: pointer;
  text-decoration: none;
}

a:hover,
.hoverLink:hover {
  color: var(--link-hover-color);
  text-decoration: underline;
}

button {
  font-family: inherit;
  font-size: inherit;
  font-weight: inherit;
  line-height: 133%;
  background: none;
  border: none;
  color: var(--button-color);
  cursor: pointer;
  padding: 0;
}

button:hover,
span.cwd:hover {
  color: var(--button-hover-color);
}

button:hover::before {
  content: ">";
  float: left;
  margin-left: -0.75em;
}

/* Orbs */
.circle-container {
  position: fixed;
  inset: 0;
  overflow: hidden;
  z-index: -1;
  pointer-events: none;
}

.circle {
  border-radius: 50%;
  filter: blur(100px);
  height: 100vmax;
  width: 100vmax;
  left: 55%;
  top: -85vmax;
  mix-blend-mode: screen;
  position: absolute;
  opacity: 0.55;
}

#circle1 {
  background-color: var(--orb-1);
  animation: orbit 6s linear infinite;
}

#circle2 {
  background-color: var(--orb-2);
  animation: rorbit 10s linear infinite;
}

#circle3 {
  background-color: var(--orb-3);
  animation: rorbit 8s linear infinite;
}

@keyframes orbit {
  0% {
    transform: rotate(0deg) translateX(20vmin) rotate(0deg);
  }
  to {
    transform: rotate(1turn) translateX(20vmin) rotate(-1turn);
  }
}

@keyframes rorbit {
  0% {
    transform: rotate(1turn) translateX(20vmin) rotate(-1turn);
  }
  to {
    transform: rotate(0deg) translateX(20vmin) rotate(0deg);
  }
}

/* Terminal layout */
#app {
  min-height: 100dvh;
  position: relative;
  z-index: 1;
}

#terminal {
  mix-blend-mode: normal;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 100dvh;
  padding: 1.25em 1.25em 1.25em;
  max-width: 48em;
  position: relative;
  z-index: 2;
  gap: 0.2em;
}

#output {
  display: flex;
  flex-direction: column;
  gap: 0;
}

#chrome {
  display: flex;
  flex-direction: column;
  gap: 0.15em;
  flex-shrink: 0;
}

#output p {
  margin: 0 0 0.35em;
}

#output p.old-prompt {
  margin-top: 0;
  margin-bottom: 0.5em;
  color: var(--dim-text-color);
}

#output .output-block {
  margin-bottom: 0.5em;
}

#output .output-block p {
  margin: 0 0 0.5em;
  max-width: 40em;
}

.dim {
  color: var(--dim-text-color);
}

.directory {
  color: var(--text-color);
}

.username {
  display: inline-block;
  min-width: 8em;
  text-align: left;
}

.role {
  display: inline-block;
  min-width: 4em;
  text-align: left;
}

.typedLine {
  animation: reveal 0.2s linear forwards;
  -webkit-mask-image: linear-gradient(90deg, #000 50%, transparent 50%);
  mask-image: linear-gradient(90deg, #000 50%, transparent 50%);
  -webkit-mask-size: 200%;
  mask-size: 200%;
  -webkit-mask-position: 0;
  mask-position: 0;
  max-width: 34em;
  white-space: pre-wrap;
}

@keyframes reveal {
  0% {
    -webkit-mask-position: 100% 100%;
    mask-position: 100% 100%;
  }
  to {
    -webkit-mask-position: 0 0;
    mask-position: 0 0;
  }
}

.boot-hero {
  margin-bottom: 0;
}

.boot-hero .hero-line {
  font-size: 1.2em;
  font-weight: 200;
  line-height: 1.3;
  max-width: 24em;
}

.boot-hero a {
  color: inherit;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.15em;
}

.boot-hero a:hover {
  color: var(--link-hover-color);
}

.suggestions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  flex-wrap: nowrap;
  gap: 0.2em;
  margin: 0.75em 0 0;
}

.suggestions button {
  display: block;
  text-align: left;
  line-height: 1.3;
}

.boot-cmd {
  color: var(--button-color);
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.boot-cmd:hover {
  color: var(--button-hover-color);
}

.boot-cmd:hover::before {
  content: none;
}

/* Prompt */
#prompt {
  cursor: text;
  margin-top: 0.25em;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.15em 0.35em;
}

#prompt .prompt-prefix {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  flex-shrink: 0;
}

#geist {
  cursor: pointer;
  display: block;
  height: 1.15em;
  width: 1.15em;
  object-fit: contain;
  border-radius: 2px;
  transform: none;
  flex-shrink: 0;
  transition: opacity 0.2s ease, filter 0.2s ease;
}

#geist.waiting {
  animation: cursor-pulse 1s infinite;
  filter: drop-shadow(0 0 4px var(--vermillion));
}

#geist.inputting {
  opacity: 0.65;
}

#geist.outputting,
#geist:hover {
  opacity: 1;
  filter: drop-shadow(0 0 6px var(--vermillion));
}

@keyframes cursor-pulse {
  0% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
  to {
    opacity: 1;
  }
}

.cwd {
  color: var(--dim-text-color);
}

.prompt-sep {
  color: var(--dim-text-color);
}

.input-wrap {
  display: inline-flex;
  align-items: baseline;
  flex: 1 1 auto;
  min-width: 8ch;
  position: relative;
}

.inputText {
  background: transparent;
  border: none;
  border-radius: 0;
  caret-color: transparent;
  color: transparent;
  font-family: inherit;
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
  max-width: 100%;
  min-width: 2ch;
  padding: 0;
  width: 100%;
  white-space: pre-wrap;
}

.inputText:focus {
  outline: none;
}

.cursor {
  animation: cursor-blink 1.5s infinite;
  font-weight: 700;
  color: var(--text-color);
  pointer-events: none;
}

.cursor-overlay {
  position: absolute;
  left: 0;
  top: 0;
  pointer-events: none;
  white-space: pre;
  color: var(--text-color);
}

.cursor-overlay .cursor-glyph {
  animation: cursor-blink 1.5s infinite;
  font-weight: 700;
}

@keyframes cursor-blink {
  0%,
  50% {
    opacity: 1;
  }
  66%,
  100% {
    opacity: 0;
  }
}

.people-list {
  list-style: none;
  padding: 0;
  margin: 0.5em 0;
}

.people-list li {
  margin: 0.15em 0;
}

.ascii-banner {
  font-size: 0.45em;
  line-height: 1.15;
  white-space: pre;
  overflow-x: auto;
  color: var(--vermillion);
  margin: 0.75em 0;
}

.noscript-fallback {
  max-width: 34em;
  padding: 2em 1.25em;
}

.noscript-fallback h1,
.noscript-fallback h2 {
  font-weight: 200;
}
