/* Blog list and post pages (measured from the live Wix blog). */

.blog-wrap { max-width: calc(940px + 32px); }
.blog-nav { display: flex; padding-block: 44px 30px; }
.blog-nav a { font: 400 18px/1.4 var(--sans); color: #232323; text-decoration: none; }
.blog-nav a:hover { color: var(--green); }

.byline { display: flex; flex-wrap: wrap; gap: 0 6px; font: 400 14px/1.4 var(--sans); color: var(--ink); }
.byline span + span::before { content: "·"; margin-right: 6px; }

/* List */
.blog-hero { position: relative; min-height: clamp(260px, 46vw, 589px); display: flex; align-items: center; overflow: hidden; background: #c8915a; }
.blog-hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 30% 50%; }
.blog-hero .wrap { position: relative; display: flex; justify-content: flex-end; }
.blog-hero__title { display: flex; align-items: flex-end; gap: 28px; margin-right: 6%; }
.blog-hero h1 { color: var(--white); font-size: clamp(40px, 6.25vw, 80px); line-height: 1; text-shadow: 0 2px 16px rgba(0,0,0,.15); }
.blog-hero svg { width: clamp(46px, 6vw, 92px); height: auto; flex: none; margin-bottom: 8px; }
.blog-list { display: grid; gap: 22px; padding-bottom: 80px; }
.blog-item { display: grid; grid-template-columns: 454fr 486fr; height: 341px; overflow: hidden; border: 1px solid var(--rule); text-decoration: none; color: var(--ink); background: var(--white); }
.blog-item img { width: 100%; height: 100%; object-fit: cover; }
.blog-item__body { padding: 28px 34px 30px 30px; display: flex; flex-direction: column; min-width: 0; }
.blog-item .byline { font-size: 12px; }
.blog-item h2 { margin-top: 14px; font: 300 28px/1.3 var(--sans); color: var(--ink); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.blog-item:hover h2 { color: var(--green); }
.blog-item__excerpt { margin-top: 14px; font: 400 15px/1.6 var(--sans); color: #333; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* Post */
.post-band { height: 245px; }
.post-article { border: 1px solid var(--rule); padding: 50px 99px 70px; background: var(--white); }
.post-article > h1 { margin-top: 18px; font: 300 40px/1.3 var(--sans); color: var(--ink); }
.post-body { margin-top: 30px; font: 400 18px/1.75 var(--sans); color: var(--black); overflow-wrap: anywhere; }
.post-body > * + * { margin-top: 22px; }
.post-body h2 { font: 700 28px/1.3 var(--sans); margin-top: 44px; color: var(--black); }
.post-body h3 { font: 700 22px/1.35 var(--sans); margin-top: 34px; color: var(--black); }
.post-body h4 { font: 700 19px/1.4 var(--sans); margin-top: 28px; }
.post-body a { color: var(--green); text-underline-offset: 3px; }
.post-body figure { margin: 34px 0; }
.post-body figure img { width: 100%; }
.post-body figcaption { margin-top: 14px; text-align: center; font: 400 14px/1.5 var(--sans); color: var(--ink); }
.post-body ul, .post-body ol { padding-left: 1.3em; }
.post-body li + li { margin-top: 8px; }
.post-body blockquote { margin: 30px 0; padding: 4px 0 4px 22px; border-left: 3px solid var(--mint); font-size: 20px; }
.post-body hr { border: 0; border-top: 1px solid var(--rule); margin-block: 40px; }
.post-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
.post-gallery img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.post-video { aspect-ratio: 16 / 9; background: #111; }
.post-video iframe, .post-video video { width: 100%; height: 100%; border: 0; display: block; }

.recents { padding-block: 50px 80px; }
.recents__head { display: flex; justify-content: space-between; align-items: baseline; }
.recents__head h2 { font: 400 18px/1.4 var(--sans); color: var(--ink); }
.recents__head a { font: 400 14px/1.4 var(--sans); color: var(--ink); }
.recents__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 34px; margin-top: 26px; }
.recent { display: block; border: 1px solid var(--rule); text-decoration: none; color: var(--ink); }
.recent img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.recent span { display: block; padding: 18px 22px 26px; font: 400 18px/1.4 var(--sans); }
.recent:hover span { color: var(--green); }

@media (max-width: 900px) {
  .blog-item { height: 300px; }
  .post-article { padding: 40px 40px 56px; }
  .recents__grid { grid-template-columns: 1fr 1fr; }
  .recents__grid .recent:nth-child(3) { display: none; }
}
@media (max-width: 640px) {
  .blog-hero .wrap { justify-content: center; }
  .blog-hero__title { margin-right: 0; gap: 16px; }
  .blog-nav { padding-block: 28px 20px; }
  .blog-item { grid-template-columns: 1fr; height: auto; }
  .blog-item img { aspect-ratio: 4 / 3; height: auto; }
  .blog-item__body { padding: 20px 20px 26px; }
  .blog-item h2 { font-size: 24px; }
  .post-band { height: 90px; }
  .post-article { border: 0; padding: 0 0 40px; }
  .post-article > h1 { font-size: 30px; }
  .post-body { font-size: 17px; }
  .post-body h2 { font-size: 24px; }
  .post-body h3 { font-size: 20px; }
  .recents__grid { grid-template-columns: 1fr; gap: 20px; }
  .recents__grid .recent:nth-child(3) { display: block; }
}
