/* Talon — the blog (0.14.0-20261029). Loaded on blog views only (inc/blog.php talon_blog_assets), after talon.css, so no
   other page's styles change. Tokens, type and the card look are talon.css's own (--radius, --shadow, the display face). */

/* Index: card grid */
.blog { padding-top: calc(var(--sec) * 0.75); }
.posts { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; }
@media (min-width: 600px) { .posts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 900px) { .posts { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; } }
.post-card { display: flex; }
.post-card__link { display: flex; flex-direction: column; width: 100%; background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); color: var(--text); text-decoration: none; transition: transform 0.15s ease, box-shadow 0.15s ease; }
.post-card__link:hover, .post-card__link:focus-visible { text-decoration: none; transform: translateY(-3px); box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1), 0 20px 40px -20px rgba(0, 0, 0, 0.35); }
.post-card__img { aspect-ratio: 4 / 3; overflow: hidden; background: var(--ink-3); }
.post-card__img img { width: 100%; height: 100%; object-fit: cover; }
.post-card__body { display: flex; flex-direction: column; gap: 8px; flex: 1; padding: 16px 18px 20px; }
.post-card__date { margin: 0; font-family: var(--font-display); font-weight: 600; font-size: 0.76rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--red); }
.post-card__title { margin: 0; font-size: 1.15rem; line-height: 1.2; color: var(--ink); }
.post-card__link:hover .post-card__title { color: var(--red); }
.post-card__ex { margin: 0; font-size: 0.92rem; color: var(--muted); }
.post-card__more { margin-top: auto; padding-top: 6px; display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-display); font-weight: 600; font-size: 0.78rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--red); }
@media (min-width: 900px) { .post-card__title { font-size: 1.22rem; } }

/* Index: numbered pages */
.pager { margin-top: 36px; }
.pager .nav-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.pager .page-numbers { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-width: 44px; min-height: 44px; padding: 0 14px; border: 1px solid var(--line); border-radius: 6px; background: #fff; color: var(--ink); font-family: var(--font-display); font-weight: 600; font-size: 0.9rem; letter-spacing: 0.04em; text-transform: uppercase; text-decoration: none; }
.pager a.page-numbers:hover, .pager a.page-numbers:focus-visible { border-color: var(--red); color: var(--red); text-decoration: none; }
.pager .page-numbers.current { background: var(--ink); border-color: var(--ink); color: #fff; }
.pager .page-numbers.dots { border-color: transparent; background: transparent; min-width: 24px; padding: 0; }

/* Index: nothing published yet */
.blog-empty { max-width: 640px; margin: 0 auto; padding: 32px 24px; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); text-align: center; }
.blog-empty p { color: var(--muted); }

/* A post: title band */
.hero--post h1 { max-width: 30ch; }
.hero__meta { margin: 0; font-family: var(--font-display); font-weight: 600; font-size: 0.82rem; letter-spacing: 0.1em; text-transform: uppercase; color: #fff; text-shadow: 0 1px 6px rgba(0, 0, 0, 0.6); }
.hero__meta a { color: #fff; text-decoration: underline; text-underline-offset: 0.15em; }

/* A post: featured image + body (the site's .prose, plus the blocks a post can hold) */
.post { min-width: 0; max-width: 760px; }
.post__img { margin: 0 0 28px; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.post__img img { width: 100%; height: auto; }
.post__img figcaption, .post__body figcaption { font-size: 0.8rem; color: var(--muted); padding: 8px 12px; background: var(--paper); }
.post__body { max-width: none; }
.post__body h3 { margin-top: 1.4em; }
.post__body h4 { font-size: 1.05rem; margin-top: 1.3em; }
.post__body ol { padding-left: 1.3em; }
.post__body img { border-radius: var(--radius); }
.post__body figure img { border-radius: 0; }
.post__body .wp-block-image { margin: 1.4em 0; }
.post__body .wp-block-image.aligncenter, .post__body .aligncenter { margin-left: auto; margin-right: auto; text-align: center; }
.post__body blockquote { margin: 1.5em 0; padding: 16px 20px; background: var(--paper); border-left: 4px solid var(--red); border-radius: 0 var(--radius) var(--radius) 0; font-size: 1.06em; color: var(--ink); }
.post__body blockquote p:last-child { margin-bottom: 0; }
.post__body blockquote cite { display: block; margin-top: 8px; font-size: 0.82rem; font-style: normal; color: var(--muted); }
.post__back { margin: 36px 0 0; padding-top: 20px; border-top: 1px solid var(--line); }
.post__back a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-family: var(--font-display); font-weight: 600; font-size: 0.85rem; letter-spacing: 0.06em; text-transform: uppercase; }
.post__back .ico { transform: rotate(180deg); }
