/* Earthly Exteriors blog — layered on styles.css (same palette, fonts and components). */
.blog-page { background: var(--paper); }
.blog-hero { position: relative; padding: 11rem max(5vw, calc((100vw - 1320px) / 2)) clamp(4rem, 7vw, 6.5rem); color: var(--white); background: var(--forest-dark); overflow: hidden; }
.blog-hero::after { position: absolute; content: ""; right: -14vw; top: -16vw; width: 40vw; height: 40vw; border: 1px solid rgba(220,233,172,.14); border-radius: 50%; pointer-events: none; }
.blog-hero .eyebrow a { text-decoration: none; }
.blog-hero .eyebrow a:hover { text-decoration: underline; }
.blog-hero h1 { position: relative; z-index: 1; max-width: 980px; font-size: clamp(3rem, 6vw, 6.2rem); line-height: .95; }
.blog-hero-post h1 { font-size: clamp(2.5rem, 4.8vw, 4.9rem); line-height: 1.02; }
.blog-intro { position: relative; z-index: 1; max-width: 620px; margin: 2rem 0 0; color: rgba(255,255,255,.78); font-size: clamp(1rem, 1.3vw, 1.15rem); line-height: 1.7; }
.blog-meta { position: relative; z-index: 1; margin: 1.8rem 0 0; color: rgba(255,255,255,.72); font-size: .82rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.blog-meta span { margin: 0 .5rem; color: var(--leaf); }
.site-header nav a[aria-current="page"]::after { right: 0; }

/* Post page */
.blog-post-hero { width: min(100% - 10vw, 1100px); margin: clamp(-3.5rem, -4vw, -2rem) auto 0; position: relative; z-index: 2; }
.blog-post-hero img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; background: var(--cream); }
.blog-body { width: min(100% - 2.4rem, 740px); margin: 0 auto; padding: clamp(3rem, 6vw, 5rem) 0 clamp(4rem, 8vw, 7rem); color: #2c3a32; font-size: 1.08rem; line-height: 1.8; }
.blog-body > :first-child { margin-top: 0; }
.blog-body p { margin: 0 0 1.35rem; }
.blog-body h2 { margin: 3.2rem 0 1.1rem; color: var(--forest-dark); font-size: clamp(2rem, 3.2vw, 2.85rem); line-height: 1.06; letter-spacing: -.03em; }
.blog-body h3 { margin: 2.4rem 0 .8rem; color: var(--forest-dark); font-family: Georgia, "Times New Roman", serif; font-size: 1.55rem; font-weight: 400; letter-spacing: -.02em; }
.blog-body a { color: var(--forest); font-weight: 700; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.blog-body a:hover { color: var(--forest-dark); }
.blog-body ul, .blog-body ol { margin: 0 0 1.5rem; padding-left: 1.3rem; }
.blog-body li { margin-bottom: .55rem; padding-left: .35rem; }
.blog-body ul li::marker { color: var(--forest); }
.blog-body blockquote { margin: 2rem 0; padding: .4rem 0 .4rem 1.4rem; border-left: 2px solid var(--leaf); font-family: Georgia, serif; font-size: 1.3rem; line-height: 1.55; }
.blog-body img { max-width: 100%; height: auto; }
.blog-body figure { margin: 2rem 0; }
.blog-body figcaption { margin-top: .6rem; color: var(--muted); font-size: .85rem; }
.blog-body table { width: 100%; margin: 1.5rem 0 2rem; border-collapse: collapse; font-size: .95rem; }
.blog-body th, .blog-body td { padding: .7rem .6rem; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.blog-body .blog-contextual-bridge { padding: 1rem 1.2rem; background: var(--cream); border-left: 2px solid var(--leaf); font-size: 1rem; }
/* Author / related-resources boxes inside articles (nav here must not inherit the header nav styles). */
.blog-body aside, .blog-body nav { display: block; margin: 2.5rem 0 0; padding: 1.5rem 1.6rem; background: var(--cream); color: #3b4a42; font-size: .95rem; line-height: 1.7; }
.blog-body aside + nav { margin-top: 1rem; }
.blog-body aside p:last-child, .blog-body nav p:last-child { margin-bottom: 0; }
.blog-body nav a { position: static; font-size: inherit; text-decoration: underline; }
.blog-body nav a::after { content: none; }
.blog-back { margin-top: 3rem !important; }
.blog-back a { text-decoration: none; font-size: .9rem; }

/* Index */
.blog-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 1.6rem; padding: clamp(4rem, 7vw, 6.5rem) max(5vw, calc((100vw - 1320px) / 2)) clamp(5rem, 9vw, 8rem); background: var(--paper); }
.blog-card { display: flex; flex-direction: column; overflow: hidden; background: var(--white); }
.blog-card-photo { display: block; overflow: hidden; aspect-ratio: 3 / 2; background: var(--cream); }
.blog-card-photo img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .65s ease; }
.blog-card:hover .blog-card-photo img { transform: scale(1.025); }
.blog-card-detail { display: flex; flex: 1; flex-direction: column; padding: clamp(1.8rem, 3vw, 2.4rem); }
.blog-card-detail .kicker { margin-bottom: .9rem; }
.blog-card-detail h2 { font-size: clamp(1.8rem, 2.4vw, 2.3rem); line-height: 1.05; letter-spacing: -.03em; }
.blog-card-detail h2 a { text-decoration: none; }
.blog-card-detail h2 a:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.blog-card-detail > p:not(.kicker) { flex: 1; margin: 1.1rem 0 1.6rem; color: var(--muted); line-height: 1.7; }
.blog-card .text-link { align-self: flex-start; border-color: var(--forest); color: var(--forest); }
.blog-empty { grid-column: 1 / -1; margin: 0; color: var(--muted); font-family: Georgia, serif; font-size: 1.35rem; }
.blog-empty a { color: var(--forest); }

@media (max-width: 620px) {
  .blog-hero { padding: 8.5rem 1.2rem 3.5rem; }
  .blog-hero h1 { font-size: clamp(2.8rem, 13vw, 4rem); }
  .blog-hero-post h1 { font-size: clamp(2.2rem, 10vw, 3.2rem); }
  .blog-post-hero { width: 100%; margin-top: 0; }
  .blog-body { font-size: 1.02rem; }
  .blog-list { padding: 3.5rem 1.2rem 5rem; }
}
