/* Mesmo caderno do site: papel com grade, grafite e amarelo marca-texto. */
:root {
  --papel: #F4F3EF;
  --folha: #FBFAF6;
  --grade: rgba(16, 18, 22, 0.06);
  --grafite: #101216;
  --tinta: #1B1D22;
  --tinta-suave: #5B5E66;
  --amarelo: #FFD60A;
  --vermelho: #E5484D;
  --f-titulo: 'Unbounded', sans-serif;
  --f-texto: 'Onest', sans-serif;
  --f-mono: 'IBM Plex Mono', monospace;
  --f-mao: 'Kalam', cursive;
}
* { box-sizing: border-box; margin: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  background-color: var(--papel);
  background-image: linear-gradient(var(--grade) 1px, transparent 1px), linear-gradient(90deg, var(--grade) 1px, transparent 1px);
  background-size: 24px 24px;
  color: var(--tinta);
  font-family: var(--f-texto);
  font-size: 17px;
  line-height: 1.55;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
a { color: inherit; }
::selection { background: var(--amarelo); color: var(--grafite); }
.mono { font-family: var(--f-mono); }
.mao { font-family: var(--f-mao); font-weight: 700; }
.mt {
  background-image: linear-gradient(var(--amarelo), var(--amarelo));
  background-repeat: no-repeat; background-size: 100% 100%; background-position: 0 0;
  padding: .02em .14em .06em; margin: 0 -.06em;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}

.topo { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1rem 16px; max-width: 880px; width: 100%; margin: 0 auto; }
/* carimbo de obra (logo, direção 3) em versão de cabeçalho: AF no quadro amarelo, nome e o campo PROJETO */
.carimbo-topo {
  display: inline-flex; align-items: stretch; text-decoration: none; color: var(--grafite);
  background: var(--papel); border: 2px solid var(--grafite); border-radius: 3px; box-shadow: 3px 3px 0 var(--grafite);
}
.ct-af {
  display: grid; place-items: center; background: var(--amarelo); border-right: 2px solid var(--grafite);
  font-family: var(--f-titulo); font-weight: 900; font-size: 1rem; padding: 0 .55rem;
}
.ct-campos { display: grid; }
.ct-nome { font-family: var(--f-titulo); font-weight: 700; font-size: .95rem; padding: .3rem .7rem .25rem; }
.ct-proj { border-top: 1.5px solid var(--grafite); font-size: .66rem; font-weight: 600; letter-spacing: .06em; padding: .15rem .7rem .2rem; }
.ct-proj small { font-size: .55rem; font-weight: 500; color: var(--tinta-suave); margin-right: .35rem; }
.link { background: none; border: 0; font: inherit; font-size: .9rem; color: var(--tinta-suave); text-decoration: underline; cursor: pointer; padding: .4rem 0; }

main { flex: 1; width: 100%; max-width: 880px; margin: 0 auto; padding: 1rem 16px 3rem; display: grid; gap: 1.5rem; align-content: start; }

.folha { padding: .5rem 0; }
.cartao, .conteudo {
  background: var(--folha); border: 1.5px solid var(--grafite); border-radius: 6px;
  padding: 1.6rem 1.4rem; box-shadow: 6px 6px 0 rgba(16,18,22,.12); max-width: 620px;
}
.etiqueta { font-size: .75rem; letter-spacing: .18em; font-weight: 600; margin-bottom: .5rem; }
h1 { font-family: var(--f-titulo); font-weight: 900; font-size: clamp(1.6rem, 6vw, 2.5rem); line-height: 1.15; margin-bottom: .8rem; }
h2 { font-family: var(--f-titulo); font-weight: 700; font-size: 1.3rem; margin-bottom: .4rem; }
h3 { font-family: var(--f-titulo); font-weight: 700; font-size: 1.05rem; line-height: 1.3; }
.intro { font-size: 1.1rem; max-width: 36rem; color: var(--tinta); }
.sub { font-size: .75rem; letter-spacing: .14em; margin: 1.4rem 0 .5rem; color: var(--tinta-suave); }
.previa { list-style: none; padding: 0; display: grid; gap: .4rem; }
.previa li { display: flex; gap: .6rem; align-items: baseline; }
.tipo { font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; background: var(--grafite); color: var(--papel); padding: .1em .5em; border-radius: 3px; white-space: nowrap; }

.form { display: grid; gap: 1.3rem; margin-top: 1rem; }
.form label { display: grid; gap: .3rem; font-weight: 600; font-size: .95rem; }
.form input:not([type=checkbox]) {
  font: inherit; font-weight: 400; padding: .75rem .8rem; border: 1.5px solid var(--grafite); border-radius: 6px; background: #fff; width: 100%;
}
.form input:focus-visible, .btn:focus-visible { outline: 3px solid var(--amarelo); outline-offset: 2px; }
.form .check { display: flex; gap: .6rem; align-items: flex-start; font-weight: 400; font-size: .92rem; }
.form .check input { margin-top: .3rem; width: 1.1rem; height: 1.1rem; accent-color: var(--grafite); flex: none; }
.isca { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.btn {
  display: inline-block; font: inherit; font-weight: 700; text-decoration: none; cursor: pointer;
  border: 2px solid var(--grafite); border-radius: 6px; padding: .8rem 1.2rem; background: var(--folha); color: var(--grafite);
  box-shadow: 3px 3px 0 var(--grafite); transition: transform .1s, box-shadow .1s;
}
.btn:hover { transform: translate(-1px, -1px); box-shadow: 4px 4px 0 var(--grafite); }
.btn:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--grafite); }
.btn.amarelo { background: var(--amarelo); }
.erro { background: #fde8e8; border-left: 4px solid var(--vermelho); padding: .6rem .8rem; margin-top: .8rem; border-radius: 4px; }
.miudo { font-size: .85rem; color: var(--tinta-suave); margin-top: 1rem; }

.grade-itens { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.2rem; }
.item {
  display: grid; gap: .5rem; align-content: start; text-decoration: none; background: var(--folha);
  border: 1.5px solid var(--grafite); border-radius: 6px; padding: 1.2rem; box-shadow: 4px 4px 0 rgba(16,18,22,.12);
  transition: transform .1s;
}
.item:hover { transform: translateY(-2px); }
.item .tipo { justify-self: start; }
.item p { font-size: .95rem; color: var(--tinta-suave); }
.abrir { font-weight: 700; }
.pego { color: var(--tinta); font-size: 1.1rem; }

.voltar a { font-size: .9rem; color: var(--tinta-suave); }
.conteudo { max-width: 720px; display: grid; gap: .9rem; }
.conteudo h2 { margin-top: .8rem; }
.conteudo ol, .conteudo ul { padding-left: 1.3rem; display: grid; gap: .35rem; }
.conteudo code, .conteudo pre { font-family: var(--f-mono); font-size: .88rem; background: var(--papel); border: 1px solid rgba(16,18,22,.15); border-radius: 4px; }
.conteudo code { padding: .05em .35em; }
.conteudo pre { padding: .8rem; overflow-x: auto; white-space: pre-wrap; }
.conteudo pre code { border: 0; padding: 0; background: none; }
.conteudo table { border-collapse: collapse; width: 100%; font-size: .95rem; }
.conteudo th, .conteudo td { text-align: left; padding: .45rem .5rem; border-bottom: 1px solid rgba(16,18,22,.15); vertical-align: top; }
.conteudo .nota { font-size: .88rem; color: var(--tinta-suave); }

.rodape { text-align: center; padding: 1.5rem 16px 2rem; font-size: .85rem; color: var(--tinta-suave); }

/* ---------- movimento (só CSS; some para quem pediu menos movimento no sistema) ---------- */
.selo {
  display: inline-flex; align-items: center; gap: .55rem; font-size: .72rem; letter-spacing: .08em;
  background: var(--folha); border: 1.5px solid var(--grafite); border-radius: 999px; padding: .3rem .8rem .3rem .55rem;
  margin-bottom: 1rem; text-transform: uppercase;
}
.pulso { position: relative; width: .6rem; height: .6rem; border-radius: 50%; background: #2BB673; flex: none; }
.pulso::after {
  content: ''; position: absolute; inset: 0; border-radius: 50%; background: #2BB673;
  animation: pulso 1.8s ease-out infinite;
}
@keyframes pulso { from { transform: scale(1); opacity: .7; } to { transform: scale(3.2); opacity: 0; } }

.entra { animation: sobe .7s cubic-bezier(.2,.7,.2,1) both; }
.entra.atraso { animation-delay: .35s; }
@keyframes sobe { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

.mt.risca { animation: risca .8s .45s cubic-bezier(.6,0,.2,1) both; background-size: 0% 100%; }
@keyframes risca { to { background-size: 100% 100%; } }

.previa li { animation: sobe .5s cubic-bezier(.2,.7,.2,1) both; animation-delay: .6s; }
.previa li:nth-child(2) { animation-delay: .7s; }
.previa li:nth-child(3) { animation-delay: .8s; }
.previa li:nth-child(n+4) { animation-delay: .9s; }

/* entrada enxuta: botão grande que abre o formulário */
.capa { display: grid; justify-items: center; text-align: center; gap: 2.6rem; padding-top: clamp(2rem, 8vh, 5rem); }
.capa .caixa-form { text-align: left; }
.capa h1 { font-size: clamp(2rem, 8vw, 3.6rem); max-width: 15ch; margin: 0 auto; }
.abre { width: 100%; max-width: 520px; }
.abre summary { list-style: none; }

/* botão principal: título grande em caixa alta com seta + uma linha de apoio */
.cta {
  position: relative; overflow: hidden; display: grid; justify-items: center; gap: .3rem; width: 100%;
  background: var(--amarelo); color: var(--grafite); border: 2px solid var(--grafite); border-radius: 14px;
  padding: 1.05rem 1.2rem 1rem; cursor: pointer; font: inherit; text-align: center;
  box-shadow: 0 10px 34px rgba(255, 214, 10, .45), 4px 4px 0 var(--grafite);
  transition: transform .12s, box-shadow .12s;
}
.cta::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(105deg, transparent 35%, rgba(255,255,255,.55) 50%, transparent 65%);
  transform: translateX(-120%); animation: brilho 3.6s 1.6s ease-in-out infinite;
}
@keyframes brilho { 0%, 70% { transform: translateX(-120%); } 100% { transform: translateX(120%); } }
.cta:hover { transform: translate(-1px, -2px); box-shadow: 0 14px 40px rgba(255, 214, 10, .55), 5px 6px 0 var(--grafite); }
.cta:active { transform: translate(2px, 2px); box-shadow: 0 6px 20px rgba(255, 214, 10, .4), 1px 1px 0 var(--grafite); }
.cta:focus-visible { outline: 3px solid var(--grafite); outline-offset: 3px; }
.cta-titulo {
  display: inline-flex; align-items: center; gap: .55em;
  font-family: var(--f-titulo); font-weight: 900; text-transform: uppercase; letter-spacing: -.01em;
  font-size: clamp(1rem, 4.2vw, 1.3rem); line-height: 1.1;
}
.cta-seta { font-family: var(--f-texto); font-weight: 700; transition: transform .15s; }
.cta:hover .cta-seta { transform: translateX(4px); }
.cta-apoio { font-weight: 600; font-size: clamp(.74rem, 3.1vw, .9rem); white-space: nowrap; opacity: .85; }

.caixa-titulo { font-family: var(--f-titulo); font-weight: 900; text-transform: uppercase; font-size: clamp(1.4rem, 6vw, 1.8rem); letter-spacing: -.01em; margin-bottom: .4rem; }
.caixa-recebe { color: var(--tinta-suave); font-size: .95rem; margin-bottom: 1.6rem; }
.caixa-form .form label { font-size: 1rem; }
.caixa-form .form input:not([type=checkbox]) { padding: .95rem 1rem; border-radius: 10px; font-size: 1.05rem; }
.caixa-form .cta { margin-top: .4rem; }
.abre summary::-webkit-details-marker { display: none; }
.btn.grande { font-size: 1.15rem; padding: 1rem 1.6rem; text-align: center; }
.abre[open] summary { display: none; }
.caixa-form { transform-origin: top center; animation: desdobra .55s cubic-bezier(.2,.9,.25,1.15) both; }
@keyframes desdobra {
  from { opacity: 0; transform: perspective(900px) rotateX(-18deg) translateY(-14px) scale(.96); }
  to { opacity: 1; transform: none; }
}
.caixa-form > * { animation: sobe .45s cubic-bezier(.2,.7,.2,1) both; }
.caixa-form > :nth-child(1) { animation-delay: .15s; }
.caixa-form > :nth-child(2) { animation-delay: .22s; }
.caixa-form > :nth-child(3) { animation-delay: .32s; }
.caixa-form > :nth-child(4) { animation-delay: .4s; }
.caixa-form > :nth-child(5) { animation-delay: .48s; }
.recebe { list-style: none; padding: 0; display: grid; gap: .55rem; margin: .2rem 0 1.2rem; }
.recebe li { display: flex; gap: .6rem; align-items: baseline; font-weight: 600; }
.recebe li .tipo { flex: none; }
.recebe li:last-child { font-weight: 400; color: var(--tinta-suave); }
.recebe li:nth-child(1) { animation: sobe .4s .3s both; }
.recebe li:nth-child(2) { animation: sobe .4s .38s both; }
.recebe li:nth-child(3) { animation: sobe .4s .46s both; }
.tipo.claro { background: var(--amarelo); color: var(--grafite); }
.form input::placeholder { color: #9a9ca3; }

.caixa-form .form { margin-top: 0; }
.abre[open] ~ .recado { display: none; }
.recado {
  font-size: 1.15rem; transform: rotate(-3deg); margin: -1.4rem 0 0;
  display: flex; align-items: flex-end; gap: .3rem; animation: sobe .5s 1.1s both;
}
.seta { width: 54px; height: 42px; margin-top: .5rem; fill: none; stroke: var(--grafite); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.seta path { stroke-dasharray: 140; stroke-dashoffset: 140; animation: desenha .8s 1.3s ease-out forwards; }
.seta path + path { animation-delay: 1.9s; animation-duration: .3s; }
@keyframes desenha { to { stroke-dashoffset: 0; } }

.btn.amarelo { animation: chama 4s 2.6s ease-in-out infinite; }
@keyframes chama { 0%, 88%, 100% { transform: none; } 92% { transform: translate(-1px,-2px) rotate(-1deg); } 96% { transform: translate(1px,0) rotate(.6deg); } }
.btn.amarelo:hover { animation: none; }

.item { animation: sobe .55s cubic-bezier(.2,.7,.2,1) both; animation-delay: .25s; }
.item:nth-child(2) { animation-delay: .35s; }
.item:nth-child(3) { animation-delay: .45s; }
.item:nth-child(n+4) { animation-delay: .55s; }
.item .abrir { display: inline-block; transition: transform .15s; }
.item:hover .abrir { transform: translateX(4px); }

@media (max-width: 560px) { .abre summary.btn { display: block; } .abre[open] summary { display: none; } }
@media (prefers-reduced-motion: reduce) {
  .cta::after { display: none; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .mt.risca { background-size: 100% 100%; }
  .seta path { stroke-dashoffset: 0; }
}

/* páginas de recado, estante e item no mesmo molde da capa */
.capa .etiqueta { margin-bottom: -1.4rem; }
.capa-texto { font-size: 1.1rem; max-width: 34rem; color: var(--tinta); margin: -1rem auto 0; }
.capa-acao, .capa-form { width: 100%; max-width: 520px; }
.capa .miudo { margin-top: -1.2rem; }
.capa-curta { gap: 2rem; padding-top: clamp(1.5rem, 5vh, 3rem); }
.capa-curta .capa-texto { margin-top: -.6rem; }
.h1-item { font-size: clamp(1.7rem, 6vw, 2.8rem) !important; max-width: 20ch !important; }
.cta-claro { background: var(--folha); box-shadow: 4px 4px 0 var(--grafite); }
.cta-claro:hover { box-shadow: 5px 6px 0 var(--grafite); }
.cta-claro::after { display: none; }
.grade-itens { max-width: 820px; width: 100%; margin: 0 auto; }
.conteudo { margin: 0 auto; width: 100%; }
.voltar { max-width: 820px; width: 100%; margin: 0 auto; }

/* cabeçalho: AF do carimbo + Aldo Freitas / BRAÇO (a marca manda, o braço vem menor depois da barra) */
.marca-topo { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--grafite); }
.mt-af {
  display: grid; place-items: center; width: 2.4rem; height: 2.4rem; flex: none;
  background: var(--amarelo); border: 2.5px solid var(--grafite); box-shadow: 2px 2px 0 var(--grafite);
  font-family: var(--f-titulo); font-weight: 900; font-size: .92rem; letter-spacing: -.02em;
}
.mt-nome { font-family: var(--f-titulo); font-weight: 900; font-size: 1.15rem; letter-spacing: -.01em; white-space: nowrap; }
.mt-braco { font-size: .75rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--tinta-suave); white-space: nowrap; }
.mt-braco span { font-family: var(--f-texto); font-size: 1.2rem; font-weight: 400; margin-right: .25rem; color: #9a9ca3; }
@media (max-width: 420px) { .mt-nome { font-size: 1rem; } .mt-braco { font-size: .65rem; } .mt-af { width: 2.1rem; height: 2.1rem; } }
a.cta { text-decoration: none; }
h1 .mt { white-space: nowrap; }
.grade-itens { grid-template-columns: repeat(auto-fit, minmax(260px, 320px)); justify-content: center; }

/* títulos sem palavra sozinha na última linha */
h1, h2, h3, .cta-titulo { text-wrap: balance; }
p, li { text-wrap: pretty; }
