/* Blog pages: builds on style.css */
.blog-main > section, .blog-main > article { max-width: 1180px; margin: 0 auto; padding: 0 clamp(16px, 4vw, 48px); }
.blog-hero { text-align: center; padding-top: 70px !important; padding-bottom: 40px !important; max-width: 760px !important; }
.blog-hero h1 { font-size: clamp(34px, 5vw, 56px); }
.blog-hero .sub { color: var(--muted); font-size: 18px; margin-top: 16px; }

.post-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; padding-bottom: 90px !important; }
.post-card {
  display: flex; flex-direction: column; gap: 8px; padding: 16px 18px 20px; text-decoration: none; color: inherit;
  box-shadow: var(--shadow); transition: transform .15s, box-shadow .15s;
}
.post-card:hover { transform: translate(-3px, -3px); box-shadow: 8px 8px 0 var(--line); }
.post-card-art {
  height: 120px; border: 2.5px solid var(--line); border-radius: 12px; background: var(--paper);
  display: grid; place-items: end center; padding-bottom: 8px; margin-bottom: 6px;
}
.post-card:nth-child(6n+1) .post-card-art { background: var(--blush-soft); }
.post-card:nth-child(6n+2) .post-card-art { background: var(--sky); }
.post-card:nth-child(6n+3) .post-card-art { background: var(--mint); }
.post-card:nth-child(6n+4) .post-card-art { background: var(--lav); }
.post-card:nth-child(6n+5) .post-card-art { background: var(--sun); }
.post-card .sprite { --size: calc(32px * var(--px) * .9); }
.post-card .eyebrow { margin: 0; font-size: 12px; }
.post-card h3 { font-size: 20px; line-height: 1.2; }
.post-card p { color: var(--ink-2); font-size: 15px; flex: 1; }
.post-card-meta { font-size: 13px; color: var(--muted); font-weight: 700; }

/* article */
.post { max-width: 760px !important; padding-top: 40px !important; }
.back { font-weight: 800; color: var(--stripe); text-decoration: none; font-size: 15px; }
.back:hover { text-decoration: underline; }
.post-head { margin-bottom: 26px; }
.post-head .eyebrow { display: block; margin: 26px 0 10px; }
.post-head h1 { font-size: clamp(32px, 4.6vw, 48px); line-height: 1.12; }
.post-meta { color: var(--muted); font-size: 14.5px; margin-top: 14px; }
.post-hero {
  margin: 26px 0 22px; height: 170px; border: 3px solid var(--line); border-radius: 18px; box-shadow: var(--shadow);
  background: linear-gradient(160deg, #cfe3f7 0%, #f6dcd0 100%); display: grid; place-items: end center; padding-bottom: 12px;
}
.post-lede { font-size: 20px; color: var(--ink-2); line-height: 1.55; }
.toc { padding: 16px 22px; margin: 6px 0 30px; box-shadow: var(--shadow); }
.toc b { font-family: var(--font-pixel); font-weight: 600; font-size: 17px; }
.toc ol { margin: 8px 0 0; padding-left: 22px; display: grid; gap: 4px; }
.toc a { color: var(--ink-2); text-decoration: none; font-weight: 700; }
.toc a:hover { color: var(--stripe); text-decoration: underline; }
.post-body { font-size: 18px; line-height: 1.75; color: var(--ink-2); }
.post-body h2 { font-size: 30px; margin: 44px 0 14px; color: var(--ink); scroll-margin-top: 90px; }
.post-body h3 { font-size: 22px; margin: 30px 0 10px; color: var(--ink); scroll-margin-top: 90px; }
.post-body p { margin: 0 0 18px; }
.post-body ul, .post-body ol { margin: 0 0 20px; padding-left: 24px; display: grid; gap: 8px; }
.post-body li::marker { color: var(--stripe); font-weight: 800; }
.post-body a { color: var(--stripe); font-weight: 700; }
.post-body strong { color: var(--ink); }
.post-body code {
  font: 600 15px ui-monospace, Consolas, monospace; background: #fff; border: 2px solid #eadfd2;
  border-radius: 6px; padding: 1px 6px; overflow-wrap: anywhere;
}
.tip {
  display: flex; gap: 14px; align-items: flex-start; margin: 26px 0; padding: 16px 18px;
  background: var(--paper); border: 2.5px solid var(--line); border-radius: 14px; box-shadow: 3px 3px 0 var(--line);
}
.tip p { margin: 0; font-size: 16.5px; }
.tip-cat {
  flex: none; width: 36px; height: 36px; background: url(/assets/icon.png) center / contain no-repeat;
  image-rendering: pixelated;
}
.cta-box {
  display: flex; gap: 22px; align-items: center; margin: 36px 0; padding: 22px 24px;
  background: radial-gradient(circle at 0% 0%, #fff 0%, var(--fur) 140%);
  border: 3px solid var(--line); border-radius: 18px; box-shadow: var(--shadow-lg);
}
.cta-box h3 { margin: 0 0 6px !important; }
.cta-box p { font-size: 16px; margin: 0 0 14px; }
.cta-box .sprite { flex: none; }
.cta-box .text-link { margin-left: 12px; font-size: 15px; }
.related { max-width: 1180px; padding-top: 60px !important; }
.related h2 { text-align: center; margin-bottom: 30px; }

@media (max-width: 980px) { .post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) {
  .post-grid { grid-template-columns: 1fr; }
  .post-body { font-size: 17px; }
  .cta-box { flex-direction: column; text-align: center; }
  .cta-box .text-link { display: block; margin: 12px 0 0; }
}
