/* Página de vendas do "Jornalista Registrado". Cores, letras e logo: marca.md. Feita para celular primeiro. */
@font-face { font-family: "DM Serif Display"; font-weight: 400; font-style: normal; font-display: swap; src: url("../fontes/DMSerifDisplay-400.woff") format("woff"); }
@font-face { font-family: "IBM Plex Sans"; font-weight: 400; font-style: normal; font-display: swap; src: url("../fontes/IBMPlexSans-400.woff") format("woff"); }
@font-face { font-family: "IBM Plex Sans"; font-weight: 600; font-style: normal; font-display: swap; src: url("../fontes/IBMPlexSans-600.woff") format("woff"); }
@font-face { font-family: "IBM Plex Sans"; font-weight: 700; font-style: normal; font-display: swap; src: url("../fontes/IBMPlexSans-700.woff") format("woff"); }

:root { --tinta: #17191E; --papel: #F5F0E6; --vermelho: #C4170C; --chumbo: #5E636B; --fio: #D9D3C6; }
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: #fff; color: var(--tinta); font-family: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; font-size: 18px; line-height: 1.6; }
img { max-width: 100%; height: auto; }
p { margin: 0 0 16px 0; }
strong { font-weight: 700; }
a { color: var(--tinta); text-decoration-color: var(--vermelho); text-underline-offset: 3px; }
a:focus-visible { outline: 3px solid var(--tinta); outline-offset: 3px; }
.miolo { max-width: 720px; margin: 0 auto; padding: 0 20px; }

/* faixa do topo: aviso de que não é do governo */
.faixa { background: var(--tinta); color: var(--papel); font-size: 14px; line-height: 1.45; padding: 10px 0; }
.faixa p { margin: 0; }

/* logo e linha de apoio */
.topo { padding-top: 22px; }
.topo img { display: block; width: 172px; height: auto; }
.apoio { margin: 10px 0 0 0; font-size: 15px; font-weight: 600; line-height: 1.35; }

/* abertura */
.abre { padding: 28px 0 0 0; }
h1 { font-family: "DM Serif Display", Georgia, serif; font-weight: 400; font-size: 31px; line-height: 1.16; margin: 0; text-wrap: balance; }
.fio { width: 72px; height: 6px; background: var(--vermelho); margin: 20px 0 20px 0; }
.abre p:last-of-type { margin-bottom: 0; }

/* botão: único lugar com fundo vermelho */
.botao { display: block; width: 100%; max-width: 380px; margin: 26px 0 0 0; padding: 17px 22px; background: var(--vermelho); color: #fff; font-size: 20px; font-weight: 700; line-height: 1.2; text-align: center; text-decoration: none; border-radius: 8px; }
.botao:hover { background: #A81309; }
.botao:focus-visible { outline: 3px solid var(--tinta); outline-offset: 3px; }

/* seções */
section { margin-top: 52px; }
h2 { font-family: "DM Serif Display", Georgia, serif; font-weight: 400; font-size: 27px; line-height: 1.2; margin: 0 0 16px 0; text-wrap: balance; }
ul, ol { margin: 0 0 16px 0; padding-left: 24px; }
li { margin: 0 0 10px 0; padding-left: 2px; }
li::marker { color: var(--vermelho); font-weight: 700; }

/* quem está falando */
.foto, .cartao { display: block; border: 1px solid var(--tinta); border-radius: 8px; }
.foto { width: 180px; aspect-ratio: 1 / 1; object-fit: cover; margin: 0 0 18px 0; }
.cartao { width: 100%; max-width: 440px; aspect-ratio: 16 / 10; object-fit: cover; margin: 6px 0 18px 0; }

/* dois caminhos */
ol.caminhos { list-style: none; padding: 0; margin: 0 0 16px 0; counter-reset: caminho; }
ol.caminhos li { display: flex; gap: 14px; align-items: flex-start; padding: 0; margin: 0 0 12px 0; counter-increment: caminho; }
ol.caminhos li::before { content: counter(caminho); flex: none; width: 32px; height: 32px; border-radius: 50%; background: var(--tinta); color: var(--papel); font-size: 16px; font-weight: 700; display: flex; align-items: center; justify-content: center; margin-top: -2px; }
figure { margin: 24px 0; }
figure img { display: block; border: 1px solid var(--tinta); border-radius: 8px; }
figcaption { margin-top: 8px; padding-left: 10px; border-left: 4px solid var(--vermelho); font-size: 15px; line-height: 1.4; color: var(--chumbo); }

/* caixas */
.caixa { background: var(--papel); border-left: 6px solid var(--tinta); border-radius: 0 8px 8px 0; padding: 22px 20px 20px 20px; }
.caixa > :last-child { margin-bottom: 0; }
.caixa.garantia { border-left-color: var(--vermelho); }
.rotulo { margin: 0 0 6px 0; font-size: 13px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--vermelho); }

/* quanto custa */
.preco strong { font-size: 1.15em; }

/* perguntas */
.pergunta { padding: 18px 0; border-top: 1px solid var(--fio); }
.pergunta:last-child { border-bottom: 1px solid var(--fio); }
.pergunta h3 { font-size: 18px; font-weight: 600; line-height: 1.4; margin: 0 0 6px 0; }
.pergunta p { margin: 0; }

/* rodapé */
.rodape { margin-top: 64px; background: var(--tinta); color: var(--papel); font-size: 14px; line-height: 1.55; padding: 32px 0 36px 0; }
.rodape img { display: block; width: 25px; height: 32px; margin: 0 0 16px 0; }
.rodape p { margin: 0 0 12px 0; }
.rodape p:last-child { margin-bottom: 0; }
.rodape a { color: var(--papel); text-decoration-color: var(--papel); }
.rodape a:focus-visible { outline-color: var(--papel); }

/* página de privacidade e termos */
.topo a { display: inline-block; }
.simples .abre h1 { font-size: 34px; }
.simples .data { margin: 0; font-size: 15px; color: var(--chumbo); }
.simples section { margin-top: 38px; }
.simples h2 { font-size: 24px; margin-bottom: 12px; }
.simples .volta { margin: 40px 0 0 0; font-weight: 600; }

/* RASCUNHO: marca do que ainda falta. Nenhum elemento com esta classe pode sobrar na página publicada. */
.falta { background: #FFE98A; color: var(--tinta); outline: 2px dashed var(--tinta); outline-offset: 1px; padding: 0 4px; }
.espaco { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 12px; font-size: 14px; font-weight: 700; line-height: 1.35; border: 0; outline-offset: -2px; }
.espaco small { font-size: 13px; font-weight: 400; }

/* computador */
@media (min-width: 760px) {
  body { font-size: 19px; }
  .miolo { padding: 0 32px; }
  .faixa { font-size: 15px; }
  .topo { padding-top: 30px; }
  .topo img { width: 194px; }
  .apoio { font-size: 16px; }
  .abre { padding-top: 40px; }
  h1 { font-size: 46px; line-height: 1.12; }
  .fio { width: 96px; margin: 26px 0 24px 0; }
  section { margin-top: 68px; }
  h2 { font-size: 32px; }
  .quem-topo { display: grid; grid-template-columns: 200px 1fr; gap: 28px; align-items: start; }
  .foto { width: 200px; margin: 0; }
  .quem-cartao { display: grid; grid-template-columns: minmax(0, 340px) 1fr; gap: 28px; align-items: center; margin-top: 22px; }
  .cartao { margin: 0; }
  .quem-cartao p { margin: 0; }
  .duas { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin-top: 68px; }
  .duas section { margin-top: 0; }
  .caixa { padding: 28px 28px 26px 28px; }
  .pergunta h3 { font-size: 19px; }
  .rodape { margin-top: 84px; font-size: 15px; }
  .simples .abre h1 { font-size: 44px; }
  .simples section { margin-top: 46px; }
  .simples h2 { font-size: 27px; }
}
