@font-face {
  font-family: "Source Sans 3";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/source-sans-3-latin-400-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Source Sans 3";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/source-sans-3-latin-600-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Source Sans 3";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/source-sans-3-latin-700-normal.woff2") format("woff2");
}
@font-face {
  font-family: Outfit;
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/outfit-latin-500-normal.woff2") format("woff2");
}
@font-face {
  font-family: Outfit;
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/outfit-latin-600-normal.woff2") format("woff2");
}
@font-face {
  font-family: Outfit;
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/outfit-latin-700-normal.woff2") format("woff2");
}

:root {
  --ink: #0a1628;
  --navy: #143a6b;
  --primary: #0e8bc4;
  --primary-bright: #2eb8e8;
  --sand: #f4f7fb;
  --line: #d6e2f0;
  --white: #ffffff;
  --link: #08557a;
  --muted: #3e5168;
  --shadow: 0 10px 30px rgba(10, 22, 40, 0.06);
  --header: 4.5rem;
  --max: 72rem;
  --radius: 1rem;
  color-scheme: light;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: "Source Sans 3", "Segoe UI", sans-serif;
  font-size: clamp(1.125rem, 1.05rem + 0.25vw, 1.1875rem);
  line-height: 1.6;
  color: var(--ink);
  background: var(--sand);
}

main { flex: 1 0 auto; }

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

img { display: block; }

h1, h2, h3, .brand-name, .rotator-live span, .rotator-fallback {
  font-family: Outfit, "Source Sans 3", sans-serif;
  line-height: 1.15;
  font-weight: 600;
}

h1 {
  margin: 0 0 0.6rem;
  font-size: clamp(2.5rem, 1.4rem + 4vw, 4.4rem);
  letter-spacing: -0.035em;
  color: var(--ink);
}

h2 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.7rem, 1.3rem + 1.2vw, 2.25rem);
  letter-spacing: -0.025em;
  color: var(--navy);
}

h3 { margin: 0 0 0.35rem; font-size: 1.2rem; color: var(--ink); }

p { margin: 0 0 1rem; }

a { color: var(--link); text-underline-offset: 0.18em; }

a:hover { color: var(--navy); }

:focus-visible {
  outline: 3px solid #086088;
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: 1rem;
  top: -5rem;
  z-index: 80;
  background: var(--navy);
  color: var(--white);
  padding: 0.65rem 1rem;
  border-radius: 0.6rem;
  text-decoration: none;
}

.skip:focus { top: 0.75rem; }

.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;
}

.wrap {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

.wrap-narrow { width: min(100% - 2rem, 46rem); margin-inline: auto; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: saturate(1.2) blur(10px);
}

.site-header::before {
  content: "";
  display: block;
  height: 4px;
  background: linear-gradient(90deg, var(--navy), var(--primary) 55%, var(--primary-bright));
}

.header-bar {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: var(--header);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: inherit;
  margin-right: auto;
}

.brand img {
  width: auto;
  height: 3.4rem;
  background: var(--white);
  border-radius: 0.7rem;
  border: 1px solid var(--line);
}

.brand-name { display: block; font-size: 1.02rem; letter-spacing: -0.02em; }
.brand-sub { display: block; font-size: 0.78rem; color: var(--muted); font-weight: 400; font-family: "Source Sans 3", sans-serif; }

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid var(--line);
  border-radius: 0.7rem;
  background: var(--white);
  color: var(--ink);
  cursor: pointer;
}

.nav-toggle svg { width: 1.35rem; height: 1.35rem; }

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0.4rem 0 1rem;
  display: grid;
  gap: 0.15rem;
}

.site-nav a {
  display: block;
  text-decoration: none;
  color: var(--ink);
  font-weight: 600;
  padding: 0.55rem 0.7rem;
  border-radius: 0.55rem;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] { background: var(--sand); color: var(--navy); }

.site-nav a[aria-current="page"] { box-shadow: inset 3px 0 0 var(--primary); }

@media (max-width: 959px) {
  .site-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--white); border-bottom: 1px solid var(--line); padding: 0 1rem 0.6rem; }
  .site-nav.is-open { display: block; }
}

@media (min-width: 960px) {
  .nav-toggle { display: none; }
  .site-nav ul { display: flex; gap: 0.1rem; padding: 0; }
  .site-nav a { font-size: 0.98rem; padding: 0.4rem 0.55rem; }
  .site-nav a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--primary); background: transparent; }
  .brand-sub { display: none; }
}

.hero { padding: 2.5rem 0 1.5rem; }

.hero-grid {
  display: grid;
  gap: 2rem;
  align-items: center;
}

.kicker {
  margin: 0 0 0.7rem;
  color: var(--link);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.78rem;
}

.byline {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  column-gap: 0.45rem;
  font-size: clamp(1.35rem, 1.1rem + 1vw, 1.85rem);
  margin: 0 0 1.4rem;
  color: var(--muted);
}

.rotator { display: inline-grid; }
.rotator-sizer,
.rotator-live { grid-area: 1 / 1; }
.rotator-sizer { visibility: hidden; white-space: nowrap; }
.rotator-live { display: grid; }
.rotator-live span {
  grid-area: 1 / 1;
  opacity: 0;
  animation: rot 12s infinite;
  font-weight: 600;
  color: var(--navy);
  white-space: nowrap;
}
.rotator-live span:nth-child(2) { animation-delay: 3s; }
.rotator-live span:nth-child(3) { animation-delay: 6s; }
.rotator-live span:nth-child(4) { animation-delay: 9s; }

@keyframes rot {
  0% { opacity: 0; }
  2% { opacity: 1; }
  23% { opacity: 1; }
  27% { opacity: 0; }
  100% { opacity: 0; }
}

.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 2.75rem;
  padding: 0.55rem 1.05rem;
  border-radius: 999px;
  background: var(--navy);
  color: var(--white);
  text-decoration: none;
  border: 2px solid var(--navy);
  cursor: pointer;
  font-family: inherit;
  font-size: inherit;
  font-weight: 700;
  line-height: 1.2;
}

.btn:hover { background: #0c4e86; border-color: #0c4e86; color: var(--white); }

.btn-ghost {
  background: transparent;
  color: var(--navy);
}

.btn-ghost:hover { background: var(--white); color: var(--navy); }

.btn-small { min-height: 2.4rem; font-size: 0.98rem; padding: 0.35rem 0.9rem; }

.portrait-frame {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 1.5rem;
  padding: 0.75rem 0.75rem 0;
  box-shadow: var(--shadow);
}

.portrait-frame img { width: min(100%, 26rem); margin-inline: auto; }

.panel {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.section { padding: 1.25rem 0 2.5rem; }

.video-block { padding: 0.5rem; }
.video-frame { position: relative; background: var(--ink); border-radius: 0.8rem; overflow: hidden; }
.video-frame video { width: 100%; height: auto; display: block; background: #041018; }
.video-caption {
  margin: 0.9rem 0.35rem 0.2rem;
  font-family: Outfit, "Source Sans 3", sans-serif;
  font-weight: 600;
  font-size: clamp(1.15rem, 1rem + 0.4vw, 1.4rem);
  letter-spacing: -0.02em;
  color: var(--navy);
}
#video-apresentacao { scroll-margin-top: 5.2rem; }
.sound-btn {
  position: absolute;
  right: 0.75rem;
  bottom: 3.2rem;
  z-index: 2;
}

.seasonal { margin: 1.25rem 0 0; }
.seasonal img { width: 100%; height: auto; border-radius: 0.8rem; }

.lede { color: var(--muted); max-width: 62ch; }

.grid-3, .grid-2, .cards, .opinions, .gallery, .socials {
  display: grid;
  gap: 1rem;
}

.teaser {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 1.15rem 1.2rem 1.2rem;
  text-decoration: none;
  color: inherit;
  min-height: 100%;
}

.teaser strong { font-family: Outfit, sans-serif; font-size: 1.25rem; color: var(--navy); letter-spacing: -0.02em; }
.teaser span { color: var(--muted); }
.teaser:hover { border-color: #b9d4ea; }

.page-head { padding: 2.2rem 0 0.4rem; }
.page-head p { max-width: 68ch; color: var(--muted); }

.prose { padding-bottom: 1rem; }
.prose p { max-width: 72ch; }

.edu, .timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.8rem; }

.edu li, .timeline li {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem 1.1rem 0.9rem 1.15rem;
  box-shadow: var(--shadow);
}

.timeline { position: relative; }
.when { margin: 0 0 0.25rem; color: var(--link); font-weight: 700; font-size: 0.95rem; }
.where { margin: 0; color: var(--muted); }

.cards { align-items: stretch; }
.card, .opinion, .doc-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.1rem 1.15rem 1.15rem;
  box-shadow: var(--shadow);
}
.card, .opinion {
  display: flex;
  flex-direction: column;
  height: 100%;
  container-type: inline-size;
}

.card blockquote {
  margin: 0.7rem 0 1rem;
  padding: 0 0 0 0.9rem;
  border-left: 3px solid var(--primary);
  color: var(--ink);
}

.card blockquote p { margin: 0; max-width: 65ch; }
.card-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem 1.25rem;
  margin-top: auto;
  padding-top: 1rem;
}
.card-actions .btn { text-align: center; }
@container (max-width: 24rem) {
  .card-actions { flex-direction: column; align-items: stretch; }
  .card-actions .btn { width: 100%; }
}
.meta { margin: 0 0 0.45rem; color: var(--muted); font-size: 0.98rem; }
.meta time { color: var(--navy); font-weight: 700; }

.opinion h2 { font-size: 1.15rem; }
.opinion h2 a { text-decoration: none; }
.opinion h2 a:hover { text-decoration: underline; }
.source { margin: 0 0 0.35rem; color: var(--link); font-weight: 700; font-size: 0.92rem; }

.badge {
  display: inline-block;
  margin-left: 0.35rem;
  padding: 0.05rem 0.45rem;
  border-radius: 999px;
  background: #e7f6ee;
  color: #0d6b40;
  font-family: "Source Sans 3", sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  vertical-align: 0.15em;
}

.search-bar {
  display: grid;
  gap: 0.35rem;
  margin: 0.5rem 0 1rem;
}

.search-bar input {
  width: 100%;
  min-height: 2.9rem;
  border: 1px solid var(--line);
  border-radius: 0.8rem;
  padding: 0.55rem 0.9rem;
  font: inherit;
  background: var(--white);
  color: var(--ink);
}

.count { margin: 0 0 0.8rem; color: var(--muted); }

.gallery { grid-template-columns: repeat(2, 1fr); }
.shot {
  display: block;
  background: var(--white);
  border-radius: 0.8rem;
  overflow: hidden;
  border: 1px solid var(--line);
}
.shot img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3; }

.yt-grid { display: grid; gap: 1rem; }
.yt {
  position: relative;
  display: block;
  background: var(--ink);
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  color: var(--white);
  border: 0;
  padding: 0;
  width: 100%;
  cursor: pointer;
  text-align: left;
  font: inherit;
}
.yt img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; opacity: 0.92; }
.yt-sheet { display: block; width: 100%; aspect-ratio: 16 / 9; background: #0a1628; }
.yt-play {
  position: absolute;
  left: 50%;
  top: 46%;
  translate: -50% -50%;
  width: 4rem;
  height: 4rem;
  border-radius: 50%;
  background: var(--white);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}
.yt-play::before {
  content: "";
  position: absolute;
  left: 1.55rem;
  top: 1.25rem;
  border-style: solid;
  border-width: 0.75rem 0 0.75rem 1.2rem;
  border-color: transparent transparent transparent var(--navy);
}
.yt figcaption, .yt span.yt-title {
  display: block;
  padding: 0.75rem 0.9rem 0.9rem;
  font-weight: 700;
}

.socials { gap: 0.7rem; }
.social {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.9rem 1rem;
  text-decoration: none;
  color: var(--ink);
  font-weight: 700;
}
.social svg { width: 1.5rem; height: 1.5rem; flex: none; color: var(--navy); }
.social small { display: block; font-weight: 400; color: var(--muted); }
.mail {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: clamp(1.25rem, 1rem + 1vw, 1.7rem);
  font-family: Outfit, sans-serif;
  letter-spacing: -0.02em;
  text-decoration: none;
  font-weight: 600;
}
.mail svg { width: 1.35rem; height: 1.35rem; flex: none; }

dialog {
  width: min(960px, calc(100% - 2rem));
  border: 0;
  border-radius: 1rem;
  padding: 0.75rem;
  background: var(--ink);
  color: var(--white);
}
dialog::backdrop { background: rgba(10, 22, 40, 0.72); }
dialog img { width: 100%; height: auto; max-height: 74vh; object-fit: contain; margin: 0 auto; background: #000; }
.dialog-bar { display: flex; justify-content: space-between; gap: 0.5rem; align-items: center; margin-bottom: 0.5rem; }
.dialog-bar p { margin: 0; color: var(--white); }
#lightbox .dialog-bar button, #lightbox .pager { background: transparent; color: var(--white); border: 1px solid rgba(255,255,255,.35); border-radius: 999px; min-height: 2.5rem; padding: 0.3rem 0.8rem; font: inherit; cursor: pointer; }

dialog.reader {
  background: #fff;
  color: #0a1628;
  width: min(46rem, calc(100% - 1.25rem));
  max-height: min(90vh, 48rem);
  padding: 0;
  overflow: hidden;
}
.reader-scroll { overflow: auto; max-height: min(90vh, 48rem); padding: 1rem 1.15rem 1.4rem; }
.reader .dialog-bar { justify-content: flex-end; }
dialog.reader h2 {
  color: #143a6b;
  font-size: clamp(1.45rem, 1.15rem + 0.8vw, 1.9rem);
  margin-bottom: 0.35rem;
}
dialog.reader .meta,
dialog.reader .meta time {
  color: #24415f;
}
dialog.reader .meta { margin-bottom: 1rem; }
#leitor-texto p {
  max-width: 68ch;
  text-align: justify;
  hyphens: auto;
  hyphenate-limit-chars: 6 3 3;
}
.home-media { display: grid; gap: 1.25rem; }
.home-media figcaption { margin-top: 0.55rem; color: var(--muted); }

.site-footer {
  margin-top: auto;
  background: var(--ink);
  color: var(--white);
  padding: 2rem 0 2.2rem;
}
.site-footer a { color: var(--primary-bright); }
.site-footer a:focus-visible { outline-color: var(--primary-bright); }
.footer-grid { display: flex; flex-wrap: wrap; gap: 0.8rem 1.5rem; justify-content: space-between; align-items: end; }
.site-footer p { margin: 0; }
.fine { color: #d5e4f2; font-size: 0.98rem; }
.footer-nav { display: flex; gap: 1rem; flex-wrap: wrap; }

.cookie {
  position: fixed;
  z-index: 50;
  left: 0.75rem;
  right: 0.75rem;
  bottom: 0.75rem;
  background: var(--white);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 1rem;
  box-shadow: 0 16px 40px rgba(10, 22, 40, 0.16);
  padding: 0.75rem 1rem;
  display: grid;
  gap: 0.55rem;
  font-size: 0.98rem;
  line-height: 1.45;
}
.cookie p { margin: 0; max-width: 78ch; }
.cookie-actions { display: flex; flex-wrap: wrap; gap: 0.6rem; align-items: center; }
.cookie[hidden] { display: none !important; }
body:has(.cookie:not([hidden])) .site-footer { margin-bottom: 12rem; }

html.js .reveal {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.45s ease, transform 0.45s ease;
}
html.js .reveal.is-visible { opacity: 1; transform: none; }

@media (min-width: 720px) {
  .hero-grid { grid-template-columns: 1.15fr 0.85fr; }
  .grid-3, .cards, .opinions { grid-template-columns: repeat(2, 1fr); }
  .grid-2, .yt-grid { grid-template-columns: 1fr 1fr; }
  .gallery { grid-template-columns: repeat(3, 1fr); }
  .socials { grid-template-columns: 1fr 1fr; }
  .cookie { grid-template-columns: 1fr auto; align-items: center; left: 50%; right: auto; translate: -50% 0; width: min(68rem, calc(100% - 2rem)); }
  body:has(.cookie:not([hidden])) .site-footer { margin-bottom: 7.5rem; }
}

@media (min-width: 1040px) {
  .grid-3, .cards { grid-template-columns: repeat(3, 1fr); }
  .opinions { grid-template-columns: repeat(3, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
  html.js .reveal { opacity: 1; transform: none; }
  .rotator { display: none; }
  .rotator-fallback {
    display: inline;
    font-weight: 600;
    color: var(--navy);
  }
}

@media (prefers-reduced-motion: no-preference) {
  .rotator-fallback { display: none; }
}

@media (max-width: 719px) {
  .rotator-fallback { display: none; }
}
@media (max-width: 719px) and (prefers-reduced-motion: reduce) {
  .rotator-fallback { display: inline; }
  .rotator-sizer, .rotator-live { display: none; }
}
