/* blog.entelech.ai: builds on site.css (same tokens, nav, footer, theme) */

/* Index hero */
.blog-hero { padding-block: clamp(64px, 9vw, 120px) clamp(36px, 5vw, 64px); }
.blog-hero .wrap { display: grid; gap: 18px; }
.blog-hero h1 { font-size: clamp(2.8rem, 7.5vw, 6.4rem); letter-spacing: -0.055em; line-height: .92; max-width: 12ch; }
.blog-hero .lede a { color: var(--sky-text); }

/* Featured post: painting on sky + copy */
.feature { padding-bottom: clamp(32px, 4vw, 56px); }
.feature-card { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); text-decoration: none; color: inherit; border: 1px solid var(--line); background: var(--surface-raised); transition: border-color .2s var(--ease); }
.feature-card:hover { border-color: var(--ink-muted); }
.feature-img { background: #0590F5; display: block; aspect-ratio: 4 / 5; overflow: hidden; }
.feature-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s var(--ease); }
.feature-card:hover .feature-img img { transform: scale(1.03); }
.feature-copy { display: grid; gap: 18px; align-content: center; padding: clamp(24px, 4vw, 64px); }
.feature-copy h2 { font-size: clamp(2rem, 4.2vw, 3.6rem); letter-spacing: -0.05em; line-height: .96; }
.feature-copy p { color: var(--ink-muted); font-size: 1.1rem; max-width: 46ch; }
.more { font-weight: 500; display: inline-flex; gap: 8px; align-items: center; }
.more .arr { transition: transform .2s var(--ease); }
.feature-card:hover .more .arr { transform: translateX(3px); }

/* Cards */
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px 16px; padding-bottom: clamp(72px, 9vw, 120px); }
.bcard { display: grid; gap: 12px; align-content: start; text-decoration: none; color: inherit; }
.bcard-img { display: block; background: var(--sky); aspect-ratio: 4 / 3; overflow: hidden; }
.bcard-img img { width: 100%; height: 100%; object-fit: cover; object-position: center 80%; display: block; transition: transform .6s var(--ease); }
.bcard:hover .bcard-img img { transform: scale(1.04); }
.bcard h3 { font-size: 1.6rem; letter-spacing: -0.04em; line-height: 1.02; }
.bcard h3 em, .feature-copy h2 em, .post-hero h1 em, .post-cta h2 em { font: italic 400 1em/1 var(--font-serif); letter-spacing: -0.02em; color: var(--sky-text); }
.bcard p { color: var(--ink-muted); font-size: .97rem; }
.more-head { grid-column: 1 / -1; border-top: 1px solid var(--line); padding-top: 18px; }

/* Post hero: sky band, painting right */
.post-hero { background: var(--sky); color: var(--on-sky); overflow: hidden; }
.post-hero .label { color: rgba(245,247,250,.88); }
.post-hero-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 24px; align-items: end; }
.post-hero-copy { display: grid; gap: 18px; align-content: center; padding-block: clamp(48px, 7vw, 96px); align-self: center; }
.post-hero h1 { font-size: clamp(2.4rem, 5.6vw, 4.8rem); letter-spacing: -0.05em; line-height: .95; max-width: 15ch; }
.post-hero h1 em { color: inherit; }
.post-hero .dek { font: 400 clamp(1.2rem, 1.9vw, 1.5rem)/1.35 var(--font-serif); max-width: 36ch; }
.back { text-decoration: none; justify-self: start; }
.back:hover { color: #fff; }
.post-hero-img { margin: 0; align-self: end; }
.post-hero-img img { width: 100%; max-height: 560px; object-fit: contain; object-position: bottom center; display: block; }
.post-hero-img { -webkit-mask: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent), linear-gradient(180deg, transparent, #000 18%); -webkit-mask-composite: source-in; mask: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent), linear-gradient(180deg, transparent, #000 18%); mask-composite: intersect; }
.on-sky :focus-visible, .post-hero :focus-visible { outline-color: var(--night); }

/* Reading column */
.prose { max-width: 68ch; padding-block: clamp(48px, 6vw, 88px); font-size: 1.125rem; line-height: 1.7; }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { font-size: clamp(1.6rem, 2.6vw, 2.1rem); letter-spacing: -0.04em; line-height: 1.05; margin-top: 2em; }
.prose h3 { font-size: 1.3rem; letter-spacing: -0.03em; margin-top: 1.6em; }
.prose em { font-family: var(--font-serif); font-size: 1.08em; }
.prose strong { font-weight: 600; }
.prose a { color: var(--sky-text); }
.prose ul, .prose ol { padding-left: 1.2em; }
.prose ul { list-style: disc; } .prose ol { list-style: decimal; }
.prose li + li { margin-top: .4em; }
.prose blockquote { margin-block: 1.8em; padding: 4px 0 4px 22px; background: linear-gradient(var(--sky), var(--lapis)) left top / 2px 100% no-repeat; }
.prose blockquote p { font: italic 400 clamp(1.35rem, 2.2vw, 1.7rem)/1.3 var(--font-serif); color: var(--ink); }
.prose h2 + p strong:first-child, .prose p > strong:first-child { color: var(--ink); }
.prose figure.chart { margin: 2em 0; display: grid; gap: 12px; }
.prose figure.chart img { width: 100%; max-width: 640px; height: auto; display: block; background: #FAF9F5; padding: clamp(8px, 2vw, 20px); border: 1px solid var(--line); }
.prose figure.chart figcaption { font: 400 .9rem/1.5 var(--font-sans); color: var(--ink-muted); max-width: 640px; }
.byline { margin-top: 2.4em !important; padding-top: 18px; border-top: 1px solid var(--line); }

/* Closing call to action */
.post-cta { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; border: 1px solid var(--line); background: radial-gradient(80% 90% at 100% 100%, var(--haze), transparent 65%), var(--surface-raised); padding: clamp(24px, 4vw, 48px); margin-bottom: clamp(56px, 7vw, 96px); }
.post-cta > div { display: grid; gap: 10px; }
.post-cta h2 { font-size: clamp(1.8rem, 3.4vw, 2.8rem); letter-spacing: -0.045em; }
.post-cta p { color: var(--ink-muted); max-width: 46ch; }
.post-cta .wrap { padding: 0; }

@media (max-width: 900px) {
  .feature-card { grid-template-columns: minmax(0, 1fr); }
  .feature-img { aspect-ratio: 4 / 3; }
  .feature-img img { object-position: center 30%; }
  .cards { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .post-hero-grid { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .post-hero-copy { padding-bottom: 12px; }
  .post-hero-img img { max-height: 340px; margin-inline: auto; }
}
@media (max-width: 600px) {
  .cards { grid-template-columns: minmax(0, 1fr); }
  .prose { font-size: 1.0625rem; }
}
