:root{
  --bg:#000;
  --fg:#f4f4f5;
  --muted:#a1a1aa;
  --muted2:#71717a;
  --card:#111827;      /* gray-900-ish */
  --card2:#1f2937;     /* hover */
  --border:#27272a;
  --link:#d4d4d8;
  --max:1100px;
}

*{box-sizing:border-box}
body{
  margin:0;
  background:var(--bg);
  color:var(--fg);
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

.bg{background:var(--bg)}
.container{
  max-width: min(80%, var(--max));
  margin: 0 auto;
  padding: 0 16px;
}

.nav{
  border-bottom:1px solid var(--border);
}
.nav-inner{
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 16px;
  height:64px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
}
.nav-links{
  display:flex;
  gap:48px;
  justify-content:center;
  width:100%;
}
.nav a{
  color:var(--link);
  text-decoration:none;
  transition:color .15s ease;
}
.nav a:hover{color:var(--fg)}
.nav-lang{
  white-space:nowrap;
}
.nav-lang a, .nav-lang span{
  margin-left:12px;
  color:var(--muted);
}
.nav-lang .active{color:var(--fg); font-weight:600}

.page{
  padding: 24px 0 80px;
  min-height: 100vh;
}

.h1{
  font-size: 40px;
  font-weight: 800;
  margin: 24px 0 24px;
}

.cats{
  list-style:none;
  padding:0;
  margin:0 0 24px;
  display:flex;
  gap:12px;
  flex-wrap:wrap;
}
.cat-btn{
  border:0;
  background:transparent;
  color:var(--muted);
  padding:6px 14px;
  border-radius:999px;
  cursor:pointer;
  transition:all .2s ease;
}
.cat-btn:hover{color:var(--fg)}
.cat-btn.is-active{
  background: rgba(244,244,245,.12);
  color: var(--fg);
}

.posts{
  list-style:none;
  padding:0;
  margin:0;
  display:flex;
  flex-direction:column;
  gap:24px;
}
.postlink{
  display:block;
  text-decoration:none;
  color:inherit;
}
.h2{
  font-size: 22px;
  font-weight: 600;
  margin:0 0 6px;
  color:#e5e7eb;
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-color: transparent;
  transition: all .2s ease;
}
.postlink:hover .h2{
  color:var(--fg);
  text-decoration-color: rgba(161,161,170,.6);
}
.desc{
  margin:0 0 6px;
  color:var(--muted);
}
.meta{
  margin:0;
  font-size: 14px;
  color: var(--muted2);
}

.postpage{
  padding: 32px 0 80px;
  min-height:100vh;
}
.article{max-width: 760px}

.prose{
  margin-top: 18px;
  color: #e5e7eb;
}
.prose p{color:#d4d4d8; line-height:1.75}
.prose a{color:#60a5fa; text-decoration:underline}
.prose img{max-width:100%; height:auto; border-radius:12px; margin: 18px 0}
.prose h2{margin-top:32px; font-size:28px; color:var(--fg)}
.prose h3{margin-top:22px; font-size:22px; color:var(--fg)}
.prose blockquote{
  border-left:4px solid #52525b;
  padding-left:14px;
  color:#a1a1aa;
  font-style:italic;
}
