/* ==========================================================================
   SEÇÃO: CAP. I — BIOGRAFIA & DOUTRINA (#autoridade)
   O ensaio: prancha fotográfica, ficha catalográfica e a profissão de fé.
   Registro de papel: tinta, filete e ouro escurecido. Sem card branco,
   sem raio de borda, sem sombra — o hero e o ecossistema já deram o tom.
   ========================================================================== */

.thesis {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 4rem;
  align-items: start;
}

/* --------------------------------------------------------------------------
   1. A PRANCHA — retrato emoldurado como figura de dossiê
   -------------------------------------------------------------------------- */
/* Sem sticky: a prancha inteira (retrato + legenda + ficha) passa de 800px.
   Grudada no topo, a última linha da ficha ficaria fora de alcance. */
.thesis__plate { position: relative; }

/* Moldura dupla: filete externo + respiro branco, como uma prova montada */
.thesis__frame {
  position: relative;
  padding: 0.55rem;
  background: var(--color-white);
  border: 1px solid var(--color-gray-300);
  box-shadow: 0 22px 44px -30px rgba(15, 17, 21, 0.5);
}

.thesis__img {
  width: 100%;
  aspect-ratio: 5 / 6;
  object-fit: cover;
  object-position: center 18%;
  filter: grayscale(1) contrast(1.12);
  transition: filter 700ms var(--ease-out-expo);
}

.thesis__plate:hover .thesis__img { filter: grayscale(0.25) contrast(1.04); }

/* Carimbo: gira levemente, como aposto à mão sobre a prova */
.thesis__stamp {
  position: absolute;
  right: -0.5rem;
  bottom: 1.35rem;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-black);
  background: var(--color-primary);
  padding: 0.4rem 0.8rem;
  transform: rotate(-1.5deg);
  box-shadow: 0 6px 18px -8px rgba(15, 17, 21, 0.55);
}

.thesis__caption {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-gray-500);
  margin-top: 1rem;
  padding-bottom: 1.6rem;
  border-bottom: var(--rule);
}

.thesis__caption b { color: #A67C00; font-weight: 500; }

/* --------------------------------------------------------------------------
   2. A FICHA — credenciais como registro catalográfico, não como card
   -------------------------------------------------------------------------- */
.ledger { margin-top: 0.25rem; }

.ledger__row {
  display: grid;
  grid-template-columns: 6.5rem minmax(0, 1fr);
  gap: 1.25rem;
  align-items: baseline;
  padding: 1.05rem 0;
  border-bottom: var(--rule);
}

.ledger__row dt {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-gray-500);
}

.ledger__row dd {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--color-black);
  line-height: 1.35;
}

.ledger__row dd span {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.03em;
  color: var(--color-gray-500);
  margin-top: 0.28rem;
}

/* --------------------------------------------------------------------------
   3. O CORPO DO ENSAIO
   -------------------------------------------------------------------------- */
.thesis__text p {
  font-size: 1.12rem;
  line-height: 1.78;
  color: var(--color-gray-700);
}

.thesis__text p + p { margin-top: 1.15rem; }

/* Capitular gótica só no primeiro parágrafo */
.thesis__text .drop-cap::first-letter {
  font-size: 4.2rem;
  margin-top: 0.12em;
}

/* --------------------------------------------------------------------------
   4. A PROFISSÃO DE FÉ — a citação é o clímax da dobra, não um adorno
   -------------------------------------------------------------------------- */
.creed {
  position: relative;
  margin-top: 2.75rem;
  padding: 2.5rem 0 0;
  border-top: 2px solid var(--color-black);
}

/* Aspa de abertura em corpo grande, recuada para a margem */
.creed::before {
  content: "\201C";
  position: absolute;
  top: 0.9rem;
  left: -0.15rem;
  font-family: var(--font-serif);
  font-size: 6rem;
  line-height: 1;
  color: rgba(255, 204, 0, 0.55);
  pointer-events: none;
}

.creed p {
  position: relative;
  font-family: var(--font-serif);
  font-size: clamp(1.45rem, 2.4vw, 1.95rem);
  font-style: italic;
  font-weight: 500;
  line-height: 1.38;
  letter-spacing: -0.012em;
  color: var(--color-black);
  text-wrap: pretty;
  padding-left: 2.25rem;
}

/* O grifo não é itálico dentro de itálico: volta à romana e ganha filete */
.creed em {
  font-style: normal;
  font-weight: 600;
  box-shadow: inset 0 -0.42em 0 rgba(255, 204, 0, 0.4);
}

.creed cite {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-style: normal;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-gray-500);
  margin-top: 1.35rem;
  padding-left: 2.25rem;
}

/* --------------------------------------------------------------------------
   5. RESPOSTAS DE TELA
   -------------------------------------------------------------------------- */
@media (max-width: 992px) {
  .thesis {
    grid-template-columns: 1fr;
    gap: 2.75rem;
  }

  .thesis__plate { position: relative; }

  /* Em coluna única a prancha vira faixa: retrato ao lado da ficha */
  .thesis__frame { max-width: 420px; }
}

@media (max-width: 640px) {
  .thesis__frame { max-width: none; padding: 0.4rem; }
  .thesis__stamp { right: 0.5rem; bottom: 0.9rem; }

  .ledger__row {
    grid-template-columns: 1fr;
    gap: 0.35rem;
    padding: 0.9rem 0;
  }

  .creed { margin-top: 2.25rem; padding-top: 2rem; }
  .creed::before { font-size: 4.5rem; top: 0.6rem; }
  .creed p { padding-left: 1.5rem; }
  .creed cite { padding-left: 1.5rem; }
}
