/* telerust landing. Palette: night sky, Telegram-blue ion neon, Rust-orange sodium light. */

:root {
  --night: #070a1a;
  --night-deep: #04060f;
  --deck: #0a0f27;
  --line: #1b2550;
  --ion: #33c6ff;
  --ion-hot: #b5eeff;
  --ferris: #ff5a1f;
  --ferris-soft: #ff8f66;
  --paper: #e9edff;
  --paper-dim: #c2c9e8;
  --fog: #8390c0;

  --mono: "Martian Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --bar-h: 32px;
  --gutter: clamp(16px, 4vw, 56px);
  --cut: 14px;

  color-scheme: dark;
}

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

[hidden] {
  display: none !important;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 24px;
}

body {
  margin: 0;
  min-height: 100vh;
  padding-bottom: calc(var(--bar-h) + env(safe-area-inset-bottom));
  background: var(--night);
  color: var(--paper-dim);
  font-family: var(--mono);
  font-size: 15px;
  font-stretch: 87.5%;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* City glow: sodium lamps below, ion neon above. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(70vw 60vh at 104% -8%, rgb(51 198 255 / 0.15), transparent 66%),
    radial-gradient(60vw 70vh at -8% 108%, rgb(255 90 31 / 0.12), transparent 66%),
    var(--night);
}

/* CRT scanlines over everything except the status bar. */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 90;
  pointer-events: none;
  background: repeating-linear-gradient(180deg, transparent 0 2px, rgb(2 3 10 / 0.16) 2px 3px);
}

::selection {
  background: var(--ion);
  color: var(--night);
}

:focus-visible {
  outline: 2px solid var(--ion);
  outline-offset: 3px;
}

a {
  color: var(--ion);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
}

a:hover {
  color: var(--ion-hot);
}

code {
  font-family: inherit;
}

p code,
.bootlog code {
  padding: 0.08em 0.35em;
  background: rgb(51 198 255 / 0.08);
  color: var(--paper);
  overflow-wrap: anywhere;
}

.vh {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip {
  position: absolute;
  top: -80px;
  left: 12px;
  z-index: 200;
  padding: 10px 14px;
  background: var(--ion);
  color: var(--night);
  font-weight: 700;
  text-decoration: none;
}

.skip:focus {
  top: 12px;
}

/* ---------- Layout ---------- */

.page {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
}

.sign-col {
  display: none;
}

.content {
  min-width: 0;
}

/* ---------- CRT signage ---------- */

.crt {
  color: var(--ion-hot);
  font-family: "VT323", var(--mono);
  font-weight: 400;
  text-shadow:
    0 0 1px rgb(255 255 255 / 0.7),
    0 0 8px rgb(51 198 255 / 0.9),
    0 0 26px rgb(51 198 255 / 0.55),
    -2px 0 rgb(255 90 31 / 0.35),
    2px 0 rgb(51 198 255 / 0.35);
}

/* A small tube: dark curved glass, vignette and coarse scanlines over the glowing text. */
.sign-screen {
  position: relative;
  display: block;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: radial-gradient(120% 90% at 50% 45%, #0e1c42, #050817 72%);
  box-shadow:
    inset 0 0 34px rgb(0 0 0 / 0.85),
    inset 0 0 2px rgb(51 198 255 / 0.45),
    0 0 70px rgb(51 198 255 / 0.08);
}

.sign-screen::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(180deg, rgb(2 3 10 / 0.38) 0 1px, transparent 1px 4px);
}

.sign-screen .crt {
  display: block;
  text-transform: uppercase;
}

@media (prefers-reduced-motion: no-preference) {
  .sign-screen .crt {
    animation: crt-on 1.2s cubic-bezier(0.2, 0.7, 0.2, 1) 0.15s both;
  }
}

/* Tube warm-up: a bright line opens into the picture. */
@keyframes crt-on {
  0% { opacity: 0; transform: scaleY(0.02); filter: brightness(4); }
  14% { opacity: 1; transform: scaleY(0.02); filter: brightness(4); }
  46% { transform: scaleY(1.05); filter: brightness(1.8); }
  58% { opacity: 0.7; transform: scaleY(1); }
  66% { opacity: 1; }
  100% { transform: scaleY(1); filter: brightness(1); }
}

.hero-sign {
  margin: 0;
  line-height: 1;
}

.sign-screen--h {
  width: max-content;
  max-width: 100%;
  padding: 8px 24px 2px;
}

.sign-screen--h .crt {
  font-size: clamp(64px, 19vw, 132px);
  letter-spacing: 0.04em;
  line-height: 1;
}

@media (min-width: 1024px) {
  .page {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .sign-col {
    display: block;
    padding-left: clamp(20px, 2.4vw, 40px);
  }

  .sign-box {
    position: sticky;
    top: 0;
    display: flex;
    align-items: center;
    height: calc(100vh - var(--bar-h));
    padding-block: 28px;
  }

  .sign-screen--v {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    max-height: 880px;
    padding: 18px 20px;
  }

  .sign-screen--v .crt {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: clamp(54px, calc((100vh - var(--bar-h) - 150px) / 8.2), 108px);
    line-height: 0.98;
  }

  /* On wide screens the vertical sign is the headline; keep h1 for assistive tech only. */
  .hero-sign {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }
}

/* ---------- Hero ---------- */

.hero {
  display: grid;
  align-content: center;
  gap: clamp(28px, 4.5vh, 48px);
  min-height: calc(100svh - var(--bar-h));
  max-width: 1360px;
  padding: clamp(28px, 6vh, 72px) var(--gutter);
}

/* The headline scales with its own column, so it never spills under the terminal. */
.hero-copy {
  container-type: inline-size;
}

.lede {
  margin: 0 0 20px;
  color: var(--paper);
  font-size: clamp(30px, 10.6cqi, 64px);
  font-stretch: 100%;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.02;
  text-shadow:
    -1.5px 0 rgb(255 90 31 / 0.55),
    1.5px 0 rgb(51 198 255 / 0.55);
}

.sub {
  max-width: 52ch;
  margin: 0 0 22px;
}

.hero-run {
  display: inline-block;
  margin: 0 0 30px;
  padding: 7px 14px 7px 12px;
  border: 1px solid rgb(51 198 255 / 0.35);
  border-left: 2px solid var(--ion);
  background: rgb(51 198 255 / 0.07);
  font-size: 14px;
}

.hero-run code {
  color: var(--ion-hot);
  font-weight: 600;
}

.cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 26px;
}

.cta-meta {
  margin: 16px 0 0;
  color: var(--fog);
  font-size: 12px;
}

.link {
  font-weight: 600;
}

.btn {
  --c: 12px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 54px;
  padding: 0 26px 0 22px;
  background: var(--ferris);
  color: var(--night);
  font: 700 15px/1 var(--mono);
  font-stretch: 100%;
  letter-spacing: -0.01em;
  text-decoration: none;
  clip-path: polygon(0 0, calc(100% - var(--c)) 0, 100% var(--c), 100% 100%, var(--c) 100%, 0 calc(100% - var(--c)));
  transition: background-color 0.15s ease;
}

.btn:hover {
  background: #ff7546;
  color: var(--night);
}

.btn:active {
  background: #e84c14;
}

/* clip-path hides an outside outline, so draw focus inside the button. */
.btn:focus-visible {
  outline: 2px solid var(--night);
  outline-offset: -6px;
}

.btn-ico {
  flex: none;
  width: 18px;
  height: 18px;
}

@media (min-width: 1200px) {
  .hero {
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.45fr);
    align-items: center;
    column-gap: clamp(40px, 4vw, 72px);
  }
}

/* ---------- Terminal ---------- */

.term {
  position: relative;
  min-width: 0;
  margin: 0;
  isolation: isolate;
}

.term::before {
  content: "";
  position: absolute;
  inset: 8% 6%;
  z-index: -1;
  background: radial-gradient(closest-side, rgb(51 198 255 / 0.3), transparent);
  filter: blur(34px);
}

.term-frame,
.term-inner {
  clip-path: polygon(0 0, calc(100% - var(--c)) 0, 100% var(--c), 100% 100%, var(--c) 100%, 0 calc(100% - var(--c)));
}

.term-frame {
  --c: var(--cut);
  padding: 1px;
  background: linear-gradient(155deg, rgb(51 198 255 / 0.8), rgb(51 198 255 / 0.16) 42%, rgb(255 90 31 / 0.55));
}

.term-inner {
  --c: calc(var(--cut) - 0.5px);
  background: linear-gradient(180deg, #0d1333, var(--deck) 40%);
}

.term-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  height: 38px;
  padding-right: 14px;
  border-bottom: 1px solid var(--line);
  color: var(--fog);
  font-size: 12px;
}

.term-tab {
  display: grid;
  place-items: center;
  align-self: stretch;
  padding: 0 14px;
  background: var(--ion);
  color: var(--night);
  font-weight: 700;
}

.term-title {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  color: var(--paper-dim);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.term-legend {
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.sw {
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-left: 10px;
}

.sw-out {
  background: var(--paper);
}

.sw-err {
  background: var(--fog);
}

.term-replay {
  height: 24px;
  padding: 0 10px;
  border: 1px solid rgb(51 198 255 / 0.5);
  background: transparent;
  color: var(--ion);
  font: 600 11px/1 var(--mono);
  cursor: pointer;
}

.term-replay:hover {
  background: rgb(51 198 255 / 0.12);
}

/* Keys pressed in the recorded demo, shown as they happen. */
.keycast {
  display: flex;
  flex: none;
  align-items: center;
  gap: 6px;
}

.keycast kbd {
  font-size: 11px;
  animation: key-in 0.16s ease-out both;
}

.keycast kbd.is-gone {
  opacity: 0;
  transform: translateY(-3px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

@keyframes key-in {
  from { opacity: 0; transform: translateY(4px) scale(0.9); }
}

kbd {
  display: inline-grid;
  place-items: center;
  min-width: 2.1em;
  height: 1.8em;
  padding: 0 0.5em;
  border: 1px solid rgb(51 198 255 / 0.45);
  border-bottom-width: 2px;
  background: rgb(51 198 255 / 0.08);
  color: var(--paper);
  font: 600 0.85em/1 var(--mono);
  font-stretch: 100%;
}

/* The tui demo: frames from the real renderer on a canvas, a text still without JS. */
.tui-screen {
  container-type: inline-size;
  background: #0e1621;
  line-height: 0;
}

.tui-canvas {
  display: block;
  width: 100%;
  transition: opacity 0.45s ease;
}

.tui-canvas.is-fading {
  opacity: 0;
}

.tui-still {
  margin: 0;
  padding: 1.2cqi 0.8cqi;
  overflow: hidden;
  color: #9db0c4;
  font: 400 1.6cqi/1.5 var(--mono);
  font-stretch: 75%;
  white-space: pre;
}

.term-screen {
  height: clamp(390px, 54vh, 480px);
  padding: 16px 18px 20px;
  overflow-y: auto;
  overscroll-behavior: contain;
  color: var(--paper);
  font-size: 13px;
  line-height: 1.55;
  scrollbar-color: var(--line) transparent;
  scrollbar-width: thin;
}

.term-screen:focus-visible {
  outline-offset: -3px;
}

.ln {
  margin: 0;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

.ln.err {
  color: var(--fog);
}

.ln + .ln.cmd {
  margin-top: 12px;
}

.ps1 {
  color: var(--ferris);
}

.qr {
  position: relative;
  width: max-content;
  margin: 10px 0 12px;
}

.qr-code {
  display: block;
  width: 205px;
  height: 205px;
}

.qr::after {
  content: "";
  position: absolute;
  top: 0;
  right: -10px;
  left: -10px;
  height: 2px;
  background: var(--ion);
  box-shadow: 0 0 12px 2px rgb(51 198 255 / 0.8);
  opacity: 0;
}

.qr.is-printing .qr-code {
  animation: qr-print 0.55s steps(21, end) both;
}

.qr.is-scanning::after {
  animation: qr-scan 1.05s ease-in-out 2 alternate;
}

@keyframes qr-print {
  from { clip-path: inset(0 0 100% 0); }
  to { clip-path: inset(0); }
}

@keyframes qr-scan {
  from { top: 0; opacity: 1; }
  to { top: calc(100% - 2px); opacity: 1; }
}

.cursor {
  display: inline-block;
  width: 0.62em;
  height: 1.25em;
  margin-left: 1px;
  vertical-align: text-bottom;
  background: var(--ion);
  box-shadow: 0 0 8px rgb(51 198 255 / 0.7);
  animation: blink 1.1s steps(1, end) infinite;
}

.is-typing .cursor {
  animation: none;
}

@keyframes blink {
  50% { opacity: 0; }
}

.j-k { color: var(--ion); }
.j-s { color: var(--paper); }
.j-n,
.j-l { color: var(--ferris-soft); }
.j-p { color: var(--fog); }

/* ---------- Sections ---------- */

.sec {
  max-width: 1360px;
  padding: clamp(64px, 12vh, 150px) var(--gutter) 0;
}

.sec-head {
  max-width: 64ch;
  margin-bottom: clamp(32px, 5vh, 56px);
}

.sec-head h2 {
  margin: 0 0 14px;
  color: var(--paper);
  font-size: clamp(30px, 4vw, 52px);
  font-stretch: 100%;
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.05;
}

.sec-head p {
  margin: 0;
}

/* TUI: a feature grid and the essential keys. */

.features {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin: 0 0 clamp(36px, 6vh, 60px);
  padding: 0;
  list-style: none;
  border: 1px solid var(--line);
  background: var(--line);
}

.features > li {
  padding: 26px 24px 28px;
  background: var(--night-deep);
}

.features h3 {
  margin: 0 0 10px;
  color: var(--paper);
  font-size: 17px;
  font-stretch: 100%;
  font-weight: 700;
  line-height: 1.3;
}

.features h3::before {
  content: "› ";
  color: var(--ion);
}

.features p {
  margin: 0;
  font-size: 14px;
}

.keymap {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px 28px;
  margin: 0;
}

.keymap > div {
  display: grid;
  align-content: start;
  gap: 8px;
}

.keymap dt {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 14px;
}

.keymap dd {
  margin: 0;
  color: var(--fog);
  font-size: 13px;
  line-height: 1.45;
}

@media (max-width: 960px) {
  .features,
  .keymap {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .features {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Commands: a localized --help listing. */

.term--cli {
  max-width: 920px;
  margin-bottom: clamp(40px, 6vh, 64px);
}

.help {
  margin: 0;
  border-top: 1px solid var(--line);
}

.help-row {
  display: grid;
  grid-template-columns: 9ch minmax(0, 1fr);
  gap: 10px 28px;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
}

.help-row > dt {
  color: var(--ferris);
  font-size: 19px;
  font-stretch: 100%;
  font-weight: 700;
  line-height: 1.35;
}

.help-row > dd {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  align-items: start;
  gap: 16px 36px;
  margin: 0;
}

.help-desc > p {
  margin: 0;
}

.flags {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  gap: 5px 20px;
  margin: 16px 0 0;
  font-size: 13px;
}

.flags > dt {
  color: var(--ion);
  white-space: nowrap;
}

.flags > dd {
  margin: 0;
  color: var(--paper-dim);
}

.help-desc > .note {
  margin-top: 14px;
  color: var(--fog);
  font-size: 13px;
}

.ex {
  margin: 0;
  padding: 11px 14px;
  border-left: 2px solid var(--ion);
  background: rgb(51 198 255 / 0.06);
  color: var(--paper);
  font: inherit;
  font-size: 13px;
  line-height: 1.5;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

.help-foot {
  margin: 24px 0 0;
  color: var(--fog);
  font-size: 13px;
}

@media (max-width: 860px) {
  .help-row,
  .help-row > dd {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 480px) {
  .flags {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }

  .flags > dd {
    margin-bottom: 8px;
  }
}

/* Read-only: an LED board of zeros and a boot log. */

.board {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0 0 44px;
  padding: 0;
  list-style: none;
  background: var(--night-deep);
  border: 1px solid var(--line);
}

.board > li {
  display: grid;
  justify-items: center;
  gap: 22px;
  padding: 40px 16px 28px;
  text-align: center;
}

.board > li + li {
  border-left: 1px solid var(--line);
}

.board .zero {
  color: #ffd6c4;
  font-size: clamp(96px, 10vw, 140px);
  line-height: 0.78;
  text-shadow:
    0 0 1px rgb(255 255 255 / 0.6),
    0 0 10px rgb(255 90 31 / 0.95),
    0 0 32px rgb(255 90 31 / 0.55);
}

.board p {
  margin: 0;
  color: var(--fog);
  font-size: 13px;
  line-height: 1.4;
}

@media (max-width: 640px) {
  .board {
    grid-template-columns: minmax(0, 1fr);
  }

  .board > li {
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    justify-items: start;
    gap: 22px;
    padding: 18px 22px;
    text-align: left;
  }

  .board > li + li {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .board .zero {
    font-size: 72px;
  }
}

.bootlog {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 14px;
}

.bootlog > li {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  gap: 16px;
}

.ok {
  color: var(--fog);
  white-space: pre;
}

.ok b {
  color: var(--ion);
  font-weight: 700;
}

/* Install steps. */

.steps {
  display: grid;
  gap: clamp(44px, 7vh, 72px);
  margin: 0;
  padding: 0;
  list-style: none;
}

.step {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  align-items: start;
  gap: 18px 48px;
}

.step h3 {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--paper);
  font-size: 20px;
  font-stretch: 100%;
  font-weight: 700;
  line-height: 1.3;
}

.step-n {
  margin-right: 1ch;
  color: var(--ion);
}

.step-text > p {
  margin: 0 0 12px;
}

.step-text > .hint {
  margin: 14px 0 0;
  color: var(--fog);
  font-size: 13px;
}

.dl {
  display: grid;
  justify-items: start;
  gap: 16px;
}

.dl-meta {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  gap: 4px 14px;
  margin: 0;
  color: var(--fog);
  font-size: 12px;
}

.dl-meta > dd {
  margin: 0;
  color: var(--paper-dim);
  overflow-wrap: anywhere;
}

.dl-meta a {
  color: var(--paper-dim);
}

.code {
  position: relative;
  min-width: 0;
  border: 1px solid var(--line);
  background: var(--deck);
}

.code pre {
  margin: 0;
  padding: 22px 18px 16px;
  overflow-x: auto;
  color: var(--paper);
  font-size: 13px;
  line-height: 1.7;
  scrollbar-color: var(--line) transparent;
  scrollbar-width: thin;
}

.code .res {
  color: var(--fog);
}

/* Copy sits on the block's top border like a tab, so long lines never run under it. */
.copy {
  position: absolute;
  top: 0;
  right: 14px;
  height: 26px;
  padding: 0 10px;
  border: 1px solid var(--line);
  background: var(--night-deep);
  color: var(--fog);
  font: 500 11px/1 var(--mono);
  cursor: pointer;
  transform: translateY(-50%);
}

.copy:hover {
  border-color: var(--fog);
  color: var(--paper);
}

.copy.is-done {
  border-color: var(--ion);
  color: var(--ion);
}

@media (max-width: 960px) {
  .step {
    grid-template-columns: minmax(0, 1fr);
  }

  .step .code {
    margin-top: 10px;
  }
}

/* ---------- Footer ---------- */

.foot {
  max-width: 1360px;
  padding: clamp(96px, 15vh, 170px) var(--gutter) 44px;
  color: var(--fog);
  font-size: 12px;
}

.foot p {
  margin: 0 0 6px;
}

.foot-prompt {
  color: var(--paper-dim);
}

/* ---------- tmux status bar ---------- */

.tmux {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 100;
  display: flex;
  align-items: stretch;
  height: calc(var(--bar-h) + env(safe-area-inset-bottom));
  padding-bottom: env(safe-area-inset-bottom);
  border-top: 1px solid rgb(51 198 255 / 0.28);
  background: #0c1838;
  font-size: 12px;
  line-height: 1;
  white-space: nowrap;
}

.tmux a {
  display: flex;
  align-items: center;
  color: var(--paper-dim);
  text-decoration: none;
}

.tmux a:hover {
  color: var(--paper);
}

.tmux a:focus-visible {
  outline-offset: -2px;
}

.tmux-session {
  flex: none;
  padding: 0 12px;
  background: var(--ion);
  font-weight: 700;
}

.tmux .tmux-session,
.tmux .tmux-session:hover {
  color: var(--night);
}

.tmux-wins {
  display: flex;
  flex: 1;
  min-width: 0;
  margin: 0;
  padding: 0 4px;
  overflow-x: auto;
  list-style: none;
  scrollbar-width: none;
}

.tmux-wins::-webkit-scrollbar {
  display: none;
}

.tmux-wins a {
  height: 100%;
  padding: 0 9px;
}

.tmux-wins a[aria-current] {
  color: var(--ferris);
  font-weight: 700;
}

.tmux-wins a[aria-current]::after {
  content: "*";
}

.tmux-right {
  display: flex;
  flex: none;
  align-items: stretch;
}

.tmux .tmux-dl {
  padding: 0 12px;
  color: var(--ion);
  font-weight: 600;
}

.tmux-clock:empty {
  display: none;
}

.tmux-clock {
  display: flex;
  align-items: center;
  padding: 0 12px;
  background: #13224d;
  color: var(--paper);
}

@media (max-width: 600px) {
  .tmux-dl {
    display: none !important;
  }
}

/* ---------- Small screens ---------- */

@media (max-width: 560px) {
  body {
    font-size: 14px;
  }

  .term-legend {
    display: none;
  }

  .term-screen {
    padding: 14px 14px 18px;
    font-size: 11.5px;
  }

  .qr-code {
    width: 164px;
    height: 164px;
  }

  .code pre {
    overflow-wrap: anywhere;
    white-space: pre-wrap;
  }

  .bootlog {
    font-size: 13px;
  }

  .bootlog > li {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .cursor {
    animation: none;
  }
}
