:root {
  --bg: #0a0a0a;
  --fg: #ffffff;
  --dim: rgba(255,255,255,0.55);
  --line: rgba(255,255,255,0.08);
  --accent: #f5d020;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--mono);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}
main {
  max-width: 640px;
  width: 100%;
  margin: 0 auto;
  padding: 56px 24px 32px;
  flex: 1;
}
header.doc { margin-bottom: 32px; }
header.doc .mark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--accent);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 700;
  text-decoration: none;
}
header.doc .mark .dot {
  width: 8px; height: 8px;
  background: var(--accent);
  border-radius: 50%;
  animation: pulse 1.6s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}
header.doc h1 {
  font-size: clamp(32px, 7vw, 48px);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 18px 0 6px;
  line-height: 1.05;
}
header.doc .updated {
  color: var(--dim);
  font-size: 12px;
  letter-spacing: 0.05em;
}
article h2 {
  color: var(--accent);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin: 36px 0 12px;
}
article h2:first-of-type { margin-top: 0; }
article p, article li {
  color: rgba(255,255,255,0.85);
  font-size: 15px;
}
article p { margin: 0 0 12px; }
article ul, article ol { padding-left: 20px; margin: 0 0 12px; }
article li { margin: 0 0 6px; }
article strong { color: var(--fg); font-weight: 700; }
article a { color: var(--accent); text-decoration: none; }
article a:hover { text-decoration: underline; }
.toc { margin: 0 0 32px; }
.toc ol { padding-left: 20px; margin: 0; color: var(--dim); }
.toc li { margin: 0 0 4px; font-size: 13px; }
.toc li a { color: var(--dim); text-decoration: none; }
.toc li a:hover { color: var(--accent); }
footer {
  max-width: 640px;
  width: 100%;
  margin: 0 auto;
  padding: 24px 24px 40px;
  color: var(--dim);
  font-size: 12px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  border-top: 1px solid var(--line);
}
footer a { color: var(--accent); text-decoration: none; }
footer a:hover { text-decoration: underline; }
footer .links { display: flex; gap: 16px; }
::selection { background: var(--accent); color: #0a0a0a; }
