/* ==========================================================================
   Blog (uses tokens from style.css)
   ========================================================================== */
.blog-main { padding: 120px var(--gutter) 0; min-height: 70vh; }

.blog-hero { text-align: center; max-width: 960px; margin: 0 auto clamp(40px, 6vw, 80px); }
.blog-title { font-size: clamp(56px, 10vw, 160px); font-weight: 900; line-height: .9; letter-spacing: -.06em; }
.blog-hero .section-sub a { font-weight: 700; color: var(--ink); }

.blog-filter { display: inline-flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 28px; }
.blog-filter a {
  height: 40px; padding: 0 16px; display: inline-flex; align-items: center;
  border-radius: 999px; border: 1.5px solid var(--ink);
  font-size: 13px; font-weight: 700;
  transition: background .2s, color .2s;
}
.blog-filter a:hover { background: var(--lime); }
.blog-filter a.active { background: var(--ink); color: var(--paper); }

.blog-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: clamp(32px, 4vw, 56px) var(--gutter);
}
.blog-card { display: block; }
.blog-card.featured { grid-column: span 3; }
.blog-card-media {
  position: relative; overflow: hidden;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  background: var(--accent, var(--lime));
}
.blog-card.featured .blog-card-media { aspect-ratio: 21 / 9; }
.blog-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); }
.blog-card:hover .blog-card-media img { transform: scale(1.05); }
.blog-card-media > span:not(.status) {
  position: absolute; left: 7%; right: 7%; bottom: 8%;
  font-size: clamp(24px, 2.6vw, 40px); font-weight: 900; line-height: 1; letter-spacing: -.05em;
  transition: transform .7s var(--ease);
}
.blog-card.featured .blog-card-media > span:not(.status) { font-size: clamp(36px, 5vw, 84px); max-width: 18ch; }
.blog-card:hover .blog-card-media > span:not(.status) { transform: translateY(-8px); }
.blog-card h3 { font-size: clamp(18px, 1.6vw, 24px); font-weight: 800; letter-spacing: -.03em; line-height: 1.15; margin-top: 16px; }
.blog-card p { color: var(--ink-soft); font-size: 15px; margin-top: 6px; }
.blog-card .blog-meta { font-size: 13px; font-weight: 600; }
.blog-empty { text-align: center; font-size: 20px; color: var(--ink-soft); padding: 80px 0; }

/* Single post */
.post { max-width: 760px; margin: 0 auto; }
.post-head { text-align: center; margin-bottom: clamp(32px, 5vw, 64px); }
.post-head .label a { text-decoration: underline; text-underline-offset: 3px; }
.post-title { font-size: clamp(40px, 6.4vw, 88px); font-weight: 900; line-height: .98; letter-spacing: -.055em; }
.post-lede { font-size: clamp(18px, 1.7vw, 23px); font-weight: 500; color: var(--ink-soft); margin-top: 24px; }
.post-cover { margin: 0 calc(50% - min(50vw, 640px) + var(--gutter)) clamp(32px, 5vw, 64px); }
.post-cover img { width: 100%; border-radius: var(--radius); }

.post-body { font-size: 19px; line-height: 1.7; letter-spacing: -.01em; }
.post-body > * + * { margin-top: 1.1em; }
.post-body h2, .post-body h3, .post-body h4 { letter-spacing: -.04em; line-height: 1.1; margin-top: 1.8em; }
.post-body h2 { font-size: clamp(28px, 3vw, 40px); font-weight: 900; }
.post-body h3 { font-size: clamp(22px, 2.2vw, 28px); font-weight: 800; }
.post-body h4 { font-size: 20px; font-weight: 800; }
.post-body a { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; text-decoration-color: var(--blue); }
.post-body a:hover { background: var(--lime); }
.post-body ul, .post-body ol { padding-left: 1.3em; }
.post-body ul { list-style: disc; }
.post-body ol { list-style: decimal; }
.post-body li + li { margin-top: .4em; }
.post-body blockquote {
  margin-left: 0; margin-right: 0;
  padding: 24px 28px; border-radius: var(--radius);
  background: var(--lilac);
  font-size: 22px; font-weight: 700; letter-spacing: -.03em; line-height: 1.35;
}
.post-body img { border-radius: 14px; }
.post-body code { font-size: .88em; background: var(--mist); padding: .1em .35em; border-radius: 6px; }
.post-body pre { background: var(--ink); color: var(--paper); padding: 20px; border-radius: 14px; overflow-x: auto; font-size: 15px; line-height: 1.5; }
.post-body pre code { background: none; padding: 0; }
.post-body hr { border: 0; border-top: 1.5px solid var(--ink); margin: 2.4em 0; }

.blog-more { margin-top: clamp(80px, 10vw, 140px); }
.blog-more .section-title { text-align: center; margin-bottom: 48px; font-size: clamp(36px, 5vw, 72px); }

.blog-footer .footer-mark { margin-top: clamp(80px, 10vw, 140px); }

@media (max-width: 900px) {
  .blog-grid { grid-template-columns: 1fr 1fr; }
  .blog-card.featured { grid-column: span 2; }
}
@media (max-width: 600px) {
  .blog-main { padding-top: 96px; }
  .blog-grid { grid-template-columns: 1fr; }
  .blog-card.featured { grid-column: auto; }
  .blog-card.featured .blog-card-media { aspect-ratio: 4 / 3; }
  .post-body { font-size: 17px; }
  .post-cover { margin-left: 0; margin-right: 0; }
}
