:root {
  --void: #06090b;
  --panel: #0a1013;
  --grid: rgba(116,178,188,.05);
  --rule: rgba(120,172,182,.2);
  --ink: #97afb6;
  --ink-bright: #d9e7ea;
  --cyan: #5fcbd4;
  --amber: #e0a04a;
  --bone: #ece6da;
  --mono: 'IBM Plex Mono', ui-monospace, Menlo, monospace;
  --serif: 'Newsreader', Georgia, serif;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; background: var(--void); }

body {
  margin: 0;
  background-color: var(--void);
  background-image:
    repeating-linear-gradient(90deg, var(--grid) 0 1px, transparent 1px 34px),
    repeating-linear-gradient(0deg, var(--grid) 0 1px, transparent 1px 34px),
    radial-gradient(120% 80% at 50% -10%, #0d171b 0%, var(--void) 62%);
  background-attachment: fixed;
  color: var(--ink);
  font: 400 15px/1.65 var(--mono);
  font-variant-ligatures: none;
  padding-bottom: 4rem;
}

a { color: var(--cyan); text-decoration: none; }
a:hover { color: var(--ink-bright); }

.rig {
  max-width: 820px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* masthead */
.masthead {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.6rem 0 1.4rem;
  border-bottom: 1px solid var(--rule);
  margin-bottom: 3.5rem;
  flex-wrap: wrap;
}
.mark {
  font: 300 1.05rem/1 var(--serif);
  letter-spacing: .06em;
  color: var(--ink-bright);
  display: flex;
  align-items: center;
  gap: .7rem;
}
.mark-glyph {
  width: 11px; height: 11px;
  border: 1px solid var(--cyan);
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(95,203,212,.09), inset 0 0 5px rgba(95,203,212,.5);
}
.masthead nav { display: flex; gap: 1.6rem; font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; }
.masthead nav a { color: var(--ink); }

/* intro + headings */
.kicker {
  font-size: .68rem;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: rgba(151,175,182,.6);
  margin: 0 0 1.4rem;
}
h1 {
  font: 300 clamp(1.9rem, 5vw, 2.9rem)/1.18 var(--serif);
  color: var(--ink-bright);
  margin: 0 0 1.6rem;
  letter-spacing: -.01em;
}
h1.question { font-style: italic; font-size: clamp(1.4rem, 3.6vw, 1.95rem); }
h2 {
  font: 400 .72rem/1 var(--mono);
  letter-spacing: .24em;
  text-transform: uppercase;
  color: rgba(151,175,182,.65);
  margin: 0 0 1.2rem;
}
.lede { max-width: 62ch; margin: 0 0 1.1rem; }
.lede.dim { color: rgba(151,175,182,.62); }
.intro { margin-bottom: 3.2rem; }

/* ask form */
.probe {
  border: 1px solid var(--rule);
  background: linear-gradient(180deg, rgba(12,22,26,.85), rgba(6,10,12,.6));
  padding: 1.5rem;
  position: relative;
}
.probe::before, .probe::after {
  content: '';
  position: absolute; width: 7px; height: 7px;
  border: 1px solid var(--cyan);
  opacity: .55;
}
.probe::before { top: -4px; left: -4px; border-right: 0; border-bottom: 0; }
.probe::after { bottom: -4px; right: -4px; border-left: 0; border-top: 0; }
.probe label {
  display: block;
  font-size: .68rem; letter-spacing: .22em; text-transform: uppercase;
  color: rgba(151,175,182,.7);
  margin-bottom: .9rem;
}
.probe textarea {
  width: 100%;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--rule);
  color: var(--ink-bright);
  font: 300 1.15rem/1.55 var(--serif);
  padding: 0 0 .8rem;
  resize: vertical;
}
.probe textarea::placeholder { color: rgba(151,175,182,.35); font-style: italic; }
.probe textarea:focus { outline: 0; border-bottom-color: var(--cyan); }
.probe-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 1.1rem; gap: 1rem; }
.counter { font-size: .7rem; color: rgba(151,175,182,.45); letter-spacing: .1em; }
button {
  font: 400 .7rem/1 var(--mono);
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--void);
  background: var(--cyan);
  border: 0;
  padding: .8rem 1.4rem;
  cursor: pointer;
}
button:hover { background: var(--ink-bright); }

/* recent / archive lists */
.recent { margin-top: 3.5rem; }
.recent ul { list-style: none; margin: 0 0 1.2rem; padding: 0; }
.recent li { border-top: 1px solid var(--rule); }
.recent li a { display: block; padding: .85rem 0; color: var(--ink); }
.recent li a:hover { color: var(--ink-bright); }
.ts { display: inline-block; min-width: 12.5em; font-size: .72rem; color: rgba(151,175,182,.45); letter-spacing: .06em; }
.more { font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; }

.log { list-style: none; margin: 0; padding: 0; counter-reset: none; }
.log li { border-top: 1px solid var(--rule); }
.log li:last-child { border-bottom: 1px solid var(--rule); }
.log a { display: block; padding: 1.3rem 0; color: var(--ink); }
.log-q { display: block; font: 300 1.15rem/1.4 var(--serif); font-style: italic; color: var(--ink-bright); margin-bottom: .5rem; }
.log-meta { display: flex; gap: 1.4rem; font-size: .7rem; letter-spacing: .1em; color: rgba(151,175,182,.45); }
.log-a { display: block; margin-top: .6rem; max-width: 70ch; font-size: .85rem; color: rgba(151,175,182,.72); }
.log a:hover .log-q { color: var(--cyan); }
.pager { display: flex; gap: 2rem; align-items: center; margin-top: 2rem; font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; }
.empty { margin: 3rem 0; color: rgba(151,175,182,.7); }

/* live status */
.probe-head { margin-bottom: 2.6rem; }
.status {
  font-size: .8rem;
  border-left: 2px solid var(--rule);
  padding: .35rem 0 .35rem .9rem;
  margin: 0;
  color: rgba(151,175,182,.75);
  max-width: 62ch;
}
.status[data-state="thinking"] { border-left-color: var(--cyan); }
.status[data-state="queued"] { border-left-color: var(--amber); color: var(--amber); }
.status[data-state="fault"] { border-left-color: #c85a4a; color: #dd8878; }
.status[data-state="opening"]::after,
.status[data-state="thinking"]::after {
  content: '';
  display: inline-block;
  width: 6px; height: 6px;
  margin-left: .6rem;
  background: var(--cyan);
  vertical-align: middle;
  animation: pulse 1.3s steps(1) infinite;
}
@keyframes pulse { 50% { opacity: .15; } }

/* the trace */
.trace { position: relative; }
.node {
  position: relative;
  display: grid;
  grid-template-columns: 3.2rem 1px 1fr;
  align-items: start;
  column-gap: 1.2rem;
  animation: settle .45s ease both;
}
@keyframes settle { from { opacity: 0; transform: translateY(6px); } }
.node .idx {
  font-size: .66rem;
  padding-top: .62rem;
  letter-spacing: .12em;
  color: rgba(151,175,182,.32);
  text-align: right;
}
.node .rail {
  align-self: stretch;
  background: var(--rule);
  position: relative;
}
.node .rail::before {
  content: '';
  position: absolute;
  left: -3px; top: .78rem;
  width: 7px; height: 7px;
  background: var(--void);
  border: 1px solid var(--cyan);
  border-radius: 50%;
}
.node .t { margin: .35rem 0; max-width: 64ch; white-space: pre-wrap; }

.node.pivot { margin-left: 2.2rem; }
.node.pivot .rail { background: var(--amber); }
.node.pivot .rail::before { border-color: var(--amber); border-radius: 0; transform: rotate(45deg); }
.node.pivot .t { color: #e9d3af; }
.node.pivot::before {
  content: '';
  position: absolute;
  left: -2.2rem; top: 1.05rem;
  width: 2.2rem; height: 1px;
  background: linear-gradient(90deg, transparent, var(--amber));
}
.node.pivot .idx::after { content: ' ⤿'; color: var(--amber); }

.node.superseded { opacity: .34; }
.node.superseded .t { text-decoration: line-through; text-decoration-color: rgba(151,175,182,.3); }
.node.superseded .rail::before { background: var(--rule); border-color: var(--rule); }

.node.live .t::after {
  content: '';
  display: inline-block;
  width: .55em; height: 1em;
  margin-left: .15em;
  background: var(--cyan);
  vertical-align: text-bottom;
  animation: pulse .9s steps(1) infinite;
}
.node.live .rail::before { animation: pulse 1.1s steps(1) infinite; }
.node.empty { display: none; }

/* the answer — a printed card left on the instrument */
.verdict {
  margin: 4rem 0 1rem;
  background: var(--bone);
  color: #1b1a17;
  padding: 2.2rem 2.4rem 1.8rem;
  box-shadow: 0 24px 60px rgba(0,0,0,.55);
  position: relative;
}
.verdict::before {
  content: '';
  position: absolute; inset: 8px;
  border: 1px solid rgba(27,26,23,.16);
  pointer-events: none;
}
.verdict-label {
  font: 400 .64rem/1 var(--mono);
  letter-spacing: .28em;
  text-transform: uppercase;
  color: rgba(27,26,23,.45);
  margin: 0 0 1.1rem;
}
.verdict-body {
  font: 300 1.3rem/1.55 var(--serif);
  max-width: 46ch;
  white-space: pre-wrap;
}
.verdict-foot { margin: 1.6rem 0 0; font-size: .72rem; letter-spacing: .1em; }
.verdict-foot a { color: #2a5f64; border-bottom: 1px solid rgba(42,95,100,.4); }

/* replay transport */
.transport {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  border: 1px solid var(--rule);
  padding: .9rem 1.1rem;
  margin-bottom: 2.4rem;
  background: rgba(8,13,15,.95);
  position: sticky;
  top: 0;
  z-index: 2;
  backdrop-filter: blur(2px);
}
.transport button { min-width: 6.2rem; }
.tape { font-size: .74rem; letter-spacing: .14em; color: rgba(151,175,182,.6); }
input[type=range] {
  flex: 1;
  -webkit-appearance: none;
  appearance: none;
  background: transparent;
  height: 22px;
  cursor: pointer;
}
input[type=range]::-webkit-slider-runnable-track { height: 1px; background: var(--rule); }
input[type=range]::-moz-range-track { height: 1px; background: var(--rule); }
input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 3px; height: 18px;
  margin-top: -9px;
  background: var(--cyan);
  border: 0;
}
input[type=range]::-moz-range-thumb { width: 3px; height: 18px; background: var(--cyan); border: 0; border-radius: 0; }
input[type=range]:focus { outline: 0; }

.colophon {
  max-width: 820px;
  margin: 5rem auto 0;
  padding: 1.4rem 1.5rem 0;
  border-top: 1px solid var(--rule);
  font-size: .7rem;
  letter-spacing: .08em;
  color: rgba(151,175,182,.4);
}

@media (max-width: 600px) {
  body { font-size: 14px; }
  .node { grid-template-columns: 2rem 1px 1fr; column-gap: .8rem; }
  .node.pivot { margin-left: 1rem; }
  .node.pivot::before { left: -1rem; width: 1rem; }
  .verdict { padding: 1.6rem 1.4rem; }
  .ts { display: block; min-width: 0; }
  .transport { flex-wrap: wrap; }
}
