:root {
  color-scheme: light dark;
  --background: #ffffff;
  --foreground: #1f2328;
  --muted: #59636e;
  --border: #d1d9e0;
  --accent: #0969da;
}

@media (prefers-color-scheme: dark) {
  :root {
    --background: #0d1117;
    --foreground: #f0f6fc;
    --muted: #9198a1;
    --border: #3d444d;
    --accent: #4493f8;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--background);
  color: var(--foreground);
  font: 16px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans", Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji", sans-serif;
}
a { color: var(--accent); }
a:hover { text-decoration-thickness: 2px; }
.container {
  width: min(100% - 32px, 760px);
  margin-inline: auto;
}
.site-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding-block: 24px 16px;
  border-bottom: 1px solid var(--border);
}
.site-title { color: inherit; font-weight: 600; text-decoration: none; }
.site-nav { display: flex; flex-wrap: wrap; gap: 8px 16px; }
.site-nav a { color: var(--muted); text-decoration: none; }
.site-nav a:hover { color: var(--foreground); }
main { padding-block: 48px 80px; }
.list { list-style: none; padding: 0; }
.list li { margin-block: 20px; }
.list a { font-weight: 600; }
.meta { color: var(--muted); font-size: .875rem; }
.site-footer {
  padding-block: 20px 40px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: .875rem;
}
.markdown-body {
  color: var(--foreground);
  background: transparent;
}
.markdown-body > :first-child { margin-top: 0; }
.markdown-body .mermaid {
  overflow-x: auto;
  padding: 16px;
  text-align: center;
}
.markdown-body .mermaid svg { height: auto; }
.language-choice {
  display: grid;
  min-height: 100vh;
  place-content: center;
  gap: 12px;
  text-align: center;
}
.language-choice a { font-size: 1.25rem; }
@media (max-width: 520px) {
  .site-header { align-items: flex-start; flex-direction: column; }
  main { padding-block: 32px 64px; }
}
