/* ─── Analog India — Post Page Styles (Readability Focus) ─── */

/* ── Masthead ── */
.masthead {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.masthead-title {
  font-family: var(--serif);
  font-size: 2rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.01em;
}
.masthead-title a {
  color: inherit;
  text-decoration: none;
}
.masthead-title:hover a {
  color: var(--link-hover);
}
.masthead-subtitle {
  font-size: 0.8rem;
  color: var(--text-muted);
  letter-spacing: 0.03em;
  text-transform: uppercase;
  font-family: var(--sans);
}

/* ── Navigation ── */
.main-nav {
  display: flex;
  gap: 18px;
  margin-top: 12px;
}
.main-nav a {
  font-family: var(--sans);
  font-size: 0.85rem;
  color: var(--text-muted);
  text-decoration: none;
  padding: 4px 0;
  transition: color 0.2s;
}
.main-nav a:hover {
  color: var(--text);
}

/* ── Post Content ── */
.post-content {
  flex: 1;
  max-width: 1020px;
  margin: 0 auto;
  padding: 64px 0 72px;
}

/* ── Post Article ── */
.post-article {
  max-width: 720px;
  margin: 0 auto;
}

/* ── Post Header ── */
.post-header {
  margin-bottom: 56px;
}
.post-date {
  display: block;
  font-family: var(--sans);
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 16px;
  letter-spacing: 0.01em;
}
.post-title {
  font-family: var(--serif);
  font-size: 2.1rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.35;
  letter-spacing: -0.005em;
  margin-bottom: 18px;
}
.post-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.post-tags a {
  font-family: var(--sans);
  font-size: 0.76rem;
  color: var(--text-muted);
  text-decoration: none;
  padding: 3px 10px;
  border: 1px solid var(--border);
  border-radius: 100px;
  transition: all 0.2s;
}
.post-tags a:hover {
  color: var(--text);
  border-color: var(--text-muted);
}

/* ── Post Body (Readability First) ── */
.post-body {
  font-size: 2.1rem;
  line-height: 1.9;
  color: var(--text);
}
.post-body h2 {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text);
  margin: 56px 0 28px;
  letter-spacing: -0.005em;
  line-height: 1.35;
}
.post-body h2:first-child {
  margin-top: 0;
}
.post-body h3 {
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text);
  margin: 44px 0 20px;
  letter-spacing: -0.005em;
  line-height: 1.4;
}
.post-body p {
  margin-bottom: 32px;
  line-height: 1.9;
  color: var(--text);
}
.post-body p em {
  color: var(--text-dim);
  font-style: italic;
}
.post-body strong {
  color: var(--text);
  font-weight: 600;
}
.post-body a {
  color: var(--link-hover);
  text-decoration: underline;
  text-decoration-color: var(--link-hover);
  text-underline-offset: 3px;
  transition: all 0.2s;
}
.post-body a:hover {
  color: var(--link);
  text-decoration-color: var(--link);
}
.post-body hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 56px 0;
}
.post-body blockquote {
  border-left: 2px solid var(--border);
  padding: 16px 24px;
  margin: 32px 0;
  color: var(--text-dim);
  font-style: italic;
  background: var(--card);
  border-radius: 4px;
}
.post-body code {
  font-family: var(--mono);
  font-size: 0.88em;
  background: var(--card);
  padding: 3px 8px;
  border-radius: 3px;
  color: var(--text);
}
.post-body pre {
  font-family: var(--mono);
  font-size: 0.88em;
  background: var(--card);
  padding: 20px 24px;
  border-radius: 4px;
  margin: 32px 0;
  overflow-x: auto;
  line-height: 1.7;
}
.post-body pre code {
  background: none;
  padding: 0;
  color: var(--text);
}
.post-body ul, .post-body ol {
  margin: 28px 0;
  padding-left: 28px;
}
.post-body li {
  margin-bottom: 16px;
  line-height: 1.85;
}
.post-body img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 32px 0;
  border-radius: 4px;
}
.post-body img + em,
.post-body figcaption {
  text-align: center;
  color: var(--text-dim);
  font-size: 0.88em;
  margin-top: 10px;
}

/* ── Post Footer (Author Bio) ── */
.post-footer {
  margin-top: 64px;
  padding-top: 36px;
  border-top: 1px solid var(--border);
}
.post-meta {
  display: flex;
  gap: 24px;
  font-size: 0.8rem;
  color: var(--text-dim);
  font-family: var(--mono);
}
.post-meta span {
  letter-spacing: 0.02em;
}
.author-bio {
  margin-top: 36px;
  padding: 28px;
  background: var(--card);
  border-radius: 6px;
}
.author-bio-name {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1rem;
  color: var(--text);
  margin-bottom: 8px;
}
.author-bio-text {
  font-size: 0.9rem;
  color: var(--text-dim);
  line-height: 1.75;
  font-family: var(--sans);
}

/* ── Post Navigation ── */
.post-navigation {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 40px 0;
  border-top: 1px solid var(--border);
  margin-top: 64px;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}
.post-navigation a {
  font-family: var(--sans);
  font-size: 0.82rem;
  color: var(--text-muted);
  text-decoration: none;
  padding: 4px 0;
  transition: color 0.2s;
}
.post-navigation a:hover {
  color: var(--text);
}
.post-navigation .nav-prev {
  text-align: left;
}
.post-navigation .nav-next {
  text-align: right;
}

/* ── Site Footer ── */
.site-footer {
  margin-top: auto;
  padding: 36px 0;
  border-top: 1px solid var(--border);
}
.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
  text-align: center;
}
.footer-copy {
  font-size: 0.8rem;
  color: var(--text-dim);
}
.footer-links {
  font-size: 0.8rem;
  color: var(--text-dim);
}
.footer-links a {
  color: var(--text-dim);
  margin: 0 8px;
}
.footer-links a:hover {
  color: var(--accent);
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .masthead-title {
    font-size: 1.5rem;
  }
  .main-nav {
    gap: 14px;
    flex-wrap: wrap;
  }
  .post-title {
    font-size: 1.6rem;
  }
  .post-content {
    padding: 40px 0 56px;
  }
  .post-body h2 {
    font-size: 1.3rem;
  }
  .post-body h3 {
    font-size: 1.05rem;
  }
  .post-footer {
    margin-top: 40px;
  }
  .post-meta {
    flex-direction: column;
    gap: 8px;
  }
  .post-navigation {
    flex-direction: column;
    gap: 16px;
  }
  .post-navigation a {
    text-align: center;
    width: 100%;
  }
}
