/* Hierarquia compartilhada pela home, páginas internas e detalhes de obra. */
@layer identidade {
  :root {
    --fonte-titulo: "Open Sans", Arial, sans-serif;
    --fonte-texto: "Roboto", Arial, sans-serif;
    --tipo-h1: clamp(3rem, 4.25vw, 4rem);
    --tipo-h2: clamp(2rem, 3vw, 2.5rem);
    --tipo-subtitulo: clamp(1.5rem, 2vw, 1.875rem);
    --tipo-card: clamp(1.125rem, 1.45vw, 1.375rem);
    --tipo-lead: 1.125rem;
    --tipo-legenda: .875rem;
    --destaque: var(--accent-ink);
  }

  body { font: 400 1rem/1.55 var(--fonte-texto); }
  :is(.title-band, #depoimentos, .gallery[data-home-portfolio], .inner-cta) { --destaque: var(--orange); }
  .coverage-film { --destaque: var(--accent-ink); }

  h1, h2, h3 {
    font-family: var(--fonte-titulo);
    font-weight: 800;
    letter-spacing: -.032em;
    text-wrap: balance;
  }
  h1 { font-size: var(--tipo-h1); line-height: 1.1; }
  h2 { font-size: var(--tipo-h2); line-height: 1.12; }
  h3, .proj-title, .work-caption strong {
    font: 800 var(--tipo-card)/1.24 var(--fonte-titulo);
    letter-spacing: -.023em;
  }
  :is(h1, h2, h3) em {
    font-family: var(--fonte-titulo);
    font-weight: 800;
    font-style: italic;
    font-size: 1em;
    line-height: inherit;
    letter-spacing: inherit;
    color: var(--destaque);
  }

  /* Em cartões, legendas de vídeo e no artigo, o subtítulo pertence ao conteúdo local. */
  :is(.article, .coverage-film, .dialog-info) h2 { font-size: var(--tipo-subtitulo); line-height: 1.2; }
  :is(.info-grid, .catalog-tools) h2 { font-size: var(--tipo-card); line-height: 1.24; }
  .home-process .coverage-film h2 { max-width: 17ch; }
  .works-intro .page-title, .page-intro .page-title { max-width: 24ch; }

  main p, .review-card blockquote, address {
    font: 400 1rem/1.55 var(--fonte-texto);
    letter-spacing: normal;
  }
  :is(.cover-copy, .page-intro, .inner-head, .project-notes) p,
  .article p, .review-intro { font-size: var(--tipo-lead); }
  .article p { line-height: 1.65; }
  .cover-copy .cover-payment { font-size: var(--tipo-legenda); }

  .btn, .menu-toggle, .mainnav a, .textlink, .cover-secondary, .filter, .review-expand, .zoom {
    font: 500 1rem/1.3 var(--fonte-texto);
    letter-spacing: normal;
  }
  .label, .blog-card small, .cover-location, .work-caption small, .proj-type {
    font: 500 var(--tipo-legenda)/1.4 var(--fonte-texto);
    letter-spacing: .012em;
    text-transform: none;
  }
  .label, .blog-card small { color: var(--destaque); }
  .label::before, .blog-card small::before { background-color: var(--orange); }
  .bread, .review-origin, .review-status, .works-count {
    font: 400 var(--tipo-legenda)/1.45 var(--fonte-texto);
    letter-spacing: normal;
  }
  .review-person strong { font: 700 1rem/1.35 var(--fonte-texto); }
  .review-source strong { font: 700 1.5rem/1.1 var(--fonte-texto); }
  .footer-local, .footer-local address, .footer-local a { font-size: var(--tipo-legenda); }

  @media (max-width: 47.5rem) {
    :root {
      --tipo-h1: clamp(2rem, 8.5vw, 2.5rem);
      --tipo-h2: clamp(1.5rem, 6.5vw, 2rem);
      --tipo-subtitulo: clamp(1.25rem, 4.75vw, 1.5rem);
      --tipo-card: clamp(1.125rem, 4.4vw, 1.25rem);
      --tipo-lead: 1rem;
    }
    .gallery[data-home-portfolio] .proj-title, .work-caption strong {
      font-size: clamp(1rem, 4.1vw, 1.125rem);
    }
    .quote-copy h2 em, .home-process-copy h2 em { white-space: normal; }
  }
  @media (max-width: 30rem) {
    .cover-copy .actions {
      display: grid;
      grid-template-columns: minmax(0, 1fr);
      justify-items: center;
      gap: .5rem;
    }
    .cover-copy .cover-secondary {
      min-height: 44px;
      display: inline-flex;
      align-items: center;
    }
  }
}
