/* Blog styles — inherits tokens from base.css and style.css. Optimized for the site's light background so body copy is high-contrast and legible. */

.blog-index { max-width: 1100px; margin: 0 auto; padding: 64px 24px 96px; }
.blog-hero { margin-bottom: 48px; text-align: center; }
.blog-hero h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); font-family: 'General Sans', system-ui, sans-serif; font-weight: 700; letter-spacing: -0.02em; margin: 0 0 12px; color: #111; }
.blog-subtitle { color: #444; font-size: 1.1rem; max-width: 640px; margin: 0 auto; line-height: 1.6; }

.post-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 28px; }
.post-card { background: #fff; border: 1px solid rgba(0,0,0,0.1); border-radius: 16px; overflow: hidden; transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease; box-shadow: 0 2px 8px rgba(0,0,0,0.04); }
.post-card:hover { transform: translateY(-4px); border-color: rgba(62,196,109,0.4); box-shadow: 0 12px 32px rgba(0,0,0,0.1); }
.post-card-link { display: block; color: inherit; text-decoration: none; }
.post-card-thumb { aspect-ratio: 16/9; background-size: cover; background-position: center; background-color: #eee; }
.post-card-body { padding: 20px 22px 24px; }
.post-card-tag { display: inline-block; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.1em; color: #2a9048; background: rgba(62,196,109,0.12); padding: 4px 10px; border-radius: 999px; margin-bottom: 12px; }
.post-card-title { font-size: 1.35rem; font-weight: 700; line-height: 1.3; margin: 0 0 10px; color: #111; font-family: 'General Sans', system-ui, sans-serif; }
.post-card-excerpt { color: #333; font-size: 0.97rem; line-height: 1.55; margin: 0 0 14px; }
.post-card-meta { font-size: 0.82rem; color: #666; }

/* Single post layout */
.blog-post { max-width: 760px; margin: 0 auto; padding: 48px 24px 96px; }
.post-header { margin-bottom: 32px; }
.post-tag { display: inline-block; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.1em; color: #2a9048; background: rgba(62,196,109,0.12); padding: 4px 10px; border-radius: 999px; margin-bottom: 16px; }
.post-title { font-size: clamp(2rem, 4.5vw, 3rem); font-weight: 700; letter-spacing: -0.02em; line-height: 1.15; margin: 0 0 16px; font-family: 'General Sans', system-ui, sans-serif; color: #111; }
.post-meta { color: #666; font-size: 0.92rem; }
.post-meta a { color: #2a9048; text-decoration: none; font-weight: 600; }
.post-meta a:hover { color: #1e6a34; text-decoration: underline; }

/* Responsive YouTube embed */
.post-video { margin: 32px 0 40px; border-radius: 14px; overflow: hidden; aspect-ratio: 16/9; background: #000; border: 1px solid rgba(0,0,0,0.1); }
.post-video iframe { width: 100%; height: 100%; border: 0; display: block; }

.post-body { font-size: 1.08rem; line-height: 1.8; color: #1f2937; }
.post-body h2 { font-size: 1.65rem; margin: 44px 0 16px; font-weight: 700; letter-spacing: -0.01em; font-family: 'General Sans', system-ui, sans-serif; color: #111; }
.post-body h3 { font-size: 1.3rem; margin: 32px 0 12px; font-weight: 600; color: #111; }
.post-body p { margin: 0 0 20px; }
.post-body a { color: #2a9048; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.post-body a:hover { color: #1e6a34; }
.post-body ul, .post-body ol { margin: 0 0 20px; padding-left: 24px; }
.post-body li { margin-bottom: 8px; }
.post-body strong { color: #111; font-weight: 700; }
.post-body blockquote { margin: 24px 0; padding: 16px 22px; border-left: 3px solid #2a9048; background: rgba(62,196,109,0.08); border-radius: 0 10px 10px 0; color: #1f2937; font-style: italic; }
.post-body code { font-family: ui-monospace, SFMono-Regular, monospace; background: rgba(0,0,0,0.06); padding: 2px 6px; border-radius: 4px; font-size: 0.92em; color: #111; }
.post-body pre { background: #0f1419; color: #e4e4e7; border: 1px solid rgba(0,0,0,0.08); border-radius: 10px; padding: 16px; overflow-x: auto; margin: 0 0 20px; }
.post-body pre code { background: transparent; padding: 0; color: inherit; }
.post-body img { max-width: 100%; border-radius: 12px; margin: 20px 0; }
.post-body hr { border: 0; border-top: 1px solid rgba(0,0,0,0.1); margin: 36px 0; }

/* Affiliate gear callout */
.gear-callout { margin: 40px 0; padding: 24px 28px; background: rgba(62,196,109,0.08); border: 1px solid rgba(62,196,109,0.3); border-radius: 14px; color: #1f2937; }
.gear-callout h3 { margin: 0 0 10px; font-size: 1.15rem; color: #2a9048; }
.gear-callout p { margin: 0; color: #1f2937; }


/* Force high-contrast text on all blog content (overrides any inherited faint styles) */
.blog-post, .blog-post p, .blog-post li, .blog-post h1, .blog-post h2, .blog-post h3, .blog-post h4, .blog-post h5, .blog-post h6, .blog-post span, .blog-post strong, .blog-post em,
.blog-index, .blog-index p, .blog-index li, .blog-index h1, .blog-index h2, .blog-index h3, .blog-index span, .blog-index strong {
  opacity: 1 !important;
}
.blog-post .post-title { color: #0b0f17 !important; }
.blog-post .post-meta { color: #4b5563 !important; }
.blog-post .post-meta time { color: #4b5563 !important; }
.blog-post .post-body { color: #1a1a1a !important; font-weight: 450; }
.blog-post .post-body p,
.blog-post .post-body li { color: #1a1a1a !important; font-weight: 450; }
.blog-post .post-body h2,
.blog-post .post-body h3,
.blog-post .post-body strong { color: #000 !important; font-weight: 700; }
.blog-post .post-body blockquote { color: #1a1a1a !important; }
.blog-post .gear-callout,
.blog-post .gear-callout p { color: #1a1a1a !important; }

.blog-index .blog-hero h1 { color: #0b0f17 !important; }
.blog-index .blog-subtitle { color: #333 !important; }
.blog-index .post-card-title { color: #0b0f17 !important; }
.blog-index .post-card-excerpt { color: #1a1a1a !important; }
.blog-index .post-card-meta { color: #4b5563 !important; }


/* Final legibility pass — bump weight & max contrast; override any ancestor filter/opacity */
html body .blog-post,
html body .blog-post *:not(a):not(.post-tag):not(.gear-callout h3) {
  opacity: 1 !important;
  filter: none !important;
  -webkit-text-stroke: 0 !important;
}
html body .blog-post .post-body,
html body .blog-post .post-body p,
html body .blog-post .post-body li,
html body .blog-post .post-body strong,
html body .blog-post .post-body em,
html body .blog-post .post-body blockquote {
  color: #000 !important;
  font-weight: 500 !important;
}
html body .blog-post .post-body strong,
html body .blog-post .post-body h2,
html body .blog-post .post-body h3 {
  font-weight: 800 !important;
  color: #000 !important;
}
html body .blog-post .post-title { color: #000 !important; font-weight: 800 !important; }
html body .blog-post .post-meta,
html body .blog-post .post-meta time { color: #333 !important; font-weight: 500 !important; }
html body .blog-index .post-card-title,
html body .blog-index .post-card-excerpt { color: #000 !important; font-weight: 600 !important; }


/* Nuclear readability override: maximum contrast for all blog text */
html body article.blog-post .post-body,
html body article.blog-post .post-body p,
html body article.blog-post .post-body li,
html body article.blog-post .post-body h2,
html body article.blog-post .post-body h3,
html body article.blog-post .post-body h4,
html body article.blog-post .post-body strong,
html body article.blog-post .post-body em,
html body article.blog-post .post-body span,
html body article.blog-post .post-body blockquote {
  color: #000 !important;
  font-weight: 500 !important;
  opacity: 1 !important;
  filter: none !important;
  -webkit-text-stroke: 0.25px #000 !important;
  text-shadow: none !important;
}
html body article.blog-post .post-body h2,
html body article.blog-post .post-body h3,
html body article.blog-post .post-body strong {
  font-weight: 800 !important;
}
html body article.blog-post .post-title {
  color: #000 !important;
}


/* Fix webkit-text-fill-color bleeding from site gradient heading styles */
html body article.blog-post,
html body article.blog-post *,
html body .blog-index,
html body .blog-index * {
  -webkit-text-fill-color: currentColor !important;
  background-clip: border-box !important;
  -webkit-background-clip: border-box !important;}
/* Re-allow the gear-callout and post-tag accent backgrounds */
html body article.blog-post .post-tag,
html body article.blog-post .gear-callout,
html body article.blog-post .post-body blockquote,
html body article.blog-post .post-body code,
html body article.blog-post .post-body pre {
  background-image: initial !important;
}


/* Hero banner image at top of blog post */
.post-hero-image {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 14px;
  margin: 0 0 32px 0;
  border: 1px solid rgba(0,0,0,0.08);
  box-shadow: 0 6px 24px rgba(0,0,0,0.08);
}
