:root {
  --bg: #07090a;
  --fg: #c8d3cc;
  --dim: #5d6b63;
  --accent: #4ade80;
  --accent-dim: #2a7a4a;
  --line: #16211c;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--fg);
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* очень мягкие скан-линии, почти незаметные */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.014) 0px,
    rgba(255, 255, 255, 0.014) 1px,
    transparent 1px,
    transparent 3px
  );
  z-index: 1;
}

main {
  flex: 1;
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  padding: 56px 24px 32px;
  position: relative;
  z-index: 2;
}

pre {
  margin: 0 0 22px;
  white-space: pre;
  overflow-x: auto;
  font-family: inherit;
  font-size: inherit;
  line-height: 1.25;
}

.banner {
  color: var(--accent);
  text-shadow: 0 0 12px rgba(74, 222, 128, 0.22);
  font-size: clamp(9px, 2.4vw, 15px);
  margin-bottom: 34px;
  letter-spacing: 0.02em;
}

.term {
  color: var(--fg);
  line-height: 1.65;
  margin-bottom: 20px;
}

.p { color: var(--accent); }
.d { color: var(--dim); }

.links {
  list-style: none;
  margin: 0 0 26px;
  padding: 0 0 0 2px;
}

.links li {
  margin: 0 0 10px;
  padding-left: 0;
}

.links a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px dashed var(--accent-dim);
  padding-bottom: 1px;
}

.links a:hover {
  color: #a7f3c8;
  border-bottom-color: var(--accent);
  text-shadow: 0 0 10px rgba(74, 222, 128, 0.35);
}

.note {
  color: var(--dim);
  margin-left: 2ch;
  display: block;
  font-size: 0.93em;
}

.cursor {
  display: inline-block;
  color: var(--accent);
  animation: blink 1.1s steps(1) infinite;
}

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

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

footer {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6ch;
  justify-content: space-between;
  max-width: 760px;
  width: 100%;
  margin: 0 auto;
  padding: 18px 24px 26px;
  color: var(--dim);
  font-size: 0.86em;
  border-top: 1px solid var(--line);
}

.sep { opacity: 0.5; }

::selection {
  background: var(--accent-dim);
  color: #03110a;
}

@media (max-width: 560px) {
  main { padding: 36px 16px 24px; }
  footer { padding: 16px 16px 22px; }
  body { font-size: 14px; }
}
