/* Blog-only rules. The shared look (tokens, header, footer, buttons, page head) lives in /site.css. */

/* ---------- post list: cards ---------- */
.post-list {
  padding: 0 24px 16px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 16px;
}

@media (max-width: 480px) {
  .post-list { padding: 0 16px 16px; }
}

.post-item {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  background: var(--white);
  border: 1px solid var(--sage);
  border-radius: var(--card);
  padding: 40px;
  transition: transform .15s ease;
}

.post-item:hover { transform: translateY(-3px); }

.post-item .date {
  align-self: flex-start;
  font-size: 13px;
  padding: 6px 14px;
  border-radius: var(--pill);
  background: var(--cream);
  margin-bottom: 32px;
}

.post-item h2 {
  font-size: 24px;
  line-height: 1.25;
  margin: 0 0 12px;
}

.post-item p {
  margin: 0;
  font-size: 15px;
}

@media (max-width: 480px) {
  .post-item { padding: 28px; }
}

/* ---------- single post ---------- */
article.post {
  background: var(--white);
  border: 1px solid var(--sage);
  border-radius: var(--card);
  margin: 8px 0 16px;
  padding: 56px 56px 64px;
}

@media (max-width: 640px) {
  article.post { padding: 32px 24px 40px; }
}

article.post .date {
  display: inline-block;
  font-size: 13px;
  padding: 6px 14px;
  border-radius: var(--pill);
  background: var(--cream);
  margin-bottom: 24px;
}

article.post h1 {
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.08;
  margin-bottom: 32px;
}

article.post p {
  font-size: 17px;
  line-height: 1.55;
  margin: 0 0 20px;
}

article.post h2 {
  font-size: 30px;
  line-height: 1.21;
  margin: 48px 0 16px;
}

article.post ul {
  padding-left: 22px;
  margin: 0 0 20px;
}

article.post li {
  margin-bottom: 8px;
  font-size: 17px;
  line-height: 1.55;
}

article.post li::marker { color: var(--teal); }

.back-link {
  display: inline-flex;
  align-items: center;
  font-size: 14px;
  text-decoration: none;
  padding: 10px 18px;
  border-radius: var(--pill);
  background: var(--sage);
  margin: 0 12px 24px 0;
  transition: opacity .15s ease;
}

.back-link:hover { opacity: .85; }

/* ---------- end-of-post pointer to services ---------- */
.post-cta {
  margin-top: 48px;
  padding: 32px;
  border-radius: var(--card);
  background: var(--cream);
}

.post-cta p { font-size: 17px; margin: 0 0 20px; }

.post-cta-actions { display: flex; flex-wrap: wrap; gap: 8px; }

.btn-soft { background: var(--sage); }

@media (max-width: 480px) {
  .post-cta { padding: 24px; }
  .post-cta-actions { flex-direction: column; }
}

time.date { display: inline-block; }
.post-item time.date { align-self: flex-start; }
