:root {
  color-scheme: light;
  --ink: #17232d;
  --ink-soft: #334450;
  --muted: #65747d;
  --paper: #f6f4ef;
  --surface: #ffffff;
  --line: #dedfd9;
  --accent: #b94e2b;
  --accent-dark: #923a20;
  --soft-accent: #f3e5dd;
  --max-width: 1120px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
button, input { font: inherit; }
button, a, input { -webkit-tap-highlight-color: transparent; }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 3px solid #d58b6d; outline-offset: 3px; }
.site-header { background: var(--ink); color: #fff; border-bottom: 4px solid var(--accent); }
.header-inner {
  width: min(var(--max-width), calc(100% - 40px));
  min-height: 94px; margin: 0 auto; display: flex; align-items: center;
  justify-content: space-between; gap: 28px;
}
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; flex-shrink: 0; }
.brand-mark { display: grid; place-items: center; width: 44px; height: 44px; background: var(--accent); color: white; font-family: Georgia, serif; font-weight: 800; font-size: 1.05rem; letter-spacing: -1px; }
.brand-copy { display: grid; line-height: 1.25; letter-spacing: .09em; }
.brand-copy strong { font-size: .94rem; }
.brand-copy small { margin-top: 5px; color: #b9c2c6; font-size: .7rem; letter-spacing: .025em; }
.nav { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; }
.nav-link { display: inline-block; padding: 9px 13px; border-radius: 4px; color: #d9e0e2; text-decoration: none; font-size: .9rem; font-weight: 650; transition: background .15s ease, color .15s ease; }
.nav-link:hover, .nav-link:focus-visible { background: #2b3a44; color: #fff; }
.nav-link.active { background: #fff; color: var(--ink); }
.site-main { width: min(var(--max-width), calc(100% - 40px)); margin: 0 auto; }
.intro-grid { display: grid; grid-template-columns: 1.25fr .75fr; gap: 28px; padding: 56px 0 48px; border-bottom: 1px solid var(--line); }
.intro-copy { padding: 8px 12px 8px 0; align-self: center; }
.eyebrow { margin: 0 0 13px; color: var(--accent); font-size: .72rem; font-weight: 800; letter-spacing: .16em; line-height: 1.4; }
h1, h2, h3, p { overflow-wrap: anywhere; }
h1, h2, h3 { line-height: 1.18; }
.intro-copy h1, .archive-hero h1 { max-width: 690px; margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(2.35rem, 5vw, 4.25rem); font-weight: 600; letter-spacing: -.045em; }
.lead { max-width: 650px; margin: 20px 0 22px; color: var(--muted); font-size: 1.1rem; line-height: 1.75; }
.text-link { display: inline-flex; align-items: center; gap: 7px; color: var(--accent-dark); font-size: .93rem; font-weight: 800; text-decoration: none; }
.text-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.editor-note { align-self: stretch; padding: 28px; background: var(--ink); color: #fff; border-top: 4px solid var(--accent); }
.note-label { color: #e8b7a3; font-size: .68rem; font-weight: 800; letter-spacing: .15em; }
.note-category { margin: 22px 0 8px; color: #c8d0d2; font-size: .77rem; text-transform: uppercase; letter-spacing: .08em; }
.editor-note h2 { margin: 0; font-family: Georgia, serif; font-size: clamp(1.6rem, 2.6vw, 2.2rem); letter-spacing: -.025em; }
.editor-note h2 a { color: white; text-decoration: none; }
.editor-note h2 a:hover { text-decoration: underline; text-decoration-color: #e8b7a3; }
.editor-note > p:not(.note-category) { color: #c7d0d3; font-size: .92rem; }
.editor-note .text-link { margin-top: 7px; color: #f1b69d; }
.quote-section, .latest-section { padding: 48px 0; border-bottom: 1px solid var(--line); }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 22px; }
.section-heading .eyebrow { margin-bottom: 7px; }
.section-heading h2, .about-section h2, .contribute-panel h2 { margin: 0; font-family: Georgia, serif; font-size: clamp(1.8rem, 3.5vw, 2.65rem); font-weight: 600; letter-spacing: -.035em; }
.section-index { color: #8b969b; font-size: .7rem; font-weight: 800; letter-spacing: .12em; white-space: nowrap; }
.quote-panel { position: relative; padding: 34px clamp(22px, 5vw, 60px) 26px; background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--accent); }
.quote-mark { position: absolute; top: 9px; left: 20px; color: #e6c2b3; font-family: Georgia, serif; font-size: 4rem; line-height: 1; }
#olavo { min-height: 76px; margin: 16px 0 22px; color: var(--ink); font-family: Georgia, serif; font-size: clamp(1.25rem, 2.5vw, 1.85rem); line-height: 1.5; }
.quote-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.btn { display: inline-flex; justify-content: center; align-items: center; min-height: 43px; padding: 10px 18px; border: 1px solid var(--accent); border-radius: 3px; background: var(--accent); color: #fff; font-size: .88rem; font-weight: 800; cursor: pointer; transition: background .15s ease, transform .15s ease; }
.btn:hover:not(:disabled) { background: var(--accent-dark); transform: translateY(-1px); }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn-secondary { background: transparent; color: var(--accent-dark); border-color: var(--line); }
.btn-secondary:hover:not(:disabled) { background: var(--soft-accent); color: var(--accent-dark); }
.btn-dark { background: var(--ink); border-color: var(--ink); }
.btn-dark:hover:not(:disabled) { background: #2c3b45; }
.small-note { margin: 20px 0 0; color: var(--muted); font-size: .78rem; }
.quote-search { margin-top: 24px; padding: 24px; background: #eeece6; }
.quote-search label, .archive-search-label { display: block; margin-bottom: 8px; font-size: .91rem; font-weight: 800; }
.search-row { display: flex; gap: 9px; }
input[type="search"] { width: 100%; min-width: 0; min-height: 46px; padding: 11px 13px; border: 1px solid #cbd0ce; border-radius: 3px; background: white; color: var(--ink); }
input[type="search"]:focus { border-color: var(--accent); outline: 2px solid #e5b7a4; outline-offset: 1px; }
.search-status { margin: 10px 0 0; color: var(--muted); font-size: .82rem; }
.quote-results { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 16px 0 0; padding: 0; list-style: none; }
.quote-results li { padding: 15px; border: 1px solid var(--line); background: white; }
.quote-results li p { margin: 0 0 10px; font-family: Georgia, serif; line-height: 1.5; }
.result-copy { padding: 0; border: 0; background: transparent; color: var(--accent-dark); font-size: .8rem; font-weight: 800; cursor: pointer; }
.result-copy:hover { text-decoration: underline; }
.latest-section .section-heading { margin-bottom: 20px; }
.article-card { display: flex; align-items: stretch; justify-content: space-between; gap: 20px; background: var(--surface); border: 1px solid var(--line); }
.feature-card { border-top: 3px solid var(--accent); }
.article-card-body { flex: 1; padding: 26px; min-width: 0; }
.article-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; margin: 0 0 12px; color: var(--muted); font-size: .74rem; }
.article-meta span { color: var(--accent-dark); font-size: .68rem; font-weight: 850; letter-spacing: .1em; }
.article-card h3 { max-width: 800px; margin: 0 0 13px; font-family: Georgia, serif; font-size: clamp(1.45rem, 2.8vw, 2rem); font-weight: 600; letter-spacing: -.025em; }
.article-card h3 a { text-decoration: none; }
.article-card h3 a:hover { color: var(--accent-dark); text-decoration: underline; text-underline-offset: 4px; }
.article-card-body > p:not(.article-meta) { max-width: 760px; margin: 0 0 17px; color: var(--muted); }
.feature-number, .archive-card-number { display: grid; place-items: center; min-width: 130px; padding: 24px; background: #f0e9e1; color: #b8a18f; font-family: Georgia, serif; font-size: 4rem; }
.about-section { padding: 54px 0 60px; max-width: 830px; }
.about-section h2 { max-width: 760px; }
.about-section > p:not(.eyebrow) { max-width: 730px; color: var(--muted); line-height: 1.8; }
.site-footer { margin-top: 0; background: var(--ink); color: #e6e9e9; }
.footer-inner { display: grid; grid-template-columns: 1fr auto; gap: 18px 32px; width: min(var(--max-width), calc(100% - 40px)); margin: 0 auto; padding: 30px 0; }
.footer-inner strong { letter-spacing: .1em; font-size: .85rem; }
.footer-inner p { margin: 6px 0 0; color: #aeb9bd; font-size: .82rem; }
.footer-inner > div:nth-child(2) { display: flex; align-items: start; gap: 18px; }
.footer-inner a { color: #f0b79f; text-decoration: none; font-size: .86rem; }
.footer-inner a:hover { text-decoration: underline; }
.copyright { grid-column: 1 / -1; padding-top: 15px; border-top: 1px solid #34424a; }
.archive-main { padding-bottom: 55px; }
.archive-hero { padding: 56px 0 34px; border-bottom: 1px solid var(--line); }
.archive-hero .lead { margin: 16px 0 26px; }
.archive-search { max-width: 640px; display: block; }
.topic-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 15px; }
.topic-chip { padding: 8px 13px; border: 1px solid #cdd0ca; border-radius: 999px; background: transparent; color: var(--ink-soft); font-size: .8rem; font-weight: 750; cursor: pointer; }
.topic-chip:hover, .topic-chip.active { border-color: var(--ink); background: var(--ink); color: white; }
.archive-layout { padding: 32px 0 45px; }
.archive-results-head { display: flex; align-items: baseline; justify-content: space-between; gap: 15px; margin-bottom: 16px; }
.archive-results-head h2 { margin: 0; font-family: Georgia, serif; font-size: 1.7rem; }
.archive-results-head p { color: var(--muted); font-size: .82rem; }
.article-list { display: grid; gap: 14px; }
.archive-card { border-left: 3px solid var(--accent); }
.archive-card .article-card-body { padding: 23px 26px; }
.archive-card h3 { font-size: clamp(1.3rem, 2.5vw, 1.8rem); }
.archive-card-number { min-width: 90px; font-size: 2.6rem; }
.empty-state { padding: 32px; border: 1px dashed #b8c0bf; text-align: center; }
.empty-state h3 { margin-top: 0; font-family: Georgia, serif; }
.empty-state p { color: var(--muted); }
.contribute-panel { padding: 30px; background: #e9e5dc; }
.contribute-panel h2 { max-width: 700px; }
.contribute-panel > p:not(.eyebrow) { max-width: 690px; color: var(--muted); }
[hidden] { display: none !important; }

/* Article page and reusable article template */
.artigos { width: min(850px, calc(100% - 40px)); margin: 0 auto; }
.artigo-card { margin: 38px 0; padding: clamp(24px, 5vw, 54px); background: var(--surface); border: 1px solid var(--line); border-top: 4px solid var(--accent); }
.artigo-completo header { padding-bottom: 22px; margin-bottom: 26px; border-bottom: 1px solid var(--line); }
.artigo-completo h1 { margin: 10px 0 18px; font-family: Georgia, serif; font-size: clamp(2rem, 4.5vw, 3.25rem); line-height: 1.15; letter-spacing: -.04em; }
.artigo-introducao { color: var(--muted); font-family: Georgia, serif; font-size: 1.2rem; line-height: 1.7; }
.artigo-completo section { margin: 30px 0; }
.artigo-completo section h2 { margin: 0 0 14px; font-family: Georgia, serif; font-size: 1.65rem; }
.artigo-completo section h3 { font-size: 1.2rem; }
.artigo-completo section p { margin: 0 0 17px; color: #34434c; font-size: 1.05rem; line-height: 1.9; }
.artigo-final { margin-top: 36px; padding-top: 22px; border-top: 1px solid var(--line); color: var(--muted); }
.artigo-final a { color: var(--accent-dark); font-weight: 800; }
.voltar { margin-top: 20px; }
@media (max-width: 760px) {
  .header-inner { width: min(100% - 28px, var(--max-width)); padding: 15px 0; align-items: flex-start; flex-direction: column; gap: 14px; }
  .nav { gap: 3px; }
  .nav-link { padding: 8px 10px; font-size: .82rem; }
  .site-main { width: min(100% - 28px, var(--max-width)); }
  .intro-grid { grid-template-columns: 1fr; gap: 22px; padding: 38px 0 32px; }
  .intro-copy h1, .archive-hero h1 { font-size: clamp(2.25rem, 10vw, 3.4rem); }
  .editor-note { padding: 23px; }
  .quote-section, .latest-section { padding: 36px 0; }
  .section-heading { align-items: flex-start; }
  .section-index { display: none; }
  .quote-results { grid-template-columns: 1fr; }
  .feature-number { min-width: 74px; padding: 14px; font-size: 2.6rem; }
  .article-card-body { padding: 21px; }
  .archive-card-number { min-width: 60px; padding: 12px; font-size: 2rem; }
  .footer-inner { width: min(100% - 28px, var(--max-width)); grid-template-columns: 1fr; }
  .footer-inner > div:nth-child(2) { flex-wrap: wrap; }
  .copyright { grid-column: auto; }
  .artigos { width: min(100% - 28px, 850px); }
  .artigo-card { margin: 24px 0; padding: 24px 20px; }
}
@media (max-width: 440px) {
  .brand-copy strong { font-size: .82rem; }
  .nav { width: 100%; }
  .nav-link { padding: 8px 9px; }
  .section-heading { flex-direction: column; }
  .search-row { flex-direction: column; }
  .search-row .btn { width: 100%; }
  .article-card { gap: 0; }
  .feature-number { display: none; }
  .archive-card-number { min-width: 42px; font-size: 1.4rem; padding: 8px; }
  .article-meta { gap: 7px 10px; }
}

/* Páginas institucionais e de privacidade */
.legal-main { padding: 42px 0 64px; }
.legal-content {
  max-width: 820px;
  margin: 0 auto;
  padding: clamp(24px, 5vw, 54px);
  background: var(--surface);
  border: 1px solid var(--line);
}
.legal-content h1 {
  margin: 0 0 14px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  line-height: 1.12;
  letter-spacing: -.04em;
}
.legal-content h2 {
  margin: 34px 0 10px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.35rem, 3vw, 1.8rem);
}
.legal-content p { color: var(--ink-soft); }
.legal-content a:not(.btn) { color: var(--accent-dark); text-underline-offset: 3px; }
.legal-content .lead { max-width: none; }
.legal-updated { color: var(--muted) !important; font-size: .85rem; }
.notice-panel { margin: 24px 0; padding: 20px; background: #f0e9e1; border-left: 4px solid var(--accent); }
.notice-panel p { margin-bottom: 0; }
@media (max-width: 600px) {
  .legal-main { padding: 24px 0 40px; }
  .legal-content { padding: 24px 20px; }
}
