:root {
  --fg: #1a1a1a;
  --bg: #fafafa;
  --accent: #b04030;
  --muted: #666;
  --border: #ddd;
  --code-bg: #f4f4f4;
  --max-w: 70rem;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI",
               Roboto, Helvetica, Arial, sans-serif;
  color: var(--fg);
  background: var(--bg);
  line-height: 1.6;
}
header, footer { padding: 1rem 2rem; border-bottom: 1px solid var(--border); }
footer { border-top: 1px solid var(--border); border-bottom: none; color: var(--muted); }
header { display: flex; align-items: center; gap: 2rem; }
header form { flex: 1; }
header input[type="search"] {
  width: 100%; padding: 0.5rem; font-size: 1rem;
  border: 1px solid var(--border); border-radius: 4px;
}
main { max-width: var(--max-w); margin: 0 auto; padding: 2rem; }
h1 { color: var(--accent); margin-top: 0; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
pre, code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
pre {
  background: var(--code-bg);
  padding: 1rem; border-radius: 4px; overflow-x: auto;
}
.hit { padding: 1rem 0; border-bottom: 1px solid var(--border); }
.hit-meta { color: var(--muted); font-size: 0.9rem; }
.hit-snippet { margin-top: 0.5rem; }
.scores { color: var(--muted); font-size: 0.85rem; font-family: monospace; }
img { max-width: 100%; height: auto; }
table.signatures { width: 100%; border-collapse: collapse; }
table.signatures th, table.signatures td {
  border: 1px solid var(--border);
  padding: 0.5rem; text-align: left;
  vertical-align: top;
}
table.signatures th { background: var(--code-bg); font-weight: 600; }

/* Markdown atom rendering */
article table {
  border-collapse: collapse;
  margin: 1rem 0;
  font-size: 0.95rem;
}
article table th, article table td {
  border: 1px solid var(--border);
  padding: 0.4rem 0.6rem; text-align: left; vertical-align: top;
}
article table th { background: var(--code-bg); font-weight: 600; }
article blockquote {
  margin: 0.5rem 0 1rem 0;
  padding: 0.25rem 1rem;
  border-left: 3px solid var(--accent);
  color: var(--muted);
  font-style: italic;
}
article h2, article h3, article h4, article h5 { margin-top: 1.5rem; }
article code:not(pre code) {
  background: var(--code-bg);
  padding: 0.1rem 0.3rem;
  border-radius: 3px;
  font-size: 0.95em;
}
