/* Static prose pages. The app's tokens, laid out for reading rather than for a live market. */
:root {
  color-scheme: dark;
  --bg: #0e1116; --surface: #16191e; --surface-2: #1b1f25; --line-2: #262c34;
  --text: #ededed; --text-2: #aeb5bd; --muted: #79828c;
  --accent: #1652f0; --accent-hi: #5b8cff;
  --win: #34d399; --loss: #fb7185; --btc: #f7931a;
  --radius: 12px;
  --font-display: "Newsreader", ui-serif, Georgia, serif;
  --font-body: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); }
body { font-family: var(--font-body); font-size: 16px; line-height: 1.6; padding-inline: 16px; padding-block: 14px 72px; -webkit-font-smoothing: antialiased; }
.wrap { max-width: 720px; margin: 0 auto; }

/* the bar, matched to the app's */
.top { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 2px 0 34px; }
.brand { display: flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; }
.brand img { width: 22px; height: 22px; display: block; }
.brand-name { font-family: var(--font-mono); font-weight: 700; font-size: 15px; letter-spacing: 0.08em; text-transform: uppercase; }
nav { display: flex; gap: 2px; flex-wrap: wrap; }
nav a { font-family: var(--font-mono); text-transform: uppercase; letter-spacing: 0.08em; font-size: 11px; font-weight: 500; color: var(--muted); text-decoration: none; padding: 8px 14px; border-radius: 6px; }
nav a:hover { color: var(--text); }
nav a[aria-current="page"] { background: #fff; color: #0e1116; }

h1 { font-family: var(--font-display); font-weight: 500; font-size: 42px; line-height: 1.08; letter-spacing: -0.02em; margin: 0 0 14px; text-wrap: balance; }
h2 { font-family: var(--font-display); font-weight: 500; font-size: 26px; line-height: 1.2; letter-spacing: -0.01em; margin: 44px 0 12px; text-wrap: balance; }
h3 { font-family: var(--font-mono); text-transform: uppercase; letter-spacing: 0.08em; font-size: 11px; font-weight: 500; color: var(--muted); margin: 28px 0 8px; }
.lead { font-size: 19px; line-height: 1.55; color: var(--text-2); margin: 0 0 8px; text-wrap: pretty; }
p { margin: 0 0 16px; color: var(--text-2); text-wrap: pretty; }
p strong, li strong { color: var(--text); font-weight: 600; }
a { color: var(--accent-hi); text-decoration-color: color-mix(in srgb, var(--accent-hi) 40%, transparent); text-underline-offset: 2px; }
ul, ol { margin: 0 0 16px; padding-left: 22px; color: var(--text-2); }
li { margin-bottom: 8px; }
li::marker { color: var(--muted); }
code { font-family: var(--font-mono); font-size: 0.88em; background: var(--surface-2); padding: 2px 6px; border-radius: 5px; color: var(--text); }
pre { background: var(--surface); border-radius: var(--radius); padding: 16px 18px; overflow-x: auto; margin: 0 0 16px; }
pre code { background: none; padding: 0; font-size: 13px; line-height: 1.65; white-space: pre; }
.up { color: var(--win); } .down { color: var(--loss); } .btc { color: var(--btc); }

table { width: 100%; border-collapse: collapse; margin: 0 0 16px; font-family: var(--font-mono); font-variant-numeric: tabular-nums; font-size: 13px; }
caption { caption-side: bottom; padding-top: 10px; color: var(--muted); font-family: var(--font-body); font-size: 13px; text-align: left; }
th, td { text-align: right; padding: 9px 10px; border-bottom: 1px solid var(--line-2); }
th:first-child, td:first-child { text-align: left; }
thead th { color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; font-size: 10px; font-weight: 500; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr.is-default td { background: var(--surface); }

.note { background: var(--surface); border-radius: var(--radius); padding: 16px 18px; margin: 0 0 16px; }
.note p:last-child { margin-bottom: 0; }
.cta { display: inline-block; background: var(--accent); color: #fff; font-weight: 600; text-decoration: none; padding: 12px 22px; border-radius: 10px; margin-top: 8px; }
.cta:hover { background: #0c3fca; }
footer { margin-top: 56px; padding-top: 22px; border-top: 1px solid var(--line-2); color: var(--muted); font-size: 13px; }
footer a { color: var(--text-2); }
