/* Portino - blog: lista wpisów (blog/index.html) i pojedynczy wpis (blog/*.html) */
.blog-head { padding-bottom: 10px; }
.blog-head h1 { margin: 0 0 16px; font: 400 clamp(40px, 6vw, 76px)/1 var(--serif); letter-spacing: -.03em; }
.blog-head h1 em { color: var(--terra); font-weight: 300; }
.blog-head .lead { max-width: 60ch; }

.blog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 28px; }
.post-card { position: relative; display: flex; flex-direction: column; overflow: hidden; border-radius: 22px; background: var(--card);
  box-shadow: inset 0 0 0 1px var(--line), var(--shadow-sm); transition: transform .5s var(--ease), box-shadow .4s; }
.post-card:hover { transform: translateY(-4px); box-shadow: inset 0 0 0 1px var(--gold), var(--shadow); }
.post-card__img { display: block; overflow: hidden; }
.post-card__img img { display: block; width: 100%; height: auto; aspect-ratio: 1200 / 630; object-fit: cover; transition: transform .8s var(--ease); }
.post-card:hover .post-card__img img { transform: scale(1.03); }
.post-card__body { display: flex; flex: 1; flex-direction: column; gap: 8px; padding: 22px 24px 26px; }
.post-card time, .post__meta { font: 500 11px/1.3 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.post-card h2 { margin: 0; font: 400 26px/1.15 var(--serif); letter-spacing: -.01em; }
.post-card h2 a::after { content: ""; position: absolute; inset: 0; }
.post-card p { flex: 1; margin: 0; color: var(--ink-soft); font-size: 15.5px; }
.post-card__more { margin-top: 6px; font-weight: 600; font-size: 14px; color: var(--terra); }

.post { max-width: 760px; margin: 0 auto; }
.post h1 { margin: 10px 0 18px; font: 400 clamp(38px, 5.4vw, 64px)/1.02 var(--serif); letter-spacing: -.03em; }
.post h1 em { color: var(--terra); font-weight: 300; }
.post__cover { margin: 30px 0 10px; overflow: hidden; border-radius: 18px; box-shadow: var(--shadow); }
.post__cover img { display: block; width: 100%; height: auto; }
.post__body { overflow: hidden; }
.post__body h2 { margin: 48px 0 12px; font: 400 clamp(26px, 3vw, 34px)/1.15 var(--serif); letter-spacing: -.015em; }
.post__body p, .post__body li { color: var(--ink-soft); font-size: 18px; line-height: 1.75; }
.post__body p { margin: 0 0 16px; }
.post__body ul { margin: 0 0 18px; padding-left: 22px; }
.post__body li { margin: 4px 0; }
.post__body li::marker { color: var(--terra); }
.post__body a { color: var(--terra); text-decoration: underline; text-underline-offset: 3px; }
.post__fig { margin: 26px 0 30px; }
.post__fig img { display: block; width: 100%; height: auto; border-radius: 14px; box-shadow: var(--shadow-sm), inset 0 0 0 1px var(--line); }
.post__fig figcaption { margin-top: 10px; font: 600 20px/1.2 var(--hand); color: var(--terra); }
.post__fig--side { float: right; width: 40%; margin: 6px 0 18px 30px; }
.post__fig--narrow { max-width: 520px; }
.post__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; clear: both; margin-top: 48px; padding-top: 28px; border-top: 1px dashed var(--line-2); }

@media (max-width: 700px) {
  .post__fig--side { float: none; width: 72%; margin: 22px auto 28px; }
  .post__body p, .post__body li { font-size: 17px; }
  .blog-grid { grid-template-columns: 1fr; }
}
