/* Post pages. Layered on top of styles.css, which is tuned for the landing
   page — h2 there is a small uppercase section label, which is wrong inside
   prose, so .post re-styles headings from scratch. */

.post-nav {
  margin-bottom: 2.5rem;
  font-size: .9rem;
}
.post-nav a {
  color: var(--muted);
  text-decoration: none;
}
.post-nav a:hover { color: var(--accent); }

.post-header { margin-bottom: 2.5rem; }

.post-header h1 {
  font-size: clamp(1.75rem, 5vw, 2.4rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin: 0 0 .6rem;
}

.post-meta {
  color: var(--muted);
  font-size: .875rem;
  margin: 0;
}

.post { font-size: 1.05rem; }

.post h2 {
  font-size: 1.35rem;
  font-weight: 600;
  text-transform: none;
  letter-spacing: -0.01em;
  color: var(--text);
  margin: 3rem 0 1rem;
}

.post h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 2rem 0 .75rem;
}

.post p { margin: 0 0 1.25rem; }

.post a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.post img,
.post video {
  display: block;
  width: 100%;
  height: auto;
  margin: 1.5rem 0 2rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}

.post ul, .post ol { margin: 0 0 1.25rem; padding-left: 1.4rem; }
.post li { margin-bottom: .4rem; }

.post blockquote {
  margin: 1.5rem 0;
  padding: .25rem 0 .25rem 1rem;
  border-left: 3px solid var(--border);
  color: var(--muted);
}

.post code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .875em;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 5px;
  padding: .1rem .35rem;
}

.post pre {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
  overflow-x: auto;
  margin: 0 0 1.5rem;
}
.post pre code {
  background: none;
  border: 0;
  padding: 0;
  font-size: .85rem;
}

/* Wide tables scroll inside themselves rather than the page. */
.post .table-wrap { overflow-x: auto; margin: 0 0 1.5rem; }
.post table {
  border-collapse: collapse;
  width: 100%;
  font-size: .9rem;
}
.post th, .post td {
  border: 1px solid var(--border);
  padding: .45rem .7rem;
  text-align: left;
  vertical-align: top;
}
.post th { background: var(--surface); font-weight: 600; }

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