:root {
  --bg: #f5f6f8;
  --panel: #ffffff;
  --text: #1d2430;
  --muted: #687284;
  --line: #dfe3ea;
  --accent: #2563eb;
  --code-bg: #151922;
  --code-text: #f8fafc;
}

* {
  box-sizing: border-box;
}

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

a {
  color: inherit;
}

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

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 28px 24px;
  background: var(--panel);
  border-right: 1px solid var(--line);
}

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

.nav {
  display: grid;
  gap: 8px;
  margin-top: 32px;
}

.nav a {
  padding: 9px 0;
  color: var(--muted);
  font-size: 15px;
  text-decoration: none;
}

.content {
  min-width: 0;
}

.doc,
.home {
  max-width: 900px;
  margin: 0 auto;
  padding: 58px 32px 96px;
}

.doc-header,
.home-header {
  margin-bottom: 36px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}

.doc-meta {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 14px;
}

h1 {
  margin: 0;
  font-size: 36px;
  line-height: 1.2;
  letter-spacing: 0;
}

.doc-body {
  font-size: 17px;
  line-height: 1.85;
}

.doc-body h1,
.doc-body h2,
.doc-body h3,
.doc-body h4 {
  margin: 2em 0 0.75em;
  line-height: 1.35;
}

.doc-body p {
  margin: 1em 0;
}

.doc-body img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 24px 0;
  border: 1px solid var(--line);
  border-radius: 6px;
}

.doc-body a {
  color: var(--accent);
  text-underline-offset: 3px;
}

.doc-body blockquote {
  margin: 24px 0;
  padding: 2px 0 2px 18px;
  color: #475569;
  border-left: 3px solid var(--accent);
}

.doc-body pre {
  overflow-x: auto;
  padding: 16px;
  background: var(--code-bg);
  color: var(--code-text);
  border-radius: 6px;
}

.doc-body code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.download-link {
  display: inline-block;
  padding: 7px 11px;
  background: #eef4ff;
  border: 1px solid #c9dbff;
  border-radius: 6px;
  text-decoration: none;
}

.missing-asset {
  display: inline-block;
  padding: 4px 8px;
  color: #9a3412;
  background: #fff7ed;
  border: 1px solid #fed7aa;
  border-radius: 6px;
  font-size: 14px;
}

.article-grid {
  display: grid;
  gap: 14px;
}

.article-card {
  display: grid;
  gap: 8px;
  padding: 18px 0;
  color: var(--text);
  border-bottom: 1px solid var(--line);
  text-decoration: none;
}

.article-card strong {
  font-size: 20px;
}

.article-card span {
  color: var(--muted);
  font-size: 14px;
}

.article-card__eyebrow {
  text-transform: uppercase;
}

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

  .sidebar {
    position: static;
    height: auto;
    padding: 18px 22px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .nav {
    margin-top: 12px;
  }

  .doc,
  .home {
    padding: 34px 22px 72px;
  }

  h1 {
    font-size: 30px;
  }

  .doc-body {
    font-size: 16px;
  }
}
