/* ============================================================
   Aurinto — generic pages, blog listing, archives, search
   ============================================================ */

.page-hero {
    padding: 72px 0 40px;
    text-align: center;
}

.page-hero .lede {
    max-width: 640px;
    margin: 0 auto;
}

/* ---------- Blog listing ---------- */

.blog-list { padding-bottom: 96px; }

.blog-list > h1 { margin-top: 64px; }

.archive-description { color: var(--muted); max-width: 640px; }

.post-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 48px;
}

@media (max-width: 980px) {
    .post-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
    .post-grid { grid-template-columns: 1fr; }
}

.post-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius-l);
    overflow: hidden;
    box-shadow: var(--shadow-s);
    transition: box-shadow .2s ease, transform .2s ease;
}

.post-card:hover { box-shadow: var(--shadow-m); transform: translateY(-2px); }

.post-card .post-thumb {
    display: block;
    aspect-ratio: 16 / 9;
    background: linear-gradient(135deg, var(--bg-tint), var(--bg-soft));
    overflow: hidden;
}

.post-card .post-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.post-card .post-body {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 22px;
    flex: 1;
}

.post-card h2 {
    font-size: 1.15rem;
    margin: 0;
    letter-spacing: -.01em;
}

.post-card h2 a { color: var(--ink); }
.post-card h2 a:hover { color: var(--primary-deep); }

.post-meta { font-size: .82rem; color: var(--muted); }

.post-card p { font-size: .93rem; color: var(--text); margin: 0; }

.post-card .btn-line { margin-top: auto; padding-top: 10px; font-size: .9rem; }

/* Empty state */
.blog-empty {
    margin: 48px auto 0;
    max-width: 520px;
    text-align: center;
    background: var(--bg-soft);
    border: 1px dashed var(--line-strong);
    border-radius: var(--radius-l);
    padding: 48px 32px;
    color: var(--muted);
}

/* ---------- Pagination ---------- */

.pagination { margin-top: 48px; text-align: center; }

.pagination .nav-links {
    display: inline-flex;
    gap: 6px;
    align-items: center;
}

.pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border-radius: 10px;
    border: 1px solid var(--line);
    background: #fff;
    color: var(--text);
    font-weight: 500;
    font-size: .92rem;
}

.pagination .page-numbers.current {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

.pagination .page-numbers:hover:not(.current) { border-color: var(--muted); color: var(--ink); }

/* ---------- Generic page prose ---------- */

.prose {
    max-width: 760px;
    margin: 0 auto;
    padding-bottom: 96px;
}

.prose h2 { font-size: 1.5rem; margin-top: 2em; }
.prose h3 { font-size: 1.2rem; margin-top: 1.6em; }

.prose img { border-radius: var(--radius); }

.prose blockquote {
    margin: 1.4em 0;
    padding: 4px 0 4px 20px;
    border-left: 3px solid var(--primary);
    color: var(--muted);
    font-style: italic;
}

.prose code {
    background: var(--bg-soft);
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 2px 6px;
    font-size: .88em;
}

.prose pre {
    background: var(--bg-deep);
    color: #d7e3f4;
    border-radius: var(--radius);
    padding: 20px;
    overflow-x: auto;
}

.prose pre code { background: none; border: 0; color: inherit; }
