/* Hey Make blog. Uses the site's tokens (site.css). */
.blog { padding-bottom: 72px; }
.blog-head { margin-top: 56px; display: flex; flex-direction: column; gap: 12px; max-width: 680px; }
.blog-bar { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; justify-content: space-between; }
.tag-chips { display: flex; flex-wrap: wrap; gap: 8px; font-size: 14px; }
.view-toggle { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.view-toggle button { background: none; border: 0; padding: 0 16px; min-height: 40px; font: inherit; font-size: 14px; color: var(--muted); cursor: pointer; }
.view-toggle button[aria-pressed="true"] { background: var(--select); color: var(--select-ink); }

.post-grid { list-style: none; padding: 0; margin: 28px 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.post-card { border: 1px solid var(--line); border-radius: 7px; background: var(--surface); overflow: hidden; transition: border-color .2s ease; }
.post-card:hover { border-color: var(--muted); }
.post-card-link { display: flex; flex-direction: column; height: 100%; }
.post-card-cover { aspect-ratio: 16 / 9; background: var(--paper); border-bottom: 1px solid var(--line); overflow: hidden; display: block; }
.post-card-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.post-card-art { display: block; width: 100%; height: 100%; background-image: radial-gradient(circle at 1px 1px, var(--dot) 1px, transparent 0); background-size: 14px 14px; }
.post-card-body { display: flex; flex-direction: column; gap: 6px; padding: 18px 20px 22px; }
.post-card-meta { font-size: 13px; color: var(--muted); }
.post-card-title { font-family: var(--display); font-weight: 700; font-size: 20px; line-height: 1.25; letter-spacing: -0.01em; }
.post-card-desc { font-size: 15px; color: var(--muted); }
.post-grid.list { grid-template-columns: 1fr; }
.post-grid.list .post-card-link { flex-direction: row; }
.post-grid.list .post-card-cover { width: 220px; flex: none; aspect-ratio: 16 / 10; border-bottom: 0; border-right: 1px solid var(--line); }
@media (max-width: 560px) { .post-grid.list .post-card-link { flex-direction: column; } .post-grid.list .post-card-cover { width: auto; border-right: 0; border-bottom: 1px solid var(--line); } }

.post { max-width: 720px; margin: 0 auto; }
.crumbs { margin-top: 40px; font-size: 14px; color: var(--muted); }
.crumbs a:hover { color: var(--ink); }
.post-head { margin-top: 16px; display: flex; flex-direction: column; gap: 12px; }
.post-by { font-size: 14px; }
.post-media { margin: 28px 0 0; }
.post-media img, .post-fig img { width: 100%; height: auto; border-radius: 6px; border: 1px solid var(--line); display: block; cursor: zoom-in; }
.post-media.video { aspect-ratio: 16 / 9; }
.post-media.video iframe, .post-media.video video { width: 100%; height: 100%; border: 0; border-radius: 6px; background: #000; }
figcaption { margin-top: 8px; font-size: 13px; color: var(--muted); }
.post-try { margin-top: 20px; }
.post-body { margin-top: 28px; font-size: 17px; line-height: 1.7; }
.post-body > * + * { margin-top: 1em; }
.post-body h2 { font-family: var(--display); font-size: 26px; line-height: 1.2; margin-top: 1.8em; }
.post-body h3 { font-family: var(--display); font-size: 20px; margin-top: 1.5em; }
.post-body ul, .post-body ol { padding-left: 1.3em; }
.post-body li + li { margin-top: .35em; }
.post-body a { text-decoration: underline; text-underline-offset: 3px; }
.post-body blockquote { margin-left: 0; padding-left: 16px; border-left: 3px solid var(--line-strong); color: var(--muted); }
.post-body code { background: var(--surface); border: 1px solid var(--line); border-radius: 4px; padding: 1px 5px; font-size: .9em; }
.post-fig { margin: 1.6em 0; }
.post-faq { margin-top: 48px; }
.post-faq h2 { font-family: var(--display); font-size: 24px; margin-bottom: 12px; }
.post-faq details { border-top: 1px solid var(--line); padding: 14px 0; }
.post-faq details:last-child { border-bottom: 1px solid var(--line); }
.post-faq summary { cursor: pointer; font-weight: 600; }
.post-faq p { margin-top: 8px; color: var(--muted); }
.post-tags { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 14px; }
.post-cta { margin-top: 40px; }
.post-nav { margin-top: 40px; display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; }
.post-nav a { display: flex; flex-direction: column; gap: 2px; max-width: 48%; font-weight: 600; }
.post-nav .next { text-align: right; margin-left: auto; }
.post-nav .muted { font-size: 13px; font-weight: 400; }

.lightbox { border: 0; padding: 0; background: transparent; max-width: 96vw; max-height: 96vh; }
.lightbox::backdrop { background: rgba(0, 0, 0, .8); }
.lightbox img { max-width: 96vw; max-height: 92vh; display: block; border-radius: 6px; cursor: zoom-out; }
.post-body h1 { font-family: var(--display); font-size: clamp(28px, 4vw, 40px); line-height: 1.15; }
