/* conn.w0zro.com: the grammar, beside the panel. The panel is drawn as
   conn draws it, with conn's marks and inks (the conn theme's dark
   ground, from internal/theme/sheets/conn.json), and answers the keys
   as conn does. Beside it the verbs against their objects; under both,
   the facts a line each. The panes gather into the panel once, as the
   page opens. */

:root {
  --ground: #15130F;
  --surface: #1D1A15;
  --border: #2A2620;
  --ink: #E6DFD0;
  --parchment: #BFB39A;
  --gray: #8B8272;
  --faint: #5C564A;
  --accent: #E85D2F;
  --shimmer: #FF7847;
  --running: #93C98B;
  --chosen: #2A2620;
  --block: #E85D2F;
  --on-block: #15130F;
  --mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  --row: 20px;
  --panel-w: 370px;
}

html { background: var(--ground); -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font: 400 13px/1.5 var(--mono);
  font-variant-ligatures: none;
  font-feature-settings: 'liga' 0, 'calt' 0;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
pre { margin: 0; font: inherit; white-space: pre; }
ul { list-style: none; margin: 0; padding: 0; }
b { font-weight: 700; }
::selection { background: var(--border); color: var(--ink); }
@keyframes blink { 50% { opacity: 0; } }
.cursor { display: inline-block; width: 0.55em; height: 1em; background: var(--accent); vertical-align: -0.12em; margin-left: 0.08em; animation: blink 1s steps(1) infinite; }
.cursor.off { visibility: hidden; }

/* The head. */
.nav {
  position: fixed; left: 0; right: 0; top: 0; z-index: 5;
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 22px 28px;
  font-size: 12px; font-weight: 700; letter-spacing: 0.2em;
  color: var(--parchment);
  background: linear-gradient(var(--ground) 60%, transparent);
}
.nav .mark { color: var(--ink); }
.nav .links { display: flex; gap: 24px; }
.nav .links a:hover { color: var(--ink); }
.nav .links .accent { color: var(--accent); }

/* The hero is conn's window: the panel pane at the left, the grammar
   where the workspace is, and under both the two lines of tmux's
   status: the band, and the key bar. */
.hero {
  min-height: 100vh; min-height: 100dvh;
  box-sizing: border-box;
  display: grid; grid-template-columns: var(--panel-w) minmax(0, 560px);
  grid-template-rows: auto var(--row) var(--row);
  column-gap: 72px; row-gap: 0; justify-content: center; align-content: center;
  padding: 88px 24px 48px;
}
.hero .grammar { align-self: center; padding-bottom: var(--row); }
.band, .bar {
  grid-column: 1 / -1;
  height: var(--row); line-height: var(--row);
  white-space: nowrap; overflow: hidden;
}
.band { background: var(--border); color: var(--gray); display: flex; justify-content: space-between; padding: 0 10px; }
.band .who { color: var(--ink); font-weight: 700; }
.band .count { color: var(--accent); font-weight: 700; }
.bar { background: var(--block); color: var(--on-block); padding: 0 10px; }
.bar b { font-weight: 700; }
.bar i { font-style: normal; margin-right: 3ch; }
.bar i:last-child { margin-right: 0; }

/* The panel: the open project's head, a row a process, the projects
   label with its rule and a line a project, and at its foot a saying
   of conn's own, under a row of air. A row is laid as conn lays one:
   the cursor's bar, the margin where the spinner turns, the mark, the
   name, the figure at the right. */
.panel {
  position: relative; isolation: isolate;
  width: var(--panel-w); box-sizing: border-box;
  padding: var(--row) 0 0;
  display: flex; flex-direction: column;
}
.panel .say { padding: var(--row) 10px 0 24px; min-height: calc(2 * var(--row)); line-height: var(--row); color: var(--ink); white-space: normal; }
.panelbg { position: absolute; inset: 0; background: var(--surface); z-index: -1; }
/* While the panes gather, the panel and the grammar are there only as
   site.js brings each piece in. */
.panel.gathering .panelbg, .panel.gathering .phead, .panel.gathering .plabel, .hero.gathering .band, .hero.gathering .bar,
.panel.gathering .row, .panel.gathering .pline, .grammar.gathering { opacity: 0; }
.phead, .row, .plabel, .pline {
  height: var(--row); line-height: var(--row);
  display: flex; align-items: center; white-space: nowrap;
  padding-right: 10px;
}
.phead { padding-left: 24px; margin-bottom: var(--row); }
.phead .pname { color: var(--shimmer); font-weight: 700; margin-right: 16px; }
.phead .ppath { color: var(--gray); overflow: hidden; text-overflow: ellipsis; }
.rows { min-height: var(--row); }
.rows .air { height: var(--row); }
.row .cur { width: 10px; flex: none; color: var(--accent); font-weight: 700; visibility: hidden; }
.row.at { background: var(--chosen); }
.row.at .cur { visibility: visible; }
.row .spin { width: 14px; flex: none; color: var(--running); }
.row .mark { width: 16px; flex: none; color: var(--ink); }
.row .name { flex: 1; color: var(--ink); overflow: hidden; text-overflow: ellipsis; }
.row .fig { flex: none; color: var(--gray); margin-left: 12px; }
.row.waiting .mark, .row.waiting .name, .row.waiting .fig { color: var(--accent); font-weight: 700; }
.row.failed .mark, .row.failed .name, .row.failed .fig { color: var(--shimmer); font-weight: 700; }
.row.passed .mark { color: var(--running); }
.row.rest .name { color: var(--gray); }
.row.rest .fig { color: var(--faint); }
.row { transition: opacity .3s; }
/* The projects are a strip at the panel's foot, under a label in a
   rule from edge to edge and a row of air. */
.plabel { padding: 0; margin: auto 0 var(--row); color: var(--gray); }
.plabel::before { content: ''; width: 16px; flex: none; margin-right: 8px; border-top: 1px solid var(--border); }
.plabel span:first-child { margin-right: 8px; }
.plabel .rule { flex: 1; border-top: 1px solid var(--border); }
.pline { padding-left: 10px; }
.pline .spin { width: 14px; flex: none; color: var(--running); }
.pline .pname { flex: 1; color: var(--parchment); font-weight: 700; }
.pline .fig { flex: none; color: var(--gray); margin-left: 12px; }
.pline.waiting .pname { color: var(--accent); }

/* The field: the panes that gather into the panel, over everything,
   once. A pane is a terminal with a process in it, nothing around it
   but its edge; its body folds away as it becomes a row. */
.field { position: fixed; inset: 0; z-index: 4; pointer-events: none; }
.win {
  position: absolute; left: 0; top: 0;
  box-sizing: border-box;
  background: var(--surface);
  border: 1px solid var(--border);
  overflow: hidden;
  will-change: transform, width, height, opacity;
  transition: background-color .4s, border-color .4s;
}
.win .head {
  position: absolute; left: 0; right: 0; top: 0;
  height: var(--row); line-height: var(--row);
  display: flex; align-items: center; padding-right: 10px; white-space: nowrap;
}
.win .head .cur { width: 10px; flex: none; }
.win .head .spin { width: 14px; flex: none; color: var(--running); }
.win .head .mark { width: 16px; flex: none; color: var(--ink); }
.win .head .name { flex: 1; color: var(--ink); overflow: hidden; text-overflow: ellipsis; }
.win.waiting .head .mark, .win.waiting .head .name { color: var(--accent); font-weight: 700; }
.win.failed .head .mark, .win.failed .head .name { color: var(--shimmer); font-weight: 700; }
.win.passed .head .mark { color: var(--running); }
.win .body {
  position: absolute; left: 10px; right: 10px; top: var(--row);
  font-size: 11px; line-height: 16px; color: var(--parchment); overflow: hidden;
}
.body .g { color: var(--gray); }
.body .a { color: var(--accent); }
.body .r { color: var(--running); }
.body .f { color: var(--faint); }
.body .k { color: var(--ink); }
.body .cursor { width: 7px; height: 13px; vertical-align: -2px; }
.win.row { border-color: transparent; background: transparent; }

/* The grammar: the line, the verbs against their objects, the keys
   that act at once, and the install. */
.grammar .line {
  margin: 0 0 28px;
  font-size: clamp(30px, 3.4vw, 44px); line-height: 1.1; font-weight: 700; letter-spacing: -0.03em;
  min-height: 1.1em;
}
.verbs { border-collapse: collapse; width: 100%; max-width: 460px; }
.verbs th, .verbs td { padding: 0 8px; height: 30px; text-align: left; font-weight: 400; white-space: nowrap; }
.verbs thead th { vertical-align: bottom; padding-bottom: 6px; border-bottom: 1px solid var(--border); }
.verbs thead th b { color: var(--ink); display: block; }
.verbs thead th span { color: var(--gray); font-size: 11px; }
.verbs tbody th { padding-left: 0; }
.verbs tbody th b { color: var(--ink); display: inline-block; width: 2ch; }
.verbs tbody th span { color: var(--gray); }
.verbs td { color: var(--ink); font-weight: 700; cursor: pointer; }
.verbs td:empty { cursor: default; }
.verbs td:empty::before { content: '·'; color: var(--faint); font-weight: 400; }
.verbs td:hover, .verbs td.lit { background: var(--chosen); }
.verbs td.lit { color: var(--accent); }
.verbs th.pending b { color: var(--accent); }
.verbs td.pending { color: var(--accent); }
.atonce { display: grid; grid-template-columns: 1fr 1fr; gap: 2px 24px; margin: 22px 0 0; color: var(--gray); }
.atonce b { display: inline-block; min-width: 6ch; color: var(--ink); }
.atonce b[data-key] { cursor: pointer; }
.press { margin: 22px 0 24px; color: var(--parchment); }

.cmd {
  display: flex; align-items: baseline; gap: 14px;
  background: var(--surface); border: 1px solid var(--border);
  padding: 14px 18px; font-size: 14px; color: var(--ink); overflow-x: auto;
}
.cmd .prompt { color: var(--accent); font-weight: 700; }
.cmd code { flex: 1; font: inherit; white-space: nowrap; }
.copy { font: inherit; color: var(--gray); background: none; border: 0; padding: 0; cursor: pointer; white-space: nowrap; }
.copy:hover { color: var(--ink); }
.copy.done { color: var(--accent); }

/* The parts under the hero: a kicker, and the facts a line each. */
main { max-width: 1002px; margin: 0 auto; padding: 0 24px; }
.part { padding: 56px 0; border-top: 1px solid var(--border); }
.kicker { margin: 0 0 24px; font-size: 11px; font-weight: 700; letter-spacing: 0.2em; color: var(--parchment); }
.cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px 56px; align-items: start; }
.facts { color: var(--parchment); max-width: 520px; }
.facts li { margin: 0 0 10px; }
.facts b, .facts a { color: var(--ink); }
.facts a { border-bottom: 1px solid var(--faint); }
.facts a:hover { border-color: var(--ink); }

.legend { background: var(--surface); padding: 12px 0; overflow: hidden; }
.legend li { display: flex; align-items: center; height: var(--row); padding: 0 10px 0 24px; white-space: nowrap; }
.legend .mark { width: 16px; flex: none; color: var(--ink); }
.legend .mark.pass { color: var(--running); }
.legend .mark.fail { color: var(--shimmer); }
.legend li span:nth-child(2) { flex: 1; color: var(--parchment); overflow: hidden; text-overflow: ellipsis; }
.legend .fig { flex: none; color: var(--gray); margin-left: 12px; white-space: pre; }

.offer { background: var(--surface); padding: var(--row) 0 0; min-height: calc(10 * var(--row)); display: flex; flex-direction: column; }
.offer .obody { flex: 1; }
.offer .obody .l { height: var(--row); line-height: var(--row); padding: 0 10px 0 24px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--gray); }
.offer .obody .l.ask { color: var(--parchment); font-weight: 700; }
.offer .obody .l.offered b { color: var(--ink); display: inline-block; min-width: 6ch; }
.offer .bar { margin-top: var(--row); }
.shell { background: var(--surface); border: 1px solid var(--border); padding: 10px 12px; min-height: 112px; }
.shell .body { font-size: 12px; line-height: 18px; color: var(--parchment); white-space: pre-wrap; }
.shell .cursor { width: 7px; height: 13px; vertical-align: -2px; }
.cli { margin-top: 36px; }
.cli li { display: grid; grid-template-columns: 30ch 1fr; gap: 24px; margin: 0 0 6px; color: var(--gray); }
.cli b { color: var(--ink); white-space: nowrap; }

.title {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--surface); border: 1px solid var(--border);
  padding: 8px 16px 8px 12px; color: var(--parchment);
}
.title .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--border); }
.title .name { margin-left: 12px; }

.install .cmd { max-width: 560px; margin-bottom: 24px; }
.end { max-width: 1002px; margin: 0 auto; padding: 32px 24px 48px; display: flex; justify-content: space-between; color: var(--faint); border-top: 1px solid var(--border); }

@media (max-width: 920px) {
  .hero { grid-template-columns: minmax(0, var(--panel-w)); grid-template-rows: auto auto var(--row) auto; column-gap: 0; padding-top: 80px; }
  .hero .grammar { margin-top: 40px; }
  .bar { height: auto; white-space: normal; display: flex; flex-wrap: wrap; column-gap: 3ch; }
  .bar i { margin-right: 0; white-space: nowrap; }
  .grammar { max-width: var(--panel-w); }
  .cols { grid-template-columns: minmax(0, 1fr); }
  .cli li { grid-template-columns: 1fr; gap: 0; margin-bottom: 12px; }
}
@media (max-width: 420px) {
  :root { --panel-w: calc(100vw - 32px); --row: 18px; }
  .nav { padding: 16px 18px; }
  .hero { padding: 72px 16px 40px; }
  main, .end { padding-left: 16px; padding-right: 16px; }
  .grammar .line { font-size: 28px; margin-bottom: 18px; }
  .verbs th, .verbs td { padding: 0 5px; }
  .atonce { grid-template-columns: 1fr; }
  .cmd { flex-wrap: wrap; padding: 10px 12px; font-size: 12px; }
  .cmd code { white-space: normal; word-break: break-all; }
}
@media (prefers-reduced-motion: reduce) {
  .cursor { animation: none; }
  .row, .pline, .panel, .grammar { transition: none; }
}
