/* ==========================================================================
   PresenceReport — Blog styles (feed, cards, single post)
   Uses the shared tokens from styles.css (--ink, --brand, --accent, etc.)
   ========================================================================== */

/* ---------- Feed ---------- */
.blog-feed { padding: 72px 0 96px; }
.feed-head { max-width: 720px; margin: 0 auto 48px; text-align: center; }
.feed-head .eyebrow { justify-content: center; }
.feed-lede { font-size: 18px; line-height: 1.6; color: var(--ink-body); margin: 8px auto 28px; max-width: 620px; }

/* Search form */
.feed-search {
    position: relative; display: flex; align-items: center; gap: 10px;
    max-width: 520px; margin: 0 auto;
}
.feed-search-icon {
    position: absolute; left: 16px; font-size: 18px; color: var(--ink-mute); pointer-events: none;
}
.feed-search-input {
    flex: 1; font-family: var(--font-sans); font-size: 15px; color: var(--ink);
    background: var(--surface); border: 1px solid var(--line); border-radius: 10px;
    padding: 13px 16px 13px 44px; outline: none; transition: border-color .2s ease, box-shadow .2s ease;
}
.feed-search-input:focus { border-color: var(--brand-soft); box-shadow: 0 0 0 3px rgba(143,188,197,.25); }
.feed-search-btn { flex: none; }

/* Category filters */
.feed-filters {
    display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 0 0 40px;
}
.feed-filter {
    font-family: var(--font-mono); font-size: 12px; font-weight: 500; letter-spacing: .04em;
    text-transform: uppercase; color: var(--ink-body);
    background: var(--pale-soft); border: 1px solid var(--line);
    padding: 8px 14px; border-radius: 999px; transition: all .2s ease;
}
.feed-filter:hover { color: var(--brand); border-color: var(--brand-soft); }
.feed-filter.is-active { background: var(--brand); color: #fff; border-color: var(--brand); }

/* ---------- Card grid ---------- */
.feed-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px;
}
.feed-empty { grid-column: 1 / -1; text-align: center; color: var(--ink-mute); padding: 40px 0; }

.post-card {
    background: var(--surface); border: 1px solid var(--line); border-radius: 16px;
    overflow: hidden; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--brand-soft); }
.post-card-link { display: flex; flex-direction: column; height: 100%; color: inherit; }
.post-card-media { aspect-ratio: 1200 / 630; overflow: hidden; background: var(--pale-soft); }
.post-card-media img { width: 100%; height: 100%; object-fit: cover; }
.post-card-body { padding: 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.post-card-cat {
    font-family: var(--font-mono); font-size: 11px; font-weight: 500; letter-spacing: .08em;
    text-transform: uppercase; color: var(--brand);
}
.post-card-title { font-size: 20px; line-height: 1.25; font-weight: 700; letter-spacing: -0.01em; color: var(--ink); }
.post-card-excerpt { font-size: 15px; line-height: 1.6; color: var(--ink-body); }
.post-card-meta { margin-top: auto; font-size: 13px; color: var(--ink-mute); font-family: var(--font-mono); }

/* ---------- Pagination ---------- */
.pagination { margin-top: 56px; display: flex; justify-content: center; }
.pagination .nav-links { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.pagination .page-numbers {
    display: inline-flex; align-items: center; justify-content: center; min-width: 42px; height: 42px;
    padding: 0 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface);
    font-size: 14px; font-weight: 600; color: var(--ink-body); transition: all .2s ease;
}
.pagination .page-numbers:hover { border-color: var(--brand-soft); color: var(--brand); }
.pagination .page-numbers.current { background: var(--brand); color: #fff; border-color: var(--brand); }
.pagination .page-numbers.dots { border: none; background: transparent; }

/* ---------- Single post ---------- */
.post { padding: 72px 0 96px; }
.post-inner { max-width: 760px; margin: 0 auto; }
.post-header { max-width: 720px; margin: 0 auto 32px; text-align: center; }
.post-header .eyebrow { justify-content: center; }
.post-title {
    font-size: clamp(32px, 4.6vw, 52px); line-height: 1.08; font-weight: 700;
    letter-spacing: -0.022em; color: var(--ink); margin: 14px 0 18px;
}
.post-meta {
    display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 10px;
    font-size: 14px; color: var(--ink-mute);
}
.post-meta .dot { color: var(--line); }
.post-meta time { font-family: var(--font-mono); }

.post-featured { margin: 0 0 40px; border-radius: 16px; overflow: hidden; box-shadow: var(--shadow-md); }
.post-featured img { width: 100%; height: auto; display: block; }

/* the_content typography */
.post-body { font-size: 18px; line-height: 1.75; color: var(--ink-body); }
.post-body > * { margin-bottom: 22px; }
.post-body > *:last-child { margin-bottom: 0; }
.post-body h2 {
    font-size: clamp(24px, 3vw, 32px); line-height: 1.2; font-weight: 700;
    letter-spacing: -0.015em; color: var(--ink); margin: 52px 0 18px;
}
.post-body h3 { font-size: 22px; font-weight: 700; color: var(--ink); margin: 40px 0 14px; }
.post-body ul, .post-body ol { padding-left: 26px; }
.post-body li { margin-bottom: 12px; }
.post-body a { color: var(--brand); text-decoration: underline; text-underline-offset: 2px; }
.post-body a:hover { color: var(--accent); }
.post-body strong { color: var(--ink); font-weight: 600; }
.post-body blockquote {
    border-left: 3px solid var(--brand-soft); padding: 4px 0 4px 20px; margin-left: 0;
    color: var(--ink); font-style: italic;
}
.post-body img { border-radius: 12px; }
.post-body code {
    font-family: var(--font-mono); font-size: 0.9em; background: var(--pale-soft);
    padding: 2px 6px; border-radius: 5px; color: var(--ink);
}

/* CTA */
.post-cta {
    margin: 56px 0 0; padding: 36px; background: var(--pale-soft);
    border: 1px solid var(--line); border-radius: 16px; text-align: center;
}
.post-cta h3 { font-size: 24px; font-weight: 700; color: var(--ink); margin-bottom: 10px; letter-spacing: -0.01em; }
.post-cta p { font-size: 16px; line-height: 1.6; color: var(--ink-body); margin-bottom: 24px; max-width: 520px; margin-left: auto; margin-right: auto; }

/* Screen-reader helper */
.screen-reader-text {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden;
    clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
    .feed-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
    .blog-feed, .post { padding: 48px 0 72px; }
    .feed-grid { grid-template-columns: 1fr; }
    .feed-search { flex-direction: column; }
    .feed-search-btn { width: 100%; }
    .post-body { font-size: 17px; }
}
