/* Blog — index + post styling. Pairs with main.css (uses its --ink/--dim/--edge vars + .btn, .eyebrow, .qa). */

/* ---- Index ---- */
.blog-hero { max-width: 760px; margin: 0 auto; padding: 130px 24px 10px; text-align: center; }
.blog-hero h1 { font-size: clamp(38px, 6vw, 64px); margin: 6px 0 14px; }
.blog-hero p { font-size: 18px; line-height: 1.6; color: var(--dim); max-width: 60ch; margin: 0 auto; }

.blog-wrap { max-width: 1100px; margin: 0 auto; padding: 32px 24px 20px; }
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
@media (max-width: 900px) { .blog-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .blog-grid { grid-template-columns: 1fr; } .blog-hero { padding-top: 120px; } }

.blog-card { display: flex; flex-direction: column; text-decoration: none; color: var(--ink);
  background: var(--glass); border: 2px solid rgba(30,40,60,0.24); border-radius: 26px; overflow: hidden;
  backdrop-filter: blur(22px) saturate(1.3); -webkit-backdrop-filter: blur(22px) saturate(1.3);
  box-shadow: var(--shadow); transition: transform .22s ease, box-shadow .22s ease; }
.blog-card:hover { transform: translateY(-7px); box-shadow: 0 36px 70px rgba(30,40,60,0.22); }
.blog-card__shot { aspect-ratio: 16 / 10; overflow: hidden; background: #fff;
  border-bottom: 4px solid var(--card-accent, var(--edge)); }
.blog-card__shot img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.blog-card__body { padding: 22px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.blog-card__body h2 { font-size: 20px; font-weight: 600; line-height: 1.3; margin: 10px 0 8px; }
.blog-card__body p { font-size: 14.5px; line-height: 1.55; color: var(--dim); margin: 0 0 16px; }
.blog-card .r-cta { margin-top: auto; font-weight: 600; font-size: 14px; color: #7B4399; }

/* ---- Post ---- */
.post { max-width: 760px; margin: 0 auto; padding: 120px 24px 40px; }
.post-hero { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover;
  border-radius: 18px; margin: 26px 0 10px; box-shadow: var(--shadow); }
.crumbs { font-size: 13.5px; color: var(--dim); margin-bottom: 22px; }
.crumbs a { color: var(--dim); text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.crumbs span { color: var(--ink); }

.post-head h1 { font-size: clamp(32px, 5vw, 52px); line-height: 1.12; margin: 8px 0 14px; }
.post-meta { font-size: 18px; line-height: 1.6; color: var(--dim); margin: 0 0 30px; }

.post-body { font-size: 17.5px; line-height: 1.75; color: var(--ink); }
.post-body h2 { font-size: 27px; line-height: 1.25; margin: 40px 0 12px; }
.post-body h3 { font-size: 21px; margin: 28px 0 8px; }
.post-body p { margin: 0 0 18px; }
.post-body ul, .post-body ol { margin: 0 0 18px; padding-left: 24px; }
.post-body li { margin: 6px 0; }
.post-body a { color: #7B4399; font-weight: 600; }
.post-body strong { font-weight: 600; }
.post-body .qa { margin-top: 10px; }
.post-body code { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 0.92em;
  background: rgba(123,67,153,.08); padding: 2px 6px; border-radius: 6px; }
.post-code { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 15px;
  background: #1A1A2E; color: #EDEBF5; padding: 14px 18px; border-radius: 12px;
  margin: 0 0 18px; overflow-x: auto; white-space: pre; }
.post-table { width: 100%; border-collapse: collapse; margin: 0 0 22px; font-size: 16px; }
.post-table th, .post-table td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--edge); }
.post-table thead th { font-weight: 600; background: rgba(123,67,153,.06); border-bottom: 2px solid var(--edge); }
.post-table tbody tr:last-child td { border-bottom: none; }
.post-note { font-size: 14.5px; color: var(--dim); margin-top: 28px; padding-top: 16px; border-top: 1px solid var(--edge); }

.post-cta { margin: 44px 0 0; padding: 30px 32px; border-radius: 20px; text-align: center;
  background: linear-gradient(135deg, rgba(252,98,0,.08), rgba(227,42,143,.08) 55%, rgba(123,67,153,.10));
  border: 1px solid var(--edge); }
.post-cta h2 { font-size: 24px; margin: 0 0 8px; }
.post-cta p { font-size: 16px; line-height: 1.6; color: var(--dim); max-width: 48ch; margin: 0 auto 18px; }
