:root {
  color-scheme: light;
  --bg: #f7f8fb;
  --panel: #ffffff;
  --text: #172033;
  --muted: #5b6578;
  --line: #dce1ea;
  --accent: #176f8f;
  --accent-soft: #e5f3f7;
  --code-bg: #101826;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
}

a {
  color: var(--accent);
}

.site-shell {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  min-height: 100vh;
}

.sidebar {
  border-right: 1px solid var(--line);
  background: var(--panel);
  padding: 28px 22px;
}

.brand {
  display: block;
  margin-bottom: 28px;
  color: var(--text);
  font-size: 18px;
  font-weight: 700;
  text-decoration: none;
}

.nav-section {
  margin-bottom: 24px;
}

.nav-title {
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

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

.nav-section li {
  margin: 2px 0;
}

.nav-section a {
  display: block;
  border-radius: 6px;
  padding: 7px 10px;
  color: var(--text);
  text-decoration: none;
}

.nav-section a:hover,
.nav-section a.active {
  background: var(--accent-soft);
  color: var(--accent);
}

.content {
  width: min(880px, 100%);
  padding: 54px 42px 80px;
}

h1,
h2,
h3 {
  line-height: 1.25;
}

h1 {
  margin: 0 0 18px;
  font-size: 42px;
}

h2 {
  margin-top: 42px;
  padding-top: 8px;
  border-top: 1px solid var(--line);
  font-size: 26px;
}

h3 {
  margin-top: 28px;
  font-size: 20px;
}

p,
ul {
  color: var(--muted);
}

code {
  border-radius: 4px;
  background: #edf1f7;
  padding: 2px 5px;
  color: #263447;
  font-size: .92em;
}

pre {
  overflow-x: auto;
  border-radius: 8px;
  background: var(--code-bg);
  padding: 18px;
}

pre code {
  background: transparent;
  padding: 0;
  color: #f5f7fb;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin: 18px 0;
  font-size: .95em;
}

th, td {
  border: 1px solid var(--line);
  padding: 10px 14px;
  text-align: left;
  vertical-align: top;
}

th {
  background: var(--accent-soft);
  font-weight: 700;
  color: var(--text);
}

td {
  color: var(--muted);
}

tr:nth-child(even) td {
  background: #f2f4f8;
}

@media (max-width: 760px) {
  .site-shell {
    display: block;
  }

  .sidebar {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .content {
    padding: 34px 22px 56px;
  }

  h1 {
    font-size: 34px;
  }
}
