/* ─── Font ─── */

@font-face {
  font-family: 'Neue Montreal';
  src: url('fonts/NeueMontreal-Regular.woff2') format('woff2'),
       url('fonts/NeueMontreal-Regular.woff') format('woff'),
       url('fonts/NeueMontreal-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* ─── Reset & Base ─── */

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

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  font-family: 'Neue Montreal', system-ui, -apple-system, BlinkMacSystemFont,
    'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  background-color: #101010;
  color: #e8e8e8;
  font-size: 24px;
  line-height: 28px;
  min-height: 100vh;
  overflow-x: hidden;
}

/* ─── Layout ─── */

.content {
  padding: 24px 24px 48px 24px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

/* ─── Lines ─── */

.line {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  max-height: 28px;
}

/* Console prefix */
.prefix {
  color: rgba(255, 255, 255, 0.25);
  margin-right: 0.15em;
  user-select: none;
}

/* ─── Highlighted pills ─── */

.pill {
  display: inline-flex;
  align-items: center;
  background-color: #CDCDCF;
  border: none;
  color: #101010;
  padding: 0px 8px;
  border-radius: 24px;
  font-size: inherit;
  line-height: inherit;
  vertical-align: baseline;
  text-decoration: none;
  white-space: nowrap;
}

/* Clickable pills */
a.pill {
  transition: background-color 180ms ease;
  cursor: pointer;
}

a.pill:hover {
  background-color: rgb(255, 255, 255);
  color: #101010;
}

a.pill:focus-visible {
  outline: 1px solid rgba(255, 255, 255, 0.4);
  outline-offset: 2px;
}

/* External link icon inside pills */
.pill .icon-external {
  width: 12px;
  height: 12px;
  margin-left: 5px;
  opacity: 0.6;
  flex-shrink: 0;
  position: relative;
  top: 0px;
}

a.pill:hover .icon-external {
  opacity: 0.9;
}

/* ─── Cursor ─── */

.cursor {
  display: inline-block;
  width: 9px;
  height: 1.15em;
  background-color: #e8e8e8;
  margin-left: 1px;
  vertical-align: text-bottom;
  animation: blink 1s step-end infinite;
}

.cursor--hidden {
  display: none;
}

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

/* ─── Skip hint (hidden by default, shown during animation) ─── */

.skip-hint {
  position: fixed;
  bottom: 24px;
  right: 24px;
  color: rgba(255, 255, 255, 0.15);
  font-size: 13px;
  pointer-events: none;
  transition: opacity 400ms ease;
}

.skip-hint--hidden {
  opacity: 0;
}

/* ─── Accessibility: reduced motion ─── */

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

/* ─── Selection ─── */

::selection {
  background-color: rgba(255, 255, 255, 0.2);
  color: #ffffff;
}
