:root {
  --bg: #0A0A0A;
  --surface: #141414;
  --border: #2A2A2A;
  --green: #22C55E;
  --green-soft: #14532D;
  --text-primary: #F5F5F5;
  --text-secondary: #A3A3A3;
  --text-muted: #6B6B6B;
}

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

html, body {
  background: var(--bg);
  color: var(--text-primary);
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'SF Pro Text', 'Inter', 'Helvetica Neue', sans-serif;
  -webkit-font-smoothing: antialiased;
  line-height: 1.55;
  min-height: 100vh;
}

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

.wrap {
  max-width: 720px;
  margin: 0 auto;
  padding: 56px 24px 80px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 8px;
}
.brand .logo {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  background: var(--green);
  color: #000;
  border-radius: 12px;
  font-size: 22px;
  font-weight: 800;
}
.brand h1 {
  font-size: 28px;
  letter-spacing: -0.4px;
  font-weight: 800;
}

.lead {
  color: var(--text-secondary);
  font-size: 16px;
  margin-bottom: 36px;
}

.links {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin-bottom: 48px;
}
@media (min-width: 600px) {
  .links { grid-template-columns: 1fr 1fr; }
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 22px;
  color: var(--text-primary);
  transition: border-color 120ms, transform 120ms;
}
.card:hover {
  border-color: var(--green);
  text-decoration: none;
  transform: translateY(-1px);
}
.card h2 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 4px;
}
.card p {
  color: var(--text-secondary);
  font-size: 14px;
}

footer {
  color: var(--text-muted);
  font-size: 13px;
  margin-top: 48px;
}

/* Document pages */
.doc h1 {
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.6px;
  margin-bottom: 4px;
}
.doc .updated {
  color: var(--text-muted);
  font-size: 13px;
  margin-bottom: 28px;
}
.doc h2 {
  font-size: 19px;
  font-weight: 700;
  margin-top: 28px;
  margin-bottom: 8px;
}
.doc h3 {
  font-size: 15px;
  font-weight: 700;
  margin-top: 16px;
  margin-bottom: 6px;
  color: var(--text-secondary);
}
.doc p, .doc li {
  color: var(--text-secondary);
  font-size: 15px;
}
.doc ul {
  padding-left: 20px;
  margin: 8px 0 8px;
}
.doc li { margin-bottom: 4px; }

.back {
  display: inline-block;
  margin-bottom: 20px;
  font-size: 14px;
  color: var(--text-secondary);
}
.back:hover { color: var(--green); }
