:root {
  color-scheme: light;
  --bg: #f7f7f9;
  --card: #ffffff;
  --text: #1f2328;
  --muted: #57606a;
  --line: #d0d7de;
  --accent: #0969da;
  --blockquote: #f6f8fa;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.7;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
code, pre { font-family: "SFMono-Regular", Consolas, monospace; }
pre {
  overflow-x: auto;
  background: #111827;
  color: #f9fafb;
  padding: 1rem;
  border-radius: 12px;
}
code {
  background: #eef2f6;
  padding: 0.12rem 0.32rem;
  border-radius: 6px;
}
pre code {
  background: transparent;
  padding: 0;
}
blockquote {
  margin: 1.25rem 0;
  padding: 0.85rem 1rem;
  border-left: 4px solid var(--accent);
  background: var(--blockquote);
  border-radius: 0 12px 12px 0;
}
table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0 1.5rem;
  background: var(--card);
}
th, td {
  border: 1px solid var(--line);
  padding: 0.7rem 0.8rem;
  text-align: left;
  vertical-align: top;
}
hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 2rem 0;
}
.wrap {
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
}
.site-header {
  background: rgba(255,255,255,0.92);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(8px);
}
.header-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 0;
}
.site-title {
  font-weight: 700;
  color: var(--text);
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}
.top-nav {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}
.top-nav a {
  color: var(--muted);
  font-weight: 600;
}
.github-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
}
.github-link svg {
  width: 1.1rem;
  height: 1.1rem;
  fill: currentColor;
}
.content {
  padding: 2rem 0 3rem;
}
article {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 1.5rem;
  box-shadow: 0 8px 24px rgba(31, 35, 40, 0.04);
}
.source-note {
  margin: 0 0 1.25rem;
  color: var(--muted);
  font-size: 0.95rem;
}
@media (max-width: 640px) {
  .header-wrap {
    flex-direction: column;
    align-items: flex-start;
  }
  .header-actions {
    width: 100%;
    justify-content: space-between;
  }
  .top-nav {
    flex-wrap: wrap;
  }
  article {
    padding: 1.1rem;
  }
}

