@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');
:root {
  --bg:       #101114;
  --surface:  #17181c;
  --surface2: #1d1f24;
  --border:   #2a2d33;
  --text:     #e8e9ec;
  --muted:    #686d76;
  --accent:   #ffb454;
  --accent-dim: #8a6a34;
  --ok:       #4ade80;
  --mono:     'Courier New', monospace;
  --sidebar-w: 220px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 16px; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  line-height: 1.6;
  display: flex;
  min-height: 100vh;
}

/* ── sidebar ── */
.sidebar {
  width: var(--sidebar-w);
  flex-shrink: 0;
  background: var(--surface);
  border-right: 1px solid var(--border);
  padding: 24px 0;
  position: fixed;
  top: 0; left: 0; bottom: 0;
  overflow-y: auto;
  z-index: 10;
}

.sidebar-logo {
  font-family: var(--mono);
  font-size: 0.85rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  color: var(--accent);
  padding: 0 20px 4px;
}
.sidebar-logo a { color: inherit; text-decoration: none; }
.sidebar-logo a:hover { opacity: 0.8; }

.sidebar-label {
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  padding: 0 20px 16px;
}

.nav-section {
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  padding: 12px 20px 4px;
}

.nav-link {
  display: block;
  padding: 5px 20px;
  font-size: 0.82rem;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.1s, background 0.1s;
}
.nav-link:hover { color: var(--text); background: var(--surface2); }
.nav-link.active { color: var(--accent); background: var(--surface2); }

/* ── main content ── */
main {
  margin-left: var(--sidebar-w);
  flex: 1;
  padding: 48px 52px;
  max-width: calc(var(--sidebar-w) + 780px);
}

h1 {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 6px;
}
.page-sub {
  color: var(--muted);
  font-size: 0.88rem;
  margin-bottom: 36px;
}

h2 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--accent);
  margin-top: 40px;
  margin-bottom: 10px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--border);
}
h2:first-of-type { margin-top: 0; }

h3 {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text);
  margin-top: 20px;
  margin-bottom: 6px;
}

p { margin-bottom: 12px; color: var(--text); font-size: 0.9rem; }

ul, ol {
  padding-left: 20px;
  margin-bottom: 12px;
  font-size: 0.9rem;
}
li { margin-bottom: 4px; }
li::marker { color: var(--accent-dim); }

strong { color: var(--text); font-weight: 700; }

kbd {
  display: inline-block;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-bottom-width: 2px;
  border-radius: 3px;
  padding: 1px 6px;
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--text);
  white-space: nowrap;
}

code {
  font-family: var(--mono);
  font-size: 0.82rem;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 3px;
  padding: 1px 5px;
  color: var(--accent);
}

.tip {
  background: var(--surface2);
  border-left: 3px solid var(--accent);
  border-radius: 0 4px 4px 0;
  padding: 10px 14px;
  margin: 16px 0;
  font-size: 0.85rem;
  color: var(--muted);
}
.tip strong { color: var(--accent); }

.quick-tips {
  list-style: none;
  padding: 0;
  margin: 14px 0 22px;
  display: grid;
  gap: 8px;
}
.quick-tips li {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 9px 12px;
  font-size: 0.82rem;
  color: var(--muted);
  margin: 0;
}
.quick-tips li strong { color: var(--accent); }

.shortcuts-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
  margin-bottom: 16px;
}
.shortcuts-table th {
  text-align: left;
  padding: 6px 12px;
  border-bottom: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
}
.shortcuts-table td {
  padding: 5px 12px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}
.shortcuts-table tr:last-child td { border-bottom: none; }
.shortcuts-table td:first-child { white-space: nowrap; }

.feature-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 24px;
}
.feature-card {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 14px 16px;
}
.feature-card h3 { margin-top: 0; color: var(--accent); font-size: 0.82rem; }
.feature-card p { font-size: 0.8rem; color: var(--muted); margin: 0; }

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── mobile ── */
@media (max-width: 700px) {
  .sidebar {
    position: static;
    width: 100%;
    border-right: none;
    border-bottom: 1px solid var(--border);
    padding: 12px 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0;
  }
  .sidebar-logo { padding: 0 16px; }
  .sidebar-label { display: none; }
  .nav-section { display: none; }
  .nav-link { padding: 5px 12px; display: inline-block; }
  body { flex-direction: column; }
  main { margin-left: 0; padding: 24px 20px; }
  .feature-grid { grid-template-columns: 1fr; }
}
