:root {
  --background: #fff;
  --surface: #f7f7f5;
  --text: #181817;
  --muted: #696965;
  --line: #e5e5e1;
  --accent: #b65332;
  --sidebar-width: 260px;
  --sans: "Roboto", ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--text); background: var(--background); font: 15px/1.52 var(--sans); -webkit-font-smoothing: antialiased; }
a { color: inherit; }
.site-header { position: sticky; top: 0; z-index: 5; height: 54px; display: flex; align-items: center; justify-content: space-between; padding: 0 22px; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.95); backdrop-filter: blur(10px); }
.site-header a { text-decoration: none; }
.brand { display: flex; align-items: center; font-size: 18px; font-weight: 650; letter-spacing: -.035em; }
.brand img { width: 28px; height: 28px; margin-right: 9px; object-fit: contain; }
.brand strong { font-weight: 650; }
.brand span { margin-left: 8px; color: var(--muted); font-weight: 400; }
.github-link { color: var(--muted); font-size: 13px; }
.docs-layout { display: grid; grid-template-columns: var(--sidebar-width) minmax(0,1fr); min-height: calc(100vh - 54px); }
.sidebar { padding: 20px 18px 36px 22px; border-right: 1px solid var(--line); }
.file-tree h2 { margin: 18px 0 5px; font-size: 11px; }
.file-tree h2:first-child { margin-top: 0; }
.file-tree a { display: block; padding: 3px 7px; overflow: hidden; color: var(--muted); border-radius: 5px; font-size: 12.5px; text-decoration: none; text-overflow: ellipsis; white-space: nowrap; }
.file-tree a:hover { color: var(--text); background: var(--surface); }
main { min-width: 0; }
.content { width: min(820px, calc(100% - 56px)); margin: 0 auto; padding: 46px 0 72px; }
.content > h1:first-child { margin-top: 0; font-size: 42px; line-height: 1.08; letter-spacing: -.045em; }
h1, h2, h3 { line-height: 1.25; letter-spacing: -.025em; }
h1 { margin: 0 0 14px; font-size: 38px; }
h2 { margin: 34px 0 10px; padding-top: 4px; font-size: 22px; }
h3 { margin: 20px 0 6px; font-size: 16px; }
p { margin: 0 0 12px; }
ul, ol { margin-block: 10px 18px; padding-left: 22px; }
li { margin: 4px 0; }
blockquote { margin: 18px 0; padding: 11px 15px; color: #55463e; background: #faf7f1; border-left: 3px solid var(--accent); }
blockquote p:last-child { margin-bottom: 0; }
table { width: 100%; margin: 18px 0 28px; border-collapse: collapse; font-size: 13px; }
th { padding: 8px 7px; color: var(--muted); border-bottom: 1px solid var(--text); text-align: left; font-size: 10px; letter-spacing: .05em; text-transform: uppercase; }
td { padding: 9px 7px; border-bottom: 1px solid var(--line); vertical-align: top; }
code { padding: 2px 5px; overflow-wrap: anywhere; background: var(--surface); border-radius: 4px; font-size: .9em; }
pre { max-width: 100%; padding: 14px; overflow-x: auto; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; }
pre code { padding: 0; background: none; }
img { max-width: 100%; height: auto; border-radius: 8px; }
.landing-logo { display: block; width: min(220px, 50vw); margin: 0 0 24px; }
.learning-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 16px 0 24px; }
.learning-grid section { padding: 13px 14px; background: var(--surface); border-radius: 8px; }
.learning-grid h3 { margin: 0 0 5px; }
.learning-grid p { margin: 0; color: var(--muted); font-size: 13px; }

@media (max-width: 760px) {
  .site-header { padding-inline: 16px; }
  .brand span { display: none; }
  .docs-layout { display: block; }
  .sidebar { padding: 10px 14px; overflow-x: auto; border-right: 0; border-bottom: 1px solid var(--line); }
  .file-tree { display: flex; gap: 6px; }
  .file-tree h2 { display: none; }
  .file-tree a { flex: 0 0 auto; padding: 5px 8px; background: var(--surface); }
  .content { width: min(100% - 32px, 680px); padding: 32px 0 52px; overflow-wrap: anywhere; }
  .content > h1:first-child { font-size: 36px; }
  .learning-grid { grid-template-columns: 1fr; }
  table { display: block; overflow-x: auto; }
}
