*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --bg: #f7f8f9; --bg2: #ffffff; --fg: #2a2b2e; --dim: #65666a; --mute: #9ca3b0;
  --rule: #dfe0e3;
  --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1a1b1e; --bg2: #222326; --fg: #c9ccd1; --dim: #6e7179;
    --mute: #45474d; --rule: #2e3035;
  }
}
::selection { background: var(--fg); color: var(--bg); }
a { color: inherit; }
html, body {
  background: var(--bg); color: var(--fg); font-family: var(--font);
  font-size: 15px; line-height: 1.7; -webkit-font-smoothing: antialiased;
}
body { padding: 48px; min-height: 100vh; display: flex; flex-direction: column; }
nav {
  display: flex; justify-content: space-between; align-items: center;
  padding-bottom: 24px; border-bottom: 1px solid var(--rule); margin-bottom: 48px;
}
.site-name {
  font-size: 11px; font-weight: 600; letter-spacing: 0.15em;
  text-transform: uppercase; text-decoration: none; color: var(--mute);
}
.nav-links { display: flex; gap: 20px; }
.nav-links a {
  font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase;
  text-decoration: none; color: var(--mute); font-weight: 500; transition: color 0.15s;
}
.nav-links a:hover { color: var(--fg); }
main { flex: 1; max-width: 860px; }
h1 {
  font-size: 24px; font-weight: 700; line-height: 1.3;
  letter-spacing: -0.01em; margin: 0 0 24px;
}
.meta {
  font-size: 11px; letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--mute); font-weight: 500; margin-bottom: 8px;
}
.content p { margin-bottom: 16px; color: var(--dim); line-height: 1.7; }
.content strong { font-weight: 600; color: var(--fg); }
.content h2 {
  font-size: 11px; font-weight: 600; letter-spacing: 0.15em;
  text-transform: uppercase; color: var(--mute);
  margin: 48px 0 16px; padding-bottom: 8px; border-bottom: 1px solid var(--rule);
}
.content h3 { font-size: 15px; font-weight: 600; margin: 32px 0 12px; }
.content ul, .content ol { margin: 0 0 16px 20px; color: var(--dim); }
.content table { width: 100%; border-collapse: collapse; margin: 16px 0 24px; font-size: 14px; }
.content th {
  text-align: left; font-size: 11px; font-weight: 600; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--mute); padding: 8px 12px;
  border-bottom: 1px solid var(--rule);
}
.content td { padding: 8px 12px; color: var(--dim); border-bottom: 1px solid var(--rule); }
.content td code { font-size: 12px; }
.content code {
  font-size: 13px; background: var(--bg2); padding: 1px 5px;
  border: 1px solid var(--rule); border-radius: 2px;
}
.content pre {
  margin: 16px 0 24px; padding: 20px 24px; background: var(--bg2);
  border: 1px solid var(--rule); border-radius: 3px; overflow-x: auto;
}
.content pre code { font-size: 13px; background: none; padding: 0; border: none; line-height: 1.5; white-space: pre-wrap; word-wrap: break-word; }
.post-list { list-style: none; padding: 0; }
.post-list li { padding: 16px 0; border-bottom: 1px solid var(--rule); }
.post-list a { text-decoration: none; font-weight: 600; }
.post-list .date {
  font-size: 11px; letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--mute); font-weight: 500;
}
.registry-meta {
  border-left: 2px solid var(--rule); padding-left: 20px; margin: 0 0 32px;
  display: grid; gap: 6px;
}
.registry-row { font-size: 14px; color: var(--dim); }
.registry-key {
  display: inline-block; width: 80px; color: var(--mute);
  text-transform: uppercase; font-size: 11px; letter-spacing: 0.12em; font-weight: 500;
}
footer {
  margin-top: auto; padding-top: 48px; font-size: 11px;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--mute);
}
@media (max-width: 600px) {
  body { padding: 24px; }
  nav { margin-bottom: 32px; }
  h1 { font-size: 20px; }
}
