.post-content {
  max-width: var(--content-width);
  margin: 0 auto;
  font-size: 0.95rem;
  font-weight: 300;
  line-height: 1.8;
  color: var(--text);
}

.post-content h2 {
  font-family: var(--font);
  font-size: 1.35rem;
  font-weight: 400;
  margin: 2.5rem 0 0.75rem;
  padding-bottom: 0.375rem;
  border-bottom: 1px solid var(--border);
  letter-spacing: -0.02em;
  line-height: 1.3;
}

.post-content h3 {
  font-family: var(--font);
  font-size: 1.1rem;
  font-weight: 500;
  margin: 2rem 0 0.5rem;
  line-height: 1.4;
}

.post-content h4 {
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 500;
  margin: 1.5rem 0 0.5rem;
}

.post-content p {
  margin-bottom: 1.25rem;
}

.post-content a {
  color: var(--text);
  text-decoration: none;
  position: relative;
  transition: color 0.2s;
}

.post-content a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 100%;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}

.post-content a:hover {
  color: var(--accent);
}

.post-content a:hover::after {
  transform: scaleX(1);
}

.post-content strong {
  font-weight: 500;
  color: var(--text);
}

.post-content em {
  font-style: italic;
}

.post-content blockquote {
  margin: 1.5rem 0;
  padding: 0.5rem 1rem 0.5rem 1.25rem;
  border-left: 2px solid var(--accent);
  color: var(--text-secondary);
  font-weight: 300;
  font-style: italic;
}

.post-content blockquote p {
  margin-bottom: 0;
}

.post-content blockquote p + p {
  margin-top: 0.75rem;
}

.post-content ul,
.post-content ol {
  margin-bottom: 1.25rem;
  padding-left: 1.5rem;
}

.post-content li {
  margin-bottom: 0.375rem;
  font-weight: 300;
}

.post-content li > ul,
.post-content li > ol {
  margin-bottom: 0;
  margin-top: 0.25rem;
}

.post-content hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 2.5rem 0;
}

.post-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.85rem;
  font-weight: 300;
  overflow-x: auto;
  display: block;
}

.post-content thead {
  border-bottom: 1px solid var(--text-dim);
}

.post-content th {
  font-weight: 500;
  text-align: left;
  padding: 0.5rem 0.75rem;
  color: var(--text);
}

.post-content td {
  padding: 0.5rem 0.75rem;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border);
}

.post-content tr:last-child td {
  border-bottom: none;
}

.post-content img {
  margin: 1.5rem auto;
  display: block;
}

.post-content figure {
  margin: 1.5rem 0;
  text-align: center;
}

.post-content figcaption {
  font-size: 0.8rem;
  font-weight: 300;
  color: var(--text-dim);
  margin-top: 0.5rem;
  font-style: italic;
}

.post-content dl {
  margin: 1.25rem 0;
}

.post-content dt {
  font-weight: 500;
  margin-top: 0.75rem;
  color: var(--text);
}

.post-content dd {
  margin-left: 1.5rem;
  font-weight: 300;
  color: var(--text-secondary);
}

.post-content small {
  font-size: 0.8rem;
  font-weight: 300;
  color: var(--text-dim);
}

.post-content abbr {
  cursor: help;
  border-bottom: 1px dotted var(--text-dim);
}

.post-content :not(pre) > code {
  font-family: var(--font-mono);
  font-size: 0.82em;
  font-weight: 400;
  background: rgba(255,255,255,0.04);
  padding: 0.1em 0.35em;
  color: var(--accent);
}

.anchor-link {
  color: inherit;
  text-decoration: none;
  position: relative;
}

.anchor-link:hover {
  color: var(--accent);
}

.anchor-link::after {
  display: none;
}

.anchor-link::before {
  content: '#';
  position: absolute;
  margin-left: -1rem;
  opacity: 0;
  transition: opacity 0.2s;
  color: var(--accent);
  font-weight: 300;
}

.post-content h2:hover .anchor-link::before,
.post-content h3:hover .anchor-link::before,
.post-content h4:hover .anchor-link::before {
  opacity: 1;
}

.post-content h2,
.post-content h3,
.post-content h4 {
  position: relative;
}

.admonition {
  margin: 1.5rem 0;
  padding: 1rem 1.25rem;
  border-left: 2px solid var(--accent);
  background: rgba(255,255,255,0.015);
  font-size: 0.88rem;
  font-weight: 300;
}

.admonition-note {
  border-color: var(--accent);
}

.admonition-warning {
  border-color: var(--yellow);
}

.admonition-tip {
  border-color: var(--green);
}

.admonition-danger {
  border-color: var(--red);
}

.admonition-heading {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 0.5rem;
}

.admonition-note .admonition-heading { color: var(--accent); }
.admonition-warning .admonition-heading { color: var(--yellow); }
.admonition-tip .admonition-heading { color: var(--green); }
.admonition-danger .admonition-heading { color: var(--red); }

.admonition-body {
  color: var(--text-secondary);
  line-height: 1.6;
}

.katex {
  font-size: 1.05em;
}

.katex-display {
  margin: 1.5rem 0;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 0.5rem 0;
}

.katex-display > .katex {
  font-size: 1.1em;
}

.footnotes {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  font-size: 0.82rem;
}

.footnotes ol {
  color: var(--text-secondary);
}

.footnotes li {
  margin-bottom: 0.5rem;
  font-weight: 300;
}

.footnote-backref {
  font-family: var(--font-mono);
  font-size: 0.7rem;
}
