/* Fontes alojadas localmente (variáveis, subconjunto latino) */
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400 600; font-display: swap; src: url(/assets/fonts/inter.woff2) format("woff2"); }
@font-face { font-family: "Fraunces"; font-style: normal; font-weight: 500 600; font-display: swap; src: url(/assets/fonts/fraunces.woff2) format("woff2"); }
@font-face { font-family: "Fraunces"; font-style: italic; font-weight: 500; font-display: swap; src: url(/assets/fonts/fraunces-italic.woff2) format("woff2"); }

/* Paleta tijolo, clara */
:root {
    --bg: #fcf8f5;
    --surface: #ffffff;
    --fg: #2b1f1a;
    --muted: #7b6a62;
    --line: #eadfd7;
    --brick: #b5532f;
    --brick-dark: #8c3a1f;
    --brick-soft: #f5e4da;
    --brick-tint: #fbefe8;
    --radius: 14px;
    --sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --serif: "Fraunces", ui-serif, Georgia, Cambria, serif;
    --bricks: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='32'%3E%3Cg fill='none' stroke='%23b5532f' stroke-opacity='.09' stroke-width='1.2'%3E%3Cpath d='M0 .5h64M0 16.5h64M16.5 .5v16M48.5 .5v16M.5 16.5v16M32.5 16.5v16'/%3E%3C/g%3E%3C/svg%3E");
    color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
    margin: 0;
    background: var(--bg);
    color: var(--fg);
    font: 17px/1.75 var(--sans);
    -webkit-font-smoothing: antialiased;
}
a { color: var(--brick); text-decoration-color: color-mix(in srgb, var(--brick) 35%, transparent); text-underline-offset: 3px; }
a:hover { color: var(--brick-dark); text-decoration-color: currentColor; }
img { max-width: 100%; height: auto; }
::selection { background: var(--brick-soft); }

.wrap { max-width: 760px; margin: 0 auto; padding: 0 20px; }
.wrap-wide { max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.muted { color: var(--muted); }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; background: var(--fg); color: #fff; padding: 8px 12px; border-radius: 6px; z-index: 10; }

h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; line-height: 1.2; letter-spacing: -0.01em; color: var(--fg); }
h1 { font-size: clamp(2.1rem, 5vw, 3.1rem); margin: 0 0 12px; }
h2 { font-size: 1.65rem; margin: 2.2em 0 0.7em; }
h3 { font-size: 1.25rem; margin: 1.6em 0 0.4em; }

/* Cabeçalho */
.site-header {
    position: sticky; top: 0; z-index: 5;
    background: color-mix(in srgb, var(--bg) 85%, transparent);
    backdrop-filter: saturate(1.4) blur(10px);
    -webkit-backdrop-filter: saturate(1.4) blur(10px);
    border-bottom: 1px solid var(--line);
}
.site-header .wrap-wide { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 24px; padding-block: 14px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--serif); font-weight: 600; font-size: 1.1rem; color: var(--fg); text-decoration: none; }
.brand:hover { color: var(--brick-dark); }
.brand-mark { width: 22px; height: 22px; border-radius: 5px; background: var(--brick) var(--bricks); background-size: 16px 8px; box-shadow: inset 0 0 0 1px rgb(0 0 0 / 0.06); }
.site-header ul { display: flex; flex-wrap: wrap; gap: 4px; list-style: none; margin: 0; padding: 0; font-size: 0.94rem; }
.site-header nav a { display: block; padding: 6px 12px; border-radius: 99px; color: var(--muted); text-decoration: none; font-weight: 500; }
.site-header nav a:hover { color: var(--brick-dark); background: var(--brick-tint); }
.site-header nav a[aria-current] { color: var(--brick-dark); background: var(--brick-soft); }

main { min-height: 60vh; padding-bottom: 72px; }

/* Página inicial */
.hero {
    background: var(--bricks), linear-gradient(180deg, var(--brick-tint), var(--bg));
    border-bottom: 1px solid var(--line);
    padding: 64px 0 56px;
    margin-bottom: 16px;
}
.hero-grid { display: grid; grid-template-columns: auto 1fr; gap: 44px; align-items: center; }
.hero-photo { position: relative; width: 200px; height: 200px; }
.hero-photo::before {
    content: ""; position: absolute; inset: 0; border-radius: 28px;
    background: var(--brick); transform: translate(12px, 12px) rotate(3deg); opacity: 0.85;
}
.hero-photo img {
    position: relative; width: 200px; height: 200px; object-fit: cover;
    border-radius: 28px; border: 4px solid var(--surface); box-shadow: 0 10px 30px rgb(140 58 31 / 0.18);
}
.hero h1 { margin-bottom: 14px; }
.roles { list-style: none; padding: 0; margin: 0 0 18px; color: var(--fg); font-size: 0.98rem; line-height: 1.6; }
.roles li { position: relative; padding-left: 20px; }
.roles li::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 10px; height: 6px; border-radius: 1px; background: var(--brick); }
.tagline { font-family: var(--serif); font-style: italic; font-size: 1.2rem; color: var(--brick-dark); margin: 0 0 22px; max-width: 34em; line-height: 1.5; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
    display: inline-block; padding: 6px 14px; border-radius: 99px; font-size: 0.88rem; font-weight: 500;
    background: var(--surface); color: var(--fg); border: 1px solid var(--line); text-decoration: none;
    transition: border-color .15s, color .15s, background .15s;
}
.chip:hover { border-color: var(--brick); color: var(--brick-dark); }
.chip.primary { background: var(--brick); border-color: var(--brick); color: #fff; }
.chip.primary:hover { background: var(--brick-dark); border-color: var(--brick-dark); color: #fff; }
@media (max-width: 720px) {
    .hero { padding: 40px 0; }
    .hero-grid { grid-template-columns: 1fr; gap: 28px; }
    .hero-photo, .hero-photo img { width: 150px; height: 150px; }
}

/* Cabeçalho das páginas interiores */
.page-head { background: var(--bricks), linear-gradient(180deg, var(--brick-tint), var(--bg)); border-bottom: 1px solid var(--line); padding: 44px 0 28px; margin-bottom: 36px; }
.page-head h1 { margin: 0; }
.page-head .meta { margin: 10px 0 0; }

/* Conteúdo vindo do editor */
.prose > :first-child { margin-top: 0.6em; }
.prose h2 { position: relative; padding-bottom: 10px; }
.prose h2::after { content: ""; position: absolute; left: 0; bottom: 0; width: 44px; height: 4px; border-radius: 2px; background: var(--brick); }
.prose strong { font-weight: 600; }
.prose blockquote { margin: 1.6em 0; padding: 0.6em 1.3em; border-left: 4px solid var(--brick); background: var(--brick-tint); border-radius: 0 var(--radius) var(--radius) 0; color: var(--fg); }
.prose pre { background: #2b1f1a; color: #f5e4da; padding: 16px; border-radius: var(--radius); overflow-x: auto; font-size: 0.85em; line-height: 1.55; }
.prose code { font-size: 0.88em; background: var(--brick-tint); padding: 0.1em 0.35em; border-radius: 4px; }
.prose pre code { background: none; padding: 0; }
.prose img { border-radius: var(--radius); display: block; margin: 1.6em auto; }
.prose figure { margin: 2em 0; }
.prose figure img { margin: 0 auto; }
.prose figcaption { font-size: 0.85rem; color: var(--muted); text-align: center; margin-top: 8px; }
.prose table { width: 100%; border-collapse: collapse; font-size: 0.95rem; display: block; overflow-x: auto; }
.prose th, .prose td { border: 1px solid var(--line); padding: 8px 12px; text-align: left; }
.prose th { background: var(--brick-tint); }
.prose hr { border: 0; height: 8px; background: var(--bricks); background-size: 32px 16px; margin: 3em 0; opacity: 0.8; }
.prose ul:not(.highlights) li::marker { color: var(--brick); }

/* Lista "Highlights" em cartões (classe highlights numa lista) */
.prose .highlights { list-style: none; padding: 0; margin: 1.2em 0 2em; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; }
.prose .highlights li {
    background: var(--surface); border: 1px solid var(--line); border-top: 4px solid var(--brick);
    border-radius: var(--radius); padding: 14px 16px; font-size: 0.93rem; line-height: 1.55; color: var(--muted);
    transition: transform .15s, box-shadow .15s;
}
.prose .highlights li:hover { transform: translateY(-2px); box-shadow: 0 8px 22px rgb(140 58 31 / 0.10); }
.prose .highlights strong { display: block; color: var(--fg); font-size: 1rem; margin-bottom: 4px; }

.video { position: relative; aspect-ratio: 16 / 9; margin: 2em 0; border-radius: var(--radius); overflow: hidden; background: #000; box-shadow: 0 10px 30px rgb(43 31 26 / 0.15); }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.cover { width: 100%; border-radius: var(--radius); margin: 0 0 32px; aspect-ratio: 16 / 9; object-fit: cover; }

/* Listas de artigos */
.post-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.post-list li { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; transition: border-color .15s, box-shadow .15s; }
.post-list li:hover { border-color: color-mix(in srgb, var(--brick) 40%, var(--line)); box-shadow: 0 8px 22px rgb(140 58 31 / 0.08); }
.post-list article { display: grid; grid-template-columns: 1fr; gap: 20px; }
.post-list article:has(> a img) { grid-template-columns: 170px 1fr; }
.post-list img { width: 170px; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 10px; }
.post-list h3 { margin: 0; font-size: 1.25rem; }
.post-list h3 a { color: var(--fg); text-decoration: none; }
.post-list h3 a:hover { color: var(--brick-dark); }
.post-list p { margin: 4px 0 0; }
@media (max-width: 560px) {
    .post-list article:has(> a img) { grid-template-columns: 1fr; }
    .post-list img { width: 100%; aspect-ratio: 16 / 9; }
}

.meta { color: var(--muted); font-size: 0.9rem; }
.crumbs { font-size: 0.85rem; color: var(--muted); margin-bottom: 10px; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--brick); }
.tags { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 40px 0 0; }
.tags li { background: var(--brick-tint); color: var(--brick-dark); padding: 2px 12px; border-radius: 99px; font-size: 0.85rem; }
.more { font-weight: 600; text-decoration: none; }
.pager { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 32px; font-size: 0.95rem; color: var(--muted); }
.notice { background: #fef3c7; color: #78350f; padding: 8px 14px; border-radius: 8px; font-size: 0.9rem; }

/* Rodapé */
.site-footer { background: var(--brick-tint); border-top: 1px solid var(--line); font-size: 0.92rem; padding-top: 36px; }
.site-footer .wrap-wide { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 20px; }
.site-footer p { margin: 0; }
.footer-name { font-family: var(--serif); font-weight: 600; font-size: 1.1rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: 6px 18px; list-style: none; padding: 0; margin: 0; max-width: 560px; }
.footer-links a { color: var(--fg); text-decoration: none; }
.footer-links a:hover { color: var(--brick); }
.footer-bottom { margin-top: 28px; padding-block: 16px 22px; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.85rem; }
.footer-bottom a { color: var(--muted); }
.footer-actions { display: inline-flex; align-items: center; gap: 16px; }
.footer-admin { border: 1px solid var(--line); border-radius: 999px; padding: 3px 12px; text-decoration: none; }
.footer-admin:hover { color: var(--brick); border-color: var(--brick); }

/* Destaques (YouTube, LinkedIn, Instagram, links) */
.hl-grid { list-style: none; padding: 0; margin: 0 0 28px; display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.hl-grid.hl-large { grid-template-columns: repeat(auto-fit, minmax(min(100%, 460px), 1fr)); gap: 24px; }
.hl-card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: border-color .15s, box-shadow .15s; }
.hl-card:hover { border-color: color-mix(in srgb, var(--brick) 40%, var(--line)); box-shadow: 0 8px 22px rgb(140 58 31 / 0.08); }
.hl-media { position: relative; display: block; aspect-ratio: 16 / 9; background: var(--brick-tint); }
.hl-card .video.hl-media { margin: 0; border-radius: 0; box-shadow: none; }
.hl-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hl-instagram .hl-media { aspect-ratio: 1 / 1; }
.hl-play { position: absolute; inset: 0; margin: auto; width: 60px; height: 42px; border-radius: 12px; background: rgb(0 0 0 / 0.7); }
.hl-play::after { content: ""; position: absolute; left: 25px; top: 13px; border: 8px solid transparent; border-left: 13px solid #fff; border-right: 0; }
.hl-card:hover .hl-play { background: #c00; }
.hl-body { display: flex; flex-direction: column; gap: 6px; padding: 16px 18px 18px; flex: 1; }
.hl-body h3 { margin: 0; font-size: 1.1rem; line-height: 1.35; }
.hl-large .hl-body h3 { font-size: 1.35rem; }
.hl-body h3 a { color: var(--fg); text-decoration: none; }
.hl-body h3 a:hover { color: var(--brick-dark); }
.hl-body p { margin: 0; font-size: 0.95rem; color: var(--muted); }
.hl-meta { display: flex; gap: 10px; align-items: center; font-size: 0.8rem !important; }
.hl-network { font-weight: 600; letter-spacing: .02em; text-transform: uppercase; color: var(--brick-dark); }
.hl-cta { margin-top: auto; padding-top: 6px; font-weight: 600; font-size: 0.9rem; text-decoration: none; }
.hl-filter { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.hl-filter a { padding: 4px 14px; border: 1px solid var(--line); border-radius: 99px; background: var(--surface); text-decoration: none; font-size: 0.9rem; color: var(--fg); }
.hl-filter a[aria-current] { background: var(--brick); border-color: var(--brick); color: #fff; }
.hl-follow { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 8px 0 48px; }
.hl-home { margin-top: 8px; }
.share { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 28px 0 0; }
