/* Sistema visual — ver 02-conceito/sistema.md */
:root {
  --creme: #f4efe6;
  --creme-2: #efe6da;
  --papel: #f8f3ea;
  --papel-claro: #fffaf2;
  --pele: #dca68b;
  --pele-2: #c8a68e;
  --rose: #e8b9a8;
  --coral: #c4553f;
  --coral-fundo: #a3342b;
  --cacau: #2b211b;
  --cacau-2: #5a4639;
  --noite: #1f1814;
  --sobre-escuro: #f1e6dc;
  --sobre-escuro-2: #c9b6a8;
  --lapis: #fffaf1;
  --f-titulo: "Rufina", Georgia, serif;
  --f-texto: "Anek Latin", system-ui, sans-serif;
  --margem: clamp(1.25rem, 5vw, 4.5rem);
  --largura: 76rem;
  --respiro: clamp(5rem, 11vw, 9rem);
  --topo: 5.25rem;
  --entra: cubic-bezier(.2, .7, .2, 1);
  --traco: cubic-bezier(.45, 0, .2, 1);
  --sombra-papel: 0 24px 40px -26px rgba(74, 46, 30, .45), 0 2px 6px rgba(74, 46, 30, .08);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 1rem; }
body {
  margin: 0;
  background: var(--creme);
  color: var(--cacau);
  font-family: var(--f-texto);
  font-size: 1.125rem;
  line-height: 1.55;
  overflow-x: clip;
}
a { color: inherit; }
img { max-width: 100%; }
figure, blockquote, p, h1, h2, h3, h4, ul, ol, dl, dd { margin: 0; }
ul, ol { padding: 0; }
:focus-visible { outline: 2px solid var(--coral-fundo); outline-offset: 3px; border-radius: 2px; }
.wf-escuro :focus-visible { outline-color: var(--rose); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wf-pular { position: absolute; left: 1rem; top: -4rem; z-index: 100; background: var(--cacau); color: var(--creme); padding: .6rem 1rem; border-radius: 3px; text-decoration: none; }
.wf-pular:focus { top: 1rem; }

/* granulado único, fixo */
.wf-grao {
  position: fixed; inset: 0; z-index: 50; pointer-events: none;
  opacity: .05; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* seção */
.wf-sec { position: relative; padding: var(--respiro) var(--margem); overflow: clip; }
.wf-dentro { max-width: var(--largura); margin-inline: auto; position: relative; z-index: 2; }
.wf-escuro { background: var(--cacau); color: var(--sobre-escuro); }
.wf-sobre { font-size: .95rem; font-weight: 500; letter-spacing: .02em; color: var(--coral-fundo); margin-bottom: 1rem; }
.wf-escuro .wf-sobre { color: var(--rose); }
.wf-h2 {
  font-family: var(--f-titulo); font-weight: 700;
  font-size: clamp(2.2rem, 3.8vw, 3.6rem); line-height: 1.05; letter-spacing: -.01em;
  text-wrap: balance;
}
.wf-h3 { font-family: var(--f-titulo); font-weight: 700; font-size: clamp(1.35rem, 1.8vw, 1.7rem); line-height: 1.15; }
.wf-lead { font-size: clamp(1.125rem, 1.35vw, 1.25rem); color: var(--cacau-2); max-width: 36rem; }
.wf-escuro .wf-lead { color: var(--sobre-escuro-2); }

/* grifo coral à mão: <span class="wf-grifo">palavra<svg viewBox="0 0 200 22" preserveAspectRatio="none" aria-hidden="true"><path d="M4 15 C 46 7, 110 6, 196 11"/><path d="M30 19 C 80 13, 140 13, 176 16"/></svg></span> */
.wf-grifo { position: relative; white-space: nowrap; }
.wf-grifo svg { position: absolute; left: -2%; width: 104%; bottom: -.16em; height: .3em; overflow: visible; pointer-events: none; }
.wf-grifo path { fill: none; stroke: var(--coral); stroke-width: 3.2; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.wf-grifo path + path { stroke-width: 2; opacity: .7; }
.wf-escuro .wf-grifo path { stroke: #d9735c; }
.js .wf-grifo svg { clip-path: inset(-50% 100% -50% 0); transition: clip-path .9s var(--traco) .35s; }
.js .wf-grifo.vis svg, .js [data-rev].vis .wf-grifo svg { clip-path: inset(-50% 0 -50% 0); }

/* rótulo de papel: a unidade de texto curto do site */
.wf-rot {
  display: inline-block;
  font-size: .95rem; font-weight: 500; line-height: 1.25; color: var(--cacau);
  background: var(--papel-claro);
  padding: .3rem .6rem .32rem; border-radius: 3px;
  box-shadow: 0 6px 14px -8px rgba(74, 46, 30, .45), 0 0 0 1px rgba(74, 46, 30, .08);
}

/* botões e links */
.wf-btn {
  display: inline-flex; align-items: center; gap: .6rem;
  background: var(--cacau); color: var(--creme);
  font-weight: 600; font-size: 1.08rem; text-decoration: none;
  padding: .95rem 1.45rem; border-radius: 99px;
  box-shadow: 0 10px 24px -14px rgba(43, 33, 27, .7);
  transition: background .25s, transform .25s, color .25s;
}
.wf-btn svg { width: 1.25rem; height: 1.25rem; fill: currentColor; flex: none; }
.wf-btn:hover, .wf-btn:focus-visible { background: var(--coral-fundo); transform: translateY(-1px); }
.wf-btn--claro { background: var(--creme); color: var(--cacau); }
.wf-btn--claro:hover, .wf-btn--claro:focus-visible { background: var(--rose); color: var(--cacau); }
.wf-link {
  font-weight: 500; text-decoration: underline; text-underline-offset: .25em;
  text-decoration-color: color-mix(in oklab, var(--coral) 70%, transparent); text-decoration-thickness: 1.5px;
}
.wf-link:hover { color: var(--coral-fundo); }
.wf-escuro .wf-link:hover { color: var(--rose); }

/* revelação por rolagem (um gesto por seção) */
.js [data-rev] { opacity: 0; transform: translateY(14px); transition: opacity .9s var(--entra), transform .9s var(--entra); transition-delay: var(--d, 0s); }
.js [data-rev].vis { opacity: 1; transform: none; }

/* botão de WhatsApp que acompanha a rolagem no celular */
.wf-zap-fixo {
  position: fixed; left: 1rem; right: 1rem; bottom: max(1rem, env(safe-area-inset-bottom)); z-index: 40;
  display: none; justify-content: center;
  transform: translateY(160%); transition: transform .45s var(--entra);
}
.wf-zap-fixo .wf-btn { width: 100%; justify-content: center; box-shadow: 0 14px 30px -12px rgba(43, 33, 27, .75); }
.wf-zap-fixo.on { transform: none; }
@media (max-width: 800px) { .wf-zap-fixo { display: flex; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0s !important; scroll-behavior: auto !important; }
  .js [data-rev] { opacity: 1; transform: none; }
  .js .wf-grifo svg { clip-path: none; }
}
