/* v23.20.7 — Sistema global de espaçamento e ritmo vertical auditado.
   Camada final do site público: uniformiza intervalos sem alterar conteúdo,
   cores, tipografia, navegação, dados ou apresentação dos componentes. */

:root {
  --site-section-space-desktop: clamp(56px, 5.2vw, 80px);
  --site-section-space-tablet: clamp(48px, 5.2vw, 64px);
  --site-section-space-mobile: clamp(40px, 6vw, 46px);
  --site-heading-rule-space: clamp(16px, 1.5vw, 22px);
  --site-heading-content-space: clamp(22px, 2.2vw, 32px);
  --site-content-gap: clamp(18px, 2.2vw, 30px);
}

/* Todas as seções de primeiro nível compartilham o mesmo respiro vertical.
   A capa e a faixa de introdução mantêm seus comportamentos próprios. */
body#white-text-site > main#conteudo > section:not(.hero):not(.intro-strip) {
  margin-block: 0 !important;
  padding-top: calc(var(--site-section-space-desktop) * var(--site-spacing-scale, 1)) !important;
  padding-bottom: calc(var(--site-section-space-desktop) * var(--site-spacing-scale, 1)) !important;
}

/* Cabeçalhos: uma única distância controlada entre a linha e o conteúdo. */
body#white-text-site .section-heading {
  padding-bottom: calc(var(--site-heading-rule-space) * var(--site-spacing-scale, 1)) !important;
  margin-bottom: calc(var(--site-heading-content-space) * var(--site-spacing-scale, 1)) !important;
  row-gap: clamp(12px, 1.6vw, 22px);
}
body#white-text-site .section-heading .eyebrow {
  margin-bottom: calc(clamp(10px, 1vw, 16px) * var(--site-spacing-scale, 1)) !important;
}

/* Projetos e filtros. */
body#white-text-site #projetos .filter-row {
  margin-bottom: calc(clamp(18px, 2vw, 28px) * var(--site-spacing-scale, 1)) !important;
}
body#white-text-site #project-grid {
  gap: clamp(22px, 2.8vw, 40px) clamp(18px, 2.4vw, 32px);
}
body#white-text-site #project-grid .project-meta {
  padding-top: clamp(14px, 1.25vw, 18px);
}
body#white-text-site #project-grid .project-summary {
  margin-top: 10px;
}

/* Publicações. */
body#white-text-site #publicacoes .publication-toolbar {
  margin-bottom: clamp(18px, 2vw, 24px);
}
body#white-text-site #publicacoes .publication-footnote,
body#white-text-site #publicacoes .publication-empty {
  margin-top: 14px;
}
body#white-text-site #publicacoes .publication-track {
  gap: clamp(14px, 1.6vw, 20px);
}

/* Sobre: aproxima retrato, biografia e informações complementares. */
body#white-text-site #sobre .about-top {
  margin-bottom: clamp(20px, 2.4vw, 30px);
  padding-bottom: clamp(16px, 1.6vw, 22px);
}
body#white-text-site #sobre .about-layout {
  gap: clamp(28px, 4vw, 64px);
  margin-bottom: clamp(40px, 4.6vw, 64px);
}
body#white-text-site #sobre .profile-details {
  gap: clamp(22px, 3vw, 42px);
  padding-top: clamp(24px, 2.6vw, 36px);
}
body#white-text-site #sobre .profile-column h3 {
  margin-bottom: 14px;
}
body#white-text-site #sobre .profile-column .subheading {
  margin-top: 24px;
}

/* Ilustrações e processo. */
body#white-text-site #illustration-grid {
  gap: clamp(18px, 2.4vw, 32px);
}
body#white-text-site #illustration-grid .illustration-meta {
  padding-top: 14px;
}
body#white-text-site #process-grid {
  gap: clamp(14px, 1.8vw, 24px);
}
body#white-text-site #process-grid .process-step h3 {
  margin-top: clamp(22px, 3vw, 40px);
}
body#white-text-site #processo .portfolio-carousel-controls,
body#white-text-site #ilustracoes .portfolio-carousel-controls,
body#white-text-site #projetos .portfolio-carousel-controls {
  margin-top: 8px;
}

/* Contato e formulários. */
body#white-text-site #contato > h2 {
  margin-top: 14px;
  margin-bottom: clamp(26px, 3vw, 38px);
}
body#white-text-site #contato .contact-bottom {
  gap: clamp(18px, 2vw, 26px);
  padding-top: clamp(22px, 2.4vw, 28px);
}
body#white-text-site #contato .contact-form {
  gap: clamp(14px, 1.6vw, 18px);
  margin-top: clamp(22px, 2.4vw, 28px);
}
body#white-text-site #contato .contact-links {
  gap: 10px;
  margin-top: clamp(20px, 2.2vw, 26px);
}

/* Seções criadas no painel também seguem a mesma cadência interna. */
body#white-text-site main > section.custom-content-section .custom-content-inner {
  gap: clamp(16px, 1.8vw, 22px);
}
body#white-text-site main > section.custom-content-section .custom-section-project-grid {
  gap: clamp(16px, 2vw, 26px);
  margin-top: clamp(18px, 2vw, 24px);
}

/* A faixa introdutória e o rodapé são elementos compactos, não seções longas. */
body#white-text-site > main > section.intro-strip {
  min-height: 72px;
  padding-top: 16px !important;
  padding-bottom: 16px !important;
}
body#white-text-site > .site-footer {
  padding-top: 26px;
  padding-bottom: 26px;
  row-gap: 12px;
}

/* Tablet: respiro intermediário e grades mais próximas. */
@media (min-width: 721px) and (max-width: 1024px) {
  body#white-text-site > main#conteudo > section:not(.hero):not(.intro-strip) {
    padding-top: calc(var(--site-section-space-tablet) * var(--site-spacing-scale, 1)) !important;
    padding-bottom: calc(var(--site-section-space-tablet) * var(--site-spacing-scale, 1)) !important;
  }
  body#white-text-site #sobre .about-layout {
    gap: 32px;
    margin-bottom: 44px;
  }
  body#white-text-site #sobre .profile-details {
    gap: 24px;
  }
}

/* Celular: reduz os intervalos sem comprimir a leitura ou as áreas de toque. */
@media (max-width: 720px) {
  body#white-text-site > main#conteudo > section:not(.hero):not(.intro-strip) {
    padding-top: calc(var(--site-section-space-mobile) * var(--site-spacing-scale, 1)) !important;
    padding-bottom: calc(var(--site-section-space-mobile) * var(--site-spacing-scale, 1)) !important;
  }
  body#white-text-site .section-heading {
    padding-bottom: 16px !important;
    margin-bottom: 22px !important;
    row-gap: 12px;
  }
  body#white-text-site .section-heading .eyebrow {
    margin-bottom: 10px !important;
  }
  body#white-text-site #projetos .filter-row {
    margin-bottom: 20px !important;
  }
  body#white-text-site #project-grid {
    gap: 22px;
  }
  body#white-text-site #sobre .about-top {
    margin-bottom: 22px;
    padding-bottom: 16px;
  }
  body#white-text-site #sobre .about-layout {
    gap: 28px;
    margin-bottom: 36px;
  }
  body#white-text-site #sobre .profile-details {
    gap: 28px;
    padding-top: 24px;
  }
  body#white-text-site #contato > h2 {
    margin-bottom: 26px;
  }
  body#white-text-site #contato .contact-form {
    margin-top: 22px;
    padding: 18px;
  }
  body#white-text-site > main > section.intro-strip {
    min-height: 64px;
    padding-top: 14px !important;
    padding-bottom: 14px !important;
  }
  body#white-text-site > .site-footer {
    padding-top: 22px;
    padding-bottom: 22px;
  }
}

@media (prefers-reduced-motion: reduce) {
  body#white-text-site .section-heading,
  body#white-text-site .portfolio-carousel-controls {
    scroll-behavior: auto;
  }
}
