/* ================= BLOG / CASE STUDY ================= */

.blog-container {
  max-width: 760px;
}

/* back link */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-faint);
  text-decoration: none;
  margin-bottom: 2rem;
}

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

/* title */
.post-title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 2.6rem);
  margin-bottom: 0.75rem;
}

/* meta */
.post-meta {
  display: flex;
  gap: 2rem;
  font-size: 0.8rem;
  margin-bottom: 3rem;
}

.post-body ul {
  padding-left: 1.2rem;
  margin-bottom: 1.5rem;
}

h2 {
  margin-top: 5rem;
  color: #e5e5e5;
}

h3 {
  margin-top: 2.4rem;
  font-size: 1.1rem;
  color: #e5e5e5;
}

hr {
  border: none;
  height: 1px;
  background: rgba(255, 255, 255, 0.178);
  margin-bottom: 1.2rem;
}

/* inline links */
.post-body a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  transition: color 0.15s ease, border-color 0.15s ease;
}

.post-body a:hover {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.6);
}

/* images */
.post-body img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 2rem auto;
  border-radius: 8px;
  border: 1px solid var(--surface-border);
}

/* code blocks */
.post-body pre {
  background: var(--surface-bg);
  border: 1px solid var(--surface-border);
  border-radius: 8px;
  padding: 1rem;
  font-size: 0.8rem;
  color: #e5e5e5;
  overflow-x: auto;
  margin: 2rem 0;
  white-space: pre;
}

.post-body pre::-webkit-scrollbar {
  height: 6px;
}

.post-body pre::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 4px;
}

/* mobile */
@media (max-width: 700px) {
  .post-meta {
    flex-direction: column;
    gap: 0.3rem;
  }
}
/* Contact Card (Rounded Paper) */
.contact-card {
  margin-top: 5rem;
  padding: 3.5rem 2rem;
  background-color: var(--paper-color);
  border: 1px solid var(--paper-border-color);
  border-radius: 20px;
  text-align: center;
  margin-bottom: 2rem;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.contact-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.25);
}

.contact-card h3 {
  margin-top: 0;
  font-family: var(--font-serif);
  font-size: 1.8rem;
  color: var(--heading-color);
}

.contact-card p {
  margin: 1.25rem auto 2.5rem;
  max-width: 480px;
  font-size: 1.1rem;
  color: var(--text-color);
  line-height: 1.6;
}

.contact-card .button {
  background: var(--heading-color);
  color: var(--background-color);
  font-weight: 600;
  border: none;
  height: 44px;
  padding: 0 2rem;
  font-size: 0.9rem;
}

.contact-card .button:hover {
  background: #ffffff;
  transform: translateY(-2px);
}
