/* Casa da Árvore · Cartaz C1 */
@font-face {
  font-family: "Barlow Semi Condensed";
  src: url("fonts/barlowsemicondensed-600.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: "Source Sans 3";
  src: url("fonts/sourcesans3-400-750.woff2") format("woff2");
  font-weight: 400 750;
  font-display: swap;
}
:root {
  --heading: "Barlow Semi Condensed", Arial, sans-serif;
  --reading: "Source Sans 3", Arial, sans-serif;
  --paper: #fff8e9;
  --ink: #123c30;
  --forest: #143e31;
  --summary-band: #88492f;
  --maize: #ffdc78;
  --line: #b2bdab;
  --gutter: clamp(1.25rem, 4.5vw, 5rem);
  --section-space: clamp(2.75rem, 5vw, 5rem);
  --columns: minmax(0, .87fr) minmax(0, 1.13fr);
  --column-gap: clamp(2rem, 7vw, 7rem);
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 1.125rem/1.56 var(--reading);
}
h1, h2, h3, h4, p, dl, dd, ul, figure { margin: 0; }
h1, h2, h3, h4 { font-family: var(--heading); font-weight: 600; }
h1, h2 {
  text-wrap: balance;
}
h2 {
  font-size: clamp(2.1rem, 3.7vw, 3.65rem);
  line-height: 1.07;
  letter-spacing: -.035em;
}
h3, h4, dt { line-height: 1.22; }
dt { font-weight: 700; }
h3 { font-size: clamp(1.4rem, 2vw, 1.9rem); letter-spacing: -.025em; }
h4, dt { font-size: 1.25rem; }
a { color: inherit; text-underline-offset: .22em; }
a:hover { text-decoration-thickness: .13em; }
button { font: inherit; color: inherit; cursor: pointer; }
a, button, summary { min-height: 44px; min-width: 44px; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; box-shadow: 0 0 0 6px white; }
[hidden] { display: none !important; }
.wrap { width: min(84rem, calc(100% - 2 * var(--gutter))); margin-inline: auto; }
.skip, .visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.skip:focus {
  z-index: 2;
  top: .5rem;
  left: 1rem;
  width: auto;
  height: auto;
  padding: .6rem 1rem;
  clip-path: none;
  background: var(--paper);
}
.kicker, .news-section-kicker, .filters-bar__label, .site-footer__col-label {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: .085em;
  text-transform: uppercase;
  line-height: 1.35;
}
.site-head { position: relative; background: white; }
.head-row { display: grid; justify-items: center; padding-block: .375rem .125rem; }
.brand-row {
  display: flex;
  align-items: center;
  gap: clamp(.75rem, 1.5vw, 1.5rem);
  width: 100%;
}
.brand-row::before, .brand-row::after {
  content: "";
  flex: 1;
  border-top: 1px solid var(--line);
}
.brand, .site-nav, .site-nav a, .join, .cover-actions, .btn, .button, .text-link {
  display: flex;
  align-items: center;
}
.brand {
  font: 600 clamp(1.8rem, 2.8vw, 2.5rem)/1.1 var(--heading);
  letter-spacing: -.025em;
  text-decoration: none;
}
.site-nav { gap: clamp(1rem, 2vw, 2rem); font-size: 1.0625rem; }
.site-nav .join {
  color: var(--ink);
  background: linear-gradient(var(--line), var(--line)) left center / 1px 1.1em no-repeat;
  padding: 0 .25rem 0 1.25rem;
}
.site-head nav a { text-decoration: none; }
.site-head nav a:hover, .site-head nav [aria-current], footer [aria-current] { text-decoration: underline; }
.site-head nav [aria-current], footer [aria-current] { text-decoration-thickness: 3px; font-weight: 700; }
.join, .btn, .button {
  display: inline-flex;
  width: fit-content;
  gap: .8rem;
  padding: .65rem 1.1rem;
  background: var(--forest);
  color: var(--paper);
  font-weight: 700;
  text-decoration: none;
  line-height: 1.3;
}
.button { background: var(--maize); color: var(--ink); }
.btn:hover, .button:hover { text-decoration: underline; }
.menu-toggle, .mobile-nav { display: none; }

/* A fotografia se estende por toda a abertura. */
.cover { position: relative; isolation: isolate; background: var(--forest); color: var(--paper); }
.cover-image, .cover-image::after { position: absolute; inset: 0; }
.cover-image { overflow: hidden; z-index: -1; }
.cover-image img { display: block; width: 100%; height: 100%; object-fit: cover; }
.cover-image::after {
  content: "";
  background: linear-gradient(90deg, rgb(9 43 31 / 91%), rgb(9 43 31 / 83%) 40%, rgb(9 43 31 / 57%) 72%, rgb(9 43 31 / 75%));
}
.cover--index img { width: 128%; object-position: center 43%; }
.cover--sobre img { object-position: center 53%; }
.cover--educacao img { object-position: center 45%; }
.cover--noticias img { object-position: center 45%; }
.cover-layout {
  min-height: clamp(26rem, 53svh, 34rem);
  padding-block: clamp(2rem, 4vw, 4rem);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: clamp(3rem, 6vw, 5rem);
}
.cover--index .cover-layout { min-height: calc(100svh - 5.5rem); }
.cover--privacidade .cover-layout, .cover--termos .cover-layout { min-height: 0; }
.cover-meta {
  border-top: 1px solid currentColor;
  padding-top: .7rem;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: .25rem 1rem;
}
.location { font-size: 1rem; font-weight: 650; }
.cover h1 {
  max-width: 22ch;
  font-size: clamp(3.4rem, 6.3vw, 6.35rem);
  line-height: .97;
  letter-spacing: -.065em;
}
.cover--index { font-family: Arial, Helvetica, sans-serif; }
.cover--index h1 { font-family: system-ui, sans-serif; font-weight: 870; font-size: clamp(4.1rem, 7.6vw, 7.6rem); }
.intro { max-width: 53ch; margin-top: 1.5rem; font-size: clamp(1.125rem, 1.45vw, 1.38rem); line-height: 1.45; }
.cover-actions { flex-wrap: wrap; gap: .75rem 1.5rem; margin-top: 1.5rem; }
.text-link, .news-teaser__view-all { display: inline-flex; align-items: center; gap: .5rem; font-weight: 700; }

/* Título à esquerda, leitura à direita. */
.spread, .news-latest, .news-archive__inner {
  display: grid;
  grid-template-columns: var(--columns);
  gap: var(--column-gap);
  padding-block: var(--section-space);
  border-bottom: 2px solid var(--ink);
}
.home-sections .spread {
  padding-inline: max(var(--gutter), calc((100% - 84rem) / 2));
  border: 0;
}
.home-sections .on-white { background: white; }
.reimbursement, .association-summary {
  color: var(--paper);
  --line: color-mix(in srgb, currentColor 42%, transparent);
}
.reimbursement { background: #465c47; }
.reimbursement .btn { background: var(--paper); color: var(--ink); }
.reimbursement .text-link { margin-right: 1rem; }
.association-summary { background: var(--summary-band); }
.home-sections .kicker { display: flex; align-items: baseline; gap: .65rem; }
.home-sections .kicker::before {
  content: "";
  flex: 0 0 1.6rem;
  border-top: 2px solid currentColor;
  transform: translateY(-.28em);
}
.home-sections .listing small { font-weight: 700; }
.content > :last-child, .news-archive__inner { border-bottom: 0; }
.spread h2 { max-width: 17ch; }
.spread > div > .kicker:first-child { margin-bottom: .75rem; }
.prose { max-width: 65ch; overflow-wrap: anywhere; }
.prose > * + *, .news-article-body p + p { margin-top: 1rem; }
.prose > h3:not(:first-child), .prose > .kicker:not(:first-child) { margin-top: 2rem; }
.prose ul { padding-left: 1.3em; }
.prose li + li { margin-top: .6rem; }
.prose p a, .intro a, .news-article-body a { display: inline-block; align-content: center; }
.listing > div + div, .index-links a + a { border-top: 1px solid var(--line); }
.listing > div { padding-block: 1rem; }
.listing > div:first-child { padding-top: 0; }
.listing > div:last-child { padding-bottom: 0; }
.listing dd { margin-top: .3rem; }
.listing small, .callout__label { display: block; margin-top: .4rem; font-size: 1rem; }
.callout { border-left: 3px solid var(--ink); padding-left: 1rem; }
.callout__label { font-weight: 700; }
.phase { padding-block: 1.5rem; border-top: 1px solid var(--line); }
.phase__label, .event-card__meta { font-variant-numeric: tabular-nums; font-weight: 700; }
.phase__label { margin-bottom: .25rem; }
.phase__heading em { font-style: normal; }
.event-card { margin-top: 1.3rem; padding-left: 1rem; border-left: 2px solid var(--line); }
.event-card__meta { font-size: 1rem; }
.event-card__desc { margin-top: .45rem; }
.index-links { display: grid; }
.index-links a {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding-block: .65rem;
  font-weight: 700;
}
.index-links a span { font-size: 1rem; font-weight: 400; white-space: nowrap; }
.legal-links a { justify-content: start; }
.faq-item + .faq-item { border-top: 1px solid var(--line); }
.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  cursor: pointer;
  padding-block: .85rem;
  font-weight: 700;
  line-height: 1.4;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item__mark::after { content: "+"; font-size: 1.5rem; }
.faq-item[open] .faq-item__mark::after { content: "−"; }
.faq-item__a { padding: 0 1.75rem 1.25rem 0; }
.faq-item__a p + p { margin-top: .75rem; }
.duvidas-cta__actions { display: flex; align-items: center; flex-wrap: wrap; gap: 1rem; }

/* Notícias e arquivo: todos os filtros cabem em linhas. */
.filters-bar, .news-meta, .news-card__meta, .news-archive-row__meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .5rem 1rem;
}
.filters-bar { padding-block: 1.4rem; border-bottom: 2px solid var(--ink); gap: .5rem; }
.filters-bar__label { margin-right: .6rem; }
.filters-bar__sort { margin-left: auto; font-size: 1rem; }
.blog-filter, .news-read-button, .news-text-button, .menu-toggle {
  border: 1px solid var(--forest);
  border-radius: 0;
  background: transparent;
  padding: .55rem .8rem;
  font-weight: 700;
}
.blog-filter { font-size: 1rem; }
.blog-filter[aria-pressed="true"], .news-read-button { background: var(--forest); color: var(--paper); }
.blog-filter:hover, .news-read-button:hover, .news-text-button:hover, .menu-toggle:hover { text-decoration: underline; }
.blog-filter__count { font-weight: 400; }
.news-feature-section { padding-block: var(--section-space); border-bottom: 2px solid var(--ink); }
.news-feature-story__content { display: grid; grid-template-columns: var(--columns); gap: 1rem var(--column-gap); }
.news-feature-story__content > * { grid-column: 2; }
.news-feature-story__content > .news-section-kicker { grid-column: 1; grid-row: 1; }
.news-feature-story__content h2 { font-size: clamp(2rem, 3vw, 3.1rem); }
.news-section-head h2 { margin: .7rem 0; }
.news-section-context, .news-meta, .news-archive-row__meta, .news-card__meta { font-size: 1rem; }
.news-category-chip, .news-card__cat { font-weight: 700; }
.news-read-button, .news-text-button { width: fit-content; margin-top: .4rem; }
.news-text-button { padding-inline: 0; border: 0; text-decoration: underline; text-underline-offset: .22em; }
.news-latest-card, .news-archive-row, .news-card { padding-block: 1.5rem; border-top: 1px solid var(--line); }
.news-latest-card:first-child, .news-card:first-child { border-top: 0; padding-top: 0; }
.news-latest-card h3, .news-archive-row h4, .news-card h3 { margin: .4rem 0 .6rem; }
.news-card { display: block; text-decoration: none; }
.news-card:hover h3, .news-card__more { text-decoration: underline; }
.news-card__more { display: inline-block; margin-top: .75rem; font-weight: 700; }
.news-article-body { max-width: 65ch; margin-top: 1rem; overflow-wrap: anywhere; }
.post-source { padding-top: 1rem; border-top: 1px solid var(--line); }
.news-archive__inner > :not(.news-section-head) { grid-column: 2; }
.news-archive__inner { row-gap: 1rem; }
.news-archive-month > h3 { margin-bottom: .75rem; }
.news-archive-row__time { font-size: 1rem; }
.site-footer { background: var(--forest); color: var(--paper); padding: 3rem var(--gutter) 1rem; }
.site-footer__grid, .site-footer__bottom { max-width: 84rem; margin-inline: auto; }
.site-footer__grid { display: grid; grid-template-columns: 2fr repeat(3, 1fr); gap: 1.5rem; }
.site-footer__wordmark { font: 600 1.9rem/1.15 var(--heading); letter-spacing: -.04em; }
.site-footer__desc { max-width: 36ch; margin-top: .5rem; }
.site-footer__col-links { display: grid; justify-items: start; margin-top: .5rem; }
.site-footer a { display: inline-flex; align-items: center; }
.site-footer__bottom {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .25rem 1rem;
  border-top: 1px solid currentColor;
  margin-top: 2rem;
  padding-top: .75rem;
  font-size: 1rem;
}

@media (max-width: 59rem) {
  .site-nav { display: none; }
  .head-row { padding-block: 0; }
  .menu-toggle {
    display: flex;
    align-items: center;
    gap: .5rem;
    border: 0;
    font-size: 1rem;
    line-height: 1.2;
  }
  .menu-toggle::after {
    content: "";
    width: .9rem;
    height: .45rem;
    border-block: 1.5px solid currentColor;
  }
  .menu-toggle[aria-expanded="true"]::after { height: 0; border-bottom: 0; }
  .mobile-nav.is-open { display: grid; padding-bottom: 1rem; }
  .mobile-nav a { display: flex; align-items: center; padding-block: .5rem; border-top: 1px solid var(--line); }
  .mobile-nav .join { margin-top: .5rem; }
  .cover--index .cover-layout { min-height: calc(100svh - 4.5rem); }
  .filters-bar__sort { flex-basis: 100%; margin: .2rem 0 0; }
}
@media (max-width: 42rem) {
  .cover-layout { min-height: 0; padding-block: 1.5rem 2rem; gap: 4rem; }
  .cover-meta { display: grid; gap: .15rem; }
  .cover-image img { width: 100%; }
  .cover--index img { object-position: 40% center; }
  .cover--index { --middle-tint: 48%; }
  .cover-image::after {
    background: linear-gradient(180deg, rgb(9 43 31 / 83%), rgb(9 43 31 / var(--middle-tint, 62%)) 28%, rgb(9 43 31 / 85%) 64%, rgb(9 43 31 / 94%));
  }
  .cover h1, .cover--index h1 { font-size: clamp(2.65rem, 12.1vw, 4.5rem); }
  .cover h1, h2 { overflow-wrap: break-word; }
  .intro, .cover-actions { margin-top: 1rem; }
  .spread, .news-latest, .news-archive__inner, .news-feature-story__content { grid-template-columns: minmax(0, 1fr); gap: 1.3rem; }
  .news-archive__inner > :not(.news-section-head), .news-feature-story__content > * { grid-column: 1; }
  .filters-bar__label { flex-basis: 100%; }
  .filters-bar__sort { margin-top: .4rem; }
  .site-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .site-footer__grid > :first-child, .site-footer__grid > :last-child { grid-column: 1 / -1; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
