/* =========================================================
   post.css — post page (centered date and title, 78ch measure)
   ========================================================= */

.post {
  padding: 2.6rem 1.25rem 0;
}

.post-header {
  max-width: 720px;
  margin: 1.6rem auto 3.4rem;
  text-align: center;
}

.post-meta {
  margin: 0;
  font-size: 0.76rem;
  font-style: italic;
  letter-spacing: 0.03em;
  color: var(--muted);
}

.post-meta .dot { margin: 0 0.5em; opacity: 0.6; }

.post-title {
  margin: 0.75rem auto 0;
  max-width: 32ch;
  font-size: 1.72rem;
  font-weight: 300;
  line-height: 1.4;
  letter-spacing: 0.005em;
}

.post-summary {
  max-width: 46ch;
  margin: 1.15rem auto 0;
  font-size: 0.92rem;
  font-style: italic;
  line-height: 1.8;
  color: var(--muted);
}

/* ---------- Body ---------- */

.post-body {
  max-width: 39rem;
  margin: 0 auto;
  font-size: 18px;
  line-height: 1.78;
  color: var(--text);
  overflow-wrap: break-word;
}

.post-body > *:first-child { margin-top: 0; }

.post-body p { margin: 1.2em 0; }

.post-body h2 {
  margin: 2.6em 0 0.85em;
  font-size: 1.2em;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: 0.01em;
}

.post-body h3 {
  margin: 2.1em 0 0.7em;
  font-size: 1.04em;
  font-weight: 500;
  line-height: 1.55;
}

.post-body ul,
.post-body ol {
  margin: 1.1em 0;
  padding-left: 1.45em;
}

.post-body li { margin: 0.5em 0; padding-left: 0.1em; }
.post-body li::marker { color: var(--faint); }

.post-body blockquote {
  margin: 1.8em 0;
  padding: 0.15em 0 0.15em 1.15em;
  border-left: 2px solid var(--faint);
  color: var(--text-soft);
}

.post-body blockquote p { margin: 0.6em 0; }

.post-body code {
  padding: 0.1em 0.35em;
  border-radius: 3px;
  background: var(--code-bg);
  font-family: var(--mono);
  font-size: 0.85em;
}

.post-body pre {
  margin: 1.7em 0;
  padding: 1rem 1.15rem;
  overflow-x: auto;
  border-radius: 4px;
  background: var(--code-bg);
  font-size: 0.83rem;
  line-height: 1.75;
  -webkit-overflow-scrolling: touch;
}

.post-body pre code {
  padding: 0;
  background: none;
  font-size: 1em;
  white-space: pre;
}

.post-body hr {
  width: 40%;
  margin: 3em auto;
  border: 0;
  border-top: 1px solid var(--rule);
}

.post-body img {
  display: block;
  margin: 1.8em auto;
  border-radius: 5px;
}

.post-body strong { font-weight: 500; }

.post-body table {
  width: 100%;
  margin: 1.6em 0;
  border-collapse: collapse;
  font-size: 0.92em;
}

.post-body th,
.post-body td {
  padding: 0.45em 0.6em;
  border-bottom: 1px solid var(--rule);
  text-align: left;
}

.post-body th { font-weight: 500; }

.post-body table { display: block; overflow-x: auto; }

/* ---------- Footer nav ---------- */

.post-footer {
  max-width: 39rem;
  margin: 4.2rem auto 0;
  padding-top: 1.7rem;
  border-top: 1px solid var(--rule);
}

.post-footer .back {
  display: block;
  margin-bottom: 1.6rem;
  font-size: 0.82rem;
  color: var(--muted);
  border-bottom: 0;
}

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

.post-nav {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
}

.post-nav a {
  max-width: 47%;
  border-bottom: 0;
  color: var(--muted);
  transition: color 0.25s ease;
}

.post-nav a:hover { color: var(--text); }

.post-nav .dir {
  display: block;
  margin-bottom: 0.3rem;
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  opacity: 0.75;
}

.post-nav .name {
  font-size: 0.92rem;
  line-height: 1.55;
}

.post-nav .next { text-align: right; margin-left: auto; }

@media (max-width: 768px) {
  .post { padding-top: 1.9rem; }

  .post-header { margin: 1rem auto 2.4rem; }

  .post-title { font-size: 1.42rem; }

  .post-body {
    font-size: 16.5px;
    line-height: 1.72;
  }

  .post-body pre { font-size: 0.78rem; padding: 0.85rem 0.9rem; }

  .post-nav { flex-direction: column; gap: 1rem; }
  .post-nav a { max-width: 100%; }
  .post-nav .next { text-align: left; margin-left: 0; }
}