/* Blog: index cards, post layout and the WebGL smoke covers (static/js/blog-covers.js) */

/* the site's particle background stays off on blog pages: the covers are the visuals here */
#gl { display: none !important; }

.bl-cover { position: relative; overflow: hidden; background: #07070c; }
.bl-cover canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity 1.2s ease; }
.bl-cover.is-live canvas { opacity: 1; }
/* shown before WebGL starts, or instead of it */
.bl-cover--fusion { background: radial-gradient(90% 80% at 25% 30%, rgba(124, 82, 242, .45), transparent 60%), radial-gradient(70% 70% at 80% 75%, rgba(236, 72, 153, .3), transparent 60%), #06060b; }
.bl-cover--blue { background: radial-gradient(90% 80% at 30% 35%, rgba(59, 130, 246, .45), transparent 60%), #05070d; }
.bl-cover--purple { background: radial-gradient(90% 80% at 30% 35%, rgba(168, 85, 247, .45), transparent 60%), #07050d; }
.bl-cover--pink { background: radial-gradient(90% 80% at 30% 35%, rgba(236, 72, 153, .4), transparent 60%), #0b0508; }

/* index */
.bl-hero .wrap { text-align: center; }
.bl-hero .wrap > * { margin-left: auto; margin-right: auto; }
.bl-hero .kicker { justify-content: center; }
.bl-section { padding-top: 10px; }
.bl-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.bl-card { display: flex; flex-direction: column; color: inherit; text-decoration: none; border-radius: 18px; overflow: hidden;
  background: rgba(255, 255, 255, .045); border: 1px solid rgba(255, 255, 255, .1);
  backdrop-filter: blur(18px) saturate(140%); -webkit-backdrop-filter: blur(18px) saturate(140%);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .06) inset, 0 20px 50px -30px rgba(0, 0, 0, .8);
  transition: border-color .4s var(--ease), transform .5s var(--ease), background-color .4s; }
.bl-card:hover { border-color: rgba(255, 255, 255, .26); background-color: rgba(255, 255, 255, .07); transform: translateY(-4px); }
.bl-card .bl-cover { aspect-ratio: 16 / 9; }
.bl-card-body { padding: 22px 24px 26px; }
.bl-card h2 { font-family: var(--font-heading); font-weight: 500; letter-spacing: -.02em; font-size: 1.25rem; line-height: 1.25; }
.bl-meta { color: var(--muted); font-size: .78rem; margin-bottom: 10px; }
.bl-desc { color: var(--muted); margin-top: 10px; font-size: .96rem; }
@media (max-width: 960px) { .bl-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .bl-grid { grid-template-columns: 1fr; } }

/* post */
.bl-head { position: relative; min-height: 64vh; display: flex; align-items: flex-end; padding: 150px 0 56px; overflow: hidden; }
.bl-cover--hero { position: absolute; inset: 0; z-index: 0; }
.bl-cover--hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(5, 5, 7, .2) 0%, rgba(5, 5, 7, .35) 50%, var(--bg) 100%); }
.bl-head-inner { position: relative; z-index: 1; text-align: center; }
.bl-head h1 { font-family: var(--font-heading); font-weight: 500; letter-spacing: -.035em; line-height: 1.02; font-size: clamp(2.2rem, 5vw, 4.4rem); max-width: 22ch; margin: 0 auto; }
.bl-crumbs { color: var(--muted); font-size: .8rem; margin-bottom: 22px; }
.bl-crumbs a { color: inherit; text-decoration: none; }
.bl-crumbs a:hover { color: var(--fg); }
.bl-byline { color: #c9c9d1; font-size: .85rem; margin-top: 24px; }
.bl-body-section { padding-top: 40px; }
.bl-prose { font-size: 1.08rem; line-height: 1.75; margin: 0 auto; }
.bl-prose > p:first-child { font-size: 1.25rem; line-height: 1.6; color: var(--fg); }
.bl-prose p + p, .bl-prose ul, .bl-prose ol, .bl-prose table { margin-top: 18px; }
.bl-prose ul, .bl-prose ol { padding-left: 1.2em; }
.bl-prose li + li { margin-top: 8px; }
.bl-prose a { color: var(--fg); text-decoration-color: rgba(168, 85, 247, .7); text-underline-offset: 3px; }
.bl-prose strong { color: var(--fg); font-weight: 500; }
.bl-prose table { width: 100%; border-collapse: collapse; font-size: .96rem; }
.bl-prose th, .bl-prose td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.bl-prose th { color: var(--fg); font-weight: 500; }
.bl-prose td { color: #c9c9d1; }
.bl-prose figure { margin: 28px 0; }
.bl-prose figcaption, .bl-prose .source { color: var(--muted); font-size: .85rem; margin-top: 8px; }
.bl-prose .note { border: 1px solid var(--line); border-radius: 14px; padding: 18px 22px; margin-top: 24px; background: rgba(255, 255, 255, .02); }
.bl-faqs { max-width: 46rem; margin: 64px auto 0; }
.bl-faqs h2 { font-family: var(--font-heading); font-weight: 500; letter-spacing: -.02em; font-size: 1.7rem; margin-bottom: 14px; }
.bl-author { max-width: 46rem; margin-left: auto; margin-right: auto; display: flex; gap: 18px; align-items: flex-start; margin-top: 56px; padding: 24px; border: 1px solid var(--line); border-radius: 18px; }
.bl-author-photo { width: 72px; height: 72px; border-radius: 50%; flex-shrink: 0; object-fit: cover; background: #fff; border: 3px solid #fff; box-shadow: 0 0 0 1px rgba(255, 255, 255, .18), 0 10px 30px -12px rgba(168, 85, 247, .6); }
.bl-author-name { font-family: var(--font-heading); font-weight: 500; font-size: 1.1rem; }
.bl-author-role { color: var(--muted); font-size: .8rem; margin: 2px 0 8px; }
.bl-author p:last-child { color: #c9c9d1; font-size: .96rem; }
.bl-cta { max-width: 46rem; margin: 56px auto 0; text-align: center; }
.bl-cta .mono { color: var(--muted); }
.bl-cta h2 { font-family: var(--font-heading); font-weight: 500; letter-spacing: -.02em; font-size: clamp(1.6rem, 3vw, 2.3rem); margin: 8px 0 22px; }
.bl-more { margin-top: 90px; }
.bl-more .kicker { justify-content: center; }
.bl-grid--small .bl-card h2 { font-size: 1.1rem; }
.bl-head .bl-cover--hero::after { background: linear-gradient(180deg, rgba(5, 5, 7, .15) 0%, rgba(5, 5, 7, .3) 50%, var(--bg) 100%); }
