/* Devlog: the post index and the article pages. */
.devlog { padding-top: 150px; }
.devlog-head > * { animation: rise 900ms var(--motion) both; }
.devlog-head > :nth-child(2) { animation-delay: 90ms; }
.devlog-head > :nth-child(3) { animation-delay: 180ms; }
.devlog-head h1 { margin-top: 22px; font-size: clamp(42px, 5.6vw, 78px); letter-spacing: -.05em; line-height: .98; }
.devlog-head a, .post-body a { color: var(--text); text-decoration-color: color-mix(in srgb, var(--coral) 70%, transparent); text-underline-offset: 3px; }
.post-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px 16px; }
.post-card { display: block; text-decoration: none; }
.post-card h3 { transition: color 200ms; }
.post-card:hover h3 { color: var(--coral); }
.post-card img { transition: transform 500ms var(--motion), filter 300ms, box-shadow 300ms; }
.post-card img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 20px; box-shadow: inset 0 0 0 1px var(--rim); transition: transform 500ms var(--motion), filter 300ms; }
.post-card:hover img { transform: translateY(-4px) scale(1.01); filter: brightness(1.08); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--coral) 50%, transparent), 0 20px 50px rgb(0 0 0 / .5); }
.post-card h3 { margin: 8px 2px 0; font-size: 22px; }
.post-card p { margin: 8px 2px 0; font-size: 15px; color: var(--muted); }
.post-card-lead { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); grid-template-rows: 1fr auto auto auto 1fr; column-gap: 32px; }
.post-card-lead img { grid-row: 1 / -1; }
.post-card-lead > :not(img) { grid-column: 2; }
.post-card-lead .post-meta { grid-row: 2; }
.post-card-lead h3 { grid-row: 3; }
.post-card-lead p { grid-row: 4; font-size: 17px; }
.post-card-lead h3 { font-size: clamp(30px, 3.2vw, 44px); }
.post-meta { display: block; margin-top: 14px; font: 700 12px/1.4 Jakarta; letter-spacing: .12em; text-transform: uppercase; color: var(--coral); }

.post { max-width: 960px; margin: 0 auto; padding: 140px var(--gutter) 0; }
.post-back { display: inline-flex; align-items: center; gap: 6px; font: 700 14px/1 Jakarta; color: var(--muted); text-decoration: none; }
.post-back:hover { color: var(--text); }
.post-back .icon { font-size: 18px; }
.post-head > * { animation: rise 900ms var(--motion) both; }
.post-head > :nth-child(2) { animation-delay: 60ms; }
.post-head > :nth-child(3) { animation-delay: 120ms; }
.post-head > :nth-child(4) { animation-delay: 200ms; }
.post-head h1 { margin: 14px 0 20px; font-size: clamp(38px, 5vw, 64px); letter-spacing: -.045em; }
.post-head .lede { max-width: 720px; }
.post-cover { margin: 40px 0 0; overflow: hidden; border-radius: var(--radius-xl); }
.post-cover.enter img { transform: scale(1.06); transition: transform 1.6s var(--motion); }
.post-cover.is-in img { transform: none; }
.post-cover img { width: 100%; height: auto; border-radius: var(--radius-xl); box-shadow: inset 0 0 0 1px var(--rim); }
.post-body { max-width: 680px; margin: 48px auto 0; font-size: 18px; color: #d5dadc; }
.post-body p, .post-body ul { margin-top: 18px; }
.post-body h2 { margin: 44px 0 4px; font-size: 28px; color: var(--text); }
.post-body b { color: var(--text); }
.post-body ul { display: grid; gap: 8px; padding-left: 20px; }
.post-body li::marker { color: var(--coral); }
.post-body blockquote { margin: 32px 0; padding: 22px 26px; border-radius: 20px; background: var(--surface); box-shadow: inset 3px 0 0 var(--coral), inset 0 0 0 1px var(--rim); font: 700 22px/1.35 Jakarta; letter-spacing: -.02em; color: var(--text); }
.post-more .post-grid { grid-template-columns: 1fr 1fr; }

@media (max-width: 1080px) {
  .post-grid { grid-template-columns: 1fr 1fr; }
  .post-card-lead { display: block; }
}
@media (max-width: 720px) {
  .post-grid, .post-more .post-grid { grid-template-columns: 1fr; }
}
