:root {
  color-scheme: light;
  --navy: #14263d;
  --deep: #0e1e32;
  --white: #fff;
  --gold: #c4ac79;
  --gold-ink: #765d2e;
  --ink: #16273b;
  --muted: #4b5968;
  --line: #dce2e9;
  --light: #f4f6f9;
}
* { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: var(--white); font: 1rem/1.65 "Inter", "Segoe UI", system-ui, sans-serif; }
a { color: inherit; text-underline-offset: .22em; }
a:focus-visible { outline: 2px solid #a88645; outline-offset: 5px; }
.wrap { width: min(72rem, calc(100% - 4rem)); margin-inline: auto; }
.site-header { background: var(--deep); color: var(--white); border-bottom: 1px solid #ffffff23; }
.header-inner, .footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.25rem; flex-wrap: wrap; padding-block: 1rem; }
.brand { display: inline-flex; align-items: center; gap: .85rem; line-height: 1.2; text-decoration: none; }
.monogram { display: grid; place-items: center; width: 2.55rem; height: 2.55rem; color: var(--gold); border: 1px solid #c4ac7990; font-size: .92rem; letter-spacing: .06em; }
.brand small { display: block; color: var(--gold); font-size: .875rem; }
nav { display: flex; flex-wrap: wrap; gap: .5rem 1.35rem; font-size: .9rem; }
nav a { text-decoration: none; }
nav a:hover { text-decoration: underline; }
.hero, .contact { color: var(--white); background: var(--navy); }
.hero { overflow: hidden; }
.hero-inner { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 1rem; padding-block: clamp(1.5rem, 3vw, 3rem); }
.hero-inner > div:first-child { padding-block: 2rem; }
.portrait-frame {
  width: min(100%, 29rem);
  justify-self: end;
  mask-image: linear-gradient(to right, transparent, #000 18%, #000 89%, transparent),
    linear-gradient(to bottom, transparent, #000 8%, #000 85%, transparent);
  mask-composite: intersect;
}
h1, h2, h3 { margin: 0; line-height: 1.13; }
h1 { font-weight: 450; font-size: clamp(2.8rem, 6vw, 5rem); letter-spacing: -.055em; }
h2 { font-weight: 450; font-size: clamp(2rem, 4.1vw, 3.35rem); letter-spacing: -.045em; }
h3 { font-weight: 560; font-size: 1.25rem; letter-spacing: -.025em; }
.lead { font-size: clamp(1.05rem, 2.3vw, 1.28rem); color: #e5eaf1; max-width: 29rem; }
.portrait { display: block; width: 100%; height: auto; aspect-ratio: 1 / 1.04; object-fit: cover; object-position: center 45%; }
.actions { display: flex; flex-wrap: wrap; gap: .75rem 1.25rem; align-items: center; margin-top: 1.5rem; }
.button { display: inline-flex; min-height: 44px; align-items: center; padding: .55rem 1rem; border: 1px solid var(--gold); color: var(--white); text-decoration: none; }
.button:hover { background: var(--gold); color: var(--deep); }
.section { padding-block: clamp(2.75rem, 6vw, 5.5rem); }
.section-title::after { content: ""; display: block; width: 2.5rem; height: 2px; margin-top: 1rem; background: var(--gold); }
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin-top: 1.65rem; }
.tile { padding: 1.25rem; border: 1px solid var(--line); background: var(--white); }
.tile p, .copy, .note { color: var(--muted); }
.tile p { margin-bottom: 0; }
.note { margin-bottom: 0; }
.band { background: var(--light); }
.split { display: grid; grid-template-columns: 1fr 1.6fr; gap: 1.25rem 3rem; }
.split p:first-child { margin-top: 0; }
.editorial { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.footer { color: #e0e7ef; background: var(--deep); font-size: .9rem; }
.contact a { overflow-wrap: anywhere; }
@media (max-width: 44rem) {
  .wrap { width: calc(100% - 2rem); }
  .hero-inner, .grid, .split { grid-template-columns: 1fr; }
  .hero-inner { gap: 0; padding-bottom: 0; }
  .hero-inner > div:first-child { padding-block: 1.2rem .7rem; }
  .portrait-frame { width: min(100%, 23rem); justify-self: center; }
  .portrait { max-height: 23rem; aspect-ratio: 1.07; }
}

@media (min-width: 45rem) {
  #atuacao .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

#atuacao .tile { position: relative; }
#atuacao .tile:hover,
#atuacao .tile:focus-within { border-color: var(--gold-ink); }
.area-link { color: var(--ink); text-decoration-color: var(--gold-ink); }
.area-link::after { content: ""; position: absolute; inset: 0; }

.editorial { align-items: start; }
.event { margin-top: 1.25rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.event h4 { margin: 0; font-size: 1.125rem; line-height: 1.35; }
.event .event-meta { margin-top: .4rem; font-size: .9rem; }
.event-cover { margin: 1.25rem 0 0; }
.event-cover img, .event-gallery img { display: block; width: 100%; height: auto; }
.event-cover figcaption { margin-top: .4rem; font-size: .875rem; color: var(--muted); }
.event details { margin-top: .75rem; }
.event summary { cursor: pointer; }
.event-gallery { display: grid; gap: .75rem; margin-top: .75rem; }
.event-gallery img { max-height: 18rem; object-fit: contain; background: var(--light); }

#sobre .copy p { text-align: justify; hyphens: auto; }

.event-gallery video { display: block; width: 100%; max-height: 26rem; background: var(--deep); }

.article-list { display: grid; gap: 1rem; margin-top: 1rem; }
.article-card { border: 1px solid var(--line); }
.article-cover, .reading-header { background: var(--navy); color: var(--white); padding: 1.35rem; }
.article-cover span, .article-category { color: var(--gold); font-size: .9rem; }
.article-cover h4 { margin: .6rem 0 0; font-size: 1.2rem; line-height: 1.35; }
.article-card-copy { padding: .9rem 1.35rem; }
.article-card-copy p { margin: 0 0 .45rem; color: var(--muted); }
.reading-wrap { width: min(100%, 46rem); margin-inline: auto; }
.reading-header { padding: clamp(1.5rem, 5vw, 4rem) 1rem; }
.reading-header h1 { font-size: clamp(2rem, 5vw, 3.8rem); }
.reading-body { padding: 1.5rem 1rem 3rem; overflow-wrap: anywhere; }
.reading-body p { white-space: pre-line; }
.article-reading p {
  margin: 0 0 1em;
  text-align: justify;
  text-indent: 1.5em;
  line-height: 1.75;
  hyphens: auto;
  white-space: normal;
}
.article-reading h2 { margin: 1.5em 0 .65em; font-size: clamp(1.25rem, 4vw, 1.6rem); }
.article-reading .article-reference,
.article-reading p:has(> .publisher-link) { text-align: start; text-indent: 0; }

.publisher-link { font-weight: 600; }

.story-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.story-grid .tile { border-top: 2px solid var(--gold); }
@media (max-width: 44rem) {
  .story-grid { grid-template-columns: 1fr; }
}

.note-list { list-style: none; margin: 1rem 0 0; padding: .8rem 0 0; border-top: 1px solid var(--line); }
.note-list a, .note-sources a { text-decoration-color: var(--gold-ink); }
.note-list a { font-weight: 600; }
.legal-note .reading-body h2 { font-size: clamp(1.25rem, 4vw, 1.6rem); letter-spacing: -.025em; }
.legal-note .reading-body section { margin: 0 0 1.75rem; }
.legal-note .reading-body section p { text-align: justify; hyphens: auto; white-space: normal; }
.note-sources { background: #f5f0e6; padding: 1rem 1.25rem; }
.note-sources ul { margin: .7rem 0 0; padding-left: 1.25rem; }
.note-list li + li { margin-top: .75rem; }

.municipal-budget-article .reading-header h1,
.municipal-budget-article .article-reading h2,
.municipal-budget-article .article-reading li {
  text-align: justify;
  hyphens: auto;
  overflow-wrap: anywhere;
}
