/* Casa em Ordem · modelo 92. Editorial longo: marfim, verde-escuro e um dourado discreto; Newsreader e
   Source Sans 3; régua dupla de jornal, coluna de leitura com margem e uma citação grande da mentora. */

:root {
  --verde: #1f3b2d;
  --verde-hover: #2b4d3b;
  --verde-medio: #4d5e52;
  --verde-claro: #c8d1c6;
  --marfim: #f6f1e7;
  --papel: #fcf9f3;
  --ouro: #b08d57;
  --ouro-numeral: #8a6a35;
  --ouro-texto: #7d6230;
  --ouro-claro: #c9a961;
  --fio: rgb(31 59 45 / 0.16);
  --mola: cubic-bezier(0.23, 1, 0.32, 1);
  --larg: 1240px;
  --margem: clamp(20px, 5vw, 64px);
  --coluna-margem: 200px;
  --coluna-texto: 680px;
  color-scheme: light;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--marfim);
  color: var(--verde);
  font: 400 18px/1.6 'Source Sans 3', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

h1,
h2,
h3,
h4,
p,
dl,
dd,
ol,
figure,
blockquote {
  margin: 0;
}

h1,
h2,
h3,
h4 {
  font-family: 'Newsreader', Georgia, serif;
  font-weight: 400;
  text-wrap: balance;
}

p {
  text-wrap: pretty;
}

a {
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--verde);
  outline-offset: 3px;
}

.pular {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 20;
  padding: 12px 18px;
  background: var(--verde);
  color: var(--marfim);
  font-weight: 600;
  text-decoration: none;
  transform: translateY(-170%);
  transition: transform 200ms var(--mola);
}

.pular:focus {
  transform: none;
}

/* Cabeçalho de jornal com régua dupla */

.cabecalho {
  padding: 14px var(--margem) 0;
}

.cabecalho-linha {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 16px;
  max-width: var(--larg);
  min-height: 64px;
  margin: 0 auto;
}

.cabecalho-meta {
  display: none;
  color: var(--verde-medio);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.marca {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  min-height: 44px;
  font-family: 'Newsreader', Georgia, serif;
  font-size: clamp(26px, 2.6vw, 36px);
  font-style: italic;
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1;
  text-decoration: none;
}

.cabecalho-aplicar {
  display: inline-flex;
  align-items: center;
  justify-self: end;
  min-height: 44px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-decoration: underline;
  text-decoration-color: rgb(31 59 45 / 0.3);
  text-decoration-thickness: 1px;
  text-transform: uppercase;
  text-underline-offset: 6px;
  transition: text-decoration-color 200ms ease;
}

.regua {
  max-width: var(--larg);
  height: 6px;
  margin: 10px auto 0;
  border-top: 2.5px solid var(--verde);
  border-bottom: 1px solid var(--verde);
  transform-origin: center;
}

@media (min-width: 900px) {
  .cabecalho-linha {
    grid-template-columns: 1fr auto 1fr;
  }

  .cabecalho-meta {
    display: block;
  }

  .marca {
    justify-self: center;
  }
}

@media (hover: hover) and (pointer: fine) {
  .cabecalho-aplicar:hover {
    text-decoration-color: var(--verde);
  }
}

/* Abertura: manchete, quadro com os números e a foto em duotone com legenda na margem */

.abertura {
  display: grid;
  gap: 44px;
  max-width: calc(var(--larg) + 2 * var(--margem));
  margin: 0 auto;
  padding: clamp(36px, 6vw, 80px) var(--margem) 0;
}

.chapeu {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: var(--ouro-texto);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.16em;
  line-height: 1.6;
  text-transform: uppercase;
}

.chapeu::before {
  content: '';
  flex: none;
  width: 7px;
  height: 7px;
  margin-top: 0.5em;
  background: var(--ouro);
  transform: rotate(45deg);
}

h1 {
  margin-top: 22px;
  font-size: clamp(48px, 7.4vw, 112px);
  font-weight: 300;
  line-height: 0.98;
  letter-spacing: -0.028em;
}

h1 em {
  font-style: italic;
  font-weight: 300;
}

.linha-fina {
  max-width: 30em;
  margin-top: 28px;
  color: var(--verde-medio);
  font-family: 'Newsreader', Georgia, serif;
  font-size: clamp(20px, 1.75vw, 25px);
  line-height: 1.45;
}

.quadro {
  align-self: start;
  padding-top: 16px;
  border-top: 3px solid var(--verde);
}

.quadro-titulo {
  padding-bottom: 6px;
  color: var(--ouro-texto);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.quadro-num {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding: 14px 0 16px;
  border-bottom: 1px solid var(--fio);
  font-family: 'Newsreader', Georgia, serif;
  font-size: 20px;
  line-height: 1.2;
}

.numero {
  min-width: 1.15em;
  font-size: 68px;
  font-weight: 300;
  letter-spacing: -0.03em;
  line-height: 0.85;
}

.quadro-dados div {
  display: grid;
  grid-template-columns: 6.6em 1fr;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--fio);
}

.quadro-dados dt {
  padding-top: 3px;
  color: var(--verde-medio);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.quadro-dados dd {
  font-size: 16px;
  line-height: 1.45;
}

.botao {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  width: 100%;
  min-height: 56px;
  margin-top: 24px;
  padding: 0 22px;
  border: 0;
  border-radius: 2px;
  background: var(--verde);
  color: var(--marfim);
  font: 600 16px/1.2 'Source Sans 3', system-ui, sans-serif;
  letter-spacing: 0.02em;
  text-decoration: none;
  cursor: pointer;
  transition:
    background-color 200ms ease,
    transform 160ms var(--mola);
}

.botao svg {
  flex: none;
  transition: transform 200ms var(--mola);
}

.botao:active {
  transform: scale(0.98);
}

@media (hover: hover) and (pointer: fine) {
  .botao:hover {
    background: var(--verde-hover);
  }

  .botao:hover svg {
    transform: translateX(4px);
  }
}

.quadro-prazo {
  margin-top: 12px;
  color: var(--verde-medio);
  font-family: 'Newsreader', Georgia, serif;
  font-size: 17px;
  font-style: italic;
  text-align: center;
}

.abertura-figura {
  display: grid;
  gap: 16px;
}

/* duotone: preto vira verde, branco vira marfim */
.duotone {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--verde);
}

.duotone img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: 50% 62%;
  filter: grayscale(1) contrast(1.18) brightness(1.04);
  mix-blend-mode: screen;
}

.duotone::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--marfim);
  mix-blend-mode: multiply;
  pointer-events: none;
}

.abertura-figura figcaption {
  max-width: 30em;
  padding-top: 14px;
  border-top: 1px solid var(--verde);
  color: var(--verde-medio);
  font-size: 15px;
  line-height: 1.55;
}

.legenda-rotulo {
  display: block;
  margin-bottom: 6px;
  color: var(--ouro-texto);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

@media (min-width: 1000px) {
  .abertura {
    grid-template-columns: minmax(0, 1fr) 320px;
    column-gap: clamp(48px, 6vw, 88px);
    row-gap: 72px;
  }

  .abertura-figura {
    grid-column: 1 / -1;
    grid-template-columns: minmax(0, 1fr) 320px;
    align-items: end;
    column-gap: clamp(48px, 6vw, 88px);
  }

  .abertura-figura figcaption {
    margin-bottom: 4px;
  }
}

@media (min-width: 700px) {
  .duotone img {
    aspect-ratio: 16 / 9;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .regua {
    animation: risca 600ms var(--mola) both;
  }

  .abertura-texto > * {
    animation: surge 560ms var(--mola) both;
  }

  .abertura-texto > :nth-child(2) {
    animation-delay: 70ms;
  }

  .abertura-texto > :nth-child(3) {
    animation-delay: 140ms;
  }
}

@keyframes risca {
  from {
    transform: scaleX(0);
  }
}

@keyframes surge {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
}

/* Seções numeradas: numeral na margem, título na coluna de leitura */

.secao-cabeca {
  display: grid;
  gap: 6px;
  margin-bottom: clamp(36px, 5vw, 64px);
}

.numeral {
  color: var(--ouro-numeral);
  font-family: 'Newsreader', Georgia, serif;
  font-size: clamp(44px, 5vw, 72px);
  font-style: italic;
  font-weight: 300;
  line-height: 1;
}

.secao-cabeca h2 {
  font-size: clamp(34px, 4.2vw, 58px);
  line-height: 1.05;
  letter-spacing: -0.02em;
}

/* I · o ensaio */

.ensaio {
  max-width: calc(var(--larg) + 2 * var(--margem));
  margin: 0 auto;
  padding: clamp(56px, 7vw, 96px) var(--margem) clamp(72px, 10vw, 144px);
}

.ensaio::before {
  content: '';
  display: block;
  height: 1px;
  margin-bottom: clamp(48px, 7vw, 96px);
  background: var(--fio);
}

.bloco {
  display: grid;
  gap: 20px;
}

.rotulo {
  padding-top: 10px;
  border-top: 1px solid var(--verde);
  color: var(--ouro-texto);
  font-family: 'Source Sans 3', system-ui, sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.nota {
  margin-top: 14px;
  color: var(--verde-medio);
  font-size: 15px;
  line-height: 1.55;
}

.texto > p {
  font-family: 'Newsreader', Georgia, serif;
  font-size: clamp(19px, 1.45vw, 21px);
  line-height: 1.7;
}

.texto > p + p {
  margin-top: 1.1em;
}

.capitular::first-letter {
  float: left;
  margin: 0.07em 0.1em 0 -0.03em;
  color: var(--verde);
  font-size: 4.7em;
  font-weight: 400;
  line-height: 0.8;
}

.citacao {
  max-width: 944px;
  margin: clamp(56px, 8vw, 104px) auto;
  text-align: center;
}

.citacao blockquote::before {
  content: '\201C';
  display: block;
  height: 0.42em;
  color: var(--ouro);
  font-family: 'Newsreader', Georgia, serif;
  font-size: clamp(88px, 9vw, 132px);
  line-height: 0.8;
}

.citacao p {
  font-family: 'Newsreader', Georgia, serif;
  font-size: clamp(32px, 4.2vw, 58px);
  font-style: italic;
  font-weight: 300;
  line-height: 1.12;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

.citacao figcaption {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 28px;
  color: var(--ouro-texto);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.citacao figcaption::before {
  content: '';
  width: 28px;
  height: 1px;
  background: var(--ouro);
}

.semanas {
  margin-top: 36px;
  padding: 0;
  border-top: 1px solid var(--verde);
  list-style: none;
}

.semanas li {
  display: grid;
  gap: 6px;
  padding: 22px 0 24px;
  border-bottom: 1px solid var(--fio);
}

.semanas-quando {
  padding-top: 6px;
  color: var(--ouro-texto);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.semanas h4 {
  font-size: 28px;
  line-height: 1.15;
}

.semanas li p:not(.semanas-quando) {
  margin-top: 6px;
  color: var(--verde-medio);
  font-family: 'Newsreader', Georgia, serif;
  font-size: 19px;
  line-height: 1.55;
}

@media (min-width: 640px) {
  .semanas li {
    grid-template-columns: 9.5em 1fr;
    gap: 24px;
  }
}

/* no celular, a nota da margem vem depois do texto */
@media (max-width: 899px) {
  .margem {
    display: contents;
  }

  .bloco .nota {
    order: 2;
    margin-top: 4px;
    padding-left: 16px;
    border-left: 2px solid var(--ouro);
  }

  .bloco .texto {
    order: 1;
  }
}

@media (min-width: 900px) {
  .secao-cabeca,
  .bloco {
    grid-template-columns: var(--coluna-margem) minmax(0, var(--coluna-texto));
    justify-content: center;
    column-gap: 64px;
  }

  .secao-cabeca {
    align-items: baseline;
  }
}

/* II · a aplicação, em verde */

.aplicacao {
  padding: clamp(72px, 10vw, 144px) var(--margem);
  background: var(--verde);
  color: var(--marfim);
}

.aplicacao-dentro {
  max-width: var(--larg);
  margin: 0 auto;
}

.aplicacao .numeral {
  color: var(--ouro-claro);
}

.secao-apoio {
  max-width: 32em;
  margin-top: 16px;
  color: var(--verde-claro);
  font-family: 'Newsreader', Georgia, serif;
  font-size: clamp(19px, 1.5vw, 21px);
  line-height: 1.5;
}

.passos {
  display: grid;
  max-width: 944px;
  margin: clamp(48px, 6vw, 80px) auto 0;
  padding: 0;
  border-top: 1px solid rgb(246 241 231 / 0.32);
  list-style: none;
}

.passos li {
  padding: 28px 0 32px;
}

.passos li + li {
  border-top: 1px solid rgb(246 241 231 / 0.18);
}

.passo-num {
  display: block;
  color: var(--ouro-claro);
  font-family: 'Newsreader', Georgia, serif;
  font-size: 64px;
  font-style: italic;
  font-weight: 300;
  line-height: 1;
}

.passos h3 {
  margin-top: 16px;
  font-size: 26px;
  line-height: 1.2;
}

.passos p {
  max-width: 26em;
  margin-top: 10px;
  color: var(--verde-claro);
  font-size: 17px;
  line-height: 1.6;
}

@media (min-width: 900px) {
  .passos {
    grid-template-columns: repeat(3, 1fr);
  }

  .passos li {
    padding: 32px 36px 8px 0;
  }

  .passos li + li {
    padding-left: 36px;
    border-top: 0;
    border-left: 1px solid rgb(246 241 231 / 0.18);
  }
}

.aplicacao :focus-visible {
  outline-color: var(--ouro-claro);
}

/* A ficha de aplicação: papel sobre o verde, com moldura fina dourada */

.ficha {
  position: relative;
  max-width: 944px;
  margin: clamp(56px, 7vw, 96px) auto 0;
  padding: clamp(32px, 5vw, 64px) clamp(24px, 5vw, 64px);
  background: var(--papel);
  color: var(--verde);
  box-shadow:
    0 1px 0 rgb(0 0 0 / 0.08),
    0 28px 64px -28px rgb(0 0 0 / 0.5);
  scroll-margin-top: 24px;
}

.ficha::before {
  content: '';
  position: absolute;
  inset: 10px;
  border: 1px solid rgb(176 141 87 / 0.55);
  pointer-events: none;
}

.ficha :focus-visible {
  outline-color: var(--verde);
}

.ficha-cabeca h3 {
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1.1;
  letter-spacing: -0.015em;
}

.ficha-cabeca p {
  margin-top: 8px;
  color: var(--verde-medio);
  font-family: 'Newsreader', Georgia, serif;
  font-size: 19px;
  font-style: italic;
}

.ficha-campos {
  display: grid;
  gap: 22px 28px;
  margin-top: 36px;
}

.campo label {
  display: block;
  margin-bottom: 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.campo input,
.campo select,
.campo textarea {
  width: 100%;
  min-height: 50px;
  padding: 12px 14px;
  border: 1px solid rgb(31 59 45 / 0.42);
  border-radius: 2px;
  background: #fffdf9;
  color: var(--verde);
  font: 400 17px/1.4 'Source Sans 3', system-ui, sans-serif;
  transition:
    border-color 160ms ease,
    background-color 160ms ease;
}

.campo textarea {
  min-height: 128px;
  resize: vertical;
}

.campo select {
  padding-right: 40px;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 6 8 10.5 12.5 6' fill='none' stroke='%231f3b2d' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-position: right 14px center;
  background-repeat: no-repeat;
  background-size: 15px;
  cursor: pointer;
}

.campo input::placeholder,
.campo textarea::placeholder {
  color: #617065;
}

.campo input:focus-visible,
.campo select:focus-visible,
.campo textarea:focus-visible {
  border-color: var(--verde);
  background-color: #fff;
  outline-offset: 2px;
}

@media (hover: hover) and (pointer: fine) {
  .campo input:hover,
  .campo select:hover,
  .campo textarea:hover {
    border-color: rgb(31 59 45 / 0.7);
  }
}

.envio {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 24px;
  margin-top: 32px;
}

.ficha .botao {
  width: auto;
  margin-top: 0;
  padding: 0 24px 0 26px;
}

.aviso {
  color: var(--verde);
  font-family: 'Newsreader', Georgia, serif;
  font-size: 18px;
  font-style: italic;
  opacity: 0;
  transition: opacity 240ms ease;
}

.aviso.visivel {
  opacity: 1;
}

.ficha-nota {
  margin-top: 18px;
  color: var(--verde-medio);
  font-size: 14px;
}

@media (min-width: 700px) {
  .ficha-campos {
    grid-template-columns: 1fr 1fr;
  }

  .campo-largo {
    grid-column: 1 / -1;
  }
}

/* Rodapé com a mesma régua dupla do cabeçalho */

.rodape {
  padding: 0 var(--margem) 48px;
}

.rodape-dentro {
  display: grid;
  gap: 12px;
  max-width: var(--larg);
  margin: 0 auto;
  padding-top: 28px;
  color: var(--verde-medio);
  font-size: 15px;
}

.rodape-dentro::before {
  content: '';
  height: 6px;
  margin-bottom: 16px;
  border-top: 2.5px solid var(--verde);
  border-bottom: 1px solid var(--verde);
}

.rodape-marca {
  color: var(--verde);
  font-family: 'Newsreader', Georgia, serif;
  font-size: 26px;
  font-style: italic;
  font-weight: 500;
  line-height: 1.1;
}

.rodape-dentro p:not(.rodape-marca) {
  max-width: 36em;
}

.rodape-fim {
  font-size: 14px;
}

@media (min-width: 900px) {
  .rodape-dentro {
    grid-template-columns: auto 1fr auto;
    align-items: baseline;
    column-gap: 56px;
  }

  .rodape-dentro::before {
    grid-column: 1 / -1;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .pular,
  .botao,
  .botao svg {
    transition-property: background-color, color;
  }
}
