.blog-header {
  position: sticky;
  z-index: 20;
  top: 0;
  height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 0 clamp(1.25rem, 5vw, 6rem);
  border-bottom: 1px solid rgba(32, 31, 27, .2);
  background: rgba(248, 244, 233, .92);
  backdrop-filter: blur(12px);
}

.blog-logo { display: inline-flex; }
.blog-logo img { display: block; width: clamp(145px, 14vw, 195px); height: auto; }
.blog-header nav { display: flex; gap: 1.7rem; font-size: .88rem; font-weight: 700; }
.blog-header nav a { border-bottom: 1px solid transparent; }
.blog-header nav a:hover, .blog-header nav a.active, .blog-header nav a[aria-current="page"] { color: var(--brand-green); border-bottom-color: currentColor; }
.blog-contact { font-size: .86rem; font-weight: 700; border-bottom: 1px solid var(--ink); }
.blog-mobile-nav { display: none; }

.blog-index { padding: clamp(4.5rem, 9vw, 8rem) clamp(1.25rem, 7vw, 8rem) clamp(6rem, 10vw, 9rem); }
.blog-index-hero { display: grid; grid-template-columns: 1.3fr .7fr; gap: 2rem 5rem; align-items: end; margin-bottom: clamp(3rem, 7vw, 6rem); }
.blog-eyebrow { grid-column: 1 / -1; margin: 0; color: var(--muted); font: 700 .7rem/1.2 Manrope, sans-serif; letter-spacing: .12em; }
.blog-index-hero h1 { margin: 0; font-size: clamp(2.8rem, 6vw, 6rem); line-height: .98; letter-spacing: -.065em; }
.blog-index-hero h1 em { color: var(--brand-green); font-style: normal; }
.blog-index-hero > p:last-child { max-width: 31rem; margin: 0 0 .4rem; color: var(--muted); line-height: 1.75; }

.blog-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; gap: clamp(1.5rem, 4vw, 3.5rem) 1.5rem; }
.blog-card { min-width: 0; border: 1px solid var(--ink); background: var(--paper); box-shadow: 7px 7px 0 rgba(32, 31, 27, .12); }
.blog-card-image { display: block; aspect-ratio: 1200 / 630; overflow: hidden; border-bottom: 1px solid var(--ink); background: #e4decf; }
.blog-card-image img { width: 100%; height: 100%; display: block; object-fit: cover; transition: transform .45s ease; }
.blog-card:hover .blog-card-image img { transform: scale(1.025); }
.blog-card-copy { padding: clamp(1.15rem, 3vw, 1.7rem); }
.blog-card-meta, .article-meta { display: flex; flex-wrap: wrap; gap: .5rem 1rem; color: var(--muted); font: 700 .67rem/1.4 Manrope, sans-serif; letter-spacing: .06em; text-transform: uppercase; }
.blog-card-meta span:first-child, .article-meta span:first-child { color: var(--brand-green); }
.blog-card h2 { margin: 1rem 0 .7rem; font-size: clamp(1.35rem, 2.4vw, 2rem); line-height: 1.18; letter-spacing: -.035em; }
.blog-card h2 a:hover { color: var(--brand-green); }
.blog-card-copy > p { margin: 0; color: var(--muted); line-height: 1.7; }
.blog-read { display: inline-flex; gap: .7rem; margin-top: 1.25rem; padding-bottom: .15rem; border-bottom: 1px solid var(--ink); font-size: .85rem; font-weight: 700; }

.article-page { padding: clamp(3.5rem, 7vw, 6rem) clamp(1.25rem, 6vw, 6rem) clamp(6rem, 10vw, 9rem); }
.article-page > article { width: min(100%, 1120px); margin: 0 auto; }
.article-header { max-width: 920px; margin: 0 auto clamp(2rem, 5vw, 4rem); }
.article-back { display: inline-block; margin-bottom: 2.2rem; color: var(--brand-green); font-size: .86rem; font-weight: 700; }
.article-header h1 { margin: 1rem 0 1.35rem; font-size: clamp(2.5rem, 5.5vw, 5.5rem); line-height: 1.03; letter-spacing: -.06em; }
.article-header > p { max-width: 760px; margin: 0; color: var(--muted); font-size: clamp(1rem, 1.7vw, 1.2rem); line-height: 1.75; }
.article-hero { margin: 0 0 clamp(3rem, 7vw, 6rem); border: 1px solid var(--ink); background: #e4decf; box-shadow: 12px 12px 0 var(--yellow); }
.article-hero img { display: block; width: 100%; height: auto; aspect-ratio: 1200 / 630; object-fit: cover; }

.article-prose { width: min(100%, 760px); margin: 0 auto; color: #2d2b25; font-size: clamp(1rem, 1.3vw, 1.08rem); line-height: 1.86; overflow-wrap: anywhere; }
.article-prose > :first-child { margin-top: 0; }
.article-prose h2, .article-prose h3, .article-prose h4 { color: var(--ink); line-height: 1.25; letter-spacing: -.025em; scroll-margin-top: 100px; }
.article-prose h2 { margin: 3.5rem 0 1rem; padding-top: .7rem; border-top: 1px solid var(--line); font-size: clamp(1.7rem, 3vw, 2.35rem); }
.article-prose h3 { margin: 2.4rem 0 .8rem; font-size: clamp(1.3rem, 2vw, 1.65rem); }
.article-prose h4 { margin: 2rem 0 .6rem; font-size: 1.16rem; }
.article-prose p, .article-prose ul, .article-prose ol { margin: 0 0 1.35rem; }
.article-prose ul, .article-prose ol { padding-left: 1.35rem; }
.article-prose li { margin-bottom: .45rem; }
.article-prose a { color: var(--brand-green); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.article-prose a:hover { color: #173b2c; }
.article-prose img { display: block; max-width: 100%; height: auto; margin: 2.2rem auto; border: 1px solid var(--line); }
.article-prose blockquote { margin: 2rem 0; padding: 1.25rem 1.4rem; border-left: 5px solid var(--yellow); background: #fff5d4; color: var(--ink); }
.article-prose blockquote > :last-child { margin-bottom: 0; }
.article-prose hr { margin: 3rem 0; border: 0; border-top: 1px solid var(--line); }
.article-prose code { border-radius: 3px; background: #e8e2d5; padding: .12rem .32rem; font: .9em/1.6 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.article-prose pre { max-width: 100%; margin: 2rem 0; overflow-x: auto; padding: 1.2rem; border: 1px solid #3e3b34; background: #201f1b; color: #fffdf7; }
.article-prose pre code { background: transparent; padding: 0; color: inherit; }
.article-prose table { display: block; width: 100%; max-width: 100%; margin: 2rem 0; overflow-x: auto; border-collapse: collapse; font-size: .9rem; }
.article-prose th, .article-prose td { min-width: 9rem; padding: .75rem; border: 1px solid var(--line); text-align: left; vertical-align: top; }
.article-prose th { background: #ece5d5; color: var(--ink); }
.article-prose strong { color: var(--ink); }

.article-end { width: min(100%, 760px); margin: clamp(4rem, 8vw, 7rem) auto 0; padding: 1.5rem; border: 1px solid var(--ink); background: var(--yellow); display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.article-end p { margin: 0; font-weight: 700; }
.article-end a { flex: 0 0 auto; border-bottom: 1px solid currentColor; font-weight: 700; }

.blog-header a:focus-visible, .blog-card a:focus-visible, .article-page a:focus-visible { outline: 3px solid var(--yellow); outline-offset: 4px; }

@media (max-width: 800px) {
  .blog-header { height: 68px; gap: 1rem; }
  .blog-desktop-nav, .blog-contact { display: none !important; }
  .blog-mobile-nav { display: block; }
  .blog-mobile-nav summary { list-style: none; cursor: pointer; border: 1px solid var(--ink); padding: .42rem .6rem; font: 700 .78rem Manrope, sans-serif; }
  .blog-mobile-nav summary::-webkit-details-marker { display: none; }
  .blog-mobile-nav[open] summary span { display: inline-block; transform: rotate(45deg); }
  .blog-mobile-nav nav { position: absolute; right: 1.25rem; top: 58px; width: min(18rem, calc(100vw - 2.5rem)); display: flex; flex-direction: column; gap: 0; padding: .75rem; border: 1px solid var(--ink); background: var(--paper); box-shadow: 8px 8px 0 var(--yellow); }
  .blog-mobile-nav nav a { padding: .8rem .35rem; border-bottom: 1px solid var(--line); }
  .blog-mobile-nav nav a:last-child { border-bottom: 0; }
  .blog-index-hero { grid-template-columns: 1fr; }
  .blog-eyebrow { grid-column: auto; }
  .blog-grid { grid-template-columns: 1fr; }
  .article-page { padding-top: 2.7rem; }
  .article-hero { box-shadow: 7px 7px 0 var(--yellow); }
}

@media (max-width: 560px) {
  .article-header h1 { font-size: 2.45rem; }
  .article-end { align-items: flex-start; flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  .blog-card-image img { transition: none; }
  .blog-card:hover .blog-card-image img { transform: none; }
}
