/* Blog-specific styling layered on top of ../styles.css */

.blog-main {
  padding: 34px 0 64px;
}

.blog-header {
  display: grid;
  gap: 10px;
  margin: 12px 0 22px;
}

.blog-header h1 {
  margin: 0;
  font-size: clamp(30px, 3.2vw, 44px);
}

.blog-subtitle {
  margin: 0;
  color: var(--muted);
}

.blog-status {
  margin: 10px 0 14px;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.post-card {
  display: grid;
  gap: 10px;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
  padding: 18px;
  text-decoration: none;
}

.post-card:hover,
.post-card:focus-visible {
  outline: none;
  border-color: rgba(154, 77, 255, 0.45);
  background: rgba(255, 255, 255, 0.07);
}

.post-card-title {
  margin: 0;
  font-size: 16.5px;
  letter-spacing: -0.01em;
}

.post-card-meta {
  margin: 0;
  color: var(--muted-2);
  font-size: 12.5px;
}

.post-card-excerpt {
  margin: 0;
  color: var(--muted);
}

.back-link {
  display: inline-flex;
  margin: 16px 0 16px;
  color: var(--muted);
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.back-link:hover,
.back-link:focus-visible {
  outline: none;
  color: var(--text);
  border-bottom-color: rgba(154, 77, 255, 0.7);
}

.post-header {
  margin: 6px 0 20px;
}

.post-header h1 {
  margin: 0 0 10px;
  font-size: clamp(30px, 3.4vw, 46px);
}

.post-meta {
  margin: 0;
}

.post {
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
  padding: 20px;
}

.post :is(h2, h3, h4) {
  margin: 1.1em 0 0.5em;
  letter-spacing: -0.01em;
}

.post p {
  color: var(--text);
}

.post a {
  color: var(--accent-2);
  text-decoration: none;
  border-bottom: 1px solid rgba(154, 77, 255, 0.3);
}

.post a:hover,
.post a:focus-visible {
  outline: none;
  border-bottom-color: rgba(154, 77, 255, 0.7);
}

.post pre {
  overflow: auto;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.22);
  padding: 14px;
}

.post code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 0.92em;
}

.post blockquote {
  margin: 16px 0;
  padding: 10px 14px;
  border-left: 3px solid rgba(154, 77, 255, 0.65);
  color: var(--muted);
  background: rgba(105, 31, 176, 0.14);
  border-radius: 10px;
}

.post img {
  max-width: 100%;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

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