/* =========================================================
   Paleta de Natan Klein
   Auburn #963636 · Copper #B86A32 · Dun #D2C2B5 · Platinum #EAE5E0
   French gray #BCC1C5 · Air superiority blue #6899B4 · Midnight green #144B5F

   As regras usam só os tokens semânticos abaixo; o modo escuro redefine os tokens.
   ========================================================= */
:root {
  --bg: #F6F2ED;            /* papel sépia claro */
  --surface: #FCFAF7;       /* cartões */
  --surface-2: #EAE5E0;     /* Platinum: código, avisos */
  --line: #D2C2B5;          /* Dun */
  --line-soft: #EAE5E0;
  --text: #1B2B33;
  --text-soft: #4A5A62;
  --heading: #1B2B33;
  --link: #144B5F;          /* Midnight green */
  --link-hover: #963636;    /* Auburn */
  --red: #963636;           /* Auburn: destaques */
  --blue: #6899B4;          /* Air superiority blue: detalhes */
  --blue-tint: color-mix(in srgb, #6899B4 16%, transparent);
  --red-tint: color-mix(in srgb, #963636 9%, transparent);
  --primary: #963636;
  --primary-hover: #144B5F;
  --on-primary: #FFFFFF;
  --band: #144B5F;          /* faixas escuras: chamadas e rodapé */
  --band-deep: #103D4D;
  --on-band: #EAE5E0;
  --on-band-soft: #BCC1C5;
  --tag-text: #144B5F;
  --pre-bg: #1D2F37;
  --pre-text: #EAE5E0;
  --focus: #B86A32;         /* Copper */
  --shadow: rgba(27, 43, 51, .18);

  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Source Serif 4", Georgia, "Times New Roman", serif;
  --font-ui: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --measure: 68ch;
  --radius: 10px;
  --gutter: clamp(16px, 4vw, 40px);
  color-scheme: light;
}

/* Modo escuro "leve": azul-acinzentado derivado do Midnight green, sem preto puro. */
@media screen {
  html[data-theme="dark"] {
    --bg: #222C31;
    --surface: #2A363C;
    --surface-2: #334148;
    --line: #435259;
    --line-soft: #36444B;
    --text: #E6E0D9;
    --text-soft: #B4BCC0;
    --heading: #F2EDE7;
    --link: #93C1D9;
    --link-hover: #E7A09A;
    --red: #E0938D;
    --blue: #86B0C8;
    --blue-tint: color-mix(in srgb, #6899B4 22%, transparent);
    --red-tint: color-mix(in srgb, #E0938D 12%, transparent);
    --primary: #B54F4F;
    --primary-hover: #3D7390;
    --on-primary: #FFFFFF;
    --band: #1A3A47;
    --band-deep: #1B2327;
    --on-band: #E6E0D9;
    --on-band-soft: #B4BCC0;
    --tag-text: #B5D3E3;
    --pre-bg: #1B2327;
    --pre-text: #E6E0D9;
    --focus: #D99A68;
    --shadow: rgba(0, 0, 0, .35);
    color-scheme: dark;
  }
}

/* ---------- idioma: mostra só o idioma ativo ---------- */
html[lang="pt-BR"] [data-lang="en"],
html[lang="en"] [data-lang="pt"] { display: none !important; }

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.125rem;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  transition: background-color .2s ease, color .2s ease;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--link); text-decoration-color: color-mix(in srgb, var(--link) 35%, transparent); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--link-hover); text-decoration-color: currentColor; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.15;
  color: var(--heading);
  font-variation-settings: "opsz" 96;
  letter-spacing: -0.01em;
  margin: 0 0 .5em;
}
h1 { font-size: clamp(2.3rem, 5.5vw, 3.6rem); }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.1rem); }
h3 { font-size: 1.3rem; font-variation-settings: "opsz" 36; }
p { margin: 0 0 1em; }

.container { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 var(--gutter); }

.skip-link {
  position: absolute; left: -9999px; top: 8px;
  background: var(--band); color: var(--on-band); padding: 8px 14px; border-radius: 6px; z-index: 100;
  font-family: var(--font-ui); font-size: .9rem;
}
.skip-link:focus { left: 8px; }

/* ---------- cabeçalho ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: saturate(1.2) blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px;
  background: linear-gradient(90deg, var(--red) 0 50%, var(--blue) 50% 100%);
}
.header-inner { display: flex; align-items: center; gap: 24px; min-height: 68px; }
.brand {
  font-family: var(--font-display); font-size: 1.35rem; font-weight: 600;
  color: var(--heading); text-decoration: none; white-space: nowrap; letter-spacing: -0.01em;
}
.brand:hover { color: var(--red); }

.site-nav { display: flex; align-items: center; gap: 20px; margin-left: auto; }
.site-nav ul { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.site-nav a:not(.btn) {
  font-family: var(--font-ui); font-size: .9rem; font-weight: 500;
  color: var(--text-soft); text-decoration: none;
  padding: 8px 10px; border-radius: 6px; display: block;
}
.site-nav a:not(.btn):hover { color: var(--link); background: var(--blue-tint); }
.site-nav a[aria-current="page"] { color: var(--red); box-shadow: inset 0 -2px 0 var(--red); border-radius: 0; }
.nav-actions { display: flex; align-items: center; gap: 8px; }

.lang-toggle, .theme-toggle {
  font-family: var(--font-ui); font-size: .8rem; letter-spacing: .04em;
  background: transparent; color: var(--text-soft);
  border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px; cursor: pointer;
}
.lang-toggle b { color: var(--link); font-weight: 600; }
.lang-toggle:hover, .theme-toggle:hover { border-color: var(--blue); color: var(--link); }
.lang-toggle, .theme-toggle { height: 34px; display: inline-flex; align-items: center; gap: 6px; }
.theme-toggle svg { width: 15px; height: 15px; flex: none; }
.theme-toggle .icon-sun, .theme-toggle .theme-label-light { display: none; }
html[data-theme="dark"] .theme-toggle .icon-sun,
html[data-theme="dark"] .theme-toggle .theme-label-light { display: inline; }
html[data-theme="dark"] .theme-toggle .icon-moon,
html[data-theme="dark"] .theme-toggle .theme-label-dark { display: none; }

.nav-toggle {
  display: none; margin-left: auto;
  font-family: var(--font-ui); font-size: .9rem; font-weight: 500; color: var(--text);
  background: transparent; border: 1px solid var(--line); border-radius: 8px; padding: 8px 12px; cursor: pointer;
  align-items: center; gap: 8px;
}
.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after {
  display: block; width: 16px; height: 2px; background: currentColor; border-radius: 2px; position: relative;
}
.nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle-bars::before { top: -5px; }
.nav-toggle-bars::after { top: 5px; }

@media (max-width: 1140px) {
  .nav-toggle { display: inline-flex; }
  .site-nav {
    display: none;
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 12px;
    background: var(--bg); border-bottom: 1px solid var(--line);
    padding: 12px var(--gutter) 20px;
    box-shadow: 0 12px 24px -16px var(--shadow);
  }
  .site-nav.is-open { display: flex; }
  .site-nav ul { flex-direction: column; gap: 0; }
  .site-nav a:not(.btn) { padding: 12px 4px; font-size: 1rem; border-bottom: 1px solid var(--line-soft); border-radius: 0; }
  .site-nav a[aria-current="page"] { box-shadow: inset 3px 0 0 var(--red); padding-left: 12px; }
  .nav-actions { padding-top: 4px; }
  .nav-actions .btn { margin-right: auto; }
}

/* ---------- botões ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-ui); font-size: .95rem; font-weight: 500;
  background: var(--primary); color: var(--on-primary); text-decoration: none;
  padding: 11px 20px; border-radius: 999px; border: 1px solid var(--primary); cursor: pointer;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.btn:hover { background: var(--primary-hover); border-color: var(--primary-hover); color: var(--on-primary); }
.btn-ghost { background: transparent; color: var(--link); border-color: var(--blue); }
.btn-ghost:hover { background: var(--primary-hover); border-color: var(--primary-hover); color: var(--on-primary); }
.btn-small { padding: 6px 14px; font-size: .82rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }

/* ---------- tipografia utilitária ---------- */
.eyebrow {
  font-family: var(--font-ui); font-size: .78rem; font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase; color: var(--red); margin-bottom: .9em;
}
.lede { font-size: clamp(1.2rem, 2.2vw, 1.4rem); line-height: 1.5; color: var(--text-soft); max-width: 40ch; }
.muted { color: var(--text-soft); }
.small { font-size: .92rem; }

/* ---------- seções ---------- */
main { padding-bottom: 72px; }
.section { padding: 56px 0 8px; }
.section + .section { border-top: 1px solid var(--line); margin-top: 40px; }
.section h2::after {
  content: ""; display: block; width: 44px; height: 3px; margin-top: .4em; border-radius: 2px;
  background: linear-gradient(90deg, var(--red) 0 60%, var(--blue) 60% 100%);
}
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.section-head h2 { margin: 0; }
.section-head a { font-family: var(--font-ui); font-size: .9rem; }
.readable { max-width: var(--measure); }

.page-header { padding: 64px 0 24px; max-width: 760px; }
.page-header h1 { margin-bottom: .35em; }
.page-header h1::after {
  content: ""; display: block; width: 64px; height: 4px; margin-top: .3em; border-radius: 2px;
  background: linear-gradient(90deg, var(--red) 0 60%, var(--blue) 60% 100%);
}

/* ---------- hero (Bio) ---------- */
.hero {
  display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .85fr);
  gap: clamp(32px, 6vw, 80px); align-items: center; padding: 64px 0 40px;
}
.hero h1 { font-size: clamp(2.8rem, 7vw, 4.6rem); margin-bottom: .2em; }
.hero .lede { max-width: 34ch; margin-bottom: 1.4em; }

/* foto em círculo, com um círculo azul atrás e um contorno vermelho deslocado */
.portrait { display: block; position: relative; justify-self: end; width: 100%; max-width: 380px; aspect-ratio: 1; }
.portrait::before, .portrait::after { content: ""; position: absolute; border-radius: 50%; }
.portrait::before { inset: -14px 14px 14px -14px; background: var(--blue); opacity: .55; }
.portrait::after { inset: 14px -14px -14px 14px; border: 2px solid var(--red); }
.portrait img {
  position: relative; z-index: 1; width: 100%; height: 100%;
  border-radius: 50%; object-fit: cover; object-position: 50% 18%;
  border: 6px solid var(--bg); background: var(--blue);
}

.formula {
  font-family: var(--font-display); font-style: italic; font-size: clamp(1.25rem, 2.6vw, 1.7rem);
  line-height: 1.4; color: var(--link);
  background: var(--blue-tint); border-left: 4px solid var(--red); border-radius: 0 var(--radius) var(--radius) 0;
  padding: 20px 24px; margin: 8px 0 0; max-width: 46ch;
}
.formula .op { color: var(--red); font-style: normal; padding: 0 .15em; }

@media (max-width: 760px) {
  .hero { grid-template-columns: 1fr; padding-top: 48px; }
  .portrait { justify-self: start; max-width: 240px; order: -1; margin: 0 0 16px 14px; }
}

/* ---------- cartões ---------- */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 20px; }
.card-grid-4 { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.card-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (min-width: 600px) and (max-width: 1000px) { .card-grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 900px) { .card-grid-3 { grid-template-columns: 1fr; } }
.card {
  background: var(--surface); border: 1px solid var(--line); border-top: 3px solid var(--blue);
  border-radius: var(--radius); padding: 24px; display: flex; flex-direction: column;
}
.card:nth-child(even) { border-top-color: var(--red); }
.card h3 { margin-bottom: .4em; }
.card p { font-size: 1rem; color: var(--text-soft); }
.card .card-links { margin-top: auto; margin-bottom: 0; display: flex; flex-wrap: wrap; gap: 16px; }
.card-links a { font-family: var(--font-ui); font-size: .9rem; font-weight: 500; text-decoration: none; }
.card-kicker { font-family: var(--font-ui); font-size: .78rem; color: var(--red); font-weight: 500; letter-spacing: .04em; margin-bottom: .6em; }
a.card { text-decoration: none; color: inherit; transition: border-color .15s ease, transform .15s ease, box-shadow .15s ease; }
a.card:hover { border-color: var(--blue); transform: translateY(-2px); box-shadow: 0 10px 24px -18px var(--shadow); color: inherit; }
a.card .more { margin-top: auto; margin-bottom: 0; font-family: var(--font-ui); font-size: .9rem; font-weight: 500; color: var(--link); }
a.card:hover .more { color: var(--red); }

.tags { list-style: none; padding: 0; margin: 0 0 16px; display: flex; flex-wrap: wrap; gap: 6px; }
.tags li {
  font-family: var(--font-ui); font-size: .75rem; color: var(--tag-text);
  background: var(--blue-tint); padding: 3px 10px; border-radius: 999px;
}

/* ---------- linha do tempo / listas ---------- */
.timeline { list-style: none; padding: 0; margin: 0; }
.timeline li { display: grid; grid-template-columns: 150px 1fr; gap: 20px; padding: 18px 0; border-bottom: 1px solid var(--line-soft); }
.timeline li:last-child { border-bottom: 0; }
.timeline .when { font-family: var(--font-ui); font-size: .85rem; color: var(--red); padding-top: 4px; margin: 0; }
.timeline h3 { margin-bottom: .15em; font-size: 1.2rem; }
.timeline p { margin: 0; color: var(--text-soft); font-size: 1rem; }
@media (max-width: 600px) { .timeline li { grid-template-columns: 1fr; gap: 2px; } }

.pill-list { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.pill-list li {
  font-family: var(--font-ui); font-size: .88rem; padding: 6px 14px; color: var(--tag-text);
  border: 1px solid color-mix(in srgb, var(--blue) 45%, transparent); border-radius: 999px; background: var(--blue-tint);
}

.two-col { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px; }
@media (max-width: 760px) { .two-col { grid-template-columns: 1fr; gap: 24px; } }

.check-list { list-style: none; padding: 0; margin: 0 0 1em; }
.check-list li { position: relative; padding-left: 28px; margin-bottom: .6em; }
.check-list li::before {
  content: ""; position: absolute; left: 4px; top: .6em; width: 10px; height: 10px;
  border-radius: 50%; background: var(--red);
}
.check-list li:nth-child(even)::before { background: var(--blue); }

/* ---------- artigos ---------- */
.post-list { list-style: none; padding: 0; margin: 0; }
.post { border-bottom: 1px solid var(--line); }
.post:first-child { border-top: 1px solid var(--line); }
.post a { display: block; padding: 24px 0 24px 0; text-decoration: none; color: inherit; border-left: 3px solid transparent; transition: padding .15s ease, border-color .15s ease; }
.post a:hover { border-left-color: var(--red); padding-left: 16px; }
.post a:hover .post-title { color: var(--red); }
.post-meta { font-family: var(--font-ui); font-size: .82rem; color: var(--text-soft); margin-bottom: .4em; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.post-title { font-size: clamp(1.3rem, 2.4vw, 1.6rem); margin-bottom: .3em; transition: color .15s ease; }
.post-summary { color: var(--text-soft); margin: 0; max-width: var(--measure); }
.badge {
  font-family: var(--font-ui); font-size: .7rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
  color: var(--link); border: 1px solid var(--blue); border-radius: 4px; padding: 1px 6px;
}
.badge-draft { color: var(--red); border-color: var(--red); }
.empty { color: var(--text-soft); font-style: italic; }

.article { max-width: 720px; margin: 0 auto; padding-top: 48px; }
.back-link { font-family: var(--font-ui); font-size: .9rem; text-decoration: none; display: inline-block; margin-bottom: 32px; }
.article-header { margin-bottom: 40px; padding-bottom: 28px; border-bottom: 1px solid var(--line); }
.article-header h1 { font-size: clamp(2.1rem, 5vw, 3.1rem); }
.article-header .lede { max-width: none; margin: 0; }
.notice {
  font-family: var(--font-ui); font-size: .9rem; background: var(--blue-tint);
  border-left: 3px solid var(--blue); padding: 10px 16px; border-radius: 0 6px 6px 0; margin-bottom: 32px;
}

/* corpo do artigo gerado a partir do Markdown */
.prose { font-size: 1.18rem; line-height: 1.75; }
.prose > * + * { margin-top: 1.1em; }
.prose p, .prose ul, .prose ol, .prose blockquote, .prose pre, .prose table, .prose figure { margin-bottom: 0; }
.prose h2 { font-size: 1.75rem; margin-top: 1.8em; }
.prose h3 { font-size: 1.35rem; margin-top: 1.5em; }
.prose h2 + *, .prose h3 + * { margin-top: .5em; }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose li + li { margin-top: .35em; }
.prose li::marker { color: var(--red); }
.prose blockquote {
  margin-left: 0; margin-right: 0; padding: 12px 20px; border-left: 3px solid var(--red);
  background: var(--red-tint); border-radius: 0 8px 8px 0;
  font-style: italic; color: var(--text-soft);
}
.prose img { border-radius: 8px; margin: 1.6em auto; }
.prose hr { border: 0; text-align: center; margin: 2.4em 0; }
.prose hr::after { content: "· · ·"; color: var(--red); letter-spacing: .5em; font-size: 1.2rem; }
.prose code {
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace; font-size: .86em;
  background: var(--surface-2); padding: .12em .38em; border-radius: 4px;
}
.prose pre {
  background: var(--pre-bg); color: var(--pre-text); padding: 18px 20px; border-radius: 8px; overflow-x: auto;
  font-size: .9rem; line-height: 1.55; border-left: 3px solid var(--blue);
}
.prose pre code { background: none; padding: 0; color: inherit; font-size: inherit; }
.prose table { width: 100%; border-collapse: collapse; font-family: var(--font-ui); font-size: .92rem; display: block; overflow-x: auto; }
.prose th, .prose td { border-bottom: 1px solid var(--line); padding: 8px 10px; text-align: left; }
.prose th { font-weight: 600; color: var(--link); border-bottom: 2px solid var(--blue); }
.prose .footnotes { font-size: .95rem; color: var(--text-soft); border-top: 1px solid var(--line); margin-top: 3em; padding-top: 1em; }
.prose .footnotes h2 { font-size: 1.1rem; font-family: var(--font-ui); font-weight: 600; margin-top: 0; }
.prose sup a { text-decoration: none; font-family: var(--font-ui); font-size: .75em; padding: 0 .1em; }
.article .tags { margin-top: 40px; }

/* ---------- publicações ---------- */
.pub-list { list-style: none; padding: 0; margin: 0; }
.pub { display: grid; grid-template-columns: 72px 1fr; gap: 20px; padding: 24px 0; border-bottom: 1px solid var(--line); }
.pub:first-child { border-top: 1px solid var(--line); }
.pub-year { font-family: var(--font-display); font-size: 1.4rem; color: var(--red); margin: 0; line-height: 1.2; }
.pub-title { font-family: var(--font-display); font-size: 1.22rem; line-height: 1.3; margin-bottom: .4em; }
.pub-title a { color: var(--heading); text-decoration: none; }
.pub-title a:hover { color: var(--red); }
.pub-authors, .pub-venue { font-size: .98rem; color: var(--text-soft); margin-bottom: .2em; }
.pub-authors strong { color: var(--text); font-weight: 600; }
.doi { font-family: var(--font-ui); font-size: .82rem; color: var(--link); }
.pub-summary { font-size: 1rem; margin-top: .7em; margin-bottom: 0; }
@media (max-width: 600px) { .pub { grid-template-columns: 1fr; gap: 4px; } }

/* ---------- contato ---------- */
.contact-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.contact-list a {
  display: flex; flex-direction: column; gap: 2px; text-decoration: none;
  background: var(--surface); border: 1px solid var(--line); border-left: 3px solid var(--blue);
  border-radius: var(--radius); padding: 18px 20px; transition: border-color .15s ease;
}
.contact-list li:nth-child(even) a { border-left-color: var(--red); }
.contact-list a:hover { border-color: var(--blue); }
.contact-list .label { font-family: var(--font-ui); font-size: .76rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--red); }
.contact-list .value { color: var(--text); font-size: 1.05rem; overflow-wrap: anywhere; }

.callout {
  background: var(--band); color: var(--on-band); border-radius: 14px;
  padding: clamp(24px, 4vw, 40px); margin-top: 48px; position: relative; overflow: hidden;
}
.callout::after {
  content: ""; position: absolute; right: -60px; top: -60px; width: 200px; height: 200px; border-radius: 50%;
  border: 24px solid color-mix(in srgb, var(--blue) 45%, transparent); pointer-events: none;
}
.callout h2 { color: #fff; }
.callout p { color: var(--on-band); max-width: 60ch; }
.callout .btn { background: #963636; border-color: #963636; color: #fff; position: relative; z-index: 1; }
.callout .btn:hover { background: #B54F4F; border-color: #B54F4F; }
.callout .btn-ghost { background: transparent; color: var(--on-band); border-color: color-mix(in srgb, var(--on-band) 50%, transparent); }
.callout .btn-ghost:hover { background: #6899B4; border-color: #6899B4; color: #fff; }

/* ---------- CV ---------- */
.cv { max-width: 820px; margin: 0 auto; padding-top: 48px; }
.cv-toolbar { display: flex; justify-content: flex-end; gap: 10px; margin-bottom: 24px; }
.cv-sheet { background: var(--surface); border: 1px solid var(--line); border-top: 4px solid var(--red); border-radius: 6px; padding: clamp(24px, 5vw, 56px); }
.cv-head { display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center; border-bottom: 2px solid var(--blue); padding-bottom: 20px; margin-bottom: 8px; }
.cv-head h1 { font-size: 2.4rem; margin-bottom: .1em; }
.cv-head img { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; object-position: 50% 20%; }
.cv-contact { font-family: var(--font-ui); font-size: .82rem; color: var(--text-soft); margin: 0; display: flex; flex-wrap: wrap; gap: 4px 14px; }
.cv-contact a { color: inherit; }
.cv h2 {
  font-family: var(--font-ui); font-size: .78rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--red); margin: 28px 0 10px;
}
.cv-item { display: grid; grid-template-columns: 1fr auto; gap: 4px 16px; margin-bottom: 12px; font-size: 1rem; }
.cv-item h3 { font-size: 1.08rem; margin: 0; }
.cv-item .when { font-family: var(--font-ui); font-size: .82rem; color: var(--text-soft); white-space: nowrap; }
.cv-item p { grid-column: 1 / -1; margin: 0; color: var(--text-soft); font-size: .96rem; }
.cv-pubs { padding-left: 1.2em; margin: 0; font-size: .95rem; }
.cv-pubs li { margin-bottom: .5em; }
.cv-pubs li::marker { color: var(--red); }
.cv p { font-size: 1rem; }
@media (max-width: 600px) {
  .cv-head { grid-template-columns: 1fr; }
  .cv-head img { order: -1; }
  .cv-item { grid-template-columns: 1fr; }
}

/* ---------- rodapé ---------- */
.site-footer {
  background: var(--band-deep); color: var(--on-band); padding: 40px 0; margin-top: 24px;
  font-family: var(--font-ui); font-size: .88rem; border-top: 4px solid var(--red);
}
.footer-inner { display: grid; gap: 12px; }
.footer-name { font-family: var(--font-display); font-size: 1.3rem; margin: 0; color: #fff; }
.footer-links { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px 18px; }
.footer-links a { color: var(--on-band); text-decoration: none; }
.footer-links a:hover { color: #fff; text-decoration: underline; text-decoration-color: #6899B4; }
.footer-note { color: var(--on-band-soft); margin: 0; }

/* ---------- impressão (CV → PDF) ---------- */
@media print {
  @page { margin: 14mm; }
  body { background: #fff; font-size: 10.5pt; }
  .site-header, .site-footer, .skip-link, .cv-toolbar, .no-print { display: none !important; }
  main { padding: 0; }
  .container { padding: 0; max-width: none; }
  .cv { padding: 0; max-width: none; }
  .cv-sheet { border: 0; padding: 0; background: #fff; }
  .cv h2 { break-after: avoid; }
  .cv-item, .cv-pubs li { break-inside: avoid; }
  a { color: inherit; text-decoration: none; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}
