/* ── Raven Docs Shared Stylesheet ─────────────────────────────────────────── */
:root {
  --bg-base:       #fafbfa;
  --bg-elevated:   #f1f4f2;
  --border:        #dfe6e1;
  --border-subtle: #eaeee9;
  --text-primary:  #10221a;
  --text-secondary:#4d6358;
  --text-muted:    #93a89c;
  --accent:        #00a86b;
  --accent-bright: #00ff9f;
  --accent-soft:   rgba(0,168,107,0.08);
  --max-w:         720px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg-base);
  color: var(--text-primary);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── Nav ───────────────────────────────────────────────────────────────────── */
.nav {
  border-bottom: 1px solid var(--border);
  background: var(--bg-base);
  position: sticky;
  top: 0;
  z-index: 100;
}
.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
  height: 56px;
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 9px;
  font-weight: 700;
  font-size: 17px;
  color: var(--text-primary);
  text-decoration: none;
  flex-shrink: 0;
}
.nav-logo svg { display: block; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
}
.nav-links a {
  font-size: 14px;
  color: var(--text-secondary);
  padding: 4px 10px;
  border-radius: 4px;
  transition: background 0.12s, color 0.12s;
  white-space: nowrap;
}
.nav-links a:hover { background: var(--accent-soft); color: var(--accent); text-decoration: none; }
.nav-links a.active { color: var(--accent); font-weight: 600; }
.nav-cta {
  margin-left: auto;
  flex-shrink: 0;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  border: 1px solid var(--accent);
  border-radius: 6px;
  padding: 5px 14px;
  text-decoration: none;
  transition: background 0.12s;
}
.nav-cta:hover { background: var(--accent-soft); text-decoration: none; }

/* ── Page layout ───────────────────────────────────────────────────────────── */
.page {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 56px 24px 96px;
}

/* ── Typography ────────────────────────────────────────────────────────────── */
.page h1 {
  font-size: 32px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.5px;
  color: var(--text-primary);
  margin-bottom: 12px;
}
.page h2 {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 40px 0 10px;
  padding-top: 32px;
  border-top: 1px solid var(--border-subtle);
}
.page h2:first-of-type { margin-top: 32px; }
.page h3 {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  margin: 24px 0 6px;
}
.page p { color: var(--text-secondary); margin-bottom: 16px; }
.page p:last-child { margin-bottom: 0; }
.page ul, .page ol {
  color: var(--text-secondary);
  padding-left: 20px;
  margin-bottom: 16px;
}
.page li { margin-bottom: 6px; }
.page code {
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 13px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 3px;
  padding: 1px 5px;
  color: var(--text-primary);
}

/* ── Lead / lede ────────────────────────────────────────────────────────────── */
.lead {
  font-size: 18px;
  color: var(--text-secondary);
  margin-bottom: 40px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--border);
}

/* ── Table ──────────────────────────────────────────────────────────────────── */
.table-wrap { overflow-x: auto; margin: 24px 0; }
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
th {
  text-align: left;
  font-weight: 600;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  padding: 8px 12px;
  border-bottom: 1px solid var(--border);
}
td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  vertical-align: top;
}
td:first-child { font-weight: 500; color: var(--text-primary); white-space: nowrap; }
tr:last-child td { border-bottom: none; }

/* ── Callout ─────────────────────────────────────────────────────────────────── */
.callout {
  background: var(--accent-soft);
  border-left: 3px solid var(--accent);
  border-radius: 0 6px 6px 0;
  padding: 14px 18px;
  margin: 24px 0;
}
.callout p { color: var(--text-primary); margin: 0; font-size: 14px; }

/* ── About card ──────────────────────────────────────────────────────────────── */
.founder-card {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  padding: 28px 0 28px;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 32px;
}
.founder-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--accent-soft);
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 26px;
  font-weight: 700;
  color: var(--accent);
}
.founder-name { font-size: 20px; font-weight: 700; margin-bottom: 2px; }
.founder-role { font-size: 14px; color: var(--text-muted); margin-bottom: 10px; }
.founder-links { display: flex; gap: 12px; flex-wrap: wrap; }
.founder-links a {
  font-size: 13px;
  font-weight: 500;
  color: var(--accent);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 3px 10px;
}
.founder-links a:hover { background: var(--accent-soft); text-decoration: none; }

/* ── Footer ──────────────────────────────────────────────────────────────────── */
.doc-footer {
  border-top: 1px solid var(--border);
  margin-top: 64px;
  padding: 32px 24px;
  max-width: var(--max-w);
  margin-left: auto;
  margin-right: auto;
}
.doc-footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 13px;
  color: var(--text-muted);
}
.doc-footer-links { display: flex; gap: 16px; flex-wrap: wrap; }
.doc-footer-links a { color: var(--text-muted); font-size: 13px; }
.doc-footer-links a:hover { color: var(--text-secondary); text-decoration: none; }

/* ── Responsive ──────────────────────────────────────────────────────────────── */
@media (max-width: 640px) {
  .nav-inner { gap: 16px; }
  .nav-links a { padding: 4px 7px; }
  .page h1 { font-size: 26px; }
  .founder-card { flex-direction: column; gap: 16px; }
}
