html[data-theme="light"]{background:#F5F5F0}

html[data-theme="light"] body{background:#F5F5F0}

.post-wrap {
  max-width: 760px;
  margin: 0 auto;
  padding: 80px 20px 60px;
}

.post-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-dim);
  text-decoration: none;
  font-size: 0.88rem;
  margin-bottom: 32px;
  transition: color 0.2s;
}

.post-back:hover { color: var(--yellow); }

.post-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.post-category {
  font-size: 0.72rem;
  font-weight: 600;
  font-family: var(--font-unbounded), sans-serif;
  padding: 3px 12px;
  border-radius: 20px;
  background: var(--tag-bg);
  border: 1px solid var(--tag-border);
}

.post-date { font-size: 0.82rem; color: var(--text-dim); }

.post-read { font-size: 0.82rem; color: var(--text-dim); }

.post-title {
  font-family: var(--font-unbounded), sans-serif;
  font-size: clamp(1.5rem, 4vw, 2.2rem);
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 20px;
  color: var(--text);
}

.post-excerpt {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--border);
}

.post-cover {
  width: 100%;
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, var(--dark) 0%, #1f1f2e 100%);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-unbounded), sans-serif;
  font-size: 3rem;
  font-weight: 800;
  color: rgba(255,255,255,0.05);
}

.post-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.post-body {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--text-muted);
}

.post-body h2 {
  font-family: var(--font-unbounded), sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text);
  margin: 40px 0 16px;
  line-height: 1.3;
}

.post-body h3 {
  font-family: var(--font-unbounded), sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text);
  margin: 32px 0 12px;
}

.post-body p { margin-bottom: 16px; }

.post-body ul, .post-body ol {
  margin: 0 0 20px 20px;
}

.post-body li { margin-bottom: 8px; }

.post-body blockquote {
  border-left: 3px solid var(--yellow);
  padding: 20px 24px;
  margin: 28px 0;
  background: var(--tag-bg);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: var(--text);
  font-style: italic;
}

.post-body strong { color: var(--text); font-weight: 600; }

.post-body a { color: var(--yellow); text-decoration: underline; text-underline-offset: 3px; }

.post-body h2[id], .post-body h3[id] { scroll-margin-top: 24px; }

.post-body code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.9em;
  background: var(--tag-bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 1px 6px;
  color: var(--text);
}

.post-body pre {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px 18px;
  margin: 0 0 20px;
  overflow-x: auto;
  line-height: 1.55;
}

.post-body pre code {
  background: transparent;
  border: 0;
  padding: 0;
  font-size: 0.88rem;
  color: var(--text);
  white-space: pre;
}

.post-toc {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 20px 24px;
  margin: 0 0 32px;
}

.post-toc-title {
  font-family: var(--font-unbounded), sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 12px;
}

.post-toc ol {
  margin: 0;
  padding-left: 22px;
  font-size: 0.95rem;
}

.post-toc li { margin-bottom: 6px; }

.post-toc a { color: var(--text); text-decoration: none; border-bottom: 1px dashed var(--border); }

.post-toc a:hover { color: var(--yellow); border-bottom-color: var(--yellow); }

.post-callout {
  display: flex;
  gap: 14px;
  padding: 18px 20px;
  margin: 0 0 24px;
  background: var(--tag-bg);
  border: 1px solid var(--tag-border);
  border-left: 3px solid var(--yellow);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 0.95rem;
  line-height: 1.6;
}

.post-callout strong { color: var(--text); }

.post-callout p { margin: 0; }

.post-callout p + p { margin-top: 8px; }

.post-body figure {
  margin: 28px 0;
}

.post-body figure img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  display: block;
}

.post-body figcaption {
  font-size: 0.82rem;
  color: var(--text-dim);
  margin-top: 8px;
  text-align: center;
}

.post-author {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 14px;
}

.post-author-avatar {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--yellow), var(--orange));
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
  color: var(--black);
  flex-shrink: 0;
  overflow: hidden;
}

.post-author-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.post-author-name {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text);
  margin-bottom: 2px;
}

.post-author-role { font-size: 0.8rem; color: var(--text-dim); }

.post-cta {
  margin-top: 48px;
  padding: 40px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-align: center;
}

.post-cta h4 {
  font-family: var(--font-unbounded), sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--text);
}

.post-cta p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.post-loading {
  text-align: center;
  padding: 120px 20px;
  color: var(--text-dim);
}

.post-404 {
  text-align: center;
  padding: 120px 20px;
}

.post-404 h2 {
  font-family: var(--font-unbounded), sans-serif;
  font-size: 1.5rem;
  margin-bottom: 12px;
  color: var(--text);
}

.post-404 p { color: var(--text-dim); margin-bottom: 24px; }
