/* ============================================================
   site.css — estilos do site público (blog, home, páginas)
   Tema claro, tipografia legível, mobile-first.
   ============================================================ */

:root {
    --bg:        #ffffff;
    --surface:   #f7f8fa;
    --border:    #e4e7ec;
    --text:      #1a1d24;
    --muted:     #6b7280;
    --primary:   #2563eb;
    --primary-h: #1d4ed8;
    --radius:    8px;
    --max-w:     720px;
}

* { box-sizing: border-box; }

html, body {
    margin: 0;
    padding: 0;
    background: var(--bg);
    color: var(--text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 17px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-h); text-decoration: underline; }

img { max-width: 100%; height: auto; }

/* Site header */
.site-header {
    border-bottom: 1px solid var(--border);
    padding: 16px 24px;
}
.site-header .container {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.site-header .brand {
    font-weight: 700;
    font-size: 20px;
    color: var(--text);
}
.site-header .brand:hover { text-decoration: none; }
.site-header nav { display: flex; gap: 24px; }
.site-header nav a { color: var(--muted); font-size: 15px; font-weight: 500; }
.site-header nav a:hover { color: var(--text); text-decoration: none; }

/* Site footer */
.site-footer {
    border-top: 1px solid var(--border);
    padding: 32px 24px;
    margin-top: 80px;
    color: var(--muted);
    font-size: 14px;
    text-align: center;
}

/* Container central */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }
.container-wide { max-width: 1100px; margin: 0 auto; padding: 0 24px; }

/* Blog list */
.blog-hero { padding: 60px 24px 24px; text-align: center; }
.blog-hero h1 { font-size: 42px; margin-bottom: 8px; }
.blog-hero p  { color: var(--muted); }

.post-list { padding: 24px; max-width: var(--max-w); margin: 0 auto; }
.post-card {
    padding: 24px 0;
    border-bottom: 1px solid var(--border);
}
.post-card:last-child { border-bottom: 0; }
.post-card .meta {
    color: var(--muted);
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}
.post-card h2 { font-size: 26px; margin: 0 0 8px; line-height: 1.25; }
.post-card h2 a { color: var(--text); }
.post-card h2 a:hover { color: var(--primary); text-decoration: none; }
.post-card .excerpt { color: var(--muted); margin-bottom: 8px; }
.post-card .read-more { font-weight: 500; font-size: 14px; }

/* Single post */
.post-single { padding: 40px 24px; max-width: var(--max-w); margin: 0 auto; }
.post-single .meta {
    color: var(--muted);
    font-size: 14px;
    margin-bottom: 12px;
}
.post-single h1 {
    font-size: 38px;
    line-height: 1.2;
    margin: 0 0 16px;
}
.post-single .featured {
    margin: 24px -24px;
    border-radius: 0;
}
.post-single .body {
    font-size: 18px;
    line-height: 1.75;
}
.post-single .body p     { margin: 0 0 1.2em; }
.post-single .body h2    { font-size: 28px; margin: 1.6em 0 0.5em; }
.post-single .body h3    { font-size: 22px; margin: 1.4em 0 0.5em; }
.post-single .body img   { border-radius: 6px; margin: 1em 0; }
.post-single .body pre   { background: var(--surface); padding: 16px; border-radius: 6px; overflow-x: auto; font-size: 14px; }
.post-single .body code  { background: var(--surface); padding: 2px 6px; border-radius: 3px; font-size: 0.9em; }
.post-single .body pre code { background: transparent; padding: 0; }
.post-single .body blockquote {
    border-left: 4px solid var(--border);
    padding-left: 20px;
    margin: 1.4em 0;
    color: var(--muted);
}
.post-single .tags { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--border); }
.post-single .tag {
    display: inline-block;
    background: var(--surface);
    color: var(--muted);
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 13px;
    margin-right: 6px;
}

/* Pagination */
.pagination { text-align: center; padding: 32px 0; display: flex; justify-content: center; gap: 8px; }
.pagination a, .pagination span {
    padding: 8px 14px;
    border-radius: 6px;
    border: 1px solid var(--border);
    color: var(--muted);
    font-size: 14px;
}
.pagination a:hover { background: var(--surface); text-decoration: none; }
.pagination .current { background: var(--primary); color: #fff; border-color: var(--primary); }

/* 404 */
.error-page { padding: 100px 24px; text-align: center; }
.error-page h1 { font-size: 60px; margin-bottom: 8px; }
.error-page p  { color: var(--muted); }

/* Mobile */
@media (max-width: 640px) {
    .site-header .container { flex-direction: column; gap: 12px; }
    .blog-hero h1 { font-size: 32px; }
    .post-single h1 { font-size: 28px; }
    .post-single .body { font-size: 16px; }
}
