:root {
  --bg: #000;
  --fg: #fff;
  --muted: #71767B;
  --line: #2F3336;
  --line-soft: #1F2326;
}
* { box-sizing: border-box; }
html, body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: -apple-system, "Helvetica Neue", Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: #fff; text-decoration: none; border-bottom: 1px solid var(--line); transition: border-color .15s; }
a:hover { border-color: #fff; }

.scaffold {
  max-width: 760px;
  margin: 0 auto;
  padding: 56px 32px 120px;
}

header.top {
  display: flex; justify-content: space-between; align-items: center;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 48px;
  font-size: 13px;
  color: var(--muted);
  letter-spacing: 0.02em;
}
header.top .left { display: flex; align-items: center; gap: 14px; }
header.top .left svg { width: 20px; height: 20px; color: #fff; }
header.top .right { display: flex; gap: 22px; }
header.top .right a { border: none; color: var(--muted); }
header.top .right a:hover { color: #fff; }

article {
  font-size: 16px;
  line-height: 1.65;
  color: #C9CDD0;
}

article h1 {
  font-size: 64px;
  line-height: 0.98;
  letter-spacing: -0.035em;
  font-weight: 700;
  color: #fff;
  margin: 0 0 24px;
}
article h2 {
  font-size: 28px;
  letter-spacing: -0.02em;
  line-height: 1.15;
  font-weight: 700;
  color: #fff;
  margin: 56px 0 16px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}
article h2:first-of-type { padding-top: 0; border-top: none; margin-top: 40px; }
article h3 {
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.01em;
  margin: 36px 0 10px;
}
article h4 {
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  margin: 24px 0 8px;
}
article p { margin: 0 0 18px; }
article strong, article b { color: #fff; font-weight: 600; }
article em { color: #E2E5E8; font-style: italic; }
article hr {
  border: none;
  border-top: 1px solid var(--line);
  margin: 40px 0;
}
article ul, article ol {
  margin: 0 0 20px;
  padding-left: 24px;
}
article li { margin-bottom: 8px; }
article li > p { margin-bottom: 8px; }

article code {
  font-family: "SF Mono", "Menlo", monospace;
  font-size: 13px;
  background: rgba(255,255,255,0.06);
  padding: 1px 6px;
  border-radius: 4px;
  color: #fff;
}
article pre {
  background: #0A0A0A;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  overflow-x: auto;
  font-family: "SF Mono", "Menlo", monospace;
  font-size: 13px;
  line-height: 1.55;
}
article pre code { background: none; padding: 0; }

article blockquote {
  margin: 24px 0;
  padding: 4px 20px;
  border-left: 2px solid var(--line);
  color: #C9CDD0;
  font-style: italic;
}

article table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  font-size: 14px;
}
article th {
  text-align: left;
  font-weight: 700;
  color: #fff;
  border-bottom: 1px solid var(--line);
  padding: 12px 10px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
article td {
  border-bottom: 1px solid var(--line-soft);
  padding: 12px 10px;
  vertical-align: top;
  color: #C9CDD0;
}
article tr:last-child td { border-bottom: none; }

article img { max-width: 100%; height: auto; }

footer.foot {
  margin-top: 96px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
footer.foot a { color: #fff; border-bottom: 1px solid var(--line); }

@media (max-width: 640px) {
  .scaffold { padding: 32px 20px 80px; }
  article h1 { font-size: 44px; }
  article h2 { font-size: 24px; }
  header.top .right { gap: 14px; font-size: 12px; }
}
