/* Blog listing (/blog) and post pages (/post/*). */

.blog { width: 940px; max-width: calc(100% - 32px); margin: 0 auto; padding: 30px 0 20px; }

.blog-cats { margin-bottom: 50px; }
.blog-cats a { font: 300 14px/19.6px var(--f-body); color: var(--slate); text-decoration: none; }
.blog-cats a:hover { color: var(--gold); }

.post-list { display: grid; gap: 32px; }
.post-card {
  display: grid; grid-template-columns: 454px 1fr;
  height: 341px; border: 1px solid var(--gold); background: var(--cream); overflow: hidden;
}
.post-card__img img { width: 454px; height: 100%; min-height: 339px; object-fit: cover; }
.post-card__body { display: flex; flex-direction: column; padding: 25px 35px 0; }

.post-meta { display: flex; align-items: center; gap: 10px; font: 300 12px/17px var(--f-body); }
.post-meta span { display: block; }
.post-meta .post-meta__line span { display: inline; }
.avatar {
  display: flex !important; align-items: center; justify-content: center; flex: none;
  width: 32px; height: 32px; border-radius: 50%;
  background: #7a8a97; color: #fff; font: 400 16px/1 var(--f-sans);
}

.post-card__title { margin: 13px 0 12px; font: italic 400 28px/37px var(--f-display); }
.post-card__title a { text-decoration: none; }
.post-card__title a:hover { color: var(--gold); }
.post-card__excerpt {
  font: 300 16px/24px var(--f-body);
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}

.post-stats {
  display: flex; align-items: center; gap: 16px;
  margin-top: auto; padding: 16px 0 22px; border-top: 1px solid var(--grey);
  font: 300 12px/15px var(--f-body);
}
.post-stats__likes { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.heart { width: 19px; height: 19px; fill: none; stroke: #e2392f; stroke-width: 1.3; }

/* ---------- Post page ---------- */
.post { width: 940px; max-width: calc(100% - 32px); margin: 0 auto; padding-top: 30px; }
.post__inner { border: 1px solid var(--gold); padding: 61px 100px 49px; }
.post-meta--large { font: 300 14px/21px var(--f-body); }
.post-meta--large span:not(.avatar) { display: inline; }
.post__title { margin: 18px 0 22px; font: 700 40px/56px var(--f-display); color: var(--navy); }
.post__body { font: 300 18px/27px var(--f-body); color: var(--navy); }
.post__body p { margin: 0 0 32px; }
.post__body h2, .post__body h3 { margin: 0 0 30px; font: italic 400 28px/39.2px var(--f-display); }
.post__body ul, .post__body ol { margin: 0 0 32px; padding-left: 36px; }
.post__body li + li { margin-top: 5px; }
.post__body strong { font-weight: 700; }
.post__body figure { margin: -2px 0 46px; }
.post__body figure img { width: 100%; height: auto; }
.post__body figcaption { margin-top: 16px; font: 300 14px/27px var(--f-body); text-align: center; }
.post__body a { color: var(--slate); }
.post__body > :last-child { margin-bottom: 0; }

.post-share { display: flex; align-items: center; gap: 30px; height: 66px; margin-top: 77px; padding: 0 1px; border-top: 1px solid var(--grey); border-bottom: 1px solid var(--grey); }
.post-share a, .post-share button { display: block; width: 19px; height: 19px; padding: 0; border: 0; background: none; color: var(--navy); cursor: pointer; }
.post-share svg { width: 19px; height: 19px; fill: currentColor; }
.post__inner > .post-stats { border-top: 0; padding: 22px 0 0; font: 300 14px/21px var(--f-body); }

.recent { width: 940px; max-width: calc(100% - 32px); margin: 0 auto 30px; }
.recent__head { display: flex; justify-content: space-between; align-items: baseline; height: 48px; padding-top: 30px; margin-bottom: 30px; }
.recent__head h2 { font: 300 18px/27px var(--f-body); }
.recent__head a { font: 300 14px/21px var(--f-body); text-decoration: none; }
.recent__head a:hover { color: var(--gold); }
.recent__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 35px; }
.recent-card { display: flex; flex-direction: column; height: 312px; border: 1px solid var(--gold); }
.recent-card > a { display: block; flex: 1; text-decoration: none; }
.recent-card img { width: 100%; height: 162px; object-fit: cover; }
.recent-card h3 {
  margin: 24px 24px 0; font: 700 18px/25px var(--f-display);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.recent-card a:hover h3 { color: var(--gold); }
.recent-card .post-stats { margin: 0 24px; padding: 14px 0 22px; gap: 18px; }
.stat { display: inline-flex; align-items: center; gap: 4px; }
.stat svg { width: 19px; height: 19px; fill: var(--navy); }

.blog-cats__mobile { display: none; }

/* ---------- Mobile (Wix 320px units, see site.css) ---------- */
@media (max-width: 760px) {
  .blog { width: auto; max-width: none; padding: 0 0 calc(30 * var(--m)); }
  .blog-cats {
    height: calc(50 * var(--m)); margin: 0; padding: calc(17 * var(--m)) calc(18 * var(--m)) 0;
    background: var(--slate); color: var(--cream);
  }
  .blog-cats a { display: none; }
  .blog-cats__mobile { display: block; font: 300 calc(14 * var(--m))/1.2 var(--f-body); }
  .post-list { gap: calc(48 * var(--m)); }
  .post-card { display: block; height: auto; border: 0; }
  .post-card__img img { width: 100%; height: calc(250 * var(--m)); min-height: 0; }
  .post-card:first-child .post-card__img img { height: calc(180 * var(--m)); }
  .post-card__body { padding: calc(33 * var(--m)) calc(18 * var(--m)) 0; }
  .post-meta { font-size: calc(12 * var(--m)); line-height: calc(17 * var(--m)); }
  .avatar { width: calc(32 * var(--m)); height: calc(32 * var(--m)); font-size: calc(16 * var(--m)); }
  .post-card__title { margin: calc(12 * var(--m)) 0 calc(11 * var(--m)); font-size: calc(22 * var(--m)); line-height: calc(30.8 * var(--m)); }
  .post-card__excerpt { font-size: calc(14 * var(--m)); line-height: calc(21 * var(--m)); }
  .post-stats { margin-top: calc(18 * var(--m)); padding: calc(10 * var(--m)) 0 0; border-top: 0; font-size: calc(12 * var(--m)); }

  .post { width: auto; max-width: none; padding: 0; }
  .post .blog-cats { margin-bottom: 0; }
  .post__inner { padding: calc(30 * var(--m)) calc(20 * var(--m)) calc(30 * var(--m)); border: 0; }
  .post-meta--large { font-size: calc(12 * var(--m)); }
  .post__title { margin: calc(14 * var(--m)) 0 calc(18 * var(--m)); font-size: calc(26 * var(--m)); line-height: calc(36 * var(--m)); }
  .post__body { font-size: calc(16 * var(--m)); line-height: calc(25 * var(--m)); }
  .post__body p { margin-bottom: calc(22 * var(--m)); }
  .post__body h2, .post__body h3 { margin-bottom: calc(18 * var(--m)); font-size: calc(22 * var(--m)); line-height: calc(30 * var(--m)); }
  .post__body ul { padding-left: calc(26 * var(--m)); }
  .post__body figcaption { font-size: calc(12 * var(--m)); line-height: 1.5; }
  .post-share { margin-top: calc(40 * var(--m)); }
  .recent { width: auto; max-width: none; padding: 0 calc(20 * var(--m)); }
  .recent__grid { grid-template-columns: 1fr; gap: calc(20 * var(--m)); }
}
