/* MJ Studios — blog styles (listing + posts).
   Loaded on top of site.css via extraCss front matter.
   Glass recipes mirror .sl-panel (dark) and .nav-glass (light). */

/* ============ Listing hero ============ */
.blog-hero{ position:relative; overflow:hidden; border-radius:0 0 var(--radius-card) var(--radius-card);
  background:linear-gradient(180deg, var(--hero-from), #fff) }
.blog-hero .shell{ display:flex; flex-direction:column; align-items:flex-start; gap:1.25rem; padding:9rem 1.25rem 2.5rem }
@media (min-width:640px){ .blog-hero .shell{ padding-inline:2rem } }
@media (min-width:1024px){ .blog-hero .shell{ padding:11rem 2rem 3rem } }
.blog-hero .sp-sub{ max-width:38rem }

/* ============ Featured post ============ */
.bp-grid{ display:grid; grid-template-columns:1fr; gap:1.25rem; margin-top:1.25rem }
@media (min-width:640px){ .bp-grid{ grid-template-columns:1fr 1fr } }
@media (min-width:1024px){ .bp-grid{ grid-template-columns:repeat(3,1fr) } }
.bp-card{ display:flex; flex-direction:column; overflow:hidden; border-radius:var(--radius-card-sm);
  background:var(--surface); transition:transform .4s var(--ease-hover), background .4s var(--ease-hover) }
.bp-media{ position:relative; aspect-ratio:16/10; overflow:hidden }
.bp-media img{ width:100%; height:100%; object-fit:cover; transition:transform .7s var(--ease-soft) }
/* Work/case-study media are mockups and brand boards, not photos: cropping them
   cuts real text out of the frame, so they are matted rather than filled. */
.bp-media-work{ background:#fff }
.bp-media-work img{ object-fit:contain }
/* glass category chip over the image */
.bp-chip{ position:absolute; left:.875rem; top:.875rem; z-index:2; display:inline-flex; align-items:center;
  padding:.35rem .75rem; border-radius:var(--radius-pill); font-size:.6875rem; font-weight:600;
  text-transform:uppercase; letter-spacing:.06em; color:#fff;
  background:rgba(10,10,10,.35); border:1px solid rgba(255,255,255,.25);
  backdrop-filter:blur(12px); -webkit-backdrop-filter:blur(12px) }
.bp-body{ display:flex; flex-direction:column; gap:.625rem; padding:1.375rem 1.375rem 1.5rem; flex:1 }
.bp-meta{ display:flex; flex-wrap:wrap; align-items:center; gap:.5rem; font-size:.75rem; font-weight:500; color:rgba(17,17,17,.55);
  transition:color .3s ease }
.bp-meta .dot{ opacity:.5 }
.bp-card h3{ font-size:1.125rem; font-weight:600; letter-spacing:-.01em; line-height:1.3; transition:color .3s ease }
.bp-card .bp-x{ font-size:.875rem; line-height:1.55; color:rgba(17,17,17,.6); transition:color .3s ease;
  display:-webkit-box; -webkit-line-clamp:3; -webkit-box-orient:vertical; overflow:hidden }
.bp-more{ display:inline-flex; align-items:center; gap:.375rem; margin-top:auto; padding-top:.5rem;
  font-size:.8125rem; font-weight:600; color:var(--accent); transition:color .3s ease }
.bp-more .icon{ transition:transform .35s var(--ease-hover) }
/* one hover recipe site-wide: lift 6px + invert to ink */
@media (hover:hover){
  .bp-card:hover{ transform:translateY(-6px); background:var(--surface-2); box-shadow:0 18px 38px -26px rgba(17,17,17,.3) }
  .bp-card:hover .bp-x{ color:rgba(17,17,17,.72) }
  .bp-card:hover .bp-more{ color:var(--accent) }
  .bp-card:hover .bp-media img{ transform:scale(1.04) }
}
@media (hover:none){ .bp-card:active{ transform:translateY(-2px) } }

/* ============ Post hero ============ */
.post-hero{ position:relative; isolation:isolate; overflow:hidden; min-height:76vh; min-height:76svh;
  display:flex; flex-direction:column; justify-content:flex-end;
  background:var(--ink); border-radius:0 0 var(--radius-card) var(--radius-card) }
.post-hero img.post-hero-img{ position:absolute; inset:0; z-index:0; width:100%; height:100%; object-fit:cover; opacity:.9 }
.post-hero::after{ content:""; position:absolute; inset:0; z-index:1; pointer-events:none;
  background:linear-gradient(to bottom, rgba(10,10,10,.5), rgba(10,10,10,.12) 40%, rgba(10,10,10,.6) 78%, rgba(10,10,10,.78)) }
.post-hero .shell{ position:relative; z-index:5; width:100%; padding:8rem 1.25rem 2rem }
@media (min-width:640px){ .post-hero .shell{ padding-inline:2rem; padding-bottom:2.5rem } }
.post-hero-panel{ display:flex; flex-direction:column; align-items:flex-start; gap:1rem; max-width:52rem; padding:1.5rem 1.5rem;
  background:linear-gradient(155deg, rgba(255,255,255,.10), rgba(255,255,255,.02) 60%), rgba(12,12,14,.42);
  backdrop-filter:blur(22px) saturate(150%); -webkit-backdrop-filter:blur(22px) saturate(150%);
  border:1px solid rgba(255,255,255,.16); border-radius:var(--radius-card-sm);
  box-shadow:0 1px 0 rgba(255,255,255,.14) inset, 0 24px 60px -28px rgba(0,0,0,.7) }
@media (min-width:640px){ .post-hero-panel{ padding:2rem 2.25rem } }
.post-hero-panel .crumbs{ margin:0 }
.post-h1{ color:#fff; font-size:1.875rem; font-weight:600; line-height:1.12; letter-spacing:-.02em; max-width:24ch }
@media (min-width:640px){ .post-h1{ font-size:2.5rem } }
@media (min-width:1024px){ .post-h1{ font-size:3rem } }
.post-standfirst{ color:rgba(255,255,255,.82); font-size:.9375rem; line-height:1.6; max-width:56ch }
@media (min-width:640px){ .post-standfirst{ font-size:1.0625rem } }
.post-hero-meta{ display:flex; flex-wrap:wrap; align-items:center; gap:.5rem 1rem; font-size:.8125rem; color:rgba(255,255,255,.65) }
.post-hero-meta .bp-chip{ position:static }
.post-hero-meta .dot{ opacity:.5 }

/* ============ Article body ============ */
.post-main{ background:#fff }
/* 52.5rem box minus 2rem side padding = a 48.5rem text column, matched exactly
   by .post-sec .shell.narrow below so the FAQ lines up with the article. */
.post-wrap{ max-width:56rem; margin-inline:auto; padding:3.5rem 1.25rem 1rem }
@media (min-width:640px){ .post-wrap{ padding:4.5rem 2rem 1.5rem } }
.post-body{ font-size:1rem; line-height:1.75; color:rgba(17,17,17,.78) }
@media (min-width:640px){ .post-body{ font-size:1.0625rem } }
.post-body p{ margin-bottom:1.375rem }
.post-body h2{ margin:2.75rem 0 1rem; font-size:1.5rem; font-weight:600; letter-spacing:-.015em; color:#111; line-height:1.25 }
@media (min-width:640px){ .post-body h2{ font-size:1.75rem } }
.post-body h3{ margin:2rem 0 .75rem; font-size:1.1875rem; font-weight:600; letter-spacing:-.01em; color:#111 }
.post-body a{ color:var(--accent); font-weight:500; text-decoration:underline; text-underline-offset:3px; text-decoration-color:rgba(177,95,44,.35);
  transition:text-decoration-color .25s ease }
@media (hover:hover){ .post-body a:hover{ text-decoration-color:var(--accent) } }
.post-body ul, .post-body ol{ margin:0 0 1.375rem; padding-left:1.375rem }
.post-body ul{ list-style:disc }
.post-body ol{ list-style:decimal }
.post-body li{ margin-bottom:.5rem; padding-left:.25rem }
.post-body li::marker{ color:var(--accent) }
.post-body strong{ color:#111; font-weight:600 }
.post-body blockquote{ margin:2rem 0; padding:1.25rem 1.5rem; border-left:3px solid var(--accent);
  border-radius:0 var(--radius-card-sm) var(--radius-card-sm) 0; background:var(--surface);
  font-size:1.0625rem; font-weight:500; color:#111; line-height:1.55 }
.post-body figure{ margin:2.25rem 0 }
.post-body figure img{ width:100%; border-radius:var(--radius-card-sm) }
.post-body figcaption{ margin-top:.625rem; font-size:.8125rem; color:rgba(17,17,17,.5) }
.post-body table{ width:100%; margin:0 0 1.375rem; border-collapse:collapse; font-size:.9375rem }
.post-body th{ text-align:left; font-weight:600; color:#111; border-bottom:2px solid var(--line); padding:.625rem .75rem }
.post-body td{ border-bottom:1px solid var(--line); padding:.625rem .75rem; vertical-align:top }
.post-table-scroll{ overflow-x:auto; margin-bottom:1.375rem }
.post-table-scroll table{ min-width:34rem; margin-bottom:0 }

/* Key takeaways: light glass card, answer-engine friendly summary up top */
.post-take{ margin:2.25rem 0; padding:1.5rem 1.625rem; border-radius:var(--radius-card-sm);
  background:linear-gradient(155deg, rgba(255,255,255,.75), rgba(255,255,255,.5)), var(--surface);
  backdrop-filter:blur(16px); -webkit-backdrop-filter:blur(16px);
  border:1px solid rgba(230,229,226,.9); box-shadow:0 1px 0 rgba(255,255,255,.8) inset, 0 18px 40px -24px rgba(17,17,17,.18) }
.post-take .cap{ display:inline-flex; align-items:center; gap:.5rem; margin-bottom:.875rem;
  font-size:.75rem; font-weight:600; text-transform:uppercase; letter-spacing:.06em; color:var(--accent) }
.post-take .cap::before{ content:""; width:.375rem; height:.375rem; border-radius:var(--radius-pill); background:var(--accent) }
.post-take ul{ margin:0; padding-left:1.25rem; list-style:disc }
.post-take li{ margin-bottom:.5rem; font-size:.9375rem; line-height:1.6; color:rgba(17,17,17,.75) }
.post-take li:last-child{ margin-bottom:0 }

/* ============ Author box ============ */
.author-box{ display:flex; gap:1.125rem; align-items:flex-start; margin:3rem 0 0; padding:1.5rem 1.625rem;
  border-radius:var(--radius-card-sm);
  background:linear-gradient(155deg, rgba(255,255,255,.75), rgba(255,255,255,.5)), var(--surface);
  backdrop-filter:blur(16px); -webkit-backdrop-filter:blur(16px);
  border:1px solid rgba(230,229,226,.9); box-shadow:0 1px 0 rgba(255,255,255,.8) inset, 0 18px 40px -24px rgba(17,17,17,.18) }
.author-avatar{ flex:none; width:3.5rem; height:3.5rem; display:grid; place-items:center; overflow:hidden;
  border-radius:var(--radius-pill); background:var(--ink); color:var(--accent-from) }
.author-avatar .wm{ font-size:1rem; color:#fff }
.author-avatar img{ width:100%; height:100%; object-fit:cover }
.author-info{ display:flex; flex-direction:column; gap:.25rem }
.author-info .a-name{ font-size:1rem; font-weight:600; color:#111 }
.author-info .a-role{ font-size:.75rem; font-weight:600; text-transform:uppercase; letter-spacing:.05em; color:var(--accent) }
.author-info .a-bio{ margin-top:.375rem; font-size:.875rem; line-height:1.6; color:rgba(17,17,17,.62) }
.author-info .a-links{ display:flex; flex-wrap:wrap; gap:1rem; margin-top:.625rem; font-size:.8125rem; font-weight:500 }
.author-info .a-links a{ color:var(--accent); text-decoration:underline; text-underline-offset:3px; text-decoration-color:rgba(177,95,44,.35) }
@media (max-width:479px){ .author-box{ flex-direction:column } }

/* ============ Post FAQ + related + CTA ============ */
.post-sec{ background:#fff }
.post-sec .shell{ padding:3.5rem 1.25rem }
@media (min-width:640px){ .post-sec .shell{ padding-inline:2rem } }
.post-sec .shell.narrow{ max-width:56rem } /* matches .post-wrap */
.post-sec h2{ font-size:1.5rem; font-weight:600; letter-spacing:-.015em; margin-bottom:1.5rem }
@media (min-width:640px){ .post-sec h2{ font-size:1.875rem } }
.post-related .shell{ padding-block:3.5rem 4.5rem }
.post-cta .shell{ padding-block:1rem 4.5rem }

/* share row */
.post-foot{ display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:1rem;
  margin-top:2.5rem; border-top:1px solid var(--line); padding-top:1.5rem }
.post-tags{ display:flex; flex-wrap:wrap; gap:.5rem }
.post-tag{ display:inline-flex; padding:.35rem .8rem; border-radius:var(--radius-pill); border:1px solid var(--line);
  background:rgba(255,255,255,.5); backdrop-filter:blur(8px); -webkit-backdrop-filter:blur(8px);
  font-size:.75rem; font-weight:500; color:rgba(17,17,17,.65) }

/* reduced motion: no lifts or zooms */
@media (prefers-reduced-motion: reduce){
  .bp-card, .bp-feat img, .bp-media img{ transition:none }
}

/* ---------- Blog index vertical rhythm ----------
   Each section carried its own full .sp-section padding, so it stacked on the
   previous section's: the hero-to-featured gap measured 174px at 1440px, and
   featured-to-list 118px. These override the shared block padding per section
   so one comfortable gap sits between blocks instead of two added together. */
.bp-sec-feat .shell{ padding-block:2rem 2.5rem }
.bp-sec-list .shell{ padding-block:1.5rem 2rem }
.bp-sec-cta .shell{ padding-block:3rem 4rem }
@media (min-width:1024px){
  .bp-sec-feat .shell{ padding-block:2rem 2.5rem }
  .bp-sec-list .shell{ padding-block:1.5rem 2rem }
  .bp-sec-cta .shell{ padding-block:3rem 5.5rem }
}

/* ---------- Case study extras (reuses the whole .post-* family) ----------
   Only two components are new: the facts strip under the hero and the
   partner credit line in the footer. Everything else on /case-studies/ and
   the detail pages is the blog's own markup, so the design stays identical. */
/* Client and Industry sit two-up; Services take their own full-width row as
   chips. Four equal columns crammed the long service list into a wall of text. */
.cs-facts{ display:grid; grid-template-columns:1fr 1fr; gap:1.5rem; margin-bottom:2rem;
  border:1px solid var(--line); border-radius:var(--radius-card-sm); background:var(--surface); padding:1.5rem }
@media (min-width:640px){ .cs-facts{ padding:1.75rem 2rem; gap:1.75rem 2.5rem } }
.cs-facts .cs-facts-wide{ grid-column:1 / -1 }
.cs-facts dt{ margin-bottom:.4rem; font-size:.6875rem; letter-spacing:.12em; text-transform:uppercase; color:rgba(17,17,17,.5) }
.cs-facts dd{ font-size:.9375rem; font-weight:500; line-height:1.5; color:#111 }
.cs-chips{ display:flex; flex-wrap:wrap; gap:.4rem }
.cs-chips .post-tag{ margin:0 }

/* Case study gallery: real work shots. Matted on white and never cropped,
   because these are brand boards and mockups with text inside the frame. */
.cs-gallery{ display:flex; flex-direction:column; gap:.75rem; margin:2.5rem 0 0 }
.cs-gallery img{ width:100%; height:auto; border-radius:var(--radius-card-sm); border:1px solid var(--line); background:#fff }
.cs-gallery figcaption{ margin-top:.25rem; font-size:.8125rem; color:rgba(17,17,17,.55) }
