:root {
  --field: #151513;
  --lime: #faff69;
  --grey: #414141;
  --panel: #1c1c19;
  --panel-hi: #242420;
  --ink: #f4f4ef;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100svh;
  background: var(--field);
  color: var(--ink);
  font-family: var(--mono);
  font-variant-ligatures: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(115% 78% at 50% 44%, #1c1c19 0%, #1c1c19 8%, #151513 68%);
}

.mark {
  position: fixed;
  top: 26px;
  left: 26px;
  z-index: 2;
  font-size: 11px;
  line-height: 1;
  letter-spacing: 0.2em;
  text-transform: lowercase;
  color: var(--ink);
  opacity: 0.36;
  user-select: none;
}

.stage {
  position: relative;
  z-index: 1;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 96px 24px 104px;
}

.shell {
  width: 100%;
  max-width: 52rem;
}

.term {
  font-size: clamp(15px, 3vw, 25px);
  line-height: 1.6;
  text-align: left;
}

.cmd {
  margin: 0;
  white-space: pre-wrap;
  overflow-wrap: break-word;
  color: var(--ink);
  letter-spacing: -0.005em;
}

.ps1 {
  color: var(--grey);
  margin-right: 0.6ch;
}

.cursor {
  display: inline-block;
  width: 0.58em;
  height: 1.02em;
  margin-left: 0.06em;
  vertical-align: -0.14em;
  background: var(--lime);
  animation: blink 1.08s steps(1, end) infinite;
}

.cursor.typing { animation: none; }

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

.out {
  margin-top: 0.55em;
  font-size: clamp(12.5px, 2.1vw, 15px);
  line-height: 1.85;
}

.line {
  display: grid;
  grid-template-columns: max-content 1fr;
  column-gap: 2ch;
  animation: rise 240ms ease-out both;
}

.line .k {
  color: var(--ink);
  opacity: 0.4;
}

.line .v {
  color: var(--ink);
  opacity: 0.82;
  overflow-wrap: break-word;
}

.line.final .k { opacity: 0.55; }
.line.final .v {
  color: var(--lime);
  opacity: 1;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(3px); }
  to { opacity: 1; transform: translateY(0); }
}

.claim {
  margin: clamp(2.2rem, 7vh, 4.2rem) 0 0;
  font-size: clamp(11.5px, 1.5vw, 12.5px);
  line-height: 1.6;
  letter-spacing: 0.045em;
  color: var(--ink);
  opacity: 0.34;
}

.site {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%);
  z-index: 2;
  padding-bottom: 3px;
  border-bottom: 1px solid var(--grey);
  color: var(--ink);
  opacity: 0.55;
  font-size: 11.5px;
  letter-spacing: 0.14em;
  text-decoration: none;
  transition: color 160ms ease, border-color 160ms ease, opacity 160ms ease;
}

.site:hover,
.site:focus-visible {
  color: var(--lime);
  border-color: var(--lime);
  opacity: 1;
}

:focus-visible {
  outline: 1px solid var(--lime);
  outline-offset: 4px;
}

@media (max-width: 620px) {
  .mark { top: 20px; left: 20px; }
  .stage { padding: 84px 22px 96px; }
  .term { font-size: 14.5px; line-height: 1.72; }
  .out { font-size: 12.5px; line-height: 1.95; }
  .line { column-gap: 1.4ch; }
  .claim { letter-spacing: 0.03em; }
  .site { bottom: 22px; }
}

@media (max-width: 400px) {
  .term { font-size: 13.5px; }
  .out { font-size: 11.5px; }
  .line { column-gap: 1.2ch; }
}

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