:root {
  color-scheme: light;
  --ink: #0b1726;
  --muted: #5c6878;
  --line: #d8e0ea;
  --panel: #f6f8fb;
  --accent: #0f6ea8;
  --accent-strong: #084b76;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  color: var(--ink);
  background: radial-gradient(circle at top left, #edf7ff, #ffffff 36rem);
  font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
}
header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem clamp(1rem, 4vw, 3rem);
  border-bottom: 1px solid var(--line);
  background: rgba(255,255,255,.86);
  backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 2;
}
.brand { display: flex; gap: .75rem; align-items: center; }
.brand .mark {
  display: inline-grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: .65rem;
  color: white;
  background: linear-gradient(135deg, #0b1726, #0f6ea8);
}
.brand small { display: block; color: var(--muted); font-size: .8rem; }
.repo { color: var(--accent-strong); font-weight: 700; text-decoration: none; }
main {
  display: grid;
  grid-template-columns: minmax(12rem, 18rem) minmax(0, 1fr);
  gap: clamp(1rem, 4vw, 3rem);
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(1rem, 4vw, 3rem);
}
nav {
  align-self: start;
  position: sticky;
  top: 5.5rem;
  display: grid;
  gap: .35rem;
}
nav a {
  color: var(--muted);
  text-decoration: none;
  padding: .55rem .7rem;
  border-radius: .6rem;
}
nav a.active, nav a:hover { color: var(--accent-strong); background: #e7f2fb; }
article {
  min-width: 0;
  background: rgba(255,255,255,.92);
  border: 1px solid var(--line);
  border-radius: 1.25rem;
  padding: clamp(1.25rem, 4vw, 3rem);
  box-shadow: 0 18px 50px rgba(18, 38, 63, .08);
}
h1, h2, h3, h4 { line-height: 1.15; margin: 1.8rem 0 .75rem; }
h1:first-child { margin-top: 0; font-size: clamp(2rem, 5vw, 3.5rem); letter-spacing: -.04em; }
p, li { color: #263547; }
a { color: var(--accent); }
code {
  padding: .12rem .32rem;
  border-radius: .35rem;
  background: #edf2f7;
}
pre {
  overflow: auto;
  padding: 1rem;
  border-radius: .85rem;
  background: #0b1726;
  color: #e7f2fb;
}
pre code { background: transparent; color: inherit; padding: 0; }
table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
  overflow: hidden;
  border-radius: .85rem;
}
th, td { border: 1px solid var(--line); padding: .7rem; vertical-align: top; }
th { background: var(--panel); text-align: left; }
img { max-width: 100%; }
@media (max-width: 800px) {
  header { position: static; }
  main { grid-template-columns: 1fr; }
  nav { position: static; grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr)); }
}
