/* Blog additions, built on the existing .post / .prose styles in styles.css */
.post .art.has-img { display: block; padding: 0; overflow: hidden; }
.post .art.has-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.post .excerpt { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.posts-loading h3 { font-family: var(--hand); color: var(--coral); }

/* Single post */
.post-hero .wrap { align-items: center; }
.post-hero h1 { font-size: clamp(2.1rem, 1rem + 3.6vw, 3.8rem); line-height: 1.04; }
.post-hero .post-meta { margin-top: 1rem; font-weight: 700; opacity: 0.8; }
.post-hero .back { display: inline-block; margin-bottom: 0.4rem; font-weight: 700; text-decoration: none; }
.post-hero .back:hover { text-decoration: underline; text-decoration-color: var(--coral); }
.post-cover { background: var(--white); border: 2.5px solid var(--ink); border-radius: 26px; box-shadow: 6px 7px 0 var(--ink); overflow: hidden; transform: rotate(1.2deg); aspect-ratio: 4 / 3; }
.post-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
[data-wix-post].no-cover .post-hero .wrap { grid-template-columns: 1fr; }
[data-wix-post][aria-busy="true"] #post-title { opacity: 0.4; }

.article .wrap { display: flex; justify-content: center; }
.article .prose { width: 100%; }
.prose img { max-width: 100%; height: auto; }
.prose .post-figure { margin: 2rem 0; }
.prose .post-figure img { border: 2.5px solid var(--ink); border-radius: 18px; box-shadow: 5px 6px 0 var(--ink); width: 100%; }
.prose figcaption { margin-top: 0.7rem; font-size: 0.95rem; opacity: 0.75; text-align: center; }
.prose .post-gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem; margin: 2rem 0; }
.prose .post-gallery .post-figure { margin: 0; }
.prose .post-layout { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.5rem; margin: 1.5rem 0; }
.prose .post-video { position: relative; aspect-ratio: 16 / 9; margin: 2rem 0; border: 2.5px solid var(--ink); border-radius: 18px; overflow: hidden; }
.prose .post-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.prose .post-button a { text-decoration: none; }
.prose hr { border: 0; border-top: 2.5px dashed var(--ink); opacity: 0.3; margin: 2.4rem 0; }
.prose li p { margin: 0; }
.prose table { border-collapse: collapse; width: 100%; }
.prose td { border: 2px solid var(--ink); padding: 0.5rem 0.7rem; }
.post-tags { margin-top: 2.4rem; }
.post-end { margin-top: 2rem; display: flex; flex-wrap: wrap; gap: 1rem; }

@media (max-width: 860px) {
  .post-cover { transform: none; }
}
/* Writer byline */
.post-hero .post-byline { display: flex; align-items: center; gap: 0.6rem; margin-top: 1.1rem; font-size: 1.05rem; }
.post-hero .post-byline img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; border: 2px solid var(--ink); }
.post-hero .post-byline + .post-meta { margin-top: 0.4rem; }
.post-hero .writer-link { color: inherit; text-decoration: underline; text-decoration-color: var(--coral); text-underline-offset: 3px; }
.post-hero .writer-link:hover { text-decoration-thickness: 2px; }

/* Writer page */
.writer-hero .wrap { grid-template-columns: 1fr; }
.writer-head { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.writer-head img { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; border: 2.5px solid var(--ink); box-shadow: 3px 4px 0 var(--ink); }
.writer-head h1 { margin: 0; }
.post .meta .writer-link { text-decoration: underline; text-decoration-color: var(--coral); text-underline-offset: 2px; cursor: pointer; font-weight: 700; }
.post .meta .writer-link:hover { text-decoration-thickness: 2px; }