/* Blog index and article templates. Builds on the site's tokens and components in style.css. */
/* ---------- index ---------- */
.blog-hero { padding-bottom: clamp(24px, 3vw, 40px); }
.blog-filter { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 36px; }
.blog-list { padding: clamp(24px, 3vw, 40px) 0 var(--section-y); }
.blog__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(36px, 4vw, 56px) clamp(16px, 2.4vw, 32px); align-items: start; }
.blog__grid .case, .blog__grid .case:nth-child(even) { margin-top: 0; }
.blog__grid .case[hidden] { display: none; }
.blog__grid .case__media, .post-related .case__media { aspect-ratio: 16 / 9; }
.blog__grid .case__media img, .post-related .case__media img { width: 100%; height: 100%; object-fit: cover; }
.blog__grid .case__meta h3, .post-related .case__meta h3 { font-size: clamp(21px, 1.7vw, 25px); line-height: 1.15; text-wrap: balance; }
.post-kicker { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; font-size: 13px; font-weight: 600; letter-spacing: .02em; color: var(--ink-soft); }
.post-kicker b { color: var(--accent-btn); font-weight: 600; }
.post-kicker i { font-style: normal; opacity: .5; }
.blog__grid .case--lead { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 64px); align-items: center; }
.case--lead .case__meta { padding-top: 0; gap: 14px; }
.blog__grid .case--lead .case__meta h3 { font-size: clamp(30px, 3.3vw, 52px); line-height: 1.04; }
.case--lead .case__desc { font-size: clamp(16px, 1.25vw, 18px); margin-top: 0; }
.case--lead .case__link { margin-top: 4px; }
/* ---------- article ---------- */
.post-hero { padding: clamp(112px, 15vh, 160px) 0 clamp(28px, 3.4vw, 44px); }
.post-crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 14px; color: var(--ink-soft); margin-bottom: 22px; }
.post-crumbs a { color: var(--accent-btn); font-weight: 600; }
.post-crumbs a:hover { text-decoration: underline; text-underline-offset: 3px; }
.post-hero__title { font-family: var(--font-display); font-weight: 600; font-size: clamp(36px, 4.7vw, 70px); line-height: 1.03; letter-spacing: -.03em; max-width: 20ch; text-wrap: balance; }
.post-hero__dek { margin-top: 22px; max-width: 680px; color: var(--ink-soft); font-size: clamp(17px, 1.4vw, 20px); line-height: 1.5; }
.post-hero .post-kicker { margin-top: 20px; }
.post-cover { border-radius: var(--radius); overflow: hidden; aspect-ratio: 16 / 9; max-height: 680px; width: 100%; background: var(--dark); box-shadow: 0 30px 60px -40px rgba(20,26,23,.55); }
.post-cover img { width: 100%; height: 100%; object-fit: cover; }
.post { padding: clamp(32px, 4vw, 56px) 0 var(--section-y); }
.post__grid { display: grid; grid-template-columns: minmax(200px, 280px) minmax(0, 780px); gap: clamp(32px, 5vw, 80px); align-items: start; justify-content: center; }
.post__side { position: sticky; top: 104px; display: grid; gap: 20px; }
.post__toc summary { list-style: none; font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 12px; }
.post__toc summary::-webkit-details-marker { display: none; }
.post__toc ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.post__toc a { display: block; padding: 5px 0; font-size: 14.5px; line-height: 1.35; color: var(--ink-soft); }
.post__toc a:hover { color: var(--accent-btn); }
.post-service { display: block; padding: 18px 20px; border-radius: 18px; background: var(--ink); color: var(--paper); transition: background .35s var(--ease); }
.post-service:hover { background: var(--accent-btn); }
.post-service small { display: block; font-size: 12px; opacity: .72; margin-bottom: 4px; }
.post-service strong { font-family: var(--font-display); font-size: 19px; font-weight: 600; letter-spacing: -.01em; }
.post__body { background: rgba(255,255,255,.76); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(24px, 4.4vw, 64px); min-width: 0; }
.post__body > :first-child { margin-top: 0; }
.post__body h2 { font-family: var(--font-display); font-weight: 600; font-size: clamp(26px, 2.5vw, 34px); line-height: 1.12; letter-spacing: -.02em; margin: clamp(38px, 4vw, 54px) 0 14px; scroll-margin-top: 104px; text-wrap: balance; }
.post__body h3 { font-family: var(--font-display); font-weight: 600; font-size: clamp(20px, 1.7vw, 23px); line-height: 1.2; letter-spacing: -.01em; margin: 30px 0 8px; }
.post__body p, .post__body li { font-size: 17.5px; line-height: 1.68; color: #2d3530; }
.post__body p { margin: 0 0 18px; }
.post__body em { color: inherit; }
.post__body strong { color: var(--ink); font-weight: 650; }
.post__body ul, .post__body ol { margin: 0 0 20px; padding-left: 22px; display: grid; gap: 8px; }
.post__body li::marker { color: var(--accent-btn); font-weight: 600; }
.post__body a { color: var(--accent-btn); text-decoration: underline; text-underline-offset: 2px; overflow-wrap: anywhere; }
.post__body figure { margin: 30px 0; }
.post__body figure img { width: 100%; height: auto; border-radius: 16px; border: 1px solid var(--line); }
.post__body figcaption { margin-top: 10px; padding-left: 12px; border-left: 3px solid #d97706; font-size: 14.5px; line-height: 1.5; color: var(--ink-soft); }
.post__table { overflow-x: auto; margin: 0 0 22px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.post__table table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.45; }
.post__table th { text-align: left; font-weight: 600; background: var(--paper-2); }
.post__table th, .post__table td { padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.post__table tr:last-child td { border-bottom: 0; }
.post__body blockquote { margin: 28px 0; padding: 22px 24px; border-radius: 18px; background: var(--paper-2); }
.post__body blockquote p:last-child { margin-bottom: 0; }
.post-quote { margin: 30px 0; padding: 22px 24px; border: 2px dashed var(--accent-btn); border-radius: 18px; background: rgba(233,66,143,.06); }
.post-quote b { display: inline-block; margin-bottom: 8px; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-btn); }
.post-quote p { margin: 0; font-size: 16px; color: var(--ink-soft); }
.post-next { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; margin-top: clamp(34px, 4vw, 48px); padding-top: clamp(26px, 3vw, 34px); border-top: 1px solid var(--line); }
.post-next p { margin: 0; max-width: 420px; font-size: 16px; }
.post-next p strong { display: block; font-family: var(--font-display); font-size: 21px; font-weight: 600; letter-spacing: -.01em; }
.post__body .post-next a.btn { color: var(--accent-ink); text-decoration: none; }
.post-related { padding: 0 0 var(--section-y); }
.post-related h2 { font-family: var(--font-display); font-weight: 600; font-size: clamp(30px, 3.2vw, 46px); letter-spacing: -.025em; margin-bottom: clamp(22px, 3vw, 36px); }
/* ---------- small screens ---------- */
@media (max-width: 1000px) {
  .blog__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .post__grid { grid-template-columns: minmax(0, 1fr); }
  .post__side { position: static; }
  .post__toc { padding: 16px 20px; border: 1px solid var(--line); border-radius: 18px; background: rgba(255,255,255,.6); }
  .post__toc summary { margin: 0; cursor: pointer; }
  .post__toc[open] summary { margin-bottom: 12px; }
  .post__side .post-service { display: none; }
}
@media (max-width: 700px) {
  .blog__grid { grid-template-columns: minmax(0, 1fr); }
  .blog__grid .case--lead { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .blog-filter { flex-wrap: nowrap; overflow-x: auto; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); scrollbar-width: none; }
  .blog-filter .work-jump__link { flex: none; }
  .post-cover { border-radius: 20px; }
  .post__body { border-radius: 20px; }
  .post__body p, .post__body li { font-size: 17px; }
}

/* Soften the glass reflection on blog cards: the featured images are dark, so the full-strength edge cuts across them */
.page-blog .case__media .media-glare { background: linear-gradient(225deg, rgba(255,255,255,.015) 0%, rgba(255,255,255,.05) calc(var(--gb) - .2%), rgba(12,16,32,.02) calc(var(--gb) + .2%), rgba(12,16,32,0) 100%); box-shadow: inset 0 0 0 1px rgba(255,255,255,.12); }
.page-blog .case__media .media-glare::after { opacity: .3; }

/* Every card has a short description. The "Read the article" link belongs to the large feature cards only, and filtered views have none */
.blog__grid .case__desc { margin-top: 0; font-size: 15px; line-height: 1.5; color: var(--ink-soft); }
.blog__grid .case--lead .case__desc { font-size: clamp(16px, 1.25vw, 18px); }
.blog__grid .case:not(.case--lead) .case__link { display: none; }
