/* ==========================================================================
   Tech Bridge Studio — post-style.css
   Blog post and archive typography. Matches TBS design system.
   ========================================================================== */

.post-main {
  max-width: 1320px;
  margin: 100px auto 80px;
  padding: 0 clamp(20px, 4vw, 56px);
}

/* Archive */
.archive-header {
  padding: clamp(60px, 10vh, 120px) 0 48px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 48px;
}
.archive-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 24px;
  margin-bottom: 56px;
}
.archive-pagination {
  display: flex;
  gap: 8px;
  padding-top: 48px;
  border-top: 1px solid var(--line);
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.archive-pagination .page-numbers {
  padding: 10px 16px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  color: var(--ink-mute);
  transition: color .2s, border-color .2s;
}
.archive-pagination .page-numbers:hover,
.archive-pagination .page-numbers.current {
  color: var(--ink);
  border-color: var(--accent);
}

/* Single post */
.post-article {
  max-width: 720px;
  margin: 0 auto;
  padding: clamp(60px, 10vh, 120px) 0 80px;
}
.post-header {
  margin-bottom: 56px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--line);
}
.post-cats {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 20px;
}
.post-title {
  font: 700 clamp(32px, 5vw, 56px)/1.1 var(--f-display);
  letter-spacing: -0.025em;
  margin: 0 0 20px;
  color: var(--ink);
}
.post-meta {
  display: flex;
  gap: 20px;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.post-thumb {
  margin-top: 32px;
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid var(--line);
}
.post-thumb img {
  width: 100%;
  height: auto;
  display: block;
}

/* Post body typography */
.post-body {
  font-size: 17px;
  line-height: 1.75;
  color: var(--ink-mute);
}
.post-body h2 {
  font: 700 clamp(24px, 3vw, 36px)/1.15 var(--f-display);
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 56px 0 20px;
  padding-top: 40px;
  border-top: 1px solid var(--line);
}
.post-body h3 {
  font: 600 clamp(20px, 2.5vw, 28px)/1.2 var(--f-display);
  letter-spacing: -0.015em;
  color: var(--ink);
  margin: 40px 0 16px;
}
.post-body h4 {
  font: 600 18px/1.3 var(--f-display);
  color: var(--ink);
  margin: 32px 0 12px;
}
.post-body p { margin: 0 0 24px; }
.post-body p:last-child { margin-bottom: 0; }
.post-body strong { color: var(--ink); font-weight: 600; }
.post-body em { font-family: var(--f-italic); font-style: italic; }
.post-body a { color: var(--accent); border-bottom: 1px solid rgba(59,201,219,0.3); transition: border-color .2s; }
.post-body a:hover { border-color: var(--accent); }
.post-body ul, .post-body ol {
  padding-left: 0;
  margin: 0 0 24px;
  list-style: none;
  display: grid;
  gap: 10px;
}
.post-body ul li, .post-body ol li {
  padding-left: 24px;
  position: relative;
  line-height: 1.65;
}
.post-body ul li::before {
  content: '·';
  position: absolute;
  left: 6px;
  color: var(--accent);
  font-weight: 700;
  font-size: 20px;
  line-height: 0.9;
}
.post-body ol { counter-reset: ol-counter; }
.post-body ol li { counter-increment: ol-counter; }
.post-body ol li::before {
  content: counter(ol-counter);
  position: absolute;
  left: 0;
  color: var(--accent);
  font-family: var(--f-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  top: 4px;
}
.post-body blockquote {
  margin: 32px 0;
  padding: 24px 28px;
  border-left: 3px solid var(--accent);
  background: var(--bg-1);
  border-radius: 0 4px 4px 0;
}
.post-body blockquote p {
  font-family: var(--f-italic);
  font-style: italic;
  font-size: 20px;
  line-height: 1.5;
  color: var(--ink);
  margin: 0;
}
.post-body pre, .post-body code {
  font-family: var(--f-mono);
  font-size: 13px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 4px;
}
.post-body code { padding: 2px 8px; }
.post-body pre { padding: 20px 24px; overflow-x: auto; margin: 0 0 24px; }
.post-body pre code { background: none; border: none; padding: 0; }
.post-body img { max-width: 100%; border-radius: 4px; margin: 8px 0; }
.post-body hr { border: 0; border-top: 1px solid var(--line); margin: 48px 0; }

/* Post footer */
.post-footer {
  margin-top: 64px;
  padding-top: 40px;
  border-top: 1px solid var(--line);
}

@media (max-width: 820px) {
  .archive-grid { grid-template-columns: 1fr; }
}
