:root {
  --brand: #0891b2;
  --brand-soft: #67e8f9;
  --bg: #050a14;
  --bg-soft: #0a1c33;
  --text: #e2e8f0;
  --text-dim: #94a3b8;
  --border: #1e293b;
  --code-bg: #0f1e36;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter", "Helvetica Neue", system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}
header.site {
  border-bottom: 1px solid var(--border);
  padding: 1.5rem 1.5rem;
  background: rgba(5, 10, 20, 0.8);
  backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 10;
}
header.site .inner {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
header.site .brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--text);
  font-weight: 700;
  font-size: 16px;
}
header.site .brand img { width: 24px; height: 24px; border-radius: 6px; }
header.site nav a {
  color: var(--text-dim);
  text-decoration: none;
  font-size: 14px;
  margin-left: 1.2rem;
}
header.site nav a:hover { color: var(--text); }
main {
  max-width: 760px;
  margin: 0 auto;
  padding: 3rem 1.5rem 5rem;
}
.post-meta {
  color: var(--text-dim);
  font-size: 14px;
  margin-bottom: 1rem;
  letter-spacing: 0.02em;
}
h1 {
  font-size: 2.6rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
  background: linear-gradient(180deg, #fff 0%, #67e8f9 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
h2 {
  font-size: 1.6rem;
  font-weight: 700;
  margin: 3rem 0 1rem;
  color: #fff;
  letter-spacing: -0.01em;
}
h3 {
  font-size: 1.2rem;
  font-weight: 600;
  margin: 2rem 0 0.8rem;
  color: #fff;
}
p { margin: 0 0 1.2rem; color: var(--text); }
a { color: var(--brand-soft); text-decoration: underline; text-underline-offset: 3px; }
a:hover { color: #fff; }
ul, ol { margin: 0 0 1.2rem 1.4rem; }
li { margin-bottom: 0.4rem; }
code {
  background: var(--code-bg);
  padding: 0.15em 0.4em;
  border-radius: 4px;
  font-size: 0.9em;
  font-family: "SF Mono", Menlo, Consolas, monospace;
  color: var(--brand-soft);
}
pre {
  background: var(--code-bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1rem;
  overflow-x: auto;
  margin: 1.5rem 0;
}
pre code { background: none; padding: 0; color: var(--text); }
blockquote {
  border-left: 3px solid var(--brand);
  padding: 0.5rem 1.2rem;
  margin: 1.5rem 0;
  color: var(--text-dim);
  background: rgba(8, 145, 178, 0.05);
  border-radius: 0 8px 8px 0;
}
table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.95em;
}
th, td {
  text-align: left;
  padding: 0.7rem 1rem;
  border-bottom: 1px solid var(--border);
}
th {
  background: var(--bg-soft);
  font-weight: 600;
  color: #fff;
}
.cta {
  display: block;
  background: linear-gradient(135deg, #0891b2 0%, #06b6d4 100%);
  color: #fff;
  padding: 1.2rem 1.5rem;
  border-radius: 12px;
  text-decoration: none;
  margin: 2.5rem 0;
  font-weight: 600;
  text-align: center;
  letter-spacing: 0.01em;
  transition: transform 0.15s ease;
}
.cta:hover { transform: translateY(-2px); color: #fff; }
.cta-small {
  display: inline-block;
  padding: 0.4em 0.9em;
  border-radius: 6px;
  background: rgba(8, 145, 178, 0.15);
  border: 1px solid rgba(8, 145, 178, 0.3);
  text-decoration: none;
  font-size: 0.92em;
  margin: 0 0.2em;
}
hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 3rem 0;
}
.tag {
  display: inline-block;
  background: rgba(103, 232, 249, 0.1);
  color: var(--brand-soft);
  font-size: 0.8em;
  padding: 0.2em 0.7em;
  border-radius: 999px;
  margin-right: 0.4em;
}
figure {
  margin: 2rem 0;
  text-align: center;
}
figure img, figure svg {
  max-width: 100%;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg-soft);
}
figcaption {
  color: var(--text-dim);
  font-size: 0.9em;
  margin-top: 0.6rem;
  font-style: italic;
}
footer.site {
  border-top: 1px solid var(--border);
  padding: 2rem 1.5rem;
  text-align: center;
  color: var(--text-dim);
  font-size: 14px;
  margin-top: 4rem;
}
footer.site a { color: var(--text-dim); margin: 0 0.8rem; }
footer.site a:hover { color: var(--text); }
.post-card {
  display: block;
  padding: 1.5rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  margin-bottom: 1.2rem;
  text-decoration: none;
  color: var(--text);
  background: rgba(10, 28, 51, 0.4);
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.post-card:hover { border-color: var(--brand); transform: translateY(-2px); color: var(--text); }
.post-card h2 {
  margin: 0 0 0.6rem;
  font-size: 1.3rem;
  color: #fff;
}
.post-card p { margin: 0; color: var(--text-dim); font-size: 0.95em; }
