:root {
  --paper: #ffffff;
  --ink: #1d1d1f;
  --ink-2: #424245;
  --ink-3: #6e6e73;
  --line: #e3e3e8;
  --wash: #f5f5f7;
  --btc: #e8820c;
  --btc-ink: #a85a00;
  --ok: #1f8a3b;
  --warn: #b25000;
  --link: #0066cc;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 17px/1.5 var(--sans); letter-spacing: -0.012em; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: var(--link); }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, dl, dd, dt, ul, ol { margin: 0; }
.wrap { width: min(1080px, 100% - 32px); margin-inline: auto; }
.num { font-variant-numeric: tabular-nums; }
.mono { font-family: var(--mono); font-size: 0.88em; overflow-wrap: anywhere; }
.muted { color: var(--ink-3); }
:focus-visible { outline: 2px solid var(--link); outline-offset: 3px; border-radius: 4px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 12px; z-index: 20; background: var(--paper); padding: 8px 12px; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

/* nav */
.nav { position: sticky; top: 0; z-index: 10; background: rgba(255,255,255,.86); backdrop-filter: saturate(180%) blur(16px); -webkit-backdrop-filter: saturate(180%) blur(16px); border-bottom: 1px solid var(--line); }
.nav-in { display: flex; align-items: center; justify-content: space-between; height: 52px; gap: 16px; }
.mark { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--ink); text-decoration: none; font-size: 16px; letter-spacing: -0.01em; }
.mark img { border-radius: 50%; }
.links { display: flex; align-items: center; gap: 22px; font-size: 14px; }
.links a { color: var(--ink-2); text-decoration: none; }
.links a:hover { color: var(--ink); }
.links a.btn, .links a.btn:hover { color: #fff; }

/* buttons: plain rectangles */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 18px; border-radius: 8px; font: 500 15px/1 var(--sans); text-decoration: none; cursor: pointer; border: 1px solid var(--ink); background: var(--ink); color: #fff; }
.btn:hover { background: #000; }
.btn.ghost { background: transparent; color: var(--ink); border-color: #c7c7cc; }
.btn.ghost:hover { border-color: var(--ink); }
.btn.small { min-height: 32px; padding: 0 12px; font-size: 13px; }
.btn .mono { font-size: 13px; }

/* hero */
.hero { padding: 56px 0 40px; }
.hero-in { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); grid-template-areas: "head inst" "body inst"; column-gap: 56px; align-items: start; }
.hero-head { grid-area: head; }
.hero-body { grid-area: body; }
.instrument { grid-area: inst; }
.ticker { font-weight: 600; color: var(--ink-3); font-size: 15px; margin-bottom: 14px; }
h1 { font-size: clamp(34px, 4.6vw, 52px); line-height: 1.08; font-weight: 600; letter-spacing: -0.03em; max-width: 17ch; }
.lede { margin-top: 18px; font-size: 19px; line-height: 1.45; color: var(--ink-2); max-width: 44ch; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.risk { margin-top: 16px; font-size: 14px; line-height: 1.45; color: var(--ink-2); max-width: 52ch; padding-left: 12px; border-left: 2px solid var(--btc); }

/* live instrument */
.instrument { border: 1px solid var(--line); border-radius: 12px; padding: 22px 24px 20px; }
.inst-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: 13px; color: var(--ink-3); }
.state { display: inline-flex; align-items: center; gap: 7px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: #c7c7cc; flex: none; }
.dot.ok { background: var(--ok); }
.dot.warn { background: var(--warn); }
.dot.down { background: #c7c7cc; }
.inst-k { margin-top: 18px; font-size: 14px; color: var(--ink-2); }
.inst-v { font-size: clamp(44px, 6vw, 64px); font-weight: 600; letter-spacing: -0.035em; line-height: 1.05; font-variant-numeric: tabular-nums; margin-top: 2px; }
.inst-v.unknown { color: var(--ink-3); font-size: 28px; letter-spacing: -0.015em; padding: 14px 0 8px; }
.inst-s { font-size: 14px; color: var(--ink-3); margin-top: 4px; }
.inst-rows { margin-top: 18px; border-top: 1px solid var(--line); }
.inst-rows div { display: flex; justify-content: space-between; gap: 16px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.inst-rows dt { color: var(--ink-2); }
.inst-rows dd { font-variant-numeric: tabular-nums; font-weight: 500; text-align: right; white-space: nowrap; }
.inst-note { margin-top: 12px; font-size: 13px; color: var(--ink-3); }

/* the ruler */
.ruler-sec { padding: 40px 0 48px; border-top: 1px solid var(--line); }
.ruler-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 24px; }
h2 { font-size: clamp(24px, 2.8vw, 30px); font-weight: 600; letter-spacing: -0.022em; line-height: 1.15; }
.ruler-v { font-size: clamp(24px, 2.8vw, 30px); font-weight: 600; letter-spacing: -0.022em; font-variant-numeric: tabular-nums; }
.ruler-v small { font-size: 17px; font-weight: 400; color: var(--ink-3); letter-spacing: -0.01em; }
.ruler { position: relative; margin: 34px 16px 0 0; height: 64px; }
.ruler-track { position: absolute; left: 0; right: 0; top: 18px; height: 2px; background: var(--ink); }
.ruler-target { position: absolute; right: 0; top: 4px; width: 30px; height: 30px; transform: translateX(50%); border: 2px solid var(--ink); background: var(--paper); }
.tick { position: absolute; top: 12px; width: 1px; height: 14px; background: var(--ink); }
.tick-l { position: absolute; top: 36px; font-size: 12px; color: var(--ink-3); transform: translateX(-50%); white-space: nowrap; font-variant-numeric: tabular-nums; }
.tick-l.end { transform: translateX(-100%); }
.marker { position: absolute; top: 9px; width: 20px; height: 20px; border-radius: 50%; transform: translateX(-50%); display: none; }
.marker.ours { background: var(--btc); box-shadow: 0 0 0 3px var(--paper); }
.marker.pool { width: 12px; height: 12px; top: 13px; background: var(--paper); border: 2px solid var(--ink-3); }
.legend { display: flex; flex-wrap: wrap; gap: 6px 22px; margin-top: 8px; font-size: 14px; color: var(--ink-2); }
.legend span { display: inline-flex; align-items: center; gap: 8px; }
.sw { width: 12px; height: 12px; border-radius: 50%; display: inline-block; }
.sw.ours { background: var(--btc); }
.sw.pool { border: 2px solid var(--ink-3); }
.sw.target { border-radius: 0; border: 2px solid var(--ink); }
.ruler-note { margin-top: 14px; font-size: 14px; color: var(--ink-3); max-width: 70ch; }

/* sections */
.sec { padding: 48px 0; border-top: 1px solid var(--line); }
.sec-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 6px 24px; margin-bottom: 20px; }
.sec-head p { font-size: 14px; color: var(--ink-3); }
.two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; }

/* activity feed */
.feed { list-style: none; padding: 0; }
.feed li { display: grid; grid-template-columns: 84px minmax(0, 1fr) auto; gap: 12px; align-items: baseline; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.feed .t { color: var(--ink-3); font-size: 13px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.feed .w { color: var(--ink-3); }
.feed li.ours .w { color: var(--ink); font-weight: 500; }
.feed .r { font-size: 13px; text-align: right; }
.feed .r a { text-decoration: none; }
.feed .empty { grid-template-columns: 1fr; color: var(--ink-3); }

/* receipts table */
.receipts { width: 100%; border-collapse: collapse; font-size: 14px; font-variant-numeric: tabular-nums; }
.receipts th { text-align: left; font-weight: 500; color: var(--ink-3); padding: 0 8px 8px 0; border-bottom: 1px solid var(--line); }
.receipts td { padding: 10px 8px 10px 0; border-bottom: 1px solid var(--line); vertical-align: baseline; }
.receipts td.empty { color: var(--ink-3); }
.receipts a { text-decoration: none; }
.tag { font-size: 12px; color: var(--ink-3); }
.tag.on { color: var(--ok); font-weight: 500; }
.tag.sub { color: var(--warn); }

/* rules */
.rules { display: grid; grid-template-columns: 220px minmax(0, 1fr); border-top: 1px solid var(--line); }
.rules dt, .rules dd { padding: 16px 0; border-bottom: 1px solid var(--line); }
.rules dt { font-weight: 600; padding-right: 24px; }
.rules dd { color: var(--ink-2); max-width: 66ch; }
.rules dd b { color: var(--ink); font-weight: 600; }

/* odds */
.odds-line { font-size: clamp(22px, 2.6vw, 28px); line-height: 1.3; font-weight: 500; letter-spacing: -0.02em; max-width: 36ch; }
.odds-sub { margin-top: 14px; color: var(--ink-2); max-width: 66ch; }
.more { display: inline-block; margin-top: 16px; font-weight: 500; text-decoration: none; }
.more:hover { text-decoration: underline; }

/* proof */
.proof { list-style: none; padding: 0; border-top: 1px solid var(--line); }
.proof li { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 4px 24px; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.proof li span:first-child { font-weight: 600; }
.proof a { overflow-wrap: anywhere; }

/* footer */
.foot { border-top: 1px solid var(--line); padding: 32px 0 48px; background: var(--wash); }
.foot-in { display: grid; gap: 14px; }
.legal { color: var(--ink-2); font-size: 14px; max-width: 80ch; }
.foot-links { display: flex; flex-wrap: wrap; gap: 20px; font-size: 14px; }
.foot-links a { color: var(--ink-2); }

/* docs */
.doc { padding: 48px 0 72px; display: grid; grid-template-columns: 190px minmax(0, 1fr); gap: 56px; }
.toc { position: sticky; top: 76px; align-self: start; display: grid; gap: 9px; font-size: 14px; }
.toc a { color: var(--ink-3); text-decoration: none; }
.toc a:hover { color: var(--ink); }
.doc-body { max-width: 690px; min-width: 0; }
.doc-body h1 { margin-bottom: 14px; max-width: none; }
.doc-body .lede { margin-top: 0; max-width: none; }
.doc-body section { padding-top: 48px; scroll-margin-top: 64px; }
.doc-body h2 { margin-bottom: 14px; }
.doc-body h3 { font-size: 18px; font-weight: 600; margin: 24px 0 6px; letter-spacing: -0.015em; }
.doc-body p, .doc-body li { color: var(--ink-2); }
.doc-body p + p, .doc-body ol + p, .doc-body ul + p, .doc-body table + p, .doc-body p + ul, .doc-body p + ol { margin-top: 12px; }
.doc-body ul, .doc-body ol { padding-left: 20px; margin-top: 10px; display: grid; gap: 8px; }
.doc-body b { color: var(--ink); font-weight: 600; }
.doc-body a { text-decoration: none; }
.doc-body a:hover { text-decoration: underline; }
.doc-body code { font-family: var(--mono); font-size: 14px; background: var(--wash); padding: 1px 5px; border-radius: 4px; color: var(--ink); overflow-wrap: anywhere; }
.formula { margin: 14px 0; padding: 14px 16px; background: var(--wash); border-radius: 8px; font-family: var(--mono); font-size: 14px; overflow-x: auto; white-space: nowrap; }
.otable { width: 100%; border-collapse: collapse; margin-top: 14px; font-size: 15px; font-variant-numeric: tabular-nums; }
.otable th { text-align: left; font-weight: 500; color: var(--ink-3); padding: 8px 8px 8px 0; border-bottom: 1px solid var(--line); }
.otable td { padding: 9px 8px 9px 0; border-bottom: 1px solid var(--line); }
.dated { margin-top: 10px; font-size: 13px; color: var(--ink-3); }
.callout { margin-top: 18px; padding: 14px 16px; border-left: 2px solid var(--btc); background: var(--wash); color: var(--ink); }

@media (max-width: 860px) {
  .hero { padding: 32px 0 32px; }
  .two { grid-template-columns: 1fr; gap: 32px; }
  .hero-in { grid-template-columns: 1fr; grid-template-areas: "head" "inst" "body"; row-gap: 24px; }
  h1 { font-size: 30px; }
  .instrument { padding: 18px 18px 16px; }
  .inst-v { font-size: 44px; }
  .links a.hide-m { display: none; }
  .rules, .proof li { grid-template-columns: 1fr; }
  .rules dt { padding-bottom: 0; border-bottom: 0; }
  .rules dd { padding-top: 6px; }
  .doc { grid-template-columns: 1fr; gap: 0; padding-top: 32px; }
  .toc { position: static; display: flex; flex-wrap: wrap; gap: 8px 16px; margin-bottom: 8px; }
  .tick-l.mid2 { display: none; }
  .receipts .opt { display: none; }
}
@media (max-width: 420px) {
  .actions .btn { flex: 1 1 100%; }
  .feed li { grid-template-columns: 74px minmax(0, 1fr); }
  .feed .r { grid-column: 2; text-align: left; }
}
.inst-title { font-size: 13px; font-weight: 500; letter-spacing: 0; color: var(--ink-2); }
