/* Denom: an instrument, not a poster. */

:root {
  color-scheme: dark;

  --bg: #080b11;
  --bg-2: #0c1119;
  --panel: #0e141d;
  --panel-2: #121926;
  --line: rgba(255, 255, 255, .07);
  --line-2: rgba(255, 255, 255, .14);

  --ink: #e9eef7;
  --ink-2: #9aa7bd;
  --ink-3: #5d6b83;

  --sky: #4cc9f0;
  --sky-dim: rgba(76, 201, 240, .12);
  --pos: #34d399;
  --neg: #f87171;
  --warn: #fbbf24;

  --ui: 'Inter', system-ui, -apple-system, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, Consolas, monospace;
  --r: 12px;
}

* { box-sizing: border-box; }

/* The ground, set on the root as well as the body. A body faded from zero is
   transparent, and what shows through a transparent body is the html element,
   which is white unless told otherwise. */
html { background: var(--bg); }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--ui);
  -webkit-font-smoothing: antialiased;
}

/* A ruled ground, because this is a measuring tool. */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, .022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .022) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(120% 90% at 50% 0%, #000 30%, transparent 78%);
}

body > * { position: relative; z-index: 1; }

a { color: inherit; }

/* ============================ the bar ============================ */
.bar {
  display: flex;
  align-items: center;
  gap: 28px;
  max-width: 1240px;
  margin: 0 auto;
  padding: 20px 28px;
}

.mark { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.mark-img {
  display: block;
  width: 30px;
  height: 30px;
}
.mark-word {
  font: 700 16px/1 var(--ui);
  letter-spacing: .3em;
  color: var(--ink);
}

nav { display: flex; gap: 4px; flex: 1; }
nav a {
  padding: 9px 14px;
  border-radius: 9px;
  color: var(--ink-3);
  font: 500 13.5px/1 var(--ui);
  text-decoration: none;
  transition: color .16s, background .16s;
}
nav a:hover { color: var(--ink-2); }
nav a.on { color: var(--ink); background: var(--panel-2); }

.bar-right { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.ico {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 9px;
  color: var(--ink-3);
  transition: color .16s, border-color .16s;
}
.ico svg { width: 16px; height: 16px; }
.ico:hover { color: var(--ink); border-color: var(--line-2); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 10px;
  font: 600 13.5px/1 var(--ui);
  text-decoration: none;
  cursor: pointer;
  transition: filter .16s, background .16s, color .16s;
}
.btn.go { padding: 11px 18px; background: var(--sky); color: #041018; }
.btn.go:hover { filter: brightness(1.08); }
.btn.go.big { padding: 15px 30px; font-size: 15px; }
.btn.quiet {
  padding: 11px 18px;
  border: 1px solid var(--line-2);
  background: transparent;
  color: var(--ink-2);
}
.btn.quiet:hover { color: var(--ink); }

/* ============================ hero ============================ */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  align-items: center;
  gap: 60px;
  max-width: 1240px;
  margin: 0 auto;
  padding: 60px 28px 90px;
}

.eyebrow {
  margin: 0 0 20px;
  color: var(--sky);
  font: 500 11.5px/1 var(--mono);
  letter-spacing: .18em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  font: 700 clamp(34px, 4.6vw, 56px)/1.12 var(--ui);
  letter-spacing: -.03em;
}
.hero h1 em { font-style: normal; color: var(--sky); }

.lede {
  max-width: 52ch;
  margin: 22px 0 0;
  color: var(--ink-2);
  font-size: 16px;
  line-height: 1.7;
}

.hero-cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }

.strip {
  margin: 26px 0 0;
  color: var(--ink-3);
  font: 500 12px/1.6 var(--mono);
}
.strip b { color: var(--ink-2); }

/* the worked example */
.worked {
  margin: 0;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  box-shadow: 0 24px 60px rgba(0, 0, 0, .45);
}
.worked figcaption {
  color: var(--ink-3);
  font: 500 10.5px/1 var(--mono);
  letter-spacing: .16em;
  text-transform: uppercase;
}
.work-pair {
  margin: 14px 0 22px;
  font: 600 26px/1 var(--mono);
  letter-spacing: -.01em;
}
.work-rows { display: grid; gap: 14px; }
.work-row { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.work-row span { color: var(--ink-2); font-size: 14px; }
.work-row b { font: 500 18px/1 var(--mono); }
.work-row.sub span, .work-row.sub b { color: var(--ink-3); }
.work-rule { height: 1px; background: var(--line-2); }
.work-row.big span { color: var(--ink); font-weight: 600; }
.work-row.big b { font-size: 30px; font-weight: 600; }
.pos { color: var(--pos); }
.neg { color: var(--neg); }
.flat { color: var(--ink-3); }
.work-note { margin: 20px 0 0; color: var(--ink-3); font-size: 12.5px; line-height: 1.6; }

/* ============================ bands ============================ */
.band { max-width: 1240px; margin: 0 auto; padding: 80px 28px; }
/* A full bleed band, with its content still in the same column as every
   other section. Centring the children instead let any child with a margin of
   its own escape to the true page edge, which is what happened to the
   paragraph here while the heading stayed put. */
.band.tint {
  max-width: none;
  padding-left: max(28px, calc((100% - 1240px) / 2));
  padding-right: max(28px, calc((100% - 1240px) / 2));
  background: var(--bg-2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.band h2 {
  margin: 0 0 34px;
  font: 700 clamp(24px, 3vw, 34px)/1.2 var(--ui);
  letter-spacing: -.02em;
}
.band .wide { max-width: 70ch; margin: -18px 0 34px; color: var(--ink-2); font-size: 16px; line-height: 1.75; }

.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.card {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel);
}
.card.lit { border-color: rgba(76, 201, 240, .35); background: linear-gradient(180deg, rgba(76, 201, 240, .06), var(--panel)); }
.card .n { color: var(--ink-3); font: 500 11px/1 var(--mono); letter-spacing: .14em; }
.card h3 { margin: 14px 0 10px; font-size: 18px; }
.card p { margin: 0; color: var(--ink-2); font-size: 14px; line-height: 1.7; }

.foot-note { max-width: 74ch; margin: 30px 0 0; color: var(--ink-3); font-size: 13px; line-height: 1.75; }

.two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.quiet-card { padding: 24px; border: 1px solid var(--line); border-radius: 14px; }
.quiet-card h3 { margin: 0 0 10px; font-size: 17px; }
.quiet-card p { margin: 0; color: var(--ink-2); font-size: 14px; line-height: 1.7; }

.band.end { text-align: center; padding-bottom: 110px; }
.band.end h2 { margin-bottom: 26px; }
.foot { margin: 26px 0 0; color: var(--ink-3); font-size: 13px; }

/* ============================ the app ============================ */
.app-bar { border-bottom: 1px solid var(--line); max-width: none; }
.app-bar > * { }
body.at-home .app-bar, body.at-home main { display: none; }
body:not(.at-home) #home { display: none; }
body:not(.at-home)::before { mask-image: none; opacity: .5; }

main { max-width: 1240px; margin: 0 auto; padding: 34px 28px 90px; }
.view { display: none; }
.view.on { display: block; animation: rise .28s ease both; }
@keyframes rise { from { opacity: 0; transform: translateY(8px) } to { opacity: 1; transform: none } }

.head { margin-bottom: 26px; }
.head h1 { margin: 0; font: 700 32px/1.1 var(--ui); letter-spacing: -.02em; }
.head p { margin: 10px 0 0; color: var(--ink-2); font-size: 15px; }

.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 16px; }
.seg { display: flex; gap: 2px; padding: 3px; border: 1px solid var(--line); border-radius: 11px; background: var(--panel); }
.seg button {
  padding: 8px 13px;
  border: 0;
  border-radius: 8px;
  background: none;
  color: var(--ink-3);
  font: 500 12.5px/1 var(--ui);
  cursor: pointer;
  transition: color .16s, background .16s;
}
.seg button:hover { color: var(--ink-2); }
.seg button.on { color: var(--ink); background: var(--panel-2); }

.panel { border: 1px solid var(--line); border-radius: 14px; background: var(--panel); overflow: hidden; }

.thead, .row {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) 106px 118px 128px 100px;
  align-items: center;
  gap: 12px;
  padding: 13px 20px;
}
.dhead, .drow {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 120px 130px 130px;
  align-items: center;
  gap: 12px;
  padding: 13px 20px;
}
.thead, .dhead {
  border-bottom: 1px solid var(--line);
  color: var(--ink-3);
  font: 500 10.5px/1 var(--mono);
  letter-spacing: .13em;
  text-transform: uppercase;
}
.thead span:nth-child(n+3), .row span:nth-child(n+3),
.dhead span:nth-child(n+2), .drow span:nth-child(n+2) { text-align: right; }

.row, .drow { border-bottom: 1px solid rgba(255, 255, 255, .04); font-size: 14px; cursor: pointer; }
.row:last-child, .drow:last-child { border-bottom: 0; }
.row:hover, .drow:hover { background: var(--panel-2); }

.tk { display: flex; align-items: center; gap: 10px; min-width: 0; }
.tk-img { flex: none; width: 26px; height: 26px; border-radius: 7px; object-fit: cover; background: var(--panel-2); }
.tk-img.blank { display: grid; place-items: center; font: 600 9.5px/1 var(--mono); color: var(--ink-3); border: 1px solid var(--line); }
.tk-name { min-width: 0; }
.tk-name b { display: block; font-weight: 600; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tk-name i { display: block; margin-top: 2px; color: var(--ink-3); font-style: normal; font: 500 10.5px/1 var(--mono); }

.denom-cell { display: flex; align-items: center; gap: 8px; min-width: 0; }
.tag {
  padding: 3px 7px;
  border-radius: 5px;
  font: 500 9.5px/1.5 var(--mono);
  letter-spacing: .06em;
  text-transform: uppercase;
}
.tag.stock { background: rgba(251, 191, 36, .14); color: var(--warn); }
.tag.crypto { background: rgba(76, 201, 240, .14); color: var(--sky); }

.num { font: 500 13.5px/1 var(--mono); }
.num.dim { color: var(--ink-3); }
.basis { font: 600 15px/1 var(--mono); }

.empty { padding: 44px 20px; text-align: center; color: var(--ink-3); font-size: 14px; }

/* ============================ the sheet ============================ */
.sheet {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(4, 6, 10, .7);
  backdrop-filter: blur(4px);
}
.sheet-card {
  position: relative;
  width: 100%;
  max-width: 520px;
  padding: 30px;
  border: 1px solid var(--line-2);
  border-radius: 16px;
  background: var(--panel);
}
.sheet .x {
  position: absolute;
  top: 16px;
  right: 16px;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: none;
  color: var(--ink-3);
  font: 500 10.5px/1 var(--mono);
  text-transform: uppercase;
  cursor: pointer;
}
.sheet .x:hover { color: var(--ink); }

.sh-pair { font: 600 24px/1 var(--mono); margin: 0 0 6px; }
.sh-sub { margin: 0 0 24px; color: var(--ink-3); font-size: 13px; }
.sh-line { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 11px 0; }
.sh-line span { color: var(--ink-2); font-size: 14px; }
.sh-line b { font: 500 17px/1 var(--mono); }
.sh-rule { height: 1px; background: var(--line-2); margin: 6px 0; }
.sh-line.big b { font-size: 27px; font-weight: 600; }
.sh-verdict { margin: 22px 0 0; padding: 16px; border-radius: 11px; font-size: 14px; line-height: 1.6; }
.sh-verdict.beat { background: rgba(52, 211, 153, .1); color: #a7f3d0; }
.sh-verdict.lost { background: rgba(248, 113, 113, .1); color: #fecaca; }
.sh-verdict.matched { background: rgba(255, 255, 255, .04); color: var(--ink-2); }
.sh-acts { display: flex; gap: 8px; margin-top: 20px; }

.toast {
  position: fixed;
  left: 50%;
  bottom: 30px;
  z-index: 60;
  transform: translateX(-50%) translateY(10px);
  padding: 12px 20px;
  border: 1px solid var(--line-2);
  border-radius: 10px;
  background: var(--panel-2);
  color: var(--ink);
  font-size: 13.5px;
  opacity: 0;
  transition: .22s;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ============================ narrow ============================ */
@media (max-width: 980px) {
  .hero { grid-template-columns: minmax(0, 1fr); gap: 40px; padding-top: 30px; }
  .cards { grid-template-columns: minmax(0, 1fr); }
  .two { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 720px) {
  .bar { flex-wrap: wrap; gap: 12px; padding: 14px 16px; }
  nav { order: 3; width: 100%; overflow-x: auto; }
  .band { padding: 54px 16px; }
  main { padding: 24px 16px 70px; }
  .mark-word { letter-spacing: .22em; font-size: 15px; }

  .thead, .row { grid-template-columns: minmax(0, 1.3fr) 96px 104px; }
  .thead span:nth-child(2), .row span:nth-child(2),
  .thead span:nth-child(5), .row span:nth-child(5),
  .thead span:nth-child(6), .row span:nth-child(6) { display: none; }
  .dhead, .drow { grid-template-columns: minmax(0, 1fr) 92px 104px; }
  .dhead span:nth-child(4), .drow span:nth-child(4) { display: none; }
}

/* A display rule beats the hidden attribute, so anything positioned that is
   also hidden has to say so twice. */
.sheet[hidden], .toast[hidden] { display: none !important; }

/* ============================ collateral ============================ */
.totals {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}
.total { padding: 20px 22px; border: 1px solid var(--line); border-radius: 13px; background: var(--panel); }
.total b { display: block; font: 600 27px/1 var(--mono); letter-spacing: -.02em; }
.total span { display: block; margin-top: 8px; color: var(--ink-3); font-size: 12.5px; line-height: 1.45; }

.chead, .crow {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) 130px 116px 128px 140px;
  align-items: center;
  gap: 12px;
  padding: 13px 20px;
}
.chead {
  border-bottom: 1px solid var(--line);
  color: var(--ink-3);
  font: 500 10.5px/1 var(--mono);
  letter-spacing: .13em;
  text-transform: uppercase;
}
.chead span:nth-child(n+2), .crow span:nth-child(n+2) { text-align: right; }
.crow { border-bottom: 1px solid rgba(255, 255, 255, .04); font-size: 14px; }
.crow:last-child { border-bottom: 0; }
.crow:hover { background: var(--panel-2); }
.crow .tk { gap: 9px; }

/* the collateral list in the hero card */
.work-total { margin: 14px 0 20px; }
.work-total b { display: block; font: 600 40px/1 var(--mono); letter-spacing: -.03em; color: var(--sky); }
.work-total span { display: block; margin-top: 8px; color: var(--ink-2); font-size: 13.5px; }
.work-list { display: grid; gap: 10px; }
.work-item { display: grid; grid-template-columns: 70px 1fr auto; align-items: baseline; gap: 10px; }
.work-item span { font: 600 14px/1 var(--mono); }
.work-item i { color: var(--ink-3); font-style: normal; font-size: 12px; }
.work-item b { font: 500 14px/1 var(--mono); color: var(--ink-2); }

.sh-exposure {
  margin: 0 0 22px;
  padding: 14px 16px;
  border-left: 2px solid var(--sky);
  border-radius: 0 9px 9px 0;
  background: rgba(76, 201, 240, .07);
  color: var(--ink-2);
  font-size: 13.5px;
  line-height: 1.6;
}

@media (max-width: 980px) { .totals { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 720px) {
  .chead, .crow { grid-template-columns: minmax(0, 1fr) 100px 96px; }
  .chead span:nth-child(n+4), .crow span:nth-child(n+4) { display: none; }
}

/* ============ the session, and how far things have drifted ============ */
.session {
  padding: 14px 18px;
  margin-bottom: 14px;
  border: 1px solid var(--line);
  border-left-width: 2px;
  border-radius: 11px;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--ink-2);
}
.session.open { border-left-color: var(--pos); background: rgba(52, 211, 153, .05); }
.session.shut { border-left-color: var(--warn); background: rgba(251, 191, 36, .06); }
.session b { color: var(--ink); }

.total.alert b { color: var(--warn); }
.crow.off { background: rgba(251, 191, 36, .06); }

.chead, .crow { grid-template-columns: minmax(0, 1.4fr) 116px 116px 96px 110px 96px; }

@media (max-width: 860px) {
  .chead, .crow { grid-template-columns: minmax(0, 1fr) 100px 88px; }
  .chead span:nth-child(3), .crow span:nth-child(3),
  .chead span:nth-child(n+5), .crow span:nth-child(n+5) { display: none; }
}

/* how much of a float is locked away inside memecoin pools */
.num.corner { color: var(--ink-2); }
.num.corner.warm { color: var(--warn); }
.num.corner.hot { color: var(--neg); font-weight: 600; }

.chead, .crow { grid-template-columns: minmax(0, 1.25fr) 104px 108px 108px 88px 100px 76px; }
@media (max-width: 860px) {
  .chead, .crow { grid-template-columns: minmax(0, 1fr) 92px 84px; }
  .chead span:nth-child(n+4), .crow span:nth-child(n+4) { display: none; }
}

/* ============================ your wallet ============================ */
.finder { display: flex; gap: 10px; margin-bottom: 22px; }
.finder input {
  flex: 1;
  min-width: 0;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--panel);
  color: var(--ink);
  font: 500 14px/1 var(--mono);
}
.finder input:focus { outline: none; border-color: var(--sky); }

.wallet-top { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 14px; margin-bottom: 26px; }
.verdict-big {
  padding: 26px 28px;
  border: 1px solid rgba(251, 191, 36, .35);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(251, 191, 36, .09), var(--panel));
}
.verdict-big.quiet { border-color: var(--line); background: var(--panel); }
.verdict-big b { display: block; font: 600 46px/1 var(--mono); letter-spacing: -.03em; color: var(--warn); }
.verdict-big.quiet b { color: var(--ink-2); font-size: 34px; }
.verdict-big span { display: block; margin-top: 10px; color: var(--ink-2); font-size: 14px; line-height: 1.5; }
.wallet-worth { padding: 26px 28px; border: 1px solid var(--line); border-radius: 14px; background: var(--panel); }
.wallet-worth b { display: block; font: 600 30px/1 var(--mono); letter-spacing: -.02em; }
.wallet-worth span { display: block; margin-top: 10px; color: var(--ink-3); font-size: 13px; }

.erow {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 130px 110px;
  align-items: center;
  gap: 12px;
  padding: 13px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, .04);
  font-size: 14px;
}
.erow:last-child { border-bottom: 0; }
.erow span:nth-child(n+2) { text-align: right; }

main .subhead {
  margin: 30px 0 12px;
  color: var(--ink-3);
  font: 500 10.5px/1 var(--mono);
  letter-spacing: .14em;
  text-transform: uppercase;
}

@media (max-width: 720px) {
  .wallet-top { grid-template-columns: minmax(0, 1fr); }
  .erow { grid-template-columns: minmax(0, 1fr) 100px; }
  .erow span:nth-child(3) { display: none; }
}

/* a float locked away, with a results date on it */
.due { display: grid; gap: 8px; margin-bottom: 14px; }
.due-row {
  display: grid;
  grid-template-columns: 74px 150px minmax(0, 1fr);
  align-items: baseline;
  gap: 12px;
  padding: 13px 18px;
  border: 1px solid rgba(248, 113, 113, .3);
  border-left-width: 2px;
  border-radius: 11px;
  background: rgba(248, 113, 113, .06);
}
.due-row b { font: 600 15px/1 var(--mono); }
.due-row span { color: var(--neg); font-size: 13.5px; font-weight: 600; }
.due-row i { color: var(--ink-2); font-style: normal; font-size: 13px; }
.num.soon { color: var(--neg); font-weight: 600; }

.chead, .crow { grid-template-columns: minmax(0, 1.2fr) 98px 80px 104px 104px 84px 96px 70px; }
@media (max-width: 900px) {
  .chead, .crow { grid-template-columns: minmax(0, 1fr) 88px 72px; }
  .chead span:nth-child(n+4), .crow span:nth-child(n+4) { display: none; }
  .due-row { grid-template-columns: 60px minmax(0, 1fr); }
  .due-row i { grid-column: 1 / -1; }
}

/* ============================ the siren ============================ */
/* The event this exists for. Until now it looked like a quiet Tuesday. */
.siren {
  margin-bottom: 14px;
  padding: 18px 20px;
  border: 1px solid rgba(248, 113, 113, .45);
  border-radius: 13px;
  background: linear-gradient(180deg, rgba(248, 113, 113, .12), rgba(248, 113, 113, .04));
}
.siren-head { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.siren-head b { font-size: 15px; color: #fecaca; }
.pulse {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--neg);
  box-shadow: 0 0 0 0 rgba(248, 113, 113, .7);
  animation: ping 1.8s ease-out infinite;
}
@keyframes ping {
  0% { box-shadow: 0 0 0 0 rgba(248, 113, 113, .6); }
  70% { box-shadow: 0 0 0 12px rgba(248, 113, 113, 0); }
  100% { box-shadow: 0 0 0 0 rgba(248, 113, 113, 0); }
}
.siren-row {
  display: grid;
  grid-template-columns: 80px minmax(0, 1fr) 90px;
  align-items: baseline;
  gap: 12px;
  padding: 8px 0;
  border-top: 1px solid rgba(255, 255, 255, .06);
}
.siren-row b { font: 600 15px/1 var(--mono); }
.siren-row span { color: var(--ink-2); font-size: 13px; }
.siren-row i { font: 600 16px/1 var(--mono); font-style: normal; text-align: right; }
.siren-row i.over { color: var(--neg); }
.siren-row i.under { color: var(--sky); }

/* the whole page knows, not just the panel */
body.alarm .app-bar { border-bottom-color: rgba(248, 113, 113, .4); }
body.alarm .mark-glyph { color: var(--neg); border-color: rgba(248, 113, 113, .5); }

@media (prefers-reduced-motion: reduce) { .pulse { animation: none; } }
@media (max-width: 720px) {
  .siren-row { grid-template-columns: 64px minmax(0, 1fr); }
  .siren-row i { grid-column: 1 / -1; text-align: left; }
}

/* what changed, once there is enough of it to say */
.mhead, .mrow {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) 94px 94px 94px 120px;
  align-items: center;
  gap: 12px;
  padding: 13px 20px;
}
.mhead {
  border-bottom: 1px solid var(--line);
  color: var(--ink-3);
  font: 500 10.5px/1 var(--mono);
  letter-spacing: .13em;
  text-transform: uppercase;
}
.mhead span:nth-child(n+2), .mrow span:nth-child(n+2) { text-align: right; }
.mrow { border-bottom: 1px solid rgba(255, 255, 255, .04); font-size: 14px; }
.mrow:last-child { border-bottom: 0; }
.mrow:hover { background: var(--panel-2); }

@media (max-width: 720px) {
  .mhead, .mrow { grid-template-columns: minmax(0, 1fr) 80px 80px; }
  .mhead span:nth-child(n+4), .mrow span:nth-child(n+4) { display: none; }
}

/* A second and third table on one view, each needing to say what it is. */
h2.sub {
  margin: 34px 0 6px;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -.01em;
}
h2.sub:first-of-type { margin-top: 26px; }
.sub-note {
  margin: 0 0 14px;
  max-width: 62ch;
  color: var(--dim);
  font-size: 13.5px;
  line-height: 1.55;
}
.mrow .pct {
  margin-left: 4px;
  opacity: .65;
  font-size: 12px;
  font-style: normal;
}

/* The issuer's answer, sat under the corner it is answering. */
.corner .mint {
  display: block;
  margin-top: 2px;
  font-size: 11px;
  font-style: normal;
  font-weight: 500;
  letter-spacing: .01em;
  opacity: .75;
}
.corner .mint.up { color: var(--pos); }
.corner .mint.down { color: var(--dim); }

/* The docs are worth pointing at from the last thing on the page. */
.foot a { color: var(--sky); text-decoration: none; border-bottom: 1px solid rgba(76, 201, 240, .3); }
.foot a:hover { border-bottom-color: var(--sky); }

/* Rows that go somewhere. The grid has to survive becoming an anchor. */
a.crow, a.work-item, a.due-row { color: inherit; text-decoration: none; }
a.crow { cursor: pointer; }
a.work-item:hover span, a.due-row:hover b { color: var(--sky); }
a.crow:hover .tk-name b { color: var(--sky); }

/* Shown for the first minutes after a start, then never again. */
.warming {
  margin-bottom: 14px;
  padding: 13px 16px;
  border: 1px solid var(--line);
  border-left: 2px solid var(--warn);
  border-radius: 0 var(--r) var(--r) 0;
  background: rgba(251, 191, 36, .07);
  color: var(--ink-2);
  font-size: 13.5px;
  line-height: 1.55;
}
.warming b { color: var(--ink); }

/* Who is actually holding the corner, under the count of how many are. */
.conc {
  display: block;
  margin-top: 2px;
  color: var(--warn);
  font-size: 10.5px;
  font-style: normal;
  letter-spacing: .01em;
  opacity: .85;
}


/* ======================= movement ======================= */
/*
 * A page fading itself in and out so a navigation never blinks, a view fading
 * when the hash changes, the opening, and a tape of live figures. All of it
 * stops dead under prefers-reduced-motion, which is a request rather than a
 * preference.
 */

/* Only once the script that manages this has loaded. Without the guard a
   reader with no JavaScript gets a page that fades in and stays invisible. */
html.moving body {
  opacity: 0;
  transition: opacity .38s ease;
}
html.moving body.here { opacity: 1; }
html.moving body.leaving {
  opacity: 0;
  transition: opacity .16s ease;
}

.view.on { animation: rise .34s cubic-bezier(.2, .7, .3, 1) both; }
@keyframes rise {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: none; }
}

/* ------------------------- the opening ------------------------- */
/*
 * The mark, then the name a letter at a time, both arriving from the left and
 * finishing where they would have sat anyway. Everything a previous version
 * of this counted and filled and read out is on the page behind it already.
 */
html.opening, html.opening body { overflow: hidden; }

.intro {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 24px;
  background: var(--bg);
  transition: opacity .9s ease, visibility .9s;
}
.intro.over { opacity: 0; visibility: hidden; pointer-events: none; }

.intro-mark {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

/* Everything is off until the script turns it on, so nothing can begin before
   the first frame is drawn, which is what made an earlier version of this look
   broken. */
/*
 * Driven by animation rather than transition.
 *
 * A transition only runs if the browser painted the starting state first, and
 * whether it did depends on how the frame happened to fall. Half the time
 * these arrived fully formed. An animation always plays from its first
 * keyframe, so the entrance is the same every load.
 */
.intro-logo {
  width: 72px;
  height: 72px;
  opacity: 0;
}
.intro.s1 .intro-logo {
  animation: introIn 1.7s cubic-bezier(.16, .8, .3, 1) both;
}

.intro-word {
  display: flex;
  font-size: 22px;
  font-weight: 700;
  color: var(--ink);
}
.intro-word i {
  font-style: normal;
  letter-spacing: .28em;
  opacity: 0;
}
/*
 * Tracking sits to the right of a letter, including the last one, so the word
 * carries a trailing gap that nothing balances and it hangs left of the mark
 * above it. Taking the gap off the final letter makes the box exactly as wide
 * as the letters, and then centring it centres what you can see.
 */
.intro-word i:last-child { letter-spacing: 0; }
.intro.s1 .intro-word i {
  animation: introIn 1.1s cubic-bezier(.16, .8, .3, 1) both;
}
/* A letter at a time, left to right, starting once the mark is most of the
   way in. */
.intro.s1 .intro-word i:nth-child(1) { animation-delay: .95s; }
.intro.s1 .intro-word i:nth-child(2) { animation-delay: 1.15s; }
.intro.s1 .intro-word i:nth-child(3) { animation-delay: 1.35s; }
.intro.s1 .intro-word i:nth-child(4) { animation-delay: 1.55s; }
.intro.s1 .intro-word i:nth-child(5) { animation-delay: 1.75s; }

@keyframes introIn {
  from { opacity: 0; transform: translateX(-34px); }
  to   { opacity: 1; transform: none; }
}

/* The hero settling in behind, once the opening is done with. Held only while
   the opening is actually playing, so a script that fails to load leaves a
   visible page rather than an empty one. */
.hero-copy > *, .worked {
  animation: settle .6s cubic-bezier(.2, .7, .3, 1) both;
}
html.opening .hero-copy > *, html.opening .worked { animation-play-state: paused; }
body.shown .hero-copy > *, body.shown .worked { animation-play-state: running; }
.hero-copy > *:nth-child(1) { animation-delay: .02s; }
.hero-copy > *:nth-child(2) { animation-delay: .07s; }
.hero-copy > *:nth-child(3) { animation-delay: .12s; }
.hero-copy > *:nth-child(4) { animation-delay: .17s; }
.hero-copy > *:nth-child(5) { animation-delay: .22s; }
.worked { animation-delay: .18s; }

@keyframes settle {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: none; }
}

/* --------------------------- the tape --------------------------- */
/*
 * The board, moving. Everything else on the landing page is an argument about
 * what is happening; this is the thing happening, and it is the difference
 * between a site that describes a market and one that is plainly attached to
 * it. Duplicated end to end and translated by exactly half, so the seam never
 * arrives.
 */
.tape {
  position: relative;
  margin: 0;
  padding: 11px 0;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: var(--bg-2);
  mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent);
}
.tape-run {
  display: flex;
  width: max-content;
  animation: tape 64s linear infinite;
}
.tape:hover .tape-run { animation-play-state: paused; }
@keyframes tape {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

.tape-item {
  display: flex;
  align-items: baseline;
  gap: 9px;
  padding: 0 22px;
  border-right: 1px solid var(--line);
  color: inherit;
  text-decoration: none;
  white-space: nowrap;
}
.tape-item b {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .04em;
}
.tape-item span {
  font-family: var(--mono);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  color: var(--sky);
}
.tape-item i {
  font-style: normal;
  font-size: 11px;
  color: var(--ink-3);
}
.tape-item.hot span { color: var(--neg); }
.tape-item.warm span { color: var(--warn); }
.tape-item:hover b { color: var(--sky); }

@media (prefers-reduced-motion: reduce) {
  html.moving body,
  html.moving body.here,
  html.moving body.leaving { opacity: 1; transition: none; }
  .view.on, .hero-copy > *, .worked { animation: none; }
  .tape-run { animation: none; }
  .intro { display: none; }
}

/* ---------------------- the worked example ---------------------- */
.steps {
  counter-reset: step;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 14px;
}
.steps li {
  position: relative;
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  padding: 20px 22px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--panel);
}
.steps li::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  color: var(--ink-3);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .06em;
  padding-top: 3px;
}
.steps b {
  display: block;
  font-family: var(--mono);
  font-size: clamp(20px, 3.4vw, 28px);
  font-weight: 600;
  letter-spacing: -.02em;
  line-height: 1.15;
}
.steps b em { font-style: normal; color: var(--sky); }
.steps span {
  display: block;
  margin-top: 7px;
  max-width: 62ch;
  color: var(--ink-2);
  font-size: 14px;
  line-height: 1.6;
}
.steps .empty { grid-column: 1 / -1; }

.addr {
  display: inline-block;
  padding: 3px 7px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--panel-2);
  color: var(--sky);
  font-family: var(--mono);
  font-size: 11.5px;
  word-break: break-all;
}
.btn.quiet.small {
  margin-top: 14px;
  padding: 8px 14px;
  font-size: 13px;
}

/* Sections arriving as they are scrolled to. Off only once the observer that
   manages them is running, so no script means no hidden content. */
html.watching .reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .6s ease, transform .7s cubic-bezier(.2, .8, .2, 1);
}
html.watching .reveal.seen { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html.watching .reveal { opacity: 1; transform: none; transition: none; }
}
