/* OCR It — shared styles for the project site.
   Same tokens as docs/bench/index.html, so the pages read as one thing. */

:root {
  --bg: #ffffff;
  --bg-alt: #f6f7f9;
  --text: #1a1d23;
  --text-dim: #5b6169;
  --border: #e2e4e8;
  --accent: #2d6cdf;
  --good: #1f7a4d;
  --code-bg: #f0f1f4;
  --shadow: 0 1px 3px rgba(0, 0, 0, .06), 0 12px 32px rgba(0, 0, 0, .08);
  --mono: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #14161a;
    --bg-alt: #1c1f25;
    --text: #e7e9ec;
    --text-dim: #9aa0aa;
    --border: #2b2f37;
    --accent: #6ea8ff;
    --good: #4cbf85;
    --code-bg: #1e2127;
    --shadow: 0 1px 3px rgba(0, 0, 0, .4), 0 12px 32px rgba(0, 0, 0, .45);
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.65 -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

main {
  max-width: 860px;
  margin: 0 auto;
  padding: 56px 20px 40px;
}

a { color: var(--accent); }
p { margin: .85em 0; }

h1 { font-size: 2.1rem; line-height: 1.2; margin: 0 0 10px; letter-spacing: -.02em; }
h2 {
  font-size: 1.2rem; margin: 3em 0 .8em;
  border-top: 1px solid var(--border); padding-top: 1.5em;
}
h3 { font-size: 1rem; margin: 2em 0 .4em; }

code {
  font-family: var(--mono); background: var(--code-bg);
  padding: .1em .4em; border-radius: 4px; font-size: .88em;
}
pre {
  background: var(--code-bg); border-radius: 8px; padding: 14px 16px;
  overflow-x: auto; font-size: .85rem; line-height: 1.55;
}
pre code { background: none; padding: 0; }

kbd {
  font-family: var(--mono); font-size: .82em;
  background: var(--bg-alt); border: 1px solid var(--border);
  border-bottom-width: 2px; border-radius: 5px; padding: .1em .45em;
  white-space: nowrap;
}

table { width: 100%; border-collapse: collapse; margin: 1em 0; font-size: .93rem; }
th, td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--border); }
thead th {
  color: var(--text-dim); font-weight: 600; font-size: .8rem;
  text-transform: uppercase; letter-spacing: .03em;
}
tbody tr:last-child td { border-bottom: none; }
.table-scroll { overflow-x: auto; }
/* key/value tables: keep the first column tight to its content */
table.compact th:first-child, table.compact td:first-child { width: 1%; white-space: nowrap; }

img { max-width: 100%; height: auto; }

/* ---- header ---- */

.masthead { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; }
.masthead img { width: 52px; height: 52px; border-radius: 12px; }
.masthead .who { min-width: 0; }
.tagline { font-size: 1.12rem; color: var(--text); margin: 0 0 18px; max-width: 44ch; }
.kicker { color: var(--text-dim); font-size: .95rem; margin: 0 0 24px; }
.kicker a { color: var(--text-dim); }

.pills { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 26px; padding: 0; list-style: none; }
.pills li {
  font-size: .78rem; color: var(--text-dim);
  background: var(--bg-alt); border: 1px solid var(--border);
  border-radius: 999px; padding: 4px 11px; white-space: nowrap;
}
.pills li.on { color: var(--good); border-color: color-mix(in srgb, var(--good) 35%, var(--border)); }

.cta { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 34px; }
.btn {
  display: inline-block; text-decoration: none; font-size: .92rem; font-weight: 500;
  padding: 9px 17px; border-radius: 8px;
  border: 1px solid var(--accent); color: #fff; background: var(--accent);
}
.btn:hover { filter: brightness(1.08); }
.btn.ghost { background: none; color: var(--accent); }
.btn.ghost:hover { background: var(--bg-alt); filter: none; }

/* ---- figures ---- */

figure { margin: 1.6em 0; }
figure img {
  display: block; width: 100%; height: auto;
  border: 1px solid var(--border); border-radius: 10px; box-shadow: var(--shadow);
}
figcaption { font-size: .84rem; color: var(--text-dim); margin-top: 9px; }

.split { display: grid; grid-template-columns: 300px 1fr; gap: 26px; align-items: start; margin: 1.6em 0; }
.split figure { margin: 0; }
.split .body > :first-child { margin-top: 0; }
@media (max-width: 640px) {
  .split { grid-template-columns: 1fr; }
  .split figure { max-width: 300px; }
}

.callout {
  background: var(--bg-alt); border: 1px solid var(--border); border-radius: 10px;
  padding: 16px 18px; margin: 1.4em 0;
}
.callout p:first-child { margin-top: 0; }
.callout p:last-child { margin-bottom: 0; }

/* ---- steps ---- */

.step-n {
  font-size: .78rem; font-weight: 600; letter-spacing: .04em;
  text-transform: uppercase; color: var(--accent); margin: 2.4em 0 0;
}
.step-n + h3 { margin-top: .15em; }

/* ---- footer ---- */

footer {
  border-top: 1px solid var(--border); margin-top: 4em; padding: 22px 0 60px;
  font-size: .88rem; color: var(--text-dim);
}
footer a { color: var(--text-dim); }
footer nav { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 10px; }
