/* Spryly — blog, category, 404 and CMS-fallback extras. Uses variables from site.css. */

/* Category chips */
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 32px; }
.chip { display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border-radius: 999px; background: var(--card); color: var(--ink); border: 1.5px solid var(--rule-2); font: 600 14.5px/1 var(--f-body); text-decoration: none; transition: background .2s, color .2s, border-color .2s; }
.chip:hover { border-color: var(--ink); }
.chip.is-on { background: var(--ink); border-color: var(--ink); color: #fff; }

/* Cards */
.post__date { margin-top: auto; padding-top: 6px; font: 500 12.5px/1 var(--f-mono); color: var(--ink-mute); }
.posts + .posts { margin-top: 20px; }

/* Empty category */
.empty { background: var(--card); border-radius: var(--r-lg); padding: clamp(32px, 6vw, 64px); box-shadow: var(--shadow-1); display: grid; gap: 14px; justify-items: start; }
.empty p { color: var(--ink-soft); margin: 0 0 8px; max-width: 52ch; }

/* Post page */
.post-head .lede { margin-top: 18px; }
.post-head h1 { max-width: 20ch; }
.post-meta { margin: 20px 0 0; font: 500 13px/1.4 var(--f-mono); color: var(--ink-mute); }
.post-meta a { color: inherit; }
.post-cover { width: 100%; max-width: 960px; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--r-lg); box-shadow: var(--shadow-1); margin: 0 0 clamp(28px, 4vw, 48px); }
.post-body { padding-bottom: clamp(40px, 6vw, 80px); }
.post-body figure { margin: 1.8em 0; }
.post-body figure img { margin: 0; max-height: 640px; width: auto; max-width: 100%; }
.post-body figcaption { margin-top: 10px; font-size: 15px; line-height: 1.5; color: var(--ink-soft); }
.post-body figcaption em { font-style: normal; }
.post-body h2 { font-size: clamp(24px, 2.6vw, 32px); }

/* 404 */
.nf { padding: clamp(48px, 8vw, 112px) 0; }
.nf__in { display: grid; justify-items: start; gap: 22px; }
.nf__code { position: relative; width: min(100%, 460px); aspect-ratio: 1; background: var(--card); border-radius: var(--r-lg); box-shadow: var(--shadow-2); display: grid; place-items: center; }
.nf__code span { font: 800 clamp(72px, 14vw, 120px)/1 var(--f-display); letter-spacing: -.04em; }
.nf__finder { position: absolute; width: 22%; aspect-ratio: 1; border: 12px solid var(--ink); border-radius: 12px; }
.nf__finder::after { content: ""; position: absolute; inset: 14%; background: var(--c, var(--ink)); border-radius: 4px; }
.nf__finder--a { left: 8%; top: 8%; --c: var(--t-contact); }
.nf__finder--b { right: 8%; top: 8%; --c: var(--t-event); }
.nf__finder--c { left: 8%; bottom: 8%; --c: var(--t-video); }
.nf__links { display: flex; flex-wrap: wrap; gap: 12px; margin: 8px 0 0; }

/* Step lists inside .prose: keep the card layout, not the bullet indent */
.prose .steps { padding-left: 0; }
.prose .steps > li { margin: 0; }

/* Phone screenshots in step-by-step posts */
.prose img[src*="event-howto"] { max-width: min(320px, 100%); margin: 1.6em auto; border-radius: 28px; box-shadow: 0 30px 60px -28px rgba(10,22,48,.45), 0 0 0 1px rgba(10,22,48,.08); }
