:root {
  --bg: #fafafa;
  --surface: #ffffff;
  --text: #1a1a1a;
  --text-secondary: #4a4a4a;
  --muted: #717171;
  --line: rgba(0,0,0,0.08);
  --accent: #2563eb;
  --accent-hover: #1d4ed8;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--text);
  font: 17px/1.7 Georgia, 'Times New Roman', serif;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap { max-width: 680px; margin: 0 auto; padding: 48px 24px; }
.main { padding: 40px 0 20px; }

.nav {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}
.brand {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-weight: 600;
  font-size: 18px;
  letter-spacing: -0.3px;
  color: var(--text);
}
.brand:hover { text-decoration: none; }
.links {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 15px;
}
.links a {
  color: var(--muted);
  margin-left: 24px;
  transition: color 0.15s;
}
.links a:hover {
  color: var(--text);
  text-decoration: none;
}

h1, h2, h3 {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-weight: 600;
  line-height: 1.3;
  margin: 32px 0 16px;
  letter-spacing: -0.5px;
}
h1 { font-size: 42px; }
h2 { font-size: 28px; }
h3 { font-size: 20px; }

p { margin: 0 0 20px; color: var(--text-secondary); }
.subtle { color: var(--muted); }
hr { border: none; border-top: 1px solid var(--line); margin: 32px 0; }

.hero {
  padding: 24px 0 16px;
}
.hero-title {
  margin-top: 0;
  margin-bottom: 12px;
}
.hero-tagline {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 19px;
  color: var(--muted);
  margin-top: 0;
  font-weight: 400;
}
.hero-lede {
  margin-top: 20px;
  font-size: 18px;
  line-height: 1.75;
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 28px;
}
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 20px;
  transition: box-shadow 0.2s;
}
.card:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}
.card h3 {
  margin: 0 0 8px;
  font-size: 17px;
}
.card p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.5;
}

.list { margin: 16px 0 0; padding: 0; list-style: none; }
.list li {
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}
.list li:last-child { border-bottom: none; }
.list a.title {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--text);
  font-weight: 600;
  font-size: 18px;
}
.list a.title:hover { color: var(--accent); }
.meta {
  color: var(--muted);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 14px;
  margin-top: 6px;
}
.dot { margin: 0 8px; color: var(--muted); }

.post-header { margin-bottom: 28px; }
.post-title { margin-bottom: 12px; }
.post-meta {
  color: var(--muted);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 15px;
}
.post-subtitle {
  color: var(--text-secondary);
  margin-top: 16px;
  font-size: 19px;
  line-height: 1.6;
}

blockquote {
  margin: 28px 0;
  padding: 0 0 0 24px;
  border-left: 3px solid var(--accent);
  font-style: italic;
  color: var(--text-secondary);
}

code {
  font-family: 'SF Mono', Consolas, monospace;
  font-size: 0.9em;
  background: rgba(0,0,0,0.04);
  padding: 2px 6px;
  border-radius: 4px;
}

pre {
  background: #1a1a1a;
  color: #f5f5f5;
  padding: 20px;
  border-radius: 8px;
  overflow-x: auto;
  font-size: 14px;
  line-height: 1.5;
}
pre code {
  background: none;
  padding: 0;
  color: inherit;
}

@media (max-width: 720px) {
  .wrap { padding: 32px 20px; }
  h1 { font-size: 32px; }
  h2 { font-size: 24px; }
  .grid { grid-template-columns: 1fr; }
  .links a { margin-left: 16px; }
  .nav {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  .links { margin-left: -16px; }
}
