* { box-sizing: border-box; }
body {
  background: #09090b;
  color: #e4e4e7;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  margin: 0;
  padding: 0;
  line-height: 1.6;
}
header, footer {
  max-width: 1100px;
  margin: 0 auto;
  padding: 32px 24px;
}
header {
  border-bottom: 1px solid #27272a;
}
header h1 {
  margin: 0 0 8px 0;
  font-size: 32px;
  font-weight: 600;
  letter-spacing: -0.02em;
}
header p {
  margin: 0;
  color: #a1a1aa;
  font-size: 15px;
}
header a, footer a { color: #60a5fa; text-decoration: none; }
header a:hover, footer a:hover { text-decoration: underline; }

main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 32px 24px;
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 48px;
}
@media (max-width: 760px) {
  main { grid-template-columns: 1fr; gap: 24px; }
  nav.toc { position: static; max-height: none; }
}

nav.toc {
  position: sticky;
  top: 24px;
  align-self: start;
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  font-size: 13px;
}
nav.toc h3 {
  margin: 0 0 12px 0;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #71717a;
  font-size: 11px;
  font-weight: 600;
}
nav.toc ul { list-style: none; margin: 0; padding: 0; }
nav.toc li { margin: 4px 0; display: flex; justify-content: space-between; gap: 8px; }
nav.toc a {
  color: #d4d4d8;
  text-decoration: none;
  font-variant-numeric: tabular-nums;
}
nav.toc a:hover { color: #60a5fa; }
nav.toc .d { color: #52525b; font-size: 11px; font-variant-numeric: tabular-nums; }
nav.toc .toc-second { margin-top: 24px; }

.entries { min-width: 0; }
.section-head {
  font-size: 13px;
  font-weight: 600;
  color: #71717a;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin: 0 0 20px 0;
  padding-bottom: 10px;
  border-bottom: 1px solid #27272a;
}
.section-head.site-head {
  margin-top: 48px;
  color: #60a5fa;
  border-bottom-color: #1e3a5f;
}

article {
  margin: 0 0 56px 0;
  padding: 28px 32px;
  background: #18181b;
  border: 1px solid #27272a;
  border-radius: 10px;
  scroll-margin-top: 24px;
}
article:target {
  border-color: #60a5fa;
  box-shadow: 0 0 0 1px #60a5fa, 0 8px 24px rgba(96,165,250,0.08);
}
article h2 {
  margin: 0 0 6px 0;
  font-size: 22px;
  font-weight: 600;
  color: #f4f4f5;
  letter-spacing: -0.01em;
}
article h2 a { color: #60a5fa; text-decoration: none; }
article h2 a:hover { text-decoration: underline; }
article h2 .sep { color: #52525b; font-weight: 400; margin: 0 4px; }
article h2 .rt { color: #f4f4f5; font-weight: 600; }
time {
  color: #71717a;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  display: block;
  margin-bottom: 16px;
}
.content {
  font-size: 14px;
  line-height: 1.65;
  color: #d4d4d8;
}
.content p {
  margin: 0 0 14px 0;
}
.content p:last-child { margin-bottom: 0; }

footer {
  border-top: 1px solid #27272a;
  color: #71717a;
  font-size: 13px;
  padding: 24px;
  text-align: center;
}
