.blog-nav, .categories, .post-meta, #blog-registration { display: flex; flex-wrap: wrap; align-items: center; }
.blog-nav { gap: .55rem; }
.blog-nav a { padding: .35rem .8rem; border-radius: 14px; font-weight: 700; white-space: nowrap; }
.blog-nav a:hover, .blog-nav [aria-current] { background: #fbdccd; }
.blog-hero { background: linear-gradient(#afddf5,#ddf2f7 75%,#e5efcf); overflow: hidden; }
.blog-hero-inner { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,52%); align-items: center; min-height: 220px; max-width: 1040px; }
.blog-hero h1 { position: relative; font-size: clamp(2rem,5vw,3.4rem); font-weight: 900; letter-spacing: -.03em; text-shadow: 2px 2px #fff6df, -2px -2px #fff6df; }
.blog-hero p { margin-top: .25rem; color: #584139; }
.blog-hero img { align-self: end; width: 100%; height: auto; mask-image: linear-gradient(90deg,transparent,#000 15%,#000 94%,transparent); }
.blog-content { max-width: 1040px; min-height: 47vh; padding: 1.5rem 0 3rem; }
.categories { gap: .55rem; margin-bottom: 1.65rem; }
.category-link { display: inline-flex; align-items: center; gap: .38rem; min-height: 44px; padding: .38rem .78rem; border-radius: 999px; border: 1px solid #e8d9d0; font-weight: 750; transition: transform .18s; }
.category-link img { width: 26px; height: 25px; object-fit: contain; border-radius: 5px; mix-blend-mode: multiply; }
.category-link.all { background: #fff2e4; }
.category-link[aria-current] { box-shadow: 0 0 0 2px #a8694d inset; border-color: transparent; }
.category-link:hover { transform: translateY(-2px); }
.list-heading { font-size: 1.4rem; margin-bottom: .65rem; }
.post-grid { display: grid; gap: 1rem; grid-template-columns: repeat(3,minmax(0,1fr)); }
.post-card { background: #fffefa; border: 1px solid var(--line); border-radius: 22px; box-shadow: 0 4px 15px #5033220c; transition: transform .18s, box-shadow .18s; }
.post-card:hover { transform: translateY(-3px); box-shadow: 0 8px 18px #50332216; }
.post-link { display: block; height: 100%; border-radius: inherit; }
.post-cover { width: 100%; aspect-ratio: 2.7; height: auto; object-fit: cover; border-radius: 21px 21px 0 0; }
.post-card-body { padding: .85rem 1rem 1.1rem; }
.post-card h3 { margin-block: .48rem .25rem; font-size: 1.22rem; overflow-wrap: anywhere; }
.post-card p, .empty-state p { color: var(--muted); font-size: .95rem; }
.post-meta { gap: .5rem; color: #6e5749; font-size: .84rem; }
.category-badge { border-radius: 999px; padding: .13rem .56rem; font-weight: 700; }
.back-link { display: inline-flex; align-items: center; min-height: 44px; margin-bottom: .45rem; color: #78462f; font-weight: 750; }
.back-link:hover { text-decoration: underline; }
.article-page { max-width: 760px; margin-inline: auto; background: #fffefa; border: 1px solid var(--line); padding: clamp(1rem,4vw,2.3rem); border-radius: 24px; box-shadow: 0 5px 18px #5033220c; }
.article-page .article-title { white-space: normal; overflow-wrap: anywhere; font-size: clamp(1.7rem,6vw,2.4rem); margin: .5rem 0 .65rem; }
.article-cover, .inline-photo { width: 100%; height: auto; max-height: 440px; object-fit: contain; border-radius: 16px; }
.article-body { display: grid; gap: .9rem; padding-top: .8rem; font-size: 1rem; line-height: 1.8; color: #493930; overflow-wrap: anywhere; }
.article-body h3 { font-size: 1.24rem; margin: .35rem 0 0; }
.article-body ul, .article-body ol { margin: 0; padding-left: 1.45rem; }
.article-body a { color: #78462f; text-decoration: underline; }
.article-body pre { margin: 0; padding: .8rem; overflow: auto; border-radius: 12px; background: #f9efe7; }
.empty-state { padding: 2.2rem 1rem; text-align: center; border: 1px dashed #edcfbc; border-radius: 22px; background: #fff8ee; }
.empty-state img { width: 58px; height: auto; margin: 0 auto .45rem; }
.empty-state h2 { margin-inline: auto; white-space: normal; font-size: 1.3rem; }
.empty-state h2::after { margin-inline: auto; }
.empty-state .back-link { margin: .35rem 0 0; }
#blog-registration { gap: .6rem; }
#blog-registration a { text-decoration: underline; }
@media (max-width: 900px) { .post-grid { grid-template-columns: repeat(2,minmax(0,1fr)); } }
@media (max-width: 600px) {
  .blog .bar { gap: .3rem; }
  .blog-nav { gap: .15rem; }
  .blog-nav a { padding-inline: .48rem; font-size: .9rem; min-height: 44px; display: grid; place-items: center; }
  .blog .brand .spark { display: none; }
  .blog-hero-inner { display: flex; flex-direction: column; align-items: center; text-align: center; padding-top: .9rem; min-height: 0; }
  .blog-hero img { align-self: center; max-width: 390px; }
  .blog-hero p { font-size: .93rem; margin-bottom: .35rem; }
  .categories { gap: .45rem; }
  .post-grid { grid-template-columns: 1fr; }
}

.blog { min-height: 100vh; display: flex; flex-direction: column; }
.blog main { flex: 1; }
.post-cover, .article-cover { background: #c0e7f8; }
.reading .blog-hero-inner { min-height: 116px; }
.reading .blog-hero img { max-height: 116px; object-fit: contain; object-position: right bottom; }
.article-body blockquote { margin: 0; padding: .35rem .85rem; border-inline-start: 3px solid #f1bd9c; background: #fff4e9; }
@media (max-width: 600px) {
  .category-link { padding-inline: .45rem; gap: .25rem; font-size: .92rem; }
  .category-link img { width: 21px; height: 21px; }
  .reading .blog-hero-inner { min-height: 0; padding-bottom: .65rem; }
  .reading .blog-hero img { display: none; }
}
