:root {
  --bg: #0d0f12;
  --panel: #15181d;
  --panel-2: #1b1f25;
  --text: #f2eee5;
  --muted: #a7adb7;
  --line: #303640;
  --gold: #f3ba4b;
  --blue: #7dc4ff;
  --max: 1120px;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.65 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
a { color: var(--blue); text-decoration-thickness: .08em; text-underline-offset: .18em; }
a:hover { color: #b9e1ff; }
.wrap { width: min(var(--max), calc(100% - 32px)); margin-inline: auto; }
.site-head { border-bottom: 1px solid var(--line); background: rgba(13,15,18,.94); position: sticky; top: 0; z-index: 5; backdrop-filter: blur(12px); }
.site-head .wrap { min-height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { color: var(--text); text-decoration: none; font: 700 17px/1.1 Georgia, serif; letter-spacing: .01em; }
.site-head nav { display: flex; gap: 18px; font-size: 14px; }
.hero { padding: 72px 0 40px; border-bottom: 1px solid var(--line); background: radial-gradient(circle at 85% 15%, #332714 0, transparent 30%), linear-gradient(180deg, #13161a, var(--bg)); }
.eyebrow, .meta, .pill, .stat-label { font: 600 12px/1.4 ui-monospace, SFMono-Regular, Consolas, monospace; letter-spacing: .06em; text-transform: uppercase; }
.eyebrow { color: var(--gold); }
h1, h2, h3 { font-family: Georgia, "Times New Roman", serif; line-height: 1.15; }
h1 { max-width: 850px; margin: 12px 0 18px; font-size: clamp(42px, 7vw, 78px); letter-spacing: -.035em; }
h2 { font-size: clamp(28px, 4vw, 42px); }
h3 { margin: 6px 0 10px; font-size: 22px; }
.lede { max-width: 760px; color: #cdd1d7; font-size: 19px; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 34px 0 0; }
.stat { padding: 18px; border: 1px solid var(--line); background: rgba(21,24,29,.72); }
.stat strong { display: block; font: 700 29px/1.1 Georgia, serif; color: var(--text); }
.stat-label { color: var(--muted); }
main { padding: 42px 0 80px; }
.toolbar { display: grid; grid-template-columns: minmax(0, 1fr) 210px 210px; gap: 12px; margin: 20px 0 14px; }
input, select { width: 100%; min-height: 46px; padding: 10px 13px; border: 1px solid var(--line); border-radius: 5px; background: var(--panel); color: var(--text); font: inherit; }
input:focus, select:focus { outline: 2px solid var(--gold); outline-offset: 1px; }
.result-count { color: var(--muted); margin: 0 0 18px; }
.post-list { display: grid; gap: 10px; }
.post-card { display: grid; grid-template-columns: 86px minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 16px; background: var(--panel); border: 1px solid var(--line); border-radius: 6px; }
.post-card:hover { border-color: #59616d; background: var(--panel-2); }
.post-card .number { color: var(--gold); font: 700 15px ui-monospace, monospace; }
.post-card h3 { font: 650 17px/1.35 system-ui, sans-serif; }
.post-card h3 a { color: var(--text); text-decoration: none; }
.meta { color: var(--muted); letter-spacing: .025em; text-transform: none; }
.pill { display: inline-flex; padding: 4px 8px; border: 1px solid var(--line); border-radius: 999px; color: #c9cdd3; white-space: nowrap; }
.pill.disputed { border-color: #9e6e29; color: #ffd58a; }
.breadcrumbs { margin: 0 0 24px; color: var(--muted); font-size: 14px; }
.article-head { padding-bottom: 26px; margin-bottom: 28px; border-bottom: 1px solid var(--line); }
.article-head h1 { font-size: clamp(34px, 6vw, 62px); }
.article-meta { display: flex; flex-wrap: wrap; gap: 10px 18px; color: var(--muted); }
.message { padding: clamp(20px, 4vw, 42px); background: var(--panel); border: 1px solid var(--line); border-radius: 8px; font: 18px/1.75 Georgia, serif; overflow-wrap: anywhere; }
.message p { margin: 0 0 1.15em; }
.message p:last-child { margin-bottom: 0; }
.source-box { margin-top: 24px; padding: 22px; border: 1px solid var(--line); background: var(--panel-2); border-radius: 8px; }
.source-links { display: flex; flex-wrap: wrap; gap: 10px; }
.button { display: inline-flex; align-items: center; min-height: 40px; padding: 8px 12px; border: 1px solid #4b5563; border-radius: 5px; color: var(--text); text-decoration: none; background: #20252c; }
.button:hover { border-color: var(--gold); color: var(--text); }
.thread-message { margin: 0 0 18px; padding: 24px; border: 1px solid var(--line); border-radius: 7px; background: var(--panel); }
.thread-message.satoshi { border-left: 4px solid var(--gold); }
.thread-message header { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; padding-bottom: 14px; margin-bottom: 14px; border-bottom: 1px solid var(--line); }
.thread-message .body { white-space: normal; overflow-wrap: anywhere; }
.notice { padding: 16px 18px; border-left: 3px solid var(--gold); background: #211c13; color: #e6d7b9; }
.page-nav { display: flex; justify-content: space-between; gap: 16px; margin-top: 30px; }
footer { padding: 30px 0 48px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
[hidden] { display: none !important; }
@media (max-width: 760px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
  .toolbar { grid-template-columns: 1fr; }
  .post-card { grid-template-columns: 62px minmax(0, 1fr); }
  .post-card .pill { grid-column: 2; justify-self: start; }
  .site-head nav a:not(:first-child) { display: none; }
}
