/* =========================================================
   Forex no Brasil — Design tokens
   Paleta: navy editorial + bronze/ouro contido (mercado, sem clichê neon)
   Tipografia: serif de apoio (Source Serif 4) + sans utilitária (IBM Plex Sans)
   Assinatura: hairline "tick" dourado acima dos eyebrows/categorias
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Source+Serif+4:opsz,wght@8..60,400;8..60,600;8..60,700&family=IBM+Plex+Sans:wght@400;500;600;700&family=IBM+Plex+Mono:wght@400;500&display=swap');

:root {
    --ink: #14191F;
    --ink-soft: #4A5560;
    --navy: #0F2745;
    --navy-deep: #0A1B30;
    --paper: #FFFFFF;
    --surface: #F4F6F8;
    --line: #E2E6EA;
    --accent: #B8842E;
    --accent-ink: #8C6420;
    --up: #1E7F5C;

    --font-display: 'Source Serif 4', Georgia, serif;
    --font-body: 'IBM Plex Sans', -apple-system, Segoe UI, sans-serif;
    --font-mono: 'IBM Plex Mono', ui-monospace, monospace;

    --max-width: 760px;
    --wide-width: 1100px;
    --radius: 4px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--font-body);
    color: var(--ink);
    background: var(--paper);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a { color: var(--navy); text-decoration: none; }
a:hover { color: var(--accent-ink); }

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

.container { max-width: var(--wide-width); margin: 0 auto; padding: 0 20px; }
.container--narrow { max-width: var(--max-width); margin: 0 auto; padding: 0 20px; }

/* ---------- Assinatura visual: hairline dourado ---------- */
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--accent-ink);
    margin-bottom: 10px;
}
.eyebrow::before {
    content: '';
    display: inline-block;
    width: 32px;
    height: 3px;
    background: var(--accent);
}

/* ---------- Header ---------- */
.site-header__nav {
    background: var(--navy);
}
.nav-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 0;
}
.logo {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 22px;
    color: #fff;
    letter-spacing: -0.01em;
}
.logo span { color: var(--accent); }

.nav-links {
    display: flex;
    gap: 26px;
    list-style: none;
    margin: 0;
    padding: 0;
}
.nav-links a {
    color: #D7DEE7;
    font-size: 14.5px;
    font-weight: 500;
}
.nav-links a:hover { color: #fff; }

.nav-toggle {
    display: none;
    background: none;
    border: 0;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
}

/* ---------- Banner de topo ---------- */
.ad-slot {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    margin: 0 auto;
}
.ad-slot__label {
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #9AA5B1;
}
.banner-topo {
    padding: 14px 0;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
}
.banner-topo img { max-width: 728px; width: 100%; border-radius: var(--radius); }

.banner-conteudo {
    margin: 32px 0;
    padding: 16px 0;
    border-top: 1px dashed var(--line);
    border-bottom: 1px dashed var(--line);
}
.banner-conteudo img { max-width: 100%; border-radius: var(--radius); }

/* ---------- Hero / destaque ---------- */
.hero {
    padding: 48px 0 40px;
    border-bottom: 1px solid var(--line);
}
.hero-post {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 40px;
    align-items: center;
}
.hero-post img {
    border-radius: var(--radius);
    aspect-ratio: 4/3;
    object-fit: cover;
}
.hero-post h1, .hero-post h2 {
    font-family: var(--font-display);
    font-size: 34px;
    line-height: 1.15;
    margin: 0 0 14px;
}
.hero-post p { color: var(--ink-soft); font-size: 16px; margin-bottom: 18px; }

.meta-row {
    font-family: var(--font-mono);
    font-size: 12.5px;
    color: var(--ink-soft);
    display: flex;
    gap: 14px;
    align-items: center;
}
.meta-row .cat-tag {
    color: var(--accent-ink);
    font-weight: 500;
}

/* ---------- Grid de artigos ---------- */
.post-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 34px;
    padding: 44px 0;
}
.post-card img {
    border-radius: var(--radius);
    aspect-ratio: 16/10;
    object-fit: cover;
    margin-bottom: 14px;
}
.post-card h3 {
    font-family: var(--font-display);
    font-size: 20px;
    line-height: 1.3;
    margin: 0 0 8px;
}
.post-card p {
    color: var(--ink-soft);
    font-size: 14.5px;
    margin: 0 0 10px;
}

.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    padding: 20px 0 60px;
    font-family: var(--font-mono);
    font-size: 14px;
}
.pagination a, .pagination span {
    padding: 8px 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    color: var(--ink);
}
.pagination .current { background: var(--navy); color: #fff; border-color: var(--navy); }

/* ---------- Artigo individual ---------- */
.article-header { padding: 44px 0 20px; }
.article-header h1 {
    font-family: var(--font-display);
    font-size: 38px;
    line-height: 1.18;
    margin: 0 0 16px;
}
.article-cover {
    margin: 26px 0 8px;
    border-radius: var(--radius);
    overflow: hidden;
}
.article-cover img { width: 100%; aspect-ratio: 16/8; object-fit: cover; }

.article-body {
    font-size: 17.5px;
    line-height: 1.75;
    color: var(--ink);
    padding: 20px 0 10px;
}
.article-body p { margin: 0 0 22px; }
.article-body h2 {
    font-family: var(--font-display);
    font-size: 26px;
    margin: 44px 0 16px;
}
.article-body h3 {
    font-family: var(--font-display);
    font-size: 21px;
    margin: 32px 0 12px;
}
.article-body img { border-radius: var(--radius); margin: 12px 0; }
.article-body blockquote {
    margin: 26px 0;
    padding: 4px 22px;
    border-left: 3px solid var(--accent);
    color: var(--ink-soft);
    font-style: italic;
}
.article-body a { text-decoration: underline; text-decoration-color: var(--line); }
.article-body ul, .article-body ol { padding-left: 22px; margin-bottom: 22px; }

.disclaimer-box {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 16px 18px;
    font-size: 13.5px;
    color: var(--ink-soft);
    margin: 36px 0;
}

.related-posts {
    padding: 40px 0 60px;
    border-top: 1px solid var(--line);
    margin-top: 20px;
}
.related-posts h2 {
    font-family: var(--font-display);
    font-size: 22px;
    margin-bottom: 24px;
}

/* ---------- Footer ---------- */
.site-footer {
    background: var(--navy-deep);
    color: #B7C1CC;
    padding: 44px 0 30px;
    margin-top: 40px;
}
.site-footer a { color: #DCE3EA; }
.site-footer .footer-cats {
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
    margin-bottom: 22px;
    font-size: 14px;
}
.footer-disclaimer {
    font-size: 12.5px;
    color: #8A97A5;
    border-top: 1px solid #1D3555;
    padding-top: 18px;
    margin-top: 18px;
    line-height: 1.6;
}
.footer-bottom {
    font-family: var(--font-mono);
    font-size: 12px;
    color: #7C8896;
    margin-top: 14px;
}

/* ---------- Responsivo ---------- */
@media (max-width: 820px) {
    .hero-post { grid-template-columns: 1fr; }
    .post-grid { grid-template-columns: 1fr; }
    .nav-links {
        position: absolute;
        top: 60px; left: 0; right: 0;
        background: var(--navy);
        flex-direction: column;
        padding: 10px 20px 20px;
        display: none;
    }
    .nav-links.open { display: flex; }
    .nav-toggle { display: block; }
    .article-header h1 { font-size: 28px; }
    .article-body { font-size: 16.5px; }
}

/* Acessibilidade: foco visível */
a:focus-visible, button:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
}
