/* =========================================================
   Delow — blog: list page, post cards and generated covers (no photos)
   ========================================================= */

/* ---------- Hero ---------- */
.bhero { position: relative; padding: 16px 0 40px; overflow-x: clip; }
.bhero__glow {
  position: absolute; z-index: -1; pointer-events: none; right: -18%; top: -30%; width: 72vw; max-width: 980px; aspect-ratio: 1;
  background: radial-gradient(closest-side, rgba(203,169,197,.46), rgba(203,169,197,.15) 45%, transparent 72%);
}
@media (max-width: 767px) { .bhero__glow { width: 150vw; right: -70vw; top: -20%; } }
.bhero .crumbs { margin-bottom: 22px; }
.bhero__title { font-size: clamp(3rem, 1.6rem + 6vw, 7rem); line-height: .95; letter-spacing: -.045em; font-weight: 650; }
.bhero__lead { margin-top: 18px; font-size: var(--fs-lead); line-height: 1.6; color: var(--ink-2); max-width: 44ch; }
@media (min-width: 1024px) {
  .bhero { padding: 40px 0 64px; }
  .bhero__inner { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: end; column-gap: 64px; }
  .bhero__lead { margin-top: 0; padding-bottom: 12px; }
}
html.js .bhero__inner > * { opacity: 0; transform: translateY(16px); }
html.js.is-loaded .bhero__inner > * { opacity: 1; transform: none; transition: opacity .55s ease, transform .7s var(--ease-out); }
html.js.is-loaded .bhero__inner > :nth-child(2) { transition-delay: .08s; }
html.js.is-loaded .bhero__inner > :nth-child(3) { transition-delay: .16s; }

/* ---------- Post list ---------- */
.posts { padding-bottom: var(--section); }
.posts__grid { display: grid; gap: 16px; }
@media (min-width: 768px) { .posts__grid { grid-template-columns: 1fr 1fr; gap: 20px; } }

.post { position: relative; display: grid; align-content: start; border-radius: 28px; background: var(--surface); overflow: hidden; transition: transform .45s var(--ease-out), box-shadow .45s var(--ease-out), background-color .3s ease; }
.post__body { display: grid; gap: 12px; align-content: start; padding: 22px 22px 26px; }
.post__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; font-size: .875rem; color: var(--muted); }
.post__title { font-size: clamp(1.375rem, 1.15rem + .8vw, 1.75rem); line-height: 1.18; letter-spacing: -.025em; text-wrap: balance; }
.post__title a::after { content: ""; position: absolute; inset: 0; z-index: 2; border-radius: inherit; }
.post__title a:focus-visible { outline: none; }
.post:has(.post__title a:focus-visible) { box-shadow: 0 0 0 3px var(--accent); }
.post__excerpt { color: var(--ink-2); font-size: 1.0313rem; line-height: 1.55; max-width: 56ch; }
.post__more { margin-top: 6px; }
@media (hover: hover) and (pointer: fine) {
  .post:hover { transform: translateY(-6px); background: #fff; box-shadow: var(--shadow-lift), 0 0 0 1px var(--line); }
  .post:hover .link-arrow .ico { transform: translateX(4px); }
}

/* Featured (newest) post: cover and words side by side from tablet up */
.post--feature .post__title { font-size: clamp(1.625rem, 1.2rem + 1.6vw, 2.625rem); letter-spacing: -.035em; }
@media (min-width: 900px) {
  .post--feature { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); align-items: stretch; margin-bottom: 20px; }
  .post--feature .cover { height: 100%; aspect-ratio: auto; min-height: 400px; border-radius: 0; }
  .post--feature .post__body { align-content: center; padding: 48px; gap: 16px; }
}
.posts__feature { margin-bottom: 16px; }

/* Category chip */
.cat { display: inline-flex; align-items: center; height: 30px; padding: 0 12px; border-radius: 999px; background: var(--ink); color: #fff; font-size: .8125rem; font-weight: 600; letter-spacing: .01em; }
.cat--social { background: var(--accent); }
.cat--mkt { background: var(--accent-light); color: var(--ink); }

/* ---------- Generated covers ---------- */
.cover {
  position: relative; display: block; aspect-ratio: 16 / 10; overflow: hidden; isolation: isolate;
  container-type: inline-size; background: var(--dark); color: #fff;
}
.cover__word {
  position: absolute; z-index: 0; right: -2cqw; bottom: -6cqw; font-family: var(--font-display); font-weight: 650;
  font-size: 30cqw; line-height: .8; letter-spacing: -.06em; color: rgba(255,255,255,.07); white-space: nowrap; pointer-events: none;
}
.cover__glow { position: absolute; z-index: 0; inset: -30% -10% auto auto; width: 70cqw; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(closest-side, rgba(203,169,197,.45), transparent 70%); pointer-events: none; }
.cover__motif { position: absolute; z-index: 1; inset: 0; display: grid; place-items: center; transition: transform .6s var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .post:hover .cover__motif { transform: translateY(-2.5cqw) rotate(-1.5deg); }
  .post:hover .cover__word { transform: translateX(-2cqw); }
}
.cover__word { transition: transform .8s var(--ease-out); }

/* SEO: a search bar and results, yours on top */
.cover--seo { background: var(--dark); }
.cm-seo { display: grid; gap: 2.4cqw; width: 62cqw; }
.cm-search { display: flex; align-items: center; gap: 2.4cqw; height: 9.5cqw; padding: 0 3.6cqw; border-radius: 99px; background: #fff; color: var(--ink); font-weight: 600; font-size: 3.6cqw; box-shadow: 0 2cqw 5cqw -2cqw rgba(0,0,0,.6); }
.cm-search .ico { width: 3.8cqw; height: 3.8cqw; color: var(--muted); }
.cm-search i { width: .35cqw; height: 4.4cqw; margin-left: -1.6cqw; background: var(--ink); }
.cm-res { display: flex; align-items: center; gap: 2.4cqw; height: 7.4cqw; padding: 0 3cqw; border-radius: 2.2cqw; background: rgba(255,255,255,.08); }
.cm-res b { flex: none; width: 4.2cqw; height: 4.2cqw; border-radius: 1.1cqw; background: rgba(255,255,255,.16); }
.cm-res span { height: 1.6cqw; width: 60%; border-radius: 2cqw; background: rgba(255,255,255,.18); }
.cm-res.is-top { background: #fff; transform: scale(1.04); }
.cm-res.is-top b { background: var(--accent); }
.cm-res.is-top span { background: var(--ink); width: 72%; }

/* Social media: chat bubbles and a reaction */
.cover--social { background: var(--accent); }
.cover--social .cover__glow { background: radial-gradient(closest-side, rgba(255,255,255,.22), transparent 70%); }
.cm-social { position: relative; width: 64cqw; height: 40cqw; }
.cm-bubble { position: absolute; display: grid; gap: 1.6cqw; padding: 3.2cqw 3.6cqw; border-radius: 4.2cqw; background: #fff; box-shadow: 0 2cqw 5cqw -2cqw rgba(0,0,0,.45); }
.cm-bubble i { display: block; height: 1.7cqw; border-radius: 2cqw; background: var(--surface-2); }
.cm-bubble--a { left: 0; top: 0; width: 36cqw; border-bottom-left-radius: .8cqw; }
.cm-bubble--a i:first-child { width: 100%; } .cm-bubble--a i:last-child { width: 62%; }
.cm-bubble--b { right: 0; top: 13cqw; width: 30cqw; background: var(--accent-light); border-bottom-right-radius: .8cqw; }
.cm-bubble--b i { background: rgba(15,14,17,.22); width: 80%; }
.cm-bubble--c { left: 6cqw; bottom: 0; width: 40cqw; border-bottom-left-radius: .8cqw; }
.cm-bubble--c i:first-child { width: 90%; } .cm-bubble--c i:last-child { width: 48%; }
.cm-react { position: absolute; right: 4cqw; bottom: 1cqw; display: grid; place-items: center; width: 10cqw; height: 10cqw; border-radius: 50%; background: var(--dark); color: #fff; font-size: 4.6cqw; line-height: 1; box-shadow: 0 0 0 1.4cqw rgba(255,255,255,.18); }

/* Marketing: people, connected, with a heart */
.cover--mkt { background: var(--accent-light); color: var(--ink); }
.cover--mkt .cover__word { color: rgba(15,14,17,.07); }
.cover--mkt .cover__glow { background: radial-gradient(closest-side, rgba(255,255,255,.55), transparent 70%); }
.cm-mkt { position: relative; width: 64cqw; height: 38cqw; }
.cm-mkt svg.cm-arcs { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.cm-arcs path { fill: none; stroke: var(--accent); stroke-width: 2; stroke-dasharray: 5 6; vector-effect: non-scaling-stroke; }
.cm-person { position: absolute; display: grid; justify-items: center; width: 15cqw; }
.cm-person::before { content: ""; width: 7.4cqw; aspect-ratio: 1; border-radius: 50%; background: var(--dark); }
.cm-person::after { content: ""; width: 14cqw; height: 6.8cqw; margin-top: 1cqw; border-radius: 7cqw 7cqw 2cqw 2cqw; background: var(--dark); }
.cm-person--a { left: 0; bottom: 0; }
.cm-person--b { left: 50%; top: 0; translate: -50% 0; }
.cm-person--b::before, .cm-person--b::after { background: var(--accent); }
.cm-person--c { right: 0; bottom: 0; }
.cm-person--c::before, .cm-person--c::after { background: #fff; }
.cm-heart { position: absolute; left: 50%; bottom: 3cqw; translate: -50% 0; display: grid; place-items: center; width: 10cqw; height: 10cqw; border-radius: 50%; background: #fff; color: var(--accent); font-size: 5cqw; line-height: 1; box-shadow: 0 2cqw 5cqw -2cqw rgba(15,14,17,.4); }

@media (prefers-reduced-motion: reduce) {
  .cover__motif, .cover__word { transition: none; }
}
