:root {
  --vert-sauge: #3F5B4A;
  --vert-sauge-fonce: #2E4536;
  --terre: #B86B4A;
  --terre-fonce: #93522F;
  --creme: #F7F2E7;
  --creme-fonce: #EEE6D2;
  --creme-ligne: #E1D7BE;
  --encre: #1F2420;
  --encre-doux: #4A4740;
  --gris-chaud: #8A8278;
  --blanc: #FFFDF8;
  --ombre: 0 2px 10px rgba(31, 36, 32, 0.08);
  --ombre-forte: 0 6px 24px rgba(31, 36, 32, 0.12);
  --radius: 6px;
  --radius-large: 14px;
  --largeur-max: 1180px;
  --largeur-texte: 720px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--creme);
  color: var(--encre);
  font-family: "Source Sans 3", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 19px;
  line-height: 1.65;
  font-weight: 400;
}

h1, h2, h3, h4 {
  font-family: "Fraunces", Georgia, "Times New Roman", serif;
  color: var(--encre);
  font-weight: 500;
  line-height: 1.22;
  margin-top: 1.6em;
  margin-bottom: 0.6em;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.1rem, 4.4vw, 3.1rem); font-weight: 600; }
h2 { font-size: clamp(1.6rem, 2.8vw, 2.1rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); }
h4 { font-size: 1.15rem; color: var(--vert-sauge-fonce); }

p { margin: 0 0 1.1em; }

a {
  color: var(--vert-sauge-fonce);
  text-decoration: underline;
  text-decoration-color: rgba(63, 91, 74, 0.35);
  text-underline-offset: 3px;
  transition: color .15s ease, text-decoration-color .15s ease;
}
a:hover { color: var(--terre-fonce); text-decoration-color: var(--terre); }
a:focus-visible { outline: 2px solid var(--terre); outline-offset: 3px; border-radius: 2px; }

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

ul, ol { padding-left: 1.4em; margin: 0 0 1.1em; }
li { margin-bottom: 0.45em; }

blockquote {
  margin: 1.6em 0;
  padding: 0.6em 1.2em;
  border-left: 4px solid var(--terre);
  background: var(--creme-fonce);
  font-family: "Fraunces", serif;
  font-style: italic;
  color: var(--encre-doux);
  font-size: 1.08em;
  border-radius: 0 var(--radius) var(--radius) 0;
}

.wrap { max-width: var(--largeur-max); margin: 0 auto; padding: 0 24px; }
.narrow { max-width: var(--largeur-texte); margin: 0 auto; padding: 0 24px; }

/* HEADER */
.site-header {
  background: var(--blanc);
  border-bottom: 1px solid var(--creme-ligne);
  position: sticky;
  top: 0;
  z-index: 50;
}
.site-header__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 24px;
  max-width: var(--largeur-max);
  margin: 0 auto;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--encre);
}
.brand:hover { color: var(--vert-sauge-fonce); text-decoration: none; }
.brand__mark {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
}
.brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}
.brand__name {
  font-family: "Fraunces", serif;
  font-weight: 600;
  font-size: 1.3rem;
  color: var(--vert-sauge-fonce);
  letter-spacing: -0.01em;
}
.brand__tagline {
  font-size: 0.78rem;
  color: var(--gris-chaud);
  margin-top: 2px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.nav__list {
  display: flex;
  gap: 28px;
  list-style: none;
  padding: 0;
  margin: 0;
  align-items: center;
}
.nav__list a {
  color: var(--encre-doux);
  text-decoration: none;
  font-size: 0.98rem;
  font-weight: 500;
  padding: 4px 2px;
  border-bottom: 2px solid transparent;
  transition: color .15s, border-color .15s;
}
.nav__list a:hover,
.nav__list a[aria-current="page"] {
  color: var(--terre-fonce);
  border-bottom-color: var(--terre);
}

.nav__toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--creme-ligne);
  border-radius: var(--radius);
  padding: 8px 14px;
  color: var(--encre);
  font-size: 1rem;
  cursor: pointer;
  min-height: 44px;
  min-width: 44px;
}

@media (max-width: 820px) {
  .nav__toggle { display: inline-flex; align-items: center; gap: 8px; }
  .nav__list {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--blanc);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 10px 0;
    border-bottom: 1px solid var(--creme-ligne);
    box-shadow: var(--ombre);
    display: none;
  }
  .nav__list.is-open { display: flex; }
  .nav__list li { margin: 0; }
  .nav__list a {
    display: block;
    padding: 14px 24px;
    font-size: 1.05rem;
    border-bottom: 1px solid var(--creme-ligne);
  }
  .nav__list a[aria-current="page"] { background: var(--creme-fonce); }
}

/* HERO HOME */
.hero {
  padding: 72px 0 56px;
  border-bottom: 1px solid var(--creme-ligne);
  background: linear-gradient(180deg, var(--creme) 0%, var(--creme-fonce) 100%);
}
.hero__inner { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 56px; align-items: center; }
.hero__eyebrow {
  display: inline-block;
  font-size: 0.82rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--terre-fonce);
  font-weight: 600;
  margin-bottom: 18px;
}
.hero__title { margin-top: 0; }
.hero__text {
  font-size: 1.18rem;
  color: var(--encre-doux);
  max-width: 540px;
}
.hero__cta { margin-top: 28px; display: flex; gap: 14px; flex-wrap: wrap; }
.hero__illustration {
  background: var(--blanc);
  border: 1px solid var(--creme-ligne);
  border-radius: var(--radius-large);
  padding: 24px;
  box-shadow: var(--ombre);
}
@media (max-width: 900px) {
  .hero { padding: 48px 0 40px; }
  .hero__inner { grid-template-columns: 1fr; gap: 36px; }
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 24px;
  min-height: 48px;
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  transition: transform .12s ease, background .15s ease, color .15s ease, box-shadow .15s ease;
  cursor: pointer;
  border: none;
  font-family: inherit;
}
.btn--primary { background: var(--vert-sauge); color: var(--blanc); }
.btn--primary:hover { background: var(--vert-sauge-fonce); color: var(--blanc); text-decoration: none; }
.btn--secondary {
  background: transparent;
  color: var(--vert-sauge-fonce);
  border: 1.5px solid var(--vert-sauge);
}
.btn--secondary:hover { background: var(--vert-sauge); color: var(--blanc); text-decoration: none; }

/* SECTIONS */
.section { padding: 72px 0; }
.section--creme { background: var(--creme-fonce); border-top: 1px solid var(--creme-ligne); border-bottom: 1px solid var(--creme-ligne); }
.section__eyebrow {
  display: block;
  font-size: 0.82rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--terre-fonce);
  font-weight: 600;
  margin-bottom: 10px;
}
.section__title { margin-top: 0; }
.section__intro { font-size: 1.1rem; color: var(--encre-doux); max-width: 680px; margin-bottom: 42px; }

/* CARDS DE ARTIGO */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 28px;
}
.card {
  background: var(--blanc);
  border: 1px solid var(--creme-ligne);
  border-radius: var(--radius-large);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .15s ease, box-shadow .15s ease;
}
.card:hover { transform: translateY(-2px); box-shadow: var(--ombre-forte); }
.card__media { aspect-ratio: 16 / 10; background: var(--creme-fonce); overflow: hidden; }
.card__media img, .card__media svg { width: 100%; height: 100%; object-fit: cover; display: block; }
.card__body { padding: 22px 24px 26px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.card__kicker {
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--terre-fonce);
  font-weight: 600;
}
.card__title {
  font-family: "Fraunces", serif;
  font-size: 1.3rem;
  font-weight: 600;
  margin: 0;
  line-height: 1.25;
}
.card__title a { color: var(--encre); text-decoration: none; }
.card__title a:hover { color: var(--vert-sauge-fonce); }
.card__excerpt { color: var(--encre-doux); font-size: 1rem; margin: 0; }
.card__meta { color: var(--gris-chaud); font-size: 0.88rem; margin-top: auto; padding-top: 10px; }

/* HOME FEATURED */
.featured { display: grid; grid-template-columns: 1.4fr 1fr; gap: 36px; }
@media (max-width: 900px) { .featured { grid-template-columns: 1fr; } }
.featured__main { background: var(--blanc); border: 1px solid var(--creme-ligne); border-radius: var(--radius-large); overflow: hidden; }
.featured__main .card__body { padding: 28px 32px 32px; }
.featured__main .card__title { font-size: 1.7rem; }
.featured__side { display: flex; flex-direction: column; gap: 24px; }
.featured__side .card { flex-direction: row; }
.featured__side .card__media { flex: 0 0 42%; aspect-ratio: 1 / 1; }
.featured__side .card__body { padding: 18px 20px; }
.featured__side .card__title { font-size: 1.1rem; }
@media (max-width: 540px) {
  .featured__side .card { flex-direction: column; }
  .featured__side .card__media { flex: 1; aspect-ratio: 16 / 10; }
}

/* HOME SUJETS */
.subjects { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 22px; }
.subject {
  background: var(--blanc);
  border: 1px solid var(--creme-ligne);
  border-radius: var(--radius-large);
  padding: 24px;
  text-decoration: none;
  color: var(--encre);
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: transform .15s, box-shadow .15s, border-color .15s;
}
.subject:hover { transform: translateY(-2px); box-shadow: var(--ombre); border-color: var(--terre); color: var(--encre); text-decoration: none; }
.subject__icon { width: 44px; height: 44px; color: var(--vert-sauge); }
.subject__name { font-family: "Fraunces", serif; font-weight: 600; font-size: 1.15rem; }
.subject__desc { color: var(--gris-chaud); font-size: 0.95rem; }

/* NEWSLETTER */
.newsletter {
  background: var(--vert-sauge);
  color: var(--creme);
  padding: 56px 0;
}
.newsletter h2 { color: var(--blanc); margin-top: 0; }
.newsletter p { color: rgba(255, 253, 248, 0.85); max-width: 580px; }
.newsletter__form {
  display: flex;
  gap: 10px;
  margin-top: 24px;
  flex-wrap: wrap;
  max-width: 540px;
}
.newsletter__input {
  flex: 1 1 240px;
  padding: 14px 18px;
  min-height: 48px;
  border-radius: var(--radius);
  border: none;
  background: var(--blanc);
  font-size: 1rem;
  color: var(--encre);
  font-family: inherit;
}
.newsletter__input:focus { outline: 2px solid var(--terre); outline-offset: 2px; }
.newsletter__btn {
  background: var(--terre);
  color: var(--blanc);
  padding: 14px 24px;
  min-height: 48px;
  border: none;
  border-radius: var(--radius);
  font-weight: 600;
  cursor: pointer;
  font-size: 1rem;
  font-family: inherit;
}
.newsletter__btn:hover { background: var(--terre-fonce); }
.newsletter__fine { font-size: 0.84rem; margin-top: 14px; color: rgba(255, 253, 248, 0.75); }

/* ARTIGO */
.article-hero {
  padding: 56px 0 30px;
  background: var(--creme-fonce);
  border-bottom: 1px solid var(--creme-ligne);
}
.article-hero .narrow { padding-top: 0; }
.article-hero__kicker {
  font-size: 0.82rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--terre-fonce);
  font-weight: 600;
  margin-bottom: 14px;
}
.article-hero__title { margin: 0 0 18px; }
.article-hero__dek { font-size: 1.18rem; color: var(--encre-doux); margin: 0 0 24px; }
.article-hero__meta {
  display: flex;
  gap: 16px;
  color: var(--gris-chaud);
  font-size: 0.92rem;
  flex-wrap: wrap;
}
.article-hero__meta time { font-weight: 500; }

.article-figure {
  margin: 0;
  padding: 36px 0 0;
  background: var(--creme-fonce);
}
.article-figure img, .article-figure svg {
  display: block;
  width: 100%;
  max-width: 940px;
  margin: 0 auto;
  border-radius: var(--radius-large);
  box-shadow: var(--ombre);
  background: var(--blanc);
}
.article-figure figcaption {
  max-width: 720px;
  margin: 12px auto 0;
  padding: 0 24px;
  color: var(--gris-chaud);
  font-size: 0.92rem;
  text-align: center;
  font-style: italic;
}

.article-body { padding: 48px 0 64px; }
.article-body h2 { margin-top: 2em; }
.article-body h3 { margin-top: 1.6em; }
.article-body ul li, .article-body ol li { margin-bottom: 0.7em; }
.article-body p a { font-weight: 500; }
.key-points {
  background: var(--creme-fonce);
  border-left: 4px solid var(--vert-sauge);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 24px 28px;
  margin: 32px 0;
}
.key-points h4 { margin: 0 0 10px; color: var(--vert-sauge-fonce); font-size: 1rem; letter-spacing: 0.08em; text-transform: uppercase; font-family: inherit; }
.key-points ul { margin-bottom: 0; }

.sources {
  background: var(--blanc);
  border: 1px solid var(--creme-ligne);
  border-radius: var(--radius-large);
  padding: 24px 28px;
  margin: 48px 0 0;
}
.sources h3 { margin-top: 0; font-size: 1.1rem; color: var(--vert-sauge-fonce); }
.sources ol { padding-left: 1.3em; }
.sources li { font-size: 0.95rem; color: var(--encre-doux); margin-bottom: 0.6em; }

.article-related { padding: 56px 0 72px; background: var(--creme-fonce); border-top: 1px solid var(--creme-ligne); }

/* LISTA DE ARTIGOS */
.article-list { padding: 56px 0 72px; }
.article-list__header { margin-bottom: 48px; max-width: var(--largeur-texte); }

/* PÁGINAS LEGAIS / INSTITUCIONAIS */
.page-hero {
  padding: 56px 0 32px;
  background: var(--creme-fonce);
  border-bottom: 1px solid var(--creme-ligne);
}
.page-body { padding: 48px 0 72px; }
.page-body h2 { margin-top: 1.8em; }
.page-body h3 { margin-top: 1.4em; }
.page-body ul li { margin-bottom: 0.55em; }
.page-body .legal-meta {
  background: var(--creme-fonce);
  border-left: 3px solid var(--terre);
  padding: 14px 20px;
  margin: 32px 0;
  color: var(--encre-doux);
  font-size: 0.95rem;
  border-radius: 0 var(--radius) var(--radius) 0;
}

/* CONTACT PANEL */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}
@media (max-width: 820px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-card {
  background: var(--blanc);
  border: 1px solid var(--creme-ligne);
  border-radius: var(--radius-large);
  padding: 32px;
}
.contact-card h2 { margin-top: 0; }
.contact-card dl { margin: 20px 0 0; }
.contact-card dt { font-weight: 600; color: var(--vert-sauge-fonce); margin-top: 14px; font-size: 0.9rem; letter-spacing: 0.06em; text-transform: uppercase; }
.contact-card dd { margin: 4px 0 0; color: var(--encre-doux); }

/* FOOTER */
.site-footer {
  background: var(--encre);
  color: var(--creme);
  padding: 56px 0 24px;
  font-size: 0.95rem;
}
.site-footer a { color: var(--creme); text-decoration-color: rgba(247, 242, 231, 0.3); }
.site-footer a:hover { color: var(--terre); text-decoration-color: var(--terre); }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(247, 242, 231, 0.15);
}
@media (max-width: 820px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; } }
@media (max-width: 540px) { .footer-grid { grid-template-columns: 1fr; } }
.footer__brand { color: var(--creme); }
.footer__brand .brand__name { color: var(--creme); }
.footer__brand .brand__tagline { color: rgba(247, 242, 231, 0.65); }
.footer__about { color: rgba(247, 242, 231, 0.75); margin-top: 18px; max-width: 320px; }
.footer__col h4 { color: var(--blanc); font-family: inherit; font-weight: 600; font-size: 0.86rem; text-transform: uppercase; letter-spacing: 0.1em; margin: 0 0 14px; }
.footer__col ul { list-style: none; padding: 0; margin: 0; }
.footer__col li { margin-bottom: 10px; }
.footer__legal {
  padding: 24px 0 0;
  color: rgba(247, 242, 231, 0.6);
  font-size: 0.84rem;
}
.footer__legal p { margin: 0 0 8px; }
.footer__disclaimer {
  background: rgba(247, 242, 231, 0.06);
  padding: 16px 20px;
  border-radius: var(--radius);
  margin: 24px 0;
  font-size: 0.88rem;
  color: rgba(247, 242, 231, 0.75);
  line-height: 1.55;
}

/* COOKIE BAR */
.cookie-bar {
  position: fixed;
  bottom: 16px;
  left: 16px;
  right: 16px;
  max-width: 480px;
  margin: 0 auto;
  background: var(--encre);
  color: var(--creme);
  padding: 18px 20px;
  border-radius: var(--radius-large);
  box-shadow: 0 10px 30px rgba(0,0,0,0.25);
  z-index: 90;
  display: none;
  font-size: 0.92rem;
}
.cookie-bar.is-visible { display: block; }
.cookie-bar p { margin: 0 0 14px; }
.cookie-bar a { color: var(--terre); }
.cookie-bar__actions { display: flex; gap: 10px; flex-wrap: wrap; }
.cookie-bar__btn {
  flex: 1 1 auto;
  padding: 10px 16px;
  border-radius: var(--radius);
  font-weight: 600;
  cursor: pointer;
  font-size: 0.92rem;
  border: none;
  min-height: 44px;
  font-family: inherit;
}
.cookie-bar__btn--accept { background: var(--terre); color: var(--blanc); }
.cookie-bar__btn--accept:hover { background: var(--terre-fonce); }
.cookie-bar__btn--refuse { background: transparent; color: var(--creme); border: 1px solid rgba(247, 242, 231, 0.3); }
.cookie-bar__btn--refuse:hover { background: rgba(247, 242, 231, 0.08); }

/* 404 */
.not-found { padding: 96px 0 120px; text-align: center; }
.not-found h1 { font-size: clamp(3rem, 7vw, 5rem); margin: 0 0 10px; color: var(--vert-sauge-fonce); }
.not-found p { font-size: 1.15rem; color: var(--encre-doux); max-width: 540px; margin: 0 auto 28px; }

/* THANKS */
.thanks { padding: 96px 0 120px; text-align: center; }
.thanks h1 { color: var(--vert-sauge-fonce); }
.thanks p { font-size: 1.15rem; color: var(--encre-doux); max-width: 580px; margin: 14px auto; }

/* UTIL */
.text-small { font-size: 0.9rem; color: var(--gris-chaud); }
.mt-6 { margin-top: 48px; }
.center { text-align: center; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0;
  margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* SKIP LINK */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--vert-sauge);
  color: var(--creme);
  padding: 10px 16px;
  z-index: 100;
  text-decoration: none;
}
.skip-link:focus { top: 0; }

/* PRINT */
@media print {
  .site-header, .site-footer, .cookie-bar, .newsletter { display: none; }
  body { background: #fff; color: #000; }
  .wrap, .narrow { max-width: 100%; padding: 0; }
}
