/* ============================================================
   RACNEGÊ — Design System
   ============================================================ */

:root {
  --ink: #1b0f09;
  --ink-2: #3c250f;
  --muted: #6f5a49;
  --cream: #f7ecd9;
  --cream-2: #e9dab8;
  --white: #fffdf6;
  --orange: #ff5206;
  --orange-dark: #cf3f00;
  --amber: #ffa415;
  --green: #4aaa2b;
  --teal: #058fbf;

  --line: color-mix(in srgb, var(--ink) 14%, transparent);
  --line-strong: color-mix(in srgb, var(--ink) 28%, transparent);

  --radius-sm: 10px;
  --radius: 18px;
  --radius-lg: 28px;

  --shadow-sm: 0 1px 2px rgba(27, 15, 9, 0.06), 0 8px 24px -12px rgba(27, 15, 9, 0.18);
  --shadow: 0 2px 4px rgba(27, 15, 9, 0.05), 0 24px 60px -24px rgba(27, 15, 9, 0.35);

  --container: 1180px;
  --gutter: clamp(24px, 5.5vw, 48px);

  --font-display: "Fraunces Variable", "Iowan Old Style", Georgia, serif;
  --font-body: "Instrument Sans Variable", "Helvetica Neue", Arial, sans-serif;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  font-synthesis-weight: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body.menu-open {
  overflow: hidden;
}

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

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

button {
  font: inherit;
  color: inherit;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -0.02em;
  margin: 0;
  text-wrap: balance;
}

p {
  margin: 0;
  text-wrap: pretty;
}

::selection {
  background: var(--amber);
  color: var(--ink);
}

:focus-visible {
  outline: 3px solid var(--teal);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- Layout ---------- */

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  padding-block: clamp(64px, 8vw, 120px);
  position: relative;
}

.section--tight {
  padding-block: clamp(44px, 6vw, 80px);
}

.section--cream {
  background: var(--cream);
}

.section--paper {
  background: linear-gradient(180deg,
    var(--white) 0%,
    var(--white) 80%,
    color-mix(in srgb, var(--cream) 85%, var(--white)) 100%);
}

.section--ink {
  background:
    repeating-linear-gradient(0deg, transparent 0 46px, rgba(255,235,220,.035) 46px 47px),
    linear-gradient(135deg, #2b2118 0%, #231a13 100%);
  color: var(--cream);
}

.section--ink p {
  color: color-mix(in srgb, var(--cream) 78%, transparent);
}

/* ---------- Typography helpers ---------- */

.display {
  font-size: clamp(2.4rem, 5.2vw, 4.2rem);
}

.h2 {
  font-size: clamp(2rem, 3.8vw, 3.1rem);
}

.h3 {
  font-size: clamp(1.35rem, 2vw, 1.75rem);
}

.lead {
  font-size: clamp(1.1rem, 1.6vw, 1.3rem);
  line-height: 1.55;
  color: var(--ink-2);
}

.muted {
  color: var(--muted);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-2);
}

.eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  background: var(--orange);
  display: inline-block;
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: clamp(32px, 4vw, 56px);
}

.section-head__text {
  max-width: 620px;
  display: grid;
  gap: 14px;
}

.serif-italic {
  font-style: italic;
  font-variation-settings: "SOFT" 60, "WONK" 1;
}

.accent {
  color: var(--orange);
}

/* ---------- Buttons ---------- */

.btn {
  --btn-bg: var(--ink);
  --btn-fg: var(--cream);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.95rem 1.5rem;
  background: var(--btn-bg);
  color: var(--btn-fg);
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.25s var(--ease), background-color 0.25s var(--ease),
    color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.btn:active {
  transform: translateY(0);
}

.btn--primary {
  --btn-bg: var(--orange);
  --btn-fg: var(--ink);
}

.btn--primary:hover {
  --btn-bg: var(--amber);
  --btn-fg: var(--ink);
}

.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--ink);
  border-color: var(--line-strong);
}

.btn--ghost:hover {
  --btn-bg: var(--ink);
  --btn-fg: var(--cream);
  border-color: var(--ink);
}

.btn--light {
  --btn-bg: var(--cream);
  --btn-fg: var(--ink);
}

.btn--sm {
  padding: 0.6rem 1.05rem;
  font-size: 0.85rem;
}

.btn__icon {
  width: 1.05em;
  height: 1.05em;
  flex: none;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  gap: 0.5rem;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 2px solid var(--orange);
  padding-bottom: 2px;
  transition: gap 0.25s var(--ease), color 0.25s var(--ease);
}

.link-arrow:hover {
  gap: 0.85rem;
  color: var(--orange-dark);
}

/* ---------- Header ---------- */

.skip-link {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 200;
  background: var(--ink);
  color: var(--cream);
  padding: 12px 20px;
  border-radius: 0 0 12px 12px;
  font-weight: 600;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.45s ease, background-color 0.45s ease, backdrop-filter 0.45s ease;
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
  background: transparent;
  backdrop-filter: blur(18px) saturate(1.1);
  -webkit-backdrop-filter: blur(18px) saturate(1.1);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 86px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  flex: none;
}

.brand img {
  height: 46px;
  width: auto;
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2vw, 30px);
}

.nav a {
  position: relative;
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  color: var(--ink-2);
  padding-block: 6px;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: var(--orange);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}

.nav a:hover::after,
.nav a[aria-current="page"]::after {
  transform: scaleX(1);
}

.nav a[aria-current="page"] {
  color: var(--ink);
}

.header-cta {
  display: inline-flex;
}

.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: transparent;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--ink);
  position: relative;
  transition: background 0.2s ease;
}

.menu-toggle span::before,
.menu-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  background: var(--ink);
  transition: transform 0.25s var(--ease);
}

.menu-toggle span::before {
  top: -6px;
}

.menu-toggle span::after {
  top: 6px;
}

.menu-toggle[aria-expanded="true"] span {
  background: transparent;
}

.menu-toggle[aria-expanded="true"] span::before {
  transform: translateY(6px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span::after {
  transform: translateY(-6px) rotate(-45deg);
}

.mobile-menu {
  position: fixed;
  inset: 86px 0 0;
  z-index: 90;
  background: var(--cream);
  padding: 32px var(--gutter) 48px;
  overflow-y: auto;
  display: none;
  flex-direction: column;
  gap: 6px;
}

.mobile-menu.is-open {
  display: flex;
}

.mobile-menu a {
  font-family: var(--font-display);
  font-size: 1.9rem;
  text-decoration: none;
  padding-block: 10px;
  border-bottom: 1px solid var(--line);
}

.mobile-menu .btn {
  margin-top: 24px;
  align-self: flex-start;
  font-family: var(--font-body);
  font-size: 1rem;
  border-bottom: 0;
  padding-block: 0.95rem;
}

/* ---------- Pattern ---------- */

.pattern {
  --p-bg: var(--ink);
  display: block;
  width: 100%;
  height: 18px;
  color: var(--p-bg);
}

.pattern--tall {
  height: 34px;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  overflow: visible;
  padding-block: clamp(48px, 7vw, 96px) clamp(56px, 8vw, 104px);
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 24px;
  align-items: center;
  max-width: 1180px;
}

.hero-copy {
  display: grid;
  gap: 26px;
  justify-items: start;
}

.hero h1 {
  font-size: clamp(2.7rem, 5.9vw, 5.1rem);
  line-height: 0.97;
  letter-spacing: -0.035em;
  font-weight: 600;
}

.hero h1 em {
  font-style: italic;
  font-variation-settings: "SOFT" 80, "WONK" 1;
  color: var(--orange);
}

.hero-lead {
  max-width: 46ch;
  color: var(--ink-2);
  font-size: clamp(1.05rem, 1.45vw, 1.2rem);
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-note {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
}

.hero-note .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--green) 22%, transparent);
}

/* ---------- Marquee ---------- */

.marquee {
  background: #241a13;
  color: var(--cream);
  overflow: hidden;
  padding-block: 14px;
  border-block: 1px solid rgba(255, 255, 255, 0.08);
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 36s linear infinite;
}

.marquee-track span {
  display: inline-flex;
  align-items: center;
  gap: 22px;
  padding-right: 22px;
  font-size: 0.82rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 600;
  white-space: nowrap;
  color: color-mix(in srgb, var(--cream) 88%, transparent);
}

.marquee-track i {
  font-style: normal;
  color: var(--orange);
  font-size: 1rem;
}

@keyframes marquee {
  to {
    transform: translateX(-50%);
  }
}

/* ---------- Stats ---------- */

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  margin-top: clamp(40px, 5vw, 64px);
}

.stat {
  padding: 28px 20px 0 0;
  display: grid;
  gap: 4px;
}

.stat + .stat {
  padding-left: 28px;
  border-left: 1px solid var(--line);
}

.stat b {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.03em;
}

.stat span {
  font-size: 0.86rem;
  color: var(--muted);
  max-width: 18ch;
}

/* ---------- Cards: linhas ---------- */

.linhas-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.linha-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 30px 26px 26px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-decoration: none;
  overflow: hidden;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}

.linha-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: var(--accent, var(--orange));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease);
}

.linha-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-sm);
  border-color: var(--line-strong);
}

.linha-card:hover::before {
  transform: scaleX(1);
}

.linha-card__num {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--accent, var(--orange));
}

.linha-card h3 {
  font-size: 1.32rem;
  line-height: 1.15;
}

.linha-card p {
  font-size: 0.95rem;
  color: var(--muted);
}

.linha-card__meta {
  margin-top: auto;
  display: flex;
  gap: 14px;
  font-size: 0.78rem;
  color: var(--muted);
  border-top: 1px solid var(--line);
  padding-top: 14px;
}

/* ---------- Publicações ---------- */

.pub-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.pub-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.pub-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-sm);
}

.pub-card__cover {
  position: relative;
  aspect-ratio: 4 / 3.4;
  background: var(--cream-2);
  overflow: hidden;
}

.pub-card__cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  padding: 0;
  transition: transform 0.5s var(--ease);
}

.pub-card:hover .pub-card__cover img {
  transform: scale(1.04);
}


.pub-card__body {
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.pub-card h3 {
  font-size: 1.18rem;
  line-height: 1.2;
}

.pub-card__meta {
  margin-top: auto;
  padding-top: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.8rem;
  color: var(--muted);
  border-top: 1px solid var(--line);
}
.pub-card__pill {
  display: inline-flex;
  align-items: center;
  flex: none;
  background: var(--orange);
  color: var(--ink);
  font-size: 0.64rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 999px;
}
.pub-card__meta strong {
  margin-left: auto;
}

.pub-card__meta strong {
  color: var(--orange-dark);
  font-weight: 600;
}

/* ---------- Timeline ---------- */

.timeline {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}

.timeline-item {
  display: grid;
  grid-template-columns: 150px 1fr auto;
  gap: 24px;
  align-items: baseline;
  padding-block: 26px;
  border-bottom: 1px solid var(--line);
}

.timeline-item time {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--orange-dark);
}

.timeline-item h3 {
  font-size: 1.3rem;
}

.timeline-item p {
  color: var(--muted);
  font-size: 0.95rem;
  margin-top: 6px;
  max-width: 60ch;
}

.timeline-item .tag {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border: 1px solid var(--line-strong);
  padding: 5px 10px;
  border-radius: 999px;
  white-space: nowrap;
  color: var(--ink-2);
}

/* ---------- Quilombo ---------- */

.quilombo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 4vw, 64px);
  align-items: center;
}

.quilombo__copy {
  display: grid;
  gap: 22px;
  justify-items: start;
}

.quilombo blockquote {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.6vw, 2.2rem);
  line-height: 1.18;
  letter-spacing: -0.02em;
  color: var(--cream);
}

.quilombo blockquote em {
  color: var(--amber);
  font-style: italic;
}

.quilombo cite {
  font-style: normal;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--cream) 60%, transparent);
}

.quilombo__visual {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4 / 3.2;
  background: var(--ink-2);
}

.quilombo__visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.92) contrast(1.02);
}

.quilombo__visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(27, 15, 9, 0.72));
}

.quilombo__visual figcaption {
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 20px;
  z-index: 1;
  color: var(--cream);
  font-size: 0.82rem;
  letter-spacing: 0.04em;
}

/* ---------- Videos ---------- */

.video-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.video-card {
  display: grid;
  gap: 14px;
  text-decoration: none;
}

.video-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--ink);
}

.video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.video-card h3 {
  font-size: 1.15rem;
  text-decoration: underline;
  text-decoration-color: transparent;
  transition: text-decoration-color 0.25s ease;
}

.video-card:hover h3 {
  text-decoration-color: var(--orange);
}

.video-card p {
  font-size: 0.85rem;
  color: var(--muted);
}

/* ---------- CTA band ---------- */

.cta-band {
  background: var(--orange);
  color: var(--ink);
  border-radius: var(--radius-lg);
  padding: clamp(32px, 5vw, 64px);
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 32px;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.cta-band::after {
  content: "";
  position: absolute;
  width: 420px;
  height: 420px;
  right: -140px;
  top: -160px;
  border: 2px solid color-mix(in srgb, var(--ink) 18%, transparent);
  border-radius: 50%;
}

.cta-band h2 {
  font-size: clamp(1.9rem, 3.4vw, 2.9rem);
  position: relative;
}

.cta-band p {
  color: var(--ink);
  max-width: 46ch;
  position: relative;
}

.cta-band .btn {
  justify-self: end;
  position: relative;
}

.cta-band--solo {
  grid-template-columns: 1fr;
}

.cta-band--solo h2 {
  max-width: 22ch;
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--ink);
  color: var(--cream);
  padding-top: clamp(48px, 6vw, 80px);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: clamp(28px, 4vw, 56px);
  padding-bottom: 48px;
}

.footer-brand {
  display: grid;
  gap: 18px;
  align-content: start;
  justify-items: start;
}

.footer-brand img {
  height: 54px;
  width: auto;
  background: var(--cream);
  padding: 10px 14px;
  border-radius: 10px;
}

.footer-brand p {
  font-size: 0.9rem;
  color: color-mix(in srgb, var(--cream) 68%, transparent);
  max-width: 34ch;
}

.footer-col h3 {
  font-family: var(--font-body);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 16px;
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.footer-col a,
.footer-col p {
  font-size: 0.9rem;
  color: color-mix(in srgb, var(--cream) 78%, transparent);
  text-decoration: none;
}

.footer-col a:hover {
  color: var(--cream);
  text-decoration: underline;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-block: 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  font-size: 0.78rem;
  color: color-mix(in srgb, var(--cream) 72%, transparent);
}

.footer-bottom a {
  color: inherit;
}

/* ---------- Page hero ---------- */

.page-hero {
  padding-block: clamp(48px, 7vw, 96px) clamp(28px, 4vw, 48px);
  position: relative;
  overflow: visible;
}

.page-hero__inner {
  position: relative;
  display: grid;
  gap: 20px;
}

.page-hero h1 {
  font-size: clamp(2.5rem, 5.4vw, 4.4rem);
  line-height: 0.98;
}

.page-hero p {
  max-width: 62ch;
  color: var(--ink-2);
  font-size: 1.08rem;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.breadcrumbs a {
  text-decoration: none;
}

.breadcrumbs a:hover {
  color: var(--orange-dark);
}

/* ---------- Content blocks ---------- */

.prose {
  max-width: 68ch;
  display: grid;
  gap: 20px;
}

.prose p {
  color: var(--ink-2);
}

.prose h2 {
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  margin-top: 16px;
}

/* Corpo de artigo (HTML vindo de src/data/artigos) */
.prose h3 {
  font-size: clamp(1.3rem, 2vw, 1.6rem);
  margin-top: 14px;
}

.prose h4 {
  font-size: 1.1rem;
  margin-top: 12px;
}

.prose ul,
.prose ol {
  display: grid;
  gap: 8px;
  padding-left: 1.25rem;
  margin: 0;
}

.prose li {
  color: var(--ink-2);
}

.prose li::marker {
  color: var(--orange);
}

.prose blockquote {
  margin: 6px 0;
  padding: 4px 0 4px 18px;
  border-left: 3px solid var(--orange);
  color: var(--ink-2);
  font-size: 1.04rem;
}

.prose blockquote p {
  margin: 0;
}

.prose figure {
  margin: 10px 0;
  display: grid;
  gap: 10px;
  justify-items: start;
}

.prose figure img {
  width: auto;
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-sm);
}

.prose figcaption {
  font-size: 0.8rem;
  line-height: 1.55;
  color: var(--muted);
  overflow-wrap: anywhere;
}

.prose hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 16px 0;
  width: 100%;
}

.prose a {
  color: inherit;
  text-decoration-color: var(--orange);
  text-underline-offset: 3px;
}

.prose a:hover {
  color: var(--orange-dark);
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 4vw, 64px);
  align-items: start;
}

.stack {
  display: grid;
  gap: 18px;
}

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(22px, 3vw, 32px);
}

.card--flat {
  background: transparent;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.chips li {
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 5px 12px;
  color: var(--ink-2);
}

/* ---------- Membros ---------- */

.member-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.member-grid--4 {
  grid-template-columns: repeat(4, 1fr);
}

.member-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  display: grid;
  gap: 8px;
  align-content: start;
}

.member-card__role {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--orange-dark);
  font-weight: 700;
}

.member-card h3 {
  font-size: 1.3rem;
}

.member-card p {
  font-size: 0.88rem;
  color: var(--muted);
}

.member-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.member-list li {
  font-size: 0.95rem;
  color: var(--ink-2);
  display: flex;
  align-items: center;
  gap: 8px;
}

.member-list li::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--amber);
}

/* ---------- Acervo detail ---------- */

.pub-hero {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(28px, 5vw, 72px);
  align-items: start;
}

.pub-hero__cover {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 18px;
  box-shadow: var(--shadow-sm);
}

.pub-hero__cover img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-sm);
}

.pub-info {
  display: grid;
  gap: 20px;
  align-content: start;
}

.pub-info dl {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px 20px;
  margin: 0;
  padding: 20px 0;
  border-block: 1px solid var(--line);
  font-size: 0.92rem;
}

.pub-info dt {
  color: var(--muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.72rem;
  align-self: center;
  font-weight: 600;
}

.pub-info dd {
  margin: 0;
  color: var(--ink-2);
}

/* ---------- Contato ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 4vw, 64px);
  align-items: start;
}

.contact-list {
  display: grid;
  gap: 22px;
}

.contact-item {
  display: grid;
  gap: 4px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
}

.contact-item h3 {
  font-family: var(--font-body);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.contact-item a,
.contact-item p {
  font-size: 1.05rem;
  color: var(--ink);
  text-decoration: none;
}

.contact-item a:hover {
  color: var(--orange-dark);
  text-decoration: underline;
}

.form {
  display: grid;
  gap: 16px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 3vw, 40px);
}

.field {
  display: grid;
  gap: 7px;
}

.field label {
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--ink-2);
}

.field input,
.field textarea,
.field select {
  font: inherit;
  font-size: 0.98rem;
  padding: 13px 14px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--cream);
  color: var(--ink);
  width: 100%;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.field textarea {
  min-height: 150px;
  resize: vertical;
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: none;
  border-color: var(--orange);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--orange) 18%, transparent);
}

.form-note {
  font-size: 0.8rem;
  color: var(--muted);
}

/* ---------- Reveal ---------- */

.js [data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.js [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

[data-reveal][data-delay="1"] {
  transition-delay: 0.08s;
}

[data-reveal][data-delay="2"] {
  transition-delay: 0.16s;
}

[data-reveal][data-delay="3"] {
  transition-delay: 0.24s;
}

/* ---------- Responsive ---------- */

@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .linhas-grid,
  .pub-grid,
  .member-grid,
  .member-grid--4,
  .video-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .quilombo,
  .two-col,
  .contact-grid,
  .pub-hero {
    grid-template-columns: 1fr;
  }

  .cta-band {
    grid-template-columns: 1fr;
  }

  .cta-band .btn {
    justify-self: start;
  }
}

@media (max-width: 860px) {
  .nav,
  .header-cta {
    display: none;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .stats {
    grid-template-columns: 1fr 1fr;
  }

  .stat {
    padding: 22px 18px;
  }

  .stat + .stat {
    border-left: 0;
  }

  .stat:nth-child(even) {
    border-left: 1px solid var(--line);
  }

  .stat:nth-child(n + 3) {
    border-top: 1px solid var(--line);
  }

  .timeline-item {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .timeline-item .tag {
    justify-self: start;
  }
}

@media (max-width: 640px) {
  .linhas-grid,
  .pub-grid,
  .member-grid,
  .member-grid--4,
  .video-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .header-inner {
    height: 74px;
  }

  .mobile-menu {
    inset: 74px 0 0;
  }

  .brand img {
    height: 38px;
  }

  .hero h1 {
    font-size: clamp(2.4rem, 10vw, 3.2rem);
  }

  .linha-card {
    padding: 24px 22px 22px;
  }

  .linha-card h3 {
    font-size: 1.2rem;
  }

  .linha-card p {
    font-size: 0.9rem;
  }

  .pub-card__body {
    padding: 18px;
  }

  .stats {
    grid-template-columns: 1fr 1fr;
  }

  .footer-bottom {
    justify-content: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  .js [data-reveal] {
    opacity: 1;
    transform: none;
  }

  .marquee-track {
    animation: none;
  }
}

/* ============================================================
   Blocos inline portados de src/styles/global.css? Não —
   o que segue são os <style> inline dos componentes Astro.
   Mantidos aqui para o design ficar 1:1.
   ============================================================ */

/* --- components/Header.astro (nenhum) --- */

/* --- components/Footer.astro --- */
.footer-social { display: flex; gap: 10px; }
.footer-social a { width: 38px; height: 38px; border: 1px solid rgba(255, 255, 255, 0.2); border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; color: var(--cream); transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease; }
.footer-social a:hover { background: var(--orange); border-color: var(--orange); color: #fff; }
.footer-social svg { width: 18px; height: 18px; }

/* --- components/PublicacaoCard.astro --- */
.pub-card h3 a { text-decoration: none; }
.pub-card h3 a:hover { text-decoration: underline; text-decoration-color: var(--orange); }
.pub-card__body > p { font-size: 0.94rem; }

/* --- components/VideoEmbed.astro --- */
.video-facade { position: absolute; inset: 0; width: 100%; height: 100%; padding: 0; border: 0; background: var(--ink); cursor: pointer; overflow: hidden; }
.video-facade img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s var(--ease), opacity 0.3s ease; }
.video-facade:hover img { transform: scale(1.04); opacity: 0.88; }
.video-facade__play { position: absolute; inset: 0; display: grid; place-items: center; }
.video-facade__play svg { width: 62px; height: 62px; padding: 18px; border-radius: 50%; background: var(--orange); color: #fff; box-shadow: 0 12px 30px -10px rgba(0, 0, 0, 0.6); transition: transform 0.25s var(--ease); }
.video-facade:hover .video-facade__play svg { transform: scale(1.08); }

/* --- components/Compartilhar.astro --- */
.compartilhar { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.compartilhar a { font-size: 0.82rem; font-weight: 600; text-decoration: none; border: 1px solid var(--line-strong); border-radius: 999px; padding: 7px 14px; transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease; }
.compartilhar a:hover { background: var(--ink); border-color: var(--ink); color: var(--cream); }

/* --- components/Pattern.astro (sem CSS) --- */

/* --- components/acervo/PublicacaoDetalhe.astro --- */
.citacao { margin-top: 14px; font-size: 0.92rem; color: var(--muted); padding-left: 16px; border-left: 3px solid var(--amber); }
.pub-info h1, .pub-info p { text-wrap: balance; }

/* --- components/acervo/ArtigoDetalhe.astro --- */
.artigo-head { max-width: 900px; }
.artigo-head__titulo { font-size: clamp(2rem, 4.2vw, 3.4rem); margin: 10px 0 16px; text-wrap: balance; }
.artigo-head__meta { margin-top: 18px; font-size: 0.9rem; color: var(--muted); }
.artigo-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: clamp(28px, 4vw, 64px); align-items: start; }
.artigo-aside { display: grid; gap: 20px; position: sticky; top: 100px; }
.artigo-aside .h3 { font-size: 1.05rem; margin: 0 0 12px; }
.aside-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.aside-list a { display: block; font-weight: 600; font-size: 0.92rem; line-height: 1.35; text-decoration: none; color: var(--ink); }
.aside-list a:hover { text-decoration: underline; text-decoration-color: var(--orange); }
.aside-list span { display: block; font-size: 0.78rem; color: var(--muted); margin-top: 2px; }
.aside-list + .link-arrow { margin-top: 18px; }
.leitura-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.leitura-card { display: grid; gap: 10px; align-content: start; padding: 26px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); text-decoration: none; color: inherit; transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), border-color 0.25s var(--ease); }
.leitura-card:hover { transform: translateY(-3px); border-color: var(--line-strong); box-shadow: var(--shadow-sm); }
.leitura-card__tag { font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--orange-dark); font-weight: 700; }
.leitura-card h3 { font-family: var(--font-display); font-weight: 600; font-size: 1.15rem; line-height: 1.25; margin: 0; }
.leitura-card__cta { font-size: 0.85rem; font-weight: 600; color: var(--ink-2); }
@media (max-width: 980px) { .artigo-layout { grid-template-columns: 1fr; } .artigo-aside { position: static; grid-template-columns: repeat(2, 1fr); } .leitura-grid { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .artigo-aside { grid-template-columns: 1fr; } }

/* --- pages/index.astro --- */
.sobre-figure { margin: 0; position: relative; border-radius: var(--radius-lg); overflow: hidden; background: var(--cream-2); box-shadow: var(--shadow-sm); }
.sobre-figure img { width: 100%; height: 100%; aspect-ratio: 4 / 3.4; object-fit: cover; }
.sobre-figure figcaption { position: absolute; left: 18px; right: 18px; bottom: 16px; background: transparent; backdrop-filter: blur(8px); border-radius: 12px; padding: 10px 14px; font-size: 0.78rem; color: var(--ink-2); line-height: 1.4; }
.linha-card--cta {
  background: linear-gradient(155deg, #33251c 0%, #261d15 100%);
  color: var(--cream);
  border-color: #3d2e22;
  justify-content: flex-end;
  gap: 18px;
}
.linha-card--cta h3 { color: var(--cream); font-size: 1.4rem; }
.linha-card--cta .linha-card__meta { color: color-mix(in srgb, var(--cream) 65%, transparent); border-top-color: rgba(255, 255, 255, 0.18); }
.linha-card--cta .linha-card__num { color: var(--amber); }
.linha-card--cta:hover { background: linear-gradient(155deg, #3d2c21 0%, #2e241b 100%); }
.linha-card--cta::before { background: var(--amber); }

/* --- pages/sobre.astro --- */
.facts dl { display: grid; gap: 14px; margin: 22px 0 26px; }
.facts dl > div { display: grid; gap: 2px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.facts dt { font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.facts dd { margin: 0; font-size: 0.98rem; color: var(--ink-2); }
.pilares { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.pilar { display: grid; gap: 12px; align-content: start; }
.pilar__num { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.16em; color: var(--orange); }
.pilar h3 { font-size: 1.5rem; }
.pilar p { color: var(--muted); font-size: 0.95rem; }
.endereco { display: grid; gap: 6px; padding-block: 16px; border-block: 1px solid var(--line); }
.endereco a { color: var(--orange-dark); }
.map-card { position: relative; display: flex; align-items: flex-end; min-height: 360px; padding: 26px; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); text-decoration: none; background: radial-gradient(circle at 72% 26%, color-mix(in srgb, var(--amber) 30%, transparent), transparent 52%), repeating-linear-gradient(0deg, transparent 0 39px, rgba(27, 15, 9, 0.05) 39px 40px), repeating-linear-gradient(90deg, transparent 0 39px, rgba(27, 15, 9, 0.05) 39px 40px), var(--cream-2); transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease); }
.map-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-sm); }
.map-card__pin { position: absolute; top: 34%; left: 62%; transform: translate(-50%, -50%); width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: var(--orange); color: #fff; box-shadow: 0 0 0 12px color-mix(in srgb, var(--orange) 18%, transparent), 0 0 0 26px color-mix(in srgb, var(--orange) 9%, transparent); }
.map-card__pin svg { width: 30px; height: 30px; }
.map-card__info { position: relative; display: grid; gap: 4px; padding: 16px 20px; border-radius: 14px; background: color-mix(in srgb, var(--cream) 94%, transparent); backdrop-filter: blur(8px); border: 1px solid var(--line); }
.map-card__info strong { font-family: var(--font-display); font-size: 1.25rem; font-weight: 600; }
.map-card__info span { font-size: 0.85rem; color: var(--muted); }
.map-card__link { color: var(--orange-dark) !important; font-weight: 600; margin-top: 6px; }
@media (max-width: 1024px) { .pilares { grid-template-columns: 1fr; } }

/* --- pages/pesquisa.astro --- */
.linhas-detalhe { display: grid; gap: 0; border-top: 1px solid var(--line); }
.linha-detalhe { position: relative; display: grid; grid-template-columns: 120px 1fr 40px; gap: clamp(18px, 3vw, 40px); align-items: start; padding-block: clamp(28px, 4vw, 44px); border-bottom: 1px solid var(--line); scroll-margin-top: 110px; }
.linha-detalhe__num { font-family: var(--font-display); font-size: clamp(2.4rem, 4vw, 3.6rem); line-height: 1; font-weight: 600; color: var(--accent); letter-spacing: -0.03em; }
.linha-detalhe__body { display: grid; gap: 14px; }
.linha-detalhe__body p { color: var(--muted); max-width: 62ch; }
.linha-detalhe__mark { width: 10px; height: 10px; border-radius: 50%; background: var(--accent); margin-top: 14px; justify-self: end; }
.nota { margin-top: 28px; font-size: 0.85rem; color: var(--muted); max-width: 70ch; }
.nota a { color: var(--orange-dark); }
.passos ol { margin: 18px 0 0; padding: 0; list-style: none; display: grid; gap: 16px; counter-reset: passo; }
.passos li { position: relative; padding-left: 34px; font-size: 0.95rem; color: var(--muted); line-height: 1.55; }
.passos li::before { counter-increment: passo; content: counter(passo); position: absolute; left: 0; top: 1px; width: 22px; height: 22px; border-radius: 999px; background: var(--cream-2); color: var(--ink-2); font-size: 0.72rem; font-weight: 700; display: grid; place-items: center; }
.passos strong { color: var(--ink); }
@media (max-width: 720px) { .linha-detalhe { grid-template-columns: 1fr; gap: 10px; } .linha-detalhe__mark { display: none; } }

/* --- pages/acoes.astro --- */
.outras { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.outra { border-top: 3px solid var(--amber); padding: 24px 0 0; display: grid; gap: 8px; }
.outra h3 { font-size: 1.3rem; }
.outra p { color: var(--muted); font-size: 0.95rem; max-width: 52ch; }
@media (max-width: 720px) { .outras { grid-template-columns: 1fr; } }

/* --- pages/videos.astro --- */
.youtube-cta { margin-top: clamp(40px, 5vw, 64px); padding: clamp(24px, 3vw, 36px); border: 1px solid var(--line); border-radius: var(--radius); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; background: var(--cream); }

/* --- pages/contato.astro --- */
.redes { display: flex; flex-wrap: wrap; gap: 16px; }
.redes a { color: var(--orange-dark); font-weight: 600; }

/* --- pages/acervo/index.astro --- */
.artigos { display: grid; gap: 0; border-top: 1px solid var(--line); }
.artigo { display: grid; gap: 10px; padding-block: 26px; border-bottom: 1px solid var(--line); grid-template-columns: 170px 1fr auto; align-items: baseline; column-gap: 24px; }
.artigo__meta { display: flex; align-items: center; gap: 10px; font-size: 0.78rem; color: var(--muted); letter-spacing: 0.06em; }
.artigo__tag { border: 1px solid var(--line-strong); border-radius: 999px; padding: 4px 10px; color: var(--ink-2); font-weight: 600; font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.1em; }
.artigo h3 { font-size: 1.25rem; }
.artigo h3 a { text-decoration: none; color: inherit; }
.artigo h3 a:hover { text-decoration: underline; text-decoration-color: var(--orange); }
.artigo p { grid-column: 2 / 3; color: var(--muted); font-size: 0.93rem; max-width: 62ch; }
.artigo .link-arrow { grid-column: 3; grid-row: 1 / 3; align-self: center; font-size: 0.85rem; white-space: nowrap; }
@media (max-width: 860px) { .artigo { grid-template-columns: 1fr; } .artigo p, .artigo .link-arrow { grid-column: auto; grid-row: auto; justify-self: start; } }

/* --- pages/membros.astro --- */
.lider-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.lider { display: flex; gap: 22px; align-items: flex-start; }
.avatar { flex: none; width: 76px; height: 76px; border-radius: 50%; display: grid; place-items: center; font-family: var(--font-display); font-size: 1.5rem; font-weight: 600; color: var(--cream); background: radial-gradient(circle at 30% 25%, var(--orange), transparent 60%), linear-gradient(140deg, var(--ink), var(--ink-2)); border: 3px solid var(--cream-2); }
.lider h3 { font-size: 1.4rem; }
.lider p { font-size: 0.9rem; color: var(--muted); }
.member-list { display: grid; gap: 10px; }
.nota-fonte { font-size: 0.8rem; color: var(--muted); margin-top: 8px; }
@media (max-width: 860px) { .lider-grid { grid-template-columns: 1fr; } }

/* ============================================================
   ACABAMENTO — camada de polimento (não altera o layout 1:1)
   ============================================================ */

/* Barra de rolagem discreta no tom da marca */
html { scrollbar-width: thin; scrollbar-color: var(--orange) transparent; }
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--orange); border-radius: 999px; }
::-webkit-scrollbar-thumb:hover { background: var(--orange-dark); }

/* Setas dos botões acompanham o hover (o mesmo vocabulário do .link-arrow) */
.btn__icon { transition: transform 0.25s var(--ease); }
.btn:hover .btn__icon,
.btn:focus-visible .btn__icon { transform: translateX(3px); }

/* Entrada suave das imagens (classe controlada pelo JS; sem JS nada some) */
.js img.rac-fade { opacity: 0; transform: scale(1.03); transition: opacity 0.55s var(--ease), transform 0.55s var(--ease); }
.js img.rac-fade.is-loaded { opacity: 1; transform: none; }


/* Menu mobile: hover no mesmo vocabulário do site */
.mobile-menu a { transition: color 0.2s ease; }
.mobile-menu a:not(.btn):hover { color: var(--orange-dark); }

/* Áreas interativas ganham o leque que o design já insinua, agora consistente */
.pub-card,
.leitura-card,
.artigo a { -webkit-tap-highlight-color: transparent; }

/* Foco visível idêntico em todos os elementos interativos */
.cta-band .btn:focus-visible,
.link-arrow:focus-visible,
.pub-card:focus-visible,
.leitura-card:focus-visible { outline: 3px solid var(--teal); outline-offset: 4px; }

@media (prefers-reduced-motion: reduce) {
  .js img.rac-fade { transition: none; }
  .btn__icon { transform: none !important; }
}

/* ============================================================
   ACABAMENTO mobile — toque, safe-area e sem "hover preso"
   ============================================================ */

/* removê o flash azul de tap em telas sensíveis ao toque */
* { -webkit-tap-highlight-color: transparent; }

/* respeito às bordas com notch (iPhone X+) */
.container {
  padding-inline: max(var(--gutter), env(safe-area-inset-left, 0px)) max(var(--gutter), env(safe-area-inset-right, 0px));
}
.mobile-menu {
  padding-inline: max(var(--gutter), env(safe-area-inset-left, 0px)) max(var(--gutter), env(safe-area-inset-right, 0px));
  padding-bottom: max(48px, env(safe-area-inset-bottom, 0px));
}

/* feedback imediato no toque (ativo) sem depender de hover */
.btn:active,
.pub-card:active,
.linha-card:active,
.leitura-card:active,
.member-card:active,
.outra:active { transform: scale(0.985); }
.pub-card:active .pub-card__cover img { transition: none; }

/* em dispositivos sem hover, nada fica "preso" após o toque */
@media (hover: none) {
  .pub-card:hover, .linha-card:hover, .linha-card--cta:hover, .leitura-card:hover { transform: none; box-shadow: none; }
  .btn:hover { transform: translateY(0); box-shadow: none; }
  .link-arrow:hover { gap: 0.5rem; }
}

/* áreas de toque no piso de 44px nas interações principais (Apple HIG) */
@media (pointer: coarse) {
  .nav a, .header-cta, .btn { min-height: 44px; }
  .breadcrumbs a { padding-block: 6px; }
  .chips li { padding-block: 10px 9px; }
}

/* ============================================================
   ACERVO — busca e filtros vivos
   ============================================================ */

.acervo-busca {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--white);
  border: 1px solid color-mix(in srgb, var(--ink) 16%, transparent);
  border-radius: 999px;
  padding: 12px 14px 12px 24px;
  max-width: 680px;
  box-shadow:
    0 1px 2px rgba(27, 15, 9, 0.08),
    0 22px 48px -24px rgba(27, 15, 9, 0.38),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease), transform 0.25s var(--ease);
}
.acervo-busca:hover {
  transform: translateY(-2px);
  box-shadow:
    0 2px 4px rgba(27, 15, 9, 0.09),
    0 28px 54px -24px rgba(27, 15, 9, 0.42),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.acervo-busca:focus-within {
  border-color: var(--orange);
  transform: translateY(-2px);
  box-shadow:
    0 2px 4px rgba(27, 15, 9, 0.10),
    0 26px 56px -22px rgba(27, 15, 9, 0.42),
    0 0 0 3.5px color-mix(in srgb, var(--orange) 32%, transparent),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.acervo-busca__icon {
  width: 24px;
  height: 24px;
  flex: none;
  color: var(--muted);
  transition: color 0.25s ease;
}
.acervo-busca:focus-within .acervo-busca__icon {
  color: var(--orange-dark);
}

.acervo-busca input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  font: inherit;
  font-size: 1.12rem;
  font-weight: 500;
  color: var(--ink);
  padding: 8px 0;
  letter-spacing: 0.01em;
}
.acervo-busca input::placeholder {
  color: var(--muted);
  font-weight: 400;
}
.acervo-busca input:focus { outline: none; }
.acervo-busca input::-webkit-search-cancel-button { -webkit-appearance: none; }

.acervo-busca__kbd {
  flex: none;
  display: inline-grid;
  place-items: center;
  min-width: 34px;
  height: 32px;
  padding: 0 10px;
  border-radius: 8px;
  background: var(--cream-2);
  border: 1px solid color-mix(in srgb, var(--ink) 18%, transparent);
  border-bottom-width: 2px;
  color: var(--ink-2);
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  user-select: none;
}

.acervo-busca__limpar {
  flex: none;
  display: inline-flex;
  align-items: center;
  border: 0;
  border-radius: 999px;
  background: var(--ink);
  color: var(--cream);
  font: inherit;
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.05em;
  padding: 10px 18px;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}
.acervo-busca__limpar:hover { background: var(--orange-dark); transform: translateX(2px); }

.acervo-contagem {
  margin: 14px 0 0;
  font-size: 0.82rem;
  color: var(--muted);
  letter-spacing: 0.04em;
}
.acervo-contagem strong {
  color: var(--ink);
  font-weight: 700;
}

.filtro-chips {
  margin-bottom: 22px;
}

.chip-filtro {
  appearance: none;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  border: 1px solid var(--line-strong);
  background: var(--white);
  color: var(--ink-2);
  border-radius: 999px;
  padding: 7px 14px;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s var(--ease);
}

.chip-filtro:hover {
  transform: translateY(-1px);
  border-color: var(--ink);
}

.chip-filtro.is-active {
  background: var(--ink);
  color: var(--cream);
  border-color: var(--ink);
}

.acervo-vazio {
  margin: 8px 0 0;
  padding: 26px 24px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  color: var(--muted);
  font-size: 0.95rem;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
}

.acervo-limpar-inline {
  background: none;
  border: 0;
  font: inherit;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--orange-dark);
  border-bottom: 2px solid var(--orange);
  padding: 4px 2px 2px;
  cursor: pointer;
}

@media (max-width: 640px) {
  .acervo-busca { padding: 9px 16px; border-radius: 16px; }
  .acervo-busca input { font-size: 0.98rem; }
  .filtro-chips { flex-wrap: wrap; }
}
.acervo-vazio[hidden] { display: none !important; }

/* ---------- Assinatura discreta no rodapé ---------- */
.footer-bottom {
  align-items: center;
}
.footer-credit {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  color: color-mix(in srgb, var(--cream) 76%, transparent);
}
.footer-credit__heart {
  font-weight: 700;
  color: var(--orange);
  letter-spacing: 0.02em;
  transition: transform 0.3s var(--ease);
}
.footer-credit:hover .footer-credit__heart {
  transform: scale(1.25) rotate(-8deg);
}
.footer-credit__author {
  color: #fff8f0;
  font-weight: 600;
}
.footer-credit:hover .footer-credit__author {
  color: var(--orange);
}
@media (max-width: 860px) {
  .footer-credit {
    order: 3;
    width: 100%;
    justify-content: center;
    margin-top: 10px;
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
  }
}
@media (prefers-reduced-motion: reduce) {
  .footer-credit:hover .footer-credit__heart { transform: none; }
}

/* ============================================================
   ACABAMENTO — elementos decorativos nunca interceptam cliques
   ============================================================ */
.cta-band::after,
.quilombo__visual::after,
.linha-card::before,
.sobre-figure figcaption,
/* ============================================================
   ACABAMENTO — botão Acervo em destaque e toggle de tema
   ============================================================ */

.btn--lg {
  font-size: 1.02rem;
  padding: 1.05rem 1.8rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  border-radius: 999px;
}

.header-cta.btn--primary {
  box-shadow: 0 2px 8px -3px rgba(0, 0, 0, 0.4), inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}

.header-cta.btn--primary:hover {
  box-shadow: 0 4px 14px -5px rgba(0, 0, 0, 0.5), inset 0 0 0 1px rgba(255, 255, 255, 0.18);
}

.theme-toggle {
  display: inline-grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  flex: none;
  transition: border-color 0.2s ease, background-color 0.2s ease, transform 0.25s var(--ease);
}

.theme-toggle:hover { border-color: var(--ink); transform: translateY(-1px); }
.theme-toggle svg { width: 21px; height: 21px; }
.theme-toggle__icon--moon { display: none; }

[data-theme="dark"] .theme-toggle__icon--sun { display: none; }
[data-theme="dark"] .theme-toggle__icon--moon { display: block; }

/* ============================================================
   MODO ESCURO — [data-theme="dark"] no <html>
   ============================================================ */
[data-theme="dark"] {
  --ink: #f5ece1;
  --ink-2: #e3d5c4;
  --muted: #b3a28e;
  --cream: #14100d;
  --cream-2: #1f1815;
  --white: #1e1815;
  --orange: #ff5206;
  --orange-dark: #ff8f5c;
  --amber: #ffa415;
  --red: #ff5e7a;
  --green: #6fd84a;
  --teal: #38b6d3;

  --line: color-mix(in srgb, #f5ece1 16%, transparent);
  --line-strong: color-mix(in srgb, #f5ece1 32%, transparent);

  --shadow-sm: 0 1px 2px rgba(0,0,0,.5), 0 10px 30px -14px rgba(0,0,0,.7);
  --shadow: 0 2px 4px rgba(0,0,0,.4), 0 30px 70px -30px rgba(0,0,0,.9);

  color-scheme: dark;
}

/* Fundos "fixos" que na identidade do site são sempre quase-pretos */
[data-theme="dark"] .site-header.is-scrolled {
  background: transparent;
  backdrop-filter: blur(18px) saturate(1.1);
  -webkit-backdrop-filter: blur(18px) saturate(1.1);
  border-bottom-color: transparent;
}

[data-theme="dark"] .site-header {
  background: transparent;
  border-bottom-color: transparent;
}

[data-theme="dark"] [data-theme="dark"] .skip-link { background: #f5ece1; color: #14100d; }

[data-theme="dark"] .section--ink,
[data-theme="dark"] .site-footer,
[data-theme="dark"] .marquee,
[data-theme="dark"] .linha-card--cta,
[data-theme="dark"] .video-facade,
[data-theme="dark"] .pattern {
  background: #0d0a08;
}

[data-theme="dark"] .section--ink p { color: color-mix(in srgb, #f5ece1 74%, transparent); }

[data-theme="dark"] .footer-brand img { background: #241c18; }
[data-theme="dark"] .footer-brand p { color: color-mix(in srgb, #f5ece1 68%, transparent); }
[data-theme="dark"] .footer-col a, [data-theme="dark"] .footer-col p { color: color-mix(in srgb, #f5ece1 78%, transparent); }
[data-theme="dark"] .footer-bottom { color: color-mix(in srgb, #f5ece1 78%, transparent); border-top-color: rgba(255,255,255,.09); }
[data-theme="dark"] .mobile-menu .btn--ghost { border-color: rgba(245,236,225,.22); }

[data-theme="dark"] .cta-band { color: #1b0f09; }
[data-theme="dark"] .cta-band p { color: #1b0f09; }

[data-theme="dark"] [data-theme="dark"] .map-card {
  background:
    radial-gradient(circle at 72% 26%, color-mix(in srgb, var(--amber) 24%, transparent), transparent 52%),
    repeating-linear-gradient(0deg, transparent 0 39px, rgba(245,236,225,.06) 39px 40px),
    repeating-linear-gradient(90deg, transparent 0 39px, rgba(245,236,225,.06) 39px 40px),
    var(--cream-2);
}

[data-theme="dark"] .footer-social a {
  color: #f5ece1;
  border-color: rgba(245,236,225,.2);
}

/* ============================================================
   CORREÇÕES finais do modo escuro (após auditoria visual)
   ============================================================ */
[data-theme="dark"] .section--ink,
[data-theme="dark"] .site-footer {
  color: #f5ece1;
}
[data-theme="dark"] .section--ink blockquote,
[data-theme="dark"] .section--ink h2,
[data-theme="dark"] .section--ink .eyebrow,
[data-theme="dark"] .site-footer .footer-col a,
[data-theme="dark"] .site-footer .footer-col p {
  color: #f5ece1;
}

[data-theme="dark"] .marquee-track span {
  color: color-mix(in srgb, #f5ece1 90%, transparent);
}

[data-theme="dark"] .quilombo__visual {
  background: #241c18;
}

/* ============================================================
   CORREÇÃO — cartão "Conheça as cinco linhas…" no dark mode
   ============================================================ */
[data-theme="dark"] .linha-card--cta {
  background: linear-gradient(155deg, #2a1d14 0%, #1d1310 100%);
  border-color: #33241a;
  color: #f5ece1;
}
[data-theme="dark"] .linha-card--cta h3 { color: #f5ece1; }
[data-theme="dark"] .linha-card--cta .linha-card__num { color: var(--amber); }
[data-theme="dark"] .linha-card--cta .linha-card__meta {
  color: #c8bbac;
  border-top-color: rgba(245,236,225,.22);
}
[data-theme="dark"] .linha-card--cta:hover {
  background: linear-gradient(155deg, #33221688 0%, #241815 100%);
  border-color: #4a3326;
}

/* ============================================================
   HEADER — ações agrupadas e toggle sutil
   ============================================================ */
.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: none;
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--ink-2);
  cursor: pointer;
  flex: none;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.25s var(--ease);
}

.theme-toggle:hover {
  background: color-mix(in srgb, var(--ink) 9%, transparent);
  color: var(--ink);
  transform: translateY(-1px);
}

.theme-toggle svg { width: 17px; height: 17px; }

/* Mais respiro na logo no mobile */
@media (max-width: 640px) {
  .header-inner { height: 66px; gap: 14px; }
  .brand img { height: 34px; }
  .header-actions { gap: 8px; }
  .theme-toggle { width: 34px; height: 34px; }
  .theme-toggle svg { width: 15px; height: 15px; }
  .mobile-menu { inset: 66px 0 0; }
}

/* ============================================================
   MOBILE MENU — acervo é a estrela (botão principal primeiro)
   ============================================================ */
.btn--xl {
  font-size: 1.15rem;
  padding: 1.2rem 1.8rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.mobile-menu {
  padding-top: 28px;
  gap: 4px;
}

.mobile-menu__cta {
  width: 100%;
  align-self: stretch;
  justify-content: center;
  margin-bottom: 26px;
}

.mobile-menu__cta-ghost {
  width: 100%;
  align-self: stretch;
  justify-content: center;
  margin-top: 12px;
}

/* ============================================================
   HEADER — altura e proporção refinadas
   ============================================================ */
.header-inner {
  height: 84px;
  padding-block: 6px;
}

.brand img {
  height: 62px;
}

.header-cta.btn--primary {
  padding: 0.78rem 1.4rem;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.015em;
}

.header-actions {
  gap: 12px;
}

@media (max-width: 640px) {
  .header-inner { height: 72px; padding-block: 5px; }
  .brand img { height: 46px; }
  .mobile-menu { inset: 72px 0 0; }
}



/* ---------- Editorial finish: drop cap + extended contrast ---------- */
.prose > p:first-of-type::first-letter {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 2.35em;
  line-height: 0.78;
  float: left;
  padding: 0.06em 0.14em 0.02em 0;
  color: var(--orange);
}

@media (max-width: 640px) {
  html { scroll-padding-top: 82px; }
}

@media (prefers-contrast: more) {
  :root {
    --line: color-mix(in srgb, var(--ink) 38%, transparent);
    --line-strong: color-mix(in srgb, var(--ink) 52%, transparent);
  }
}

@media (forced-colors: active) {
  .btn,
  .link-arrow,
  .chip-filtro,
  .linha-card {
    border: 2px solid ButtonText;
  }
  :focus-visible {
    outline: 3px solid Highlight !important;
    outline-offset: 3px;
  }
}

/* ---------- Footer WhatsApp CTA ---------- */
.footer-wa {
  display: inline-flex;
  margin-top: 18px;
  gap: 8px;
}

/* ---------- Footer legibility in dark surfaces (final word) ---------- */
[data-theme="dark"] .footer-bottom,
[data-theme="dark"] .footer-credit {
  color: #f5ece1;
}
[data-theme="dark"] .footer-credit__heart {
  color: var(--orange);
}

/* ---------- Chips + captions + organic covers (final word) ---------- */

/* Publication badge: always brand orange, never camouflaged in dark mode */
/* Figcaptions: legibility comes from the chip, never from the photo */
.quilombo__visual figcaption,
.sobre-figure figcaption {
  background: color-mix(in srgb, var(--ink) 74%, transparent);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: var(--cream);
  border-radius: var(--radius-sm);
  padding: 8px 14px;
  max-width: 78%;
  line-height: 1.4;
}


/* ---------- Seções sem corte seco: borda derretida universal ---------- */
.section::before {
  content: "";
  position: absolute;
  inset: -1px 0 auto 0;
  height: 72px;
  background: linear-gradient(180deg, color-mix(in srgb, var(--ink) 5%, transparent), transparent);
  pointer-events: none;
}

@media (max-width: 640px) {
  .acervo-busca__kbd { display: none; }
}

[data-theme="dark"] .section::before {
  display: none;
}

/* ---------- Dark mode: melt via inner shadow + longer ramp ---------- */
[data-theme="dark"] .section::before {
  display: block;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.42), transparent);
}
[data-theme="dark"] .section--paper {
  background: linear-gradient(180deg,
    #1e1815 0%,
    #1b1512 44%,
    #171210 100%);
}

/* ---------- Dark mode: eliminating tonal banding (canvas unity) ---------- */
[data-theme="dark"] .section::before {
  display: none;
}
[data-theme="dark"] .section--paper {
  background: var(--cream);
}

/* ---------- Seção tinta: bordas derretem em cima e embaixo ---------- */
.section--ink {
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 9%, #000 91%, transparent 100%);
  mask-image: linear-gradient(180deg, transparent 0%, #000 9%, #000 91%, transparent 100%);
}

/* ---------- UNIDADE CANVAS — nenhuma linha entre seções ---------- */
[data-theme="dark"] .section::before,
.section::before {
  display: none;
}
.section--paper {
  background: var(--cream);
}

/* ---------- Glow do hero por trás da header (atmosfera, sem barra) ---------- */

/* ---------- Glow secundário do hero — mesmo do acervo ---------- */
.page-hero::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -150px;
  bottom: -260px;
  background: radial-gradient(ellipse 78% 54% at 80% 108px, color-mix(in srgb, var(--amber) 19%, transparent), transparent 74%);
  pointer-events: none;
  -webkit-mask-image: linear-gradient(180deg, #000 40%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 40%, transparent 100%);
}

/* ---------- Home — glow idêntico ao do acervo ---------- */
.hero::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -150px;
  bottom: -260px;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(ellipse 78% 54% at 80% 108px, color-mix(in srgb, var(--amber) 19%, transparent), transparent 74%);
  -webkit-mask-image: linear-gradient(180deg, #000 40%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 40%, transparent 100%);
}



/* ---------- Fade suave debaixo de todas as capas (::after) ---------- */
.pub-card__cover::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 55%;
  background: linear-gradient(180deg, transparent 0%, var(--white) 100%);
  pointer-events: none;
}

/* ---------- Hero art premium :: soffits ---------- */
