/* venturebot.dev — warm paper-and-ink editorial theme.
   Design tokens and typography adopted from the reference queue UI
   (cream paper ground, serif headlines, monospace labels, green accent). */
:root {
  --bg: #f4f2ec;
  --paper: #fffdf8;
  --ink: #18201d;
  --muted: #65706a;
  --line: #d8d7cf;
  --accent: #176b52;
  --accent2: #0e4c3a;
  --amber: #9a6500;
  --danger: #a23b31;
  --radius: 10px;
  --shadow: 0 10px 30px rgba(31,42,37,.07);
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Avenir Next", Avenir, "Segoe UI", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.6;
}

/* ——— shell & layout ——— */
.shell {
  max-width: 760px;
  margin: auto;
  padding: 32px 22px 80px;
}

header.site-head {
  border-bottom: 1px solid var(--line);
  padding-bottom: 20px;
  margin-bottom: 26px;
}

.eyebrow {
  font: 700 11px/1.2 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 8px;
}

h1, h2, h3, h4 {
  font-family: "Iowan Old Style", Palatino, Georgia, serif;
  color: var(--ink);
  line-height: 1.15;
  letter-spacing: -.015em;
}

h1 {
  font-size: clamp(30px, 5vw, 44px);
  line-height: 1.05;
  margin: 4px 0 10px;
  letter-spacing: -.025em;
}

h2 {
  font-size: 24px;
  margin: 2em 0 .5em;
  letter-spacing: -.015em;
}

h3 { font-size: 19px; margin: 1.6em 0 .4em; }

p { margin: 0 0 1em; }

a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--accent2); }

strong { font-weight: 650; }

.sub {
  color: var(--muted);
  font-size: 17px;
  margin-top: 0;
  max-width: 46em;
}

.rule { opacity: .72; }
.note { opacity: .72; font-size: .95em; }
.big { font-size: 1.2em; font-weight: 700; }

code {
  background: var(--paper);
  border: 1px solid var(--line);
  padding: .08em .32em;
  border-radius: 4px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: .9em;
  overflow-wrap: anywhere;
}
.addr { word-break: break-all; }

hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 2em 0;
}

ul, ol { padding-left: 1.4em; }
li { margin-bottom: .35em; }

blockquote {
  margin: 1.2em 0;
  padding: .1em 0 .1em 1.1em;
  border-left: 3px solid var(--accent);
  color: var(--muted);
}
blockquote p { margin: 0 0 .5em; }

table { border-collapse: collapse; width: 100%; margin: 1.2rem 0; }
th, td {
  text-align: left;
  padding: .5rem .65rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
th { font: 700 11px/1.2 ui-monospace, SFMono-Regular, Menlo, monospace; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }

/* ——— site navigation ——— */
nav.site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-bottom: 6px;
}
nav.site-nav .wordmark {
  font-family: "Iowan Old Style", Palatino, Georgia, serif;
  font-size: 22px;
  letter-spacing: -.02em;
  color: var(--ink);
  text-decoration: none;
}
nav.site-nav .links {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
  font: 700 12px/1 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: .04em;
}
nav.site-nav .links a { color: var(--muted); text-decoration: none; }
nav.site-nav .links a:hover { color: var(--accent); }

footer.site-foot {
  margin-top: 3em;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}
footer.site-foot .links {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 14px;
  font: 700 11px/1 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: .04em;
}
footer.site-foot .links a { color: var(--muted); text-decoration: none; }
footer.site-foot .links a:hover { color: var(--accent); }

/* ——— cards & boxes ——— */
.box, .entry, .price {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  padding: 1.1rem 1.25rem;
  margin: 1.4rem 0;
}
.entry h3 { margin-top: 0; }
.meta { font-size: .85em; color: var(--muted); margin-top: .4rem; }
ul.ev { margin: .5rem 0 .2rem; }
ul.ev li { margin-bottom: .3rem; }

/* ——— summary metric strip (runway scoreboard) ——— */
.summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin: 1.5rem 0;
}
.metric {
  padding: 18px 16px 14px;
  border-right: 1px solid var(--line);
}
.metric:first-child { padding-left: 0; }
.metric:last-child { border-right: 0; }
.metric b {
  display: block;
  font: 600 24px/1 ui-monospace, SFMono-Regular, Menlo, monospace;
}
.metric span { font-size: 12px; color: var(--muted); }

/* ——— verdict badges (register) ——— */
.verdict {
  display: inline-block;
  font-size: .75em;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  padding: .2em .6em;
  border-radius: 999px;
  border: 1px solid transparent;
  white-space: nowrap;
}
.v-corroborated { background: rgba(23,114,69,.14); color: #0e5b36; border-color: rgba(23,114,69,.3); }
.v-mixed       { background: rgba(154,101,0,.14);  color: #7a5100; border-color: rgba(154,101,0,.32); }
.v-uncorroborated { background: rgba(162,59,49,.12); color: #8e2f26; border-color: rgba(162,59,49,.3); }
.v-unaudited   { background: rgba(101,112,106,.12); color: var(--muted); border-color: rgba(101,112,106,.3); }

/* ——— journal article ——— */
.prose { max-width: 46em; }
.prose > h1:first-child { margin-top: 0; }
.article-meta {
  color: var(--muted);
  font: 700 11px/1.4 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 1.4em;
}

@media (max-width: 640px) {
  .shell { padding: 22px 16px 56px; }
  .summary { grid-template-columns: repeat(2, 1fr); }
  .metric { border-bottom: 1px solid var(--line); }
}

/* ——— ledger tables (books) ——— */
table.ledger {
  width: 100%;
  border-collapse: collapse;
  margin: 1.2rem 0;
  font-size: .95em;
}
table.ledger td {
  padding: .6rem .2rem;
  border-bottom: 1px solid var(--line);
}
table.ledger td.num {
  text-align: right;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  white-space: nowrap;
}
table.ledger tr.total td {
  border-top: 2px solid var(--ink);
  border-bottom: 0;
  font-weight: 700;
}
.site-nav .links a[aria-current="page"] {
  color: var(--accent);
  font-weight: 700;
}
