:root {
  --brand: #3a5044;
  --brand-deep: #2f4237;
  --ink: #262a28;
  --muted: #5e6360;
  --soft: #7a7f7c;
  --rule: #dde2df;
  --panel: #eef1ef;
  --on-brand: #f4f6f4;
  --display: "Montserrat", "Helvetica Neue", Arial, sans-serif;
  --text: "Source Sans 3", "Helvetica Neue", Arial, sans-serif;
  --max: 1160px;
  --gutter: clamp(20px, 5vw, 56px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: #fff;
  color: var(--ink);
  font-family: var(--text);
  font-size: 18px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
.wrap { max-width: var(--max); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
h1, h2, h3 { font-family: var(--display); margin: 0; }

/* Faixa verde: cabeçalho + abertura, como no papel timbrado */
.masthead { background: var(--brand); color: var(--on-brand); position: relative; overflow: hidden; }
.chevrons { position: absolute; left: 0; bottom: 0; width: 120px; height: auto; pointer-events: none; }
.mark-large { position: absolute; right: var(--gutter); bottom: clamp(64px, 9vw, 120px); width: clamp(120px, 14vw, 190px); color: var(--on-brand); opacity: .9; }
header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-top: 28px; padding-bottom: 28px; position: relative; }
.brand { display: flex; align-items: center; gap: 16px; }
.brand svg { width: 38px; height: auto; flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text b { font-family: var(--display); font-weight: 600; font-size: 21px; letter-spacing: .01em; }
.brand-text span { font-family: var(--display); font-weight: 300; font-size: 13px; letter-spacing: .04em; opacity: .85; margin-top: 3px; }
nav { display: flex; gap: 34px; font-family: var(--display); font-weight: 400; font-size: 14px; }
nav a { opacity: .85; padding-bottom: 3px; border-bottom: 1px solid transparent; transition: opacity .2s, border-color .2s; }
nav a:hover { opacity: 1; border-color: currentColor; }

.hero { position: relative; padding-top: clamp(64px, 11vw, 140px); padding-bottom: 170px; }
.hero h1 { font-weight: 300; font-size: clamp(34px, 4.8vw, 60px); line-height: 1.18; letter-spacing: -.01em; max-width: 20ch; }
.hero h1 strong { font-weight: 600; }

/* Seções */
section { padding-top: clamp(64px, 9vw, 110px); padding-bottom: clamp(64px, 9vw, 110px); }
section + section { border-top: 1px solid var(--rule); }
.split { display: grid; grid-template-columns: 4fr 8fr; gap: clamp(32px, 6vw, 96px); }
.label {
  align-self: start;
  display: flex; align-items: center; gap: 12px;
  font-family: var(--display); font-weight: 600; font-size: 13px;
  letter-spacing: .28em; text-transform: uppercase; color: var(--brand);
}
.label::before { content: ""; width: 9px; height: 9px; background: var(--brand); transform: rotate(45deg); flex: none; }

/* Atuação */
.areas { list-style: none; margin: 0; padding: 0; }
.areas li { padding: 0 0 36px; }
.areas li + li { padding-top: 36px; border-top: 1px solid var(--rule); }
.areas li:last-child { padding-bottom: 0; }
.areas h3 { font-weight: 400; font-size: 23px; color: var(--brand); margin-bottom: 10px; }
.areas p { margin: 0; color: var(--muted); max-width: 62ch; }
.areas .lead-area h3 { font-weight: 600; font-size: clamp(26px, 2.6vw, 32px); margin-bottom: 16px; }
.areas .lead-area p { color: var(--ink); font-size: 19px; }

/* Trajetória */
.portrait { margin: 32px 0 0; max-width: 300px; background: linear-gradient(to bottom, var(--panel), #e3e8e5); border-bottom: 3px solid var(--brand); }
.portrait img { display: block; width: 100%; height: auto; }
.byline { margin: 28px 0 0; font-size: 16px; color: var(--muted); line-height: 1.5; }
.byline strong { display: block; font-family: var(--display); font-weight: 600; font-size: 19px; color: var(--ink); margin-bottom: 4px; }
.intro { font-family: var(--display); font-weight: 300; font-size: clamp(21px, 2vw, 25px); line-height: 1.5; margin: 0 0 36px; max-width: 34ch; }
.timeline { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); }
.timeline li { display: grid; grid-template-columns: 110px 1fr; gap: 24px; padding: 20px 0; border-bottom: 1px solid var(--rule); }
.timeline span { font-family: var(--display); font-size: 13px; color: var(--soft); padding-top: 4px; font-variant-numeric: tabular-nums; }
.timeline b { display: block; font-weight: 600; color: var(--ink); margin-bottom: 2px; }
.timeline div { color: var(--muted); font-size: 17px; }
/* Publicações */
.pubs { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); }
.pubs li { display: grid; grid-template-columns: 110px 1fr; gap: 24px; padding: 24px 0; border-bottom: 1px solid var(--rule); }
.pubs span { font-family: var(--display); font-size: 13px; color: var(--soft); padding-top: 4px; }
.pubs a b { font-family: var(--display); font-weight: 400; font-size: 21px; line-height: 1.35; color: var(--brand); border-bottom: 1px solid var(--rule); transition: border-color .2s; }
.pubs a:hover b { border-color: var(--brand); }
.pubs a b::after { content: "\00a0↗"; font-size: .75em; }
.pubs p { margin: 8px 0 0; color: var(--muted); font-size: 17px; max-width: 62ch; }

/* Contato */
#contato { background: var(--panel); border-top: 0; }
.contact { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.contact small { display: block; font-family: var(--display); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--soft); margin-bottom: 8px; }
.contact a { border-bottom: 1px solid var(--soft); }
.contact a:hover { border-color: var(--brand); color: var(--brand); }

.todo { background: #f3e2a6; color: var(--ink); padding: 0 3px; }

footer { background: var(--brand-deep); color: #c9d2cc; font-size: 14px; line-height: 1.6; }
footer .wrap { display: flex; justify-content: space-between; align-items: center; gap: 32px; padding-top: 40px; padding-bottom: 44px; }
footer .brand { color: var(--on-brand); }
footer .brand svg { width: 30px; }
footer .brand-text b { font-size: 17px; }
footer p { margin: 0; max-width: 54ch; text-align: right; }
footer .footer-links { display: inline-block; margin: 6px 0; }
footer .footer-links a { color: var(--on-brand); border-bottom: 1px solid rgba(244, 246, 244, .35); }
footer .footer-links a:hover { border-color: var(--on-brand); }

@media (max-width: 820px) {
  .split { grid-template-columns: 1fr; gap: 28px; }
  .mark-large { display: none; }
  .contact { grid-template-columns: 1fr; gap: 24px; }
  .portrait { max-width: 260px; }
  .timeline li, .pubs li { grid-template-columns: 1fr; gap: 2px; }
  footer .wrap { flex-direction: column; align-items: flex-start; }
  footer p { text-align: left; }
}
@media (max-width: 560px) {
  body { font-size: 17px; }
  header .wrap { flex-direction: column; align-items: flex-start; gap: 22px; }
  nav { gap: 24px; }
  .chevrons { width: 80px; }
  .hero { padding-bottom: 120px; }
}

/* Lista de artigos (página principal) */
.articles { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); }
.articles li { border-bottom: 1px solid var(--rule); }
.articles a { display: grid; grid-template-columns: 48px 1fr; gap: 16px; padding: 22px 0; }
.articles .n { font-family: var(--display); font-size: 13px; color: var(--soft); padding-top: 5px; }
.articles b { display: block; font-family: var(--display); font-weight: 400; font-size: 20px; line-height: 1.35; color: var(--brand); margin-bottom: 4px; }
.articles a:hover b { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.articles span.d { color: var(--muted); font-size: 16px; }
.series-intro { margin: 0 0 28px; color: var(--muted); max-width: 62ch; }

/* Página de artigo */
.masthead.compact .chevrons { width: 64px; }
.article-head { padding-top: clamp(56px, 8vw, 96px); padding-bottom: clamp(32px, 5vw, 56px); }
.article-head h1 { font-weight: 300; font-size: clamp(30px, 4.2vw, 50px); line-height: 1.2; letter-spacing: -.01em; color: var(--brand); max-width: 24ch; margin-top: 20px; }
.article-head .dek { font-size: clamp(18px, 1.8vw, 21px); color: var(--muted); max-width: 60ch; margin: 22px 0 0; }
.article-head .meta { margin-top: 26px; font-family: var(--display); font-size: 13px; color: var(--soft); letter-spacing: .02em; }
.prose { padding-bottom: clamp(56px, 8vw, 96px); }
.prose > * { max-width: 720px; }
.prose p, .prose li { font-size: 19px; line-height: 1.75; }
.prose p { margin: 0 0 22px; }
.prose h2 { font-weight: 600; font-size: 23px; line-height: 1.3; color: var(--brand); margin: 52px 0 16px; }
.prose ul, .prose ol { margin: 0 0 24px; padding-left: 22px; }
.prose li { margin-bottom: 8px; }
.prose li::marker { color: var(--brand); }
.prose blockquote { margin: 28px 0; padding: 4px 0 4px 22px; border-left: 3px solid var(--brand); }
.prose blockquote p { font-family: var(--display); font-weight: 300; font-size: 21px; line-height: 1.55; margin: 0; }
.prose a { color: var(--brand); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.prose .sources { border-top: 1px solid var(--rule); margin-top: 48px; padding-top: 28px; }
.prose .sources h2 { margin-top: 0; font-size: 16px; letter-spacing: .2em; text-transform: uppercase; }
.prose .sources li { font-size: 15px; line-height: 1.6; color: var(--muted); }
.prose .note { background: var(--panel); padding: 22px 24px; margin-top: 36px; font-size: 15px; line-height: 1.6; color: var(--muted); }
.article-nav { display: grid; grid-template-columns: repeat(2, minmax(0, 348px)); gap: 24px; padding-bottom: clamp(56px, 8vw, 96px); }
.article-nav a { border-top: 1px solid var(--rule); padding-top: 24px; }
.article-nav a { display: block; }
.article-nav small { display: block; font-family: var(--display); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--soft); margin-bottom: 6px; }
.article-nav b { font-family: var(--display); font-weight: 400; color: var(--brand); font-size: 17px; line-height: 1.4; }
.article-nav .next { text-align: right; }
@media (max-width: 560px) {
  .article-nav { grid-template-columns: 1fr; }
  .article-nav .next { text-align: left; }
  .prose p, .prose li { font-size: 18px; }
}
