.rnw-blog .blog-main { min-height: 60vh; }
.rnw-blog .site-header { top: 0; }
.admin-bar.rnw-blog .site-header { top: 32px; }
.blog-hero {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  align-items: end;
  gap: clamp(2rem, 7vw, 7rem);
  padding-block: clamp(5rem, 9vw, 9rem);
}
.blog-hero h1 { max-width: 900px; margin-bottom: 1.35rem; }
.blog-hero aside { padding: 1.5rem; border: 1px solid var(--line); background: var(--paper); box-shadow: var(--shadow); }
.blog-hero aside strong { display: block; margin-bottom: .55rem; color: var(--wine); font-family: Georgia, serif; font-size: 1.45rem; font-weight: 500; }
.blog-hero aside p { color: var(--muted); font-size: .8rem; }
.blog-listing { padding-top: 2rem; }
.blog-post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.blog-card { min-width: 0; overflow: hidden; border: 1px solid var(--line); background: var(--paper); box-shadow: 0 12px 36px rgba(69,16,34,.07); }
.blog-card-media { aspect-ratio: 1.35 / 1; display: block; overflow: hidden; background: #281b20; }
.blog-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.blog-card:hover .blog-card-media img { transform: scale(1.03); }
.blog-card-body { padding: 1.3rem; }
.blog-card h2 { margin-bottom: .75rem; font-size: clamp(1.35rem, 2vw, 1.8rem); }
.blog-card-excerpt { color: var(--muted); font-size: .76rem; }
.blog-card-meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem; padding-top: .85rem; border-top: 1px solid var(--line); color: var(--muted); font-size: .62rem; }
.blog-search { display: grid; grid-template-columns: 1fr auto; min-width: min(100%, 360px); }
.blog-search input { min-height: 48px; width: 100%; padding: 0 .9rem; border: 1px solid var(--line); background: white; color: var(--ink); }
.blog-search button { min-height: 48px; padding: 0 1rem; border: 1px solid var(--wine); background: var(--wine); color: white; cursor: pointer; font-size: .72rem; font-weight: 800; }
.blog-search-wide { max-width: 680px; margin: 0 auto 2rem; }
.blog-pagination { margin-top: 2.5rem; }
.blog-pagination .nav-links { display: flex; flex-wrap: wrap; justify-content: center; gap: .45rem; }
.blog-pagination .page-numbers { min-width: 42px; min-height: 42px; display: grid; place-items: center; padding: .45rem .7rem; border: 1px solid var(--line); background: var(--paper); color: var(--wine); font-size: .72rem; font-weight: 800; }
.blog-pagination .current { border-color: var(--wine); background: var(--wine); color: white; }
.article-header { max-width: 1080px; padding-block: clamp(4.5rem, 8vw, 8rem) clamp(2.5rem, 5vw, 4rem); text-align: center; }
.article-header h1 { max-width: 1000px; margin: 0 auto 1.3rem; font-size: clamp(3rem, 6vw, 6rem); }
.article-deck { max-width: 780px; margin: 0 auto 1.5rem; color: var(--muted); font-size: clamp(1rem, 1.4vw, 1.18rem); }
.article-meta { display: flex; flex-wrap: wrap; justify-content: center; gap: .45rem 1rem; color: var(--muted); font-size: .65rem; }
.article-meta span:not(:last-child)::after { content: "◆"; margin-left: 1rem; color: var(--gold); font-size: .45rem; }
.article-feature { max-width: 1160px; max-height: 720px; overflow: hidden; margin-bottom: clamp(3rem, 7vw, 7rem); background: #251b1f; }
.article-feature img { width: 100%; height: 100%; max-height: 720px; object-fit: cover; }
.article-layout { display: grid; grid-template-columns: 240px minmax(0, 760px); justify-content: center; align-items: start; gap: clamp(2rem, 7vw, 7rem); padding-bottom: clamp(5rem, 9vw, 9rem); }
.article-aside { position: sticky; top: 130px; padding: 1.25rem; border: 1px solid var(--line); background: var(--paper); }
.article-aside p:not(.footer-heading) { color: var(--muted); font-size: .72rem; }
.article-content { min-width: 0; color: #403438; font-family: Georgia, "Times New Roman", serif; font-size: clamp(1.04rem, 1.4vw, 1.16rem); line-height: 1.85; }
.article-content > *:first-child { margin-top: 0; }
.article-content h2, .article-content h3, .article-content h4 { scroll-margin-top: 130px; color: var(--ink); }
.article-content h2 { margin: 2.5rem 0 1rem; font-size: clamp(2rem, 3.5vw, 3rem); }
.article-content h3 { margin: 2rem 0 .8rem; font-size: clamp(1.5rem, 2.5vw, 2.2rem); }
.article-content a { color: var(--wine); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .15em; }
.article-content img { height: auto; margin-block: 1.6rem; }
.article-content blockquote { margin: 2rem 0; padding: 1.2rem 1.5rem; border-left: 4px solid var(--gold); background: var(--soft); color: var(--wine-dark); font-size: 1.15em; }
.article-content ul, .article-content ol { padding-left: 1.3rem; }
.article-content li { margin-bottom: .55rem; }
.article-content table { width: 100%; border-collapse: collapse; font-family: Inter, sans-serif; font-size: .75rem; }
.article-content th, .article-content td { padding: .75rem; border: 1px solid var(--line); text-align: left; vertical-align: top; }
.article-content th { background: var(--soft); color: var(--wine); }
.article-content .wp-caption-text, .article-content figcaption { color: var(--muted); font-family: Inter, sans-serif; font-size: .68rem; }
.page-article .article-layout { padding-top: 1rem; }
.related-grid { grid-template-columns: repeat(3, 1fr); }
.search-results-grid { margin-top: 2rem; }
.blog-closing h2 { max-width: 880px; }
.blog-footer .footer-top { grid-template-columns: .82fr 1.18fr; }

@media (max-width: 900px) {
  .blog-post-grid { grid-template-columns: repeat(2, 1fr); }
  .article-layout { grid-template-columns: 190px minmax(0, 1fr); gap: 2rem; }
}

@media (max-width: 760px) {
  .admin-bar.rnw-blog .site-header { top: 46px; }
  .blog-hero { grid-template-columns: 1fr; padding-block: 4rem; }
  .blog-post-grid, .related-grid { grid-template-columns: 1fr; }
  .article-header { text-align: left; }
  .article-header h1, .article-deck { margin-inline: 0; }
  .article-meta { justify-content: flex-start; }
  .article-meta span:not(:last-child)::after { display: none; }
  .article-layout { grid-template-columns: 1fr; }
  .article-aside { position: static; }
  .article-content { font-size: 1.02rem; line-height: 1.75; }
  .blog-footer .footer-top { grid-template-columns: 1fr; }
}
