:root {
  --bg: #0d1117;
  --surface: #161b22;
  --surface-muted: #21262d;
  --ink: #f0f6fc;
  --ink-secondary: #c9d1d9;
  --muted: #8b949e;
  --line: #30363d;
  --accent: #2ea043;
  --accent-glow: rgba(46, 160, 67, 0.15);
  --accent-soft: #0d2d1f;
  --accent-border: #238636;
  --code-bg: #090d13;
  --code-border: #30363d;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 12px 32px -8px rgba(0, 0, 0, 0.6);
  --radius: 10px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.65;
  font-size: 15px;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  background: var(--accent);
  color: #fff;
  padding: 0.5rem 1rem;
  z-index: 100;
  text-decoration: none;
  font-weight: 600;
  border-radius: var(--radius);
}
.skip-link:focus {
  top: 1rem;
}

.site-header {
  border-bottom: 1px solid var(--line);
  background: rgba(13, 17, 23, 0.85);
  backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 50;
}

.header-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0.9rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--ink);
  font-weight: 700;
}

.brand-mark {
  width: 14px;
  height: 14px;
  background: var(--accent);
  border-radius: 3px;
  box-shadow: 0 0 10px var(--accent);
}

.brand-text {
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}

.brand-text small {
  display: block;
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--muted);
  letter-spacing: normal;
}

nav {
  display: flex;
  gap: 1.25rem;
  align-items: center;
  font-size: 0.85rem;
}

nav a {
  color: var(--ink-secondary);
  text-decoration: none;
  transition: color 0.15s ease;
}

nav a:hover {
  color: var(--accent);
}

main {
  max-width: 1080px;
  margin: 0 auto;
  padding: 3rem 1.5rem 5rem;
}

h1, h2, h3, h4 {
  color: var(--ink);
  font-weight: 600;
  letter-spacing: -0.02em;
}

h1 {
  font-size: 2.1rem;
  line-height: 1.25;
  margin-top: 0;
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--line);
  padding-bottom: 1rem;
}

h2 {
  font-size: 1.4rem;
  margin-top: 2.75rem;
  margin-bottom: 1rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px dashed var(--line);
}

h3 {
  font-size: 1.15rem;
  margin-top: 1.75rem;
  margin-bottom: 0.6rem;
  color: var(--accent);
}

p {
  margin: 0 0 1.25rem;
  color: var(--ink-secondary);
}

blockquote {
  margin: 1.5rem 0;
  padding: 1rem 1.5rem;
  background: var(--surface);
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
  color: var(--ink);
  font-style: normal;
}

blockquote p:last-child {
  margin-bottom: 0;
}

hr {
  border: none;
  border-top: 1px solid var(--line);
  margin: 3rem 0;
}

ul, ol {
  margin: 0 0 1.5rem;
  padding-left: 1.5rem;
  color: var(--ink-secondary);
}

li {
  margin-bottom: 0.4rem;
}

code {
  font-family: inherit;
  background: var(--surface-muted);
  border: 1px solid var(--line);
  padding: 0.15em 0.4em;
  border-radius: 4px;
  font-size: 0.9em;
  color: #7ee787;
}

pre {
  background: var(--code-bg);
  border: 1px solid var(--code-border);
  padding: 1.2rem;
  border-radius: var(--radius);
  overflow-x: auto;
  font-size: 0.88rem;
  line-height: 1.5;
  margin: 1.25rem 0;
}

pre code {
  background: transparent;
  border: none;
  padding: 0;
  color: inherit;
}

a {
  color: #58a6ff;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--surface);
  padding: 3.5rem 1.5rem 2rem;
  font-size: 0.85rem;
}

.footer-inner {
  max-width: 1080px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2.5rem;
}

.footer-col strong {
  display: block;
  margin-bottom: 0.75rem;
  color: var(--ink);
  font-size: 0.95rem;
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-col li {
  margin-bottom: 0.4rem;
}

.footer-col a {
  color: var(--muted);
  text-decoration: none;
}

.footer-col a:hover {
  color: var(--accent);
  text-decoration: underline;
}

.footer-bottom {
  max-width: 1080px;
  margin: 2.5rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  text-align: center;
  color: var(--muted);
  font-size: 0.78rem;
}

@media (max-width: 768px) {
  .header-inner {
    flex-direction: column;
    align-items: flex-start;
  }
  nav {
    flex-wrap: wrap;
    gap: 0.75rem 1rem;
  }
}
