* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --text: #222;
  --bg: #fff;
  --muted: #666;
  --border: #ddd;
  --code-bg: #f5f5f5;
  --link: #222;
  --nav-width: 200px;
}

body {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
}

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

/* Layout */
.wrapper {
  display: flex;
  min-height: 100vh;
}

nav.sidebar {
  width: var(--nav-width);
  flex-shrink: 0;
  border-right: 1px solid var(--border);
  padding: 2rem 1.5rem;
  font-family: -apple-system, system-ui, sans-serif;
  font-size: 13px;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}

nav.sidebar .logo {
  font-family: Georgia, serif;
  font-size: 20px;
  font-weight: bold;
  letter-spacing: -0.5px;
  margin-bottom: 0.25rem;
}

nav.sidebar .subtitle {
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 2rem;
  line-height: 1.3;
}

nav.sidebar ul {
  list-style: none;
}

nav.sidebar li {
  margin-bottom: 0.4rem;
}

nav.sidebar a {
  color: var(--muted);
  text-decoration: none;
  display: block;
  padding: 0.1rem 0;
}

nav.sidebar a:hover,
nav.sidebar a.active {
  color: var(--text);
}

main {
  flex: 1;
  max-width: 680px;
  padding: 2.5rem 3rem;
}

/* Typography */
h1 { font-size: 1.8rem; margin-bottom: 1rem; font-weight: normal; letter-spacing: -0.5px; }
h2 { font-size: 1.2rem; margin-top: 2.5rem; margin-bottom: 0.75rem; font-weight: normal; }
h3 { font-size: 1rem; margin-top: 2rem; margin-bottom: 0.5rem; font-weight: bold; }

p { margin-bottom: 1rem; }

strong { font-weight: bold; }
em { font-style: italic; }

/* Code */
code {
  font-family: 'SFMono-Regular', 'Consolas', 'Liberation Mono', 'Menlo', monospace;
  font-size: 0.85em;
  background: var(--code-bg);
  padding: 0.15em 0.35em;
  border-radius: 2px;
}

pre {
  background: var(--code-bg);
  border: 1px solid var(--border);
  padding: 1rem 1.25rem;
  overflow-x: auto;
  margin-bottom: 1.25rem;
  line-height: 1.5;
}

pre code {
  background: none;
  padding: 0;
  font-size: 0.82em;
}

/* Tables */
table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1.25rem;
  font-size: 0.9em;
}

th, td {
  text-align: left;
  padding: 0.4rem 0.75rem;
  border-bottom: 1px solid var(--border);
}

th {
  font-weight: normal;
  color: var(--muted);
  font-family: -apple-system, system-ui, sans-serif;
  font-size: 0.8em;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Lists */
ul, ol { margin-bottom: 1rem; padding-left: 1.5rem; }
li { margin-bottom: 0.25rem; }

hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 2.5rem 0;
}

/* Landing page */
.landing {
  max-width: 600px;
  margin: 0 auto;
  padding: 4rem 2rem;
}

.landing h1 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.landing .tagline {
  color: var(--muted);
  margin-bottom: 2.5rem;
  font-size: 1.05em;
}

.landing .install {
  margin-bottom: 2.5rem;
}

.landing nav ul {
  list-style: none;
  padding: 0;
}

.landing nav li {
  margin-bottom: 0.3rem;
}

.landing nav a {
  color: var(--muted);
  font-family: -apple-system, system-ui, sans-serif;
  font-size: 0.9em;
}

.landing nav a:hover {
  color: var(--text);
}

.landing .meta {
  margin-top: 3rem;
  font-size: 0.85em;
  color: var(--muted);
}

.landing .meta a {
  color: var(--muted);
}

/* Footer in docs */
.doc-footer {
  margin-top: 4rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  font-family: -apple-system, system-ui, sans-serif;
  font-size: 12px;
  color: var(--muted);
}

.doc-footer a { color: var(--muted); }

/* Mobile */
@media (max-width: 720px) {
  .wrapper { flex-direction: column; }
  nav.sidebar {
    width: 100%;
    height: auto;
    position: static;
    border-right: none;
    border-bottom: 1px solid var(--border);
    padding: 1.5rem;
  }
  main { padding: 1.5rem; }
  .landing { padding: 2rem 1.5rem; }
}
