/* Nehora v3: ritmo de leitura dos textos do Diário.
   Mais respiro entre linhas, frases-destaque e entrada suave dos blocos. */

.pg-artigo .prosa { line-height: 2.1; counter-reset: secao; }
.pg-artigo .prosa > * + * { margin-top: 1.75em; }
@media (max-width: 600px) {
  .pg-artigo .prosa { line-height: 1.95; }
  .pg-artigo .prosa > * + * { margin-top: 1.5em; }
}

/* Abertura: sem capitular de livro, um parágrafo de entrada maior */
.pg-artigo .prosa > p:first-child::first-letter { float: none; font: inherit; color: inherit; margin: 0; }
.pg-artigo .prosa > p:first-child {
  font-family: var(--f-display); font-weight: 300;
  font-size: clamp(1.45rem, 2.6vw, 1.8rem); line-height: 1.6; color: var(--ink);
}

/* Seções numeradas */
.pg-artigo .prosa h2 { counter-increment: secao; margin-top: 3.2em; margin-bottom: -.4em; line-height: 1.2; }
.pg-artigo .prosa h2::before {
  content: counter(secao, decimal-leading-zero);
  width: auto; height: auto; background: none;
  display: block; margin-bottom: .6rem;
  font-family: var(--f-display); font-style: italic; font-weight: 300;
  font-size: .8em; letter-spacing: .04em; color: var(--gold);
}
.pg-artigo .prosa h2::after {
  content: ""; display: block; width: 3rem; height: 1px; margin-top: 1rem;
  background: var(--gold); transform-origin: 0 50%;
}

/* Frases curtas viram respiros de destaque */
.pg-artigo .prosa > p.frase {
  font-family: var(--f-display); font-weight: 300; font-style: italic;
  font-size: clamp(1.4rem, 2.5vw, 1.7rem); line-height: 1.5; color: var(--ink-2);
  margin-top: 2.2em; margin-bottom: .45em;
  padding-left: clamp(1.25rem, 5vw, 3.5rem); position: relative;
}
.pg-artigo .prosa > p.frase::before {
  content: ""; position: absolute; left: 0; top: .78em;
  width: clamp(.75rem, 3.5vw, 2.5rem); height: 1px; background: var(--gold);
}
.pg-artigo .prosa > p.frase em { font-style: normal; }

/* Citações abertas, sem caixa */
.pg-artigo .prosa blockquote {
  border-left: 0; padding: 0; margin: 2.8em 0; text-align: center;
  font-size: clamp(1.5rem, 2.8vw, 1.9rem); line-height: 1.5;
}
.pg-artigo .prosa blockquote::before {
  content: "“"; display: block; font-size: 2.6em; line-height: .6; color: var(--gold); margin-bottom: .2em;
}

.pg-artigo .prosa li + li { margin-top: .9em; }
.pg-artigo .prosa ol { counter-reset: item; list-style: none; padding-left: 0; }
.pg-artigo .prosa ol > li { counter-increment: item; position: relative; padding-left: 2.6em; }
.pg-artigo .prosa ol > li::before {
  content: counter(item); position: absolute; left: 0; top: .15em;
  width: 1.75em; height: 1.75em; border-radius: 50%; border: 1px solid var(--gold);
  display: grid; place-items: center; font-size: .8em; line-height: 1; font-weight: 600; color: var(--gold);
}

/* Negrito com grifo dourado */
.pg-artigo .prosa strong {
  background: linear-gradient(transparent 62%, color-mix(in srgb, var(--gold) 26%, transparent) 62%) no-repeat 0 0 / 100% 100%;
  padding: 0 .08em;
}

/* Véu mais leve: o fundo animado aparece mais */
.pg-artigo .fundo-veu {
  background: linear-gradient(90deg,
    transparent 0, transparent calc(50% - 30rem),
    color-mix(in srgb, var(--bg) 50%, transparent) calc(50% - 23rem),
    color-mix(in srgb, var(--bg) 50%, transparent) calc(50% + 23rem),
    transparent calc(50% + 30rem));
}
@media (max-width: 900px) {
  .pg-artigo .fundo-veu { background: color-mix(in srgb, var(--bg) 54%, transparent); }
}

/* Entrada dos blocos ao rolar (só com JS e sem pedido de menos movimento) */
@media (prefers-reduced-motion: no-preference) {
  .leitura-viva .prosa > * {
    opacity: 0; transform: translateY(1.4rem);
    transition: opacity .9s var(--ease), transform .9s var(--ease);
  }
  .leitura-viva .prosa > p.frase { transform: translateX(-1.5rem); }
  .leitura-viva .prosa > .visto, .leitura-viva .prosa > p.frase.visto { opacity: 1; transform: none; }

  .leitura-viva .prosa h2::after { transform: scaleX(0); transition: transform 1.1s .25s var(--ease); }
  .leitura-viva .prosa h2.visto::after { transform: scaleX(1); }

  .leitura-viva .prosa > p.frase::before { transform: scaleX(0); transform-origin: 0 50%; transition: transform .9s .3s var(--ease); }
  .leitura-viva .prosa > p.frase.visto::before { transform: scaleX(1); }

  .leitura-viva .prosa strong { background-size: 0% 100%; transition: background-size 1.1s .45s var(--ease); }
  .leitura-viva .prosa .visto strong { background-size: 100% 100%; }
}
