/* Laura Divina — cada obra pinta a parede.
   As paredes são os fundos das próprias telas, clareados para que a mesma tinta (terra)
   leia em todas: a troca de cor nunca quebra o contraste. */

:root {
  --teal: #7E9A99;     /* fundo de "A parede está caindo?" · terra sobre ela 5.6:1 */
  --oliva: #A3AD55;    /* fundo de "Quase descanso!" · 7.0:1 */
  --pessego: #E7A472;  /* fundo de "Vigia." · 8.1:1 */
  --azul: #8E9CD6;     /* céu de "O pé de mamão" · 6.3:1 */
  --pedra: #B7B2AA;    /* parede neutra da artista e da loja · 7.9:1 */
  --mai: #FC610C;      /* o maiô laranja: só ação · terra sobre ele 5.5:1 */
  --mai-fundo: #E25506;
  --terra: #2B1712;    /* tinta do texto em todas as paredes */
  --papel: #FBEFE4;    /* texto sobre terra (15.6:1) */

  --f-titulo: "Syne", "Arial Black", sans-serif;
  --f-texto: "Schibsted Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;

  --motion-instant: 80ms;
  --motion-fast: 140ms;
  --motion-standard: 220ms;
  --motion-emphasis: 320ms;
  --motion-wall: 650ms;
  --ease-enter: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-exit: cubic-bezier(0.7, 0, 0.84, 0);
  --ease-standard: cubic-bezier(0.65, 0, 0.35, 1);
  --shift-md: 16px;
  --press-scale: 0.97;

  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --gutter: max(20px, calc((100% - 560px) / 2));
  --sombra-tela: 0 1px 2px rgb(43 23 18 / 0.22), 10px 16px 26px -12px rgb(43 23 18 / 0.5);

  --wall: var(--teal);
}

@media (prefers-reduced-motion: reduce) {
  :root {
    --shift-md: 0px;
    --press-scale: 1;
    --motion-wall: 160ms;
  }
}

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

html {
  background-color: var(--wall);
  transition: background-color var(--motion-wall) var(--ease-standard);
  -webkit-text-size-adjust: 100%;
}
html[data-wall="teal"] { --wall: var(--teal); }
html[data-wall="oliva"] { --wall: var(--oliva); }
html[data-wall="pessego"] { --wall: var(--pessego); }
html[data-wall="azul"] { --wall: var(--azul); }
html[data-wall="pedra"] { --wall: var(--pedra); }
html[data-wall="mai"] { --wall: var(--mai); }

body {
  margin: 0;
  background: transparent;
  color: var(--terra);
  font-family: var(--f-texto);
  font-size: 17px;
  line-height: 1.55;
  overflow-x: clip;
}

img { display: block; max-width: 100%; height: auto; }
p { margin: 0 0 1em; }
a { color: inherit; }

:focus-visible {
  outline: 3px solid var(--terra);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- paredes ---------- */

.parede {
  position: relative;
  padding: 56px var(--gutter);
}
/* sem JS cada cena tem a própria parede; com JS a parede é uma só e muda de cor */
.parede--teal { background-color: var(--teal); }
.parede--oliva { background-color: var(--oliva); }
.parede--pessego { background-color: var(--pessego); }
.parede--azul { background-color: var(--azul); }
.parede--pedra { background-color: var(--pedra); }
.parede--mai { background-color: var(--mai); }
.js.wall-ready .parede { background-color: transparent; }

.marco-scroll {
  position: absolute;
  top: 160px;
  left: 0;
  width: 1px;
  height: 1px;
  pointer-events: none;
}

/* ---------- hero ---------- */

/* a foto dela no muro abre a página; a assinatura atravessa a borda da foto, em papel */
.hero {
  position: relative;
  max-width: 560px;
  margin: 0 auto;
  overflow: hidden;
  background-color: var(--terra);
  color: var(--papel);
}

.hero-media {
  position: relative;
  aspect-ratio: 4 / 5;
  max-height: 62vh;
  max-height: 62svh;
  width: 100%;
}
.hero-poster,
.hero-anim {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 30%;
}
.hero-anim { opacity: 0; transition: opacity var(--motion-emphasis) var(--ease-standard); }
.hero-anim.is-playing { opacity: 1; }
.hero-media.is-offscreen .hero-anim { display: none; }

/* sombra só onde o texto assenta: a parte de cima da foto fica limpa */
.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom,
    rgb(43 23 18 / 0) 68%,
    rgb(43 23 18 / 0.7) 88%,
    rgb(43 23 18 / 1) 100%);
}

.hero-pausa {
  position: absolute;
  top: calc(14px + var(--safe-top));
  right: 14px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background-color: rgb(43 23 18 / 0.62);
  color: var(--papel);
  font-size: 15px;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  transition: transform var(--motion-fast) var(--ease-standard);
}
.hero-pausa[hidden] { display: none; }
.hero-pausa:active { transform: scale(var(--press-scale)); }
.hero-pausa:focus-visible { outline-color: var(--papel); }

.hero-txt {
  position: relative;
  z-index: 1;
  margin-top: -64px;
  padding: 0 20px 26px;
}
.hero :focus-visible { outline-color: var(--papel); }

.assinatura {
  margin: 0;
  font-weight: inherit;
}
.assinatura-marca {
  display: block;
  width: min(66%, 320px);
  aspect-ratio: 640 / 381;
  margin-left: -6px;
  background-color: var(--papel);
  -webkit-mask: url("midia/assinatura.webp") center / contain no-repeat;
  mask: url("midia/assinatura.webp") center / contain no-repeat;
}
.assinatura-nome {
  display: block;
  margin-top: 14px;
  font-family: var(--f-texto);
  font-size: 19px;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.hero-apoio {
  max-width: 30ch;
  margin: 6px 0 18px;
  font-size: 18px;
  line-height: 1.45;
}

.ancora {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 5px;
  touch-action: manipulation;
}
.ancora i { font-size: 14px; }

.hero-credito {
  margin: 10px 0 0;
  font-size: 13px;
  opacity: 0.85;
}

/* ---------- obras ---------- */

.obra { padding-top: 24px; padding-bottom: 72px; }
.obra--abre { padding-top: 56px; }

.tela {
  width: 88%;
  margin: 0 0 30px;
}
.tela--larga { width: 100%; }
.tela img {
  width: 100%;
  box-shadow: var(--sombra-tela);
}
.credito-foto {
  margin-top: 12px;
  font-size: 13px;
}

.etiqueta { max-width: 34em; }

.obra-titulo {
  margin: 0 0 10px;
  font-family: var(--f-titulo);
  font-size: clamp(28px, 8.4vw, 38px);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.01em;
  overflow-wrap: break-word;
  hyphens: manual;
}
#t-mamao { font-size: clamp(24px, 6.8vw, 32px); }

.obra-ficha {
  margin-bottom: 18px;
  font-size: 16px;
  line-height: 1.45;
}

/* escala: a tela ao lado de uma pessoa de 1,60 m, no mesmo fator */
.escala {
  --k: 0.4px;
  display: flex;
  align-items: flex-end;
  gap: 10px;
  height: calc(160 * var(--k) + 10px);
  padding-bottom: 8px;
  margin-bottom: 22px;
  border-bottom: 1.5px solid var(--terra);
  width: fit-content;
  padding-right: 12px;
}
.escala-pessoa {
  width: calc(160 * var(--k) * 0.3);
  height: calc(160 * var(--k));
  background-color: var(--terra);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 100'%3E%3Ccircle cx='15' cy='8.5' r='8'/%3E%3Cpath d='M6 20h18a5 5 0 0 1 5 5v31h-5v44h-6.5V62h-5v38H6V56H1V25a5 5 0 0 1 5-5z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 100'%3E%3Ccircle cx='15' cy='8.5' r='8'/%3E%3Cpath d='M6 20h18a5 5 0 0 1 5 5v31h-5v44h-6.5V62h-5v38H6V56H1V25a5 5 0 0 1 5-5z'/%3E%3C/svg%3E") center / contain no-repeat;
}
.escala-tela {
  width: calc(var(--w) * var(--k));
  height: calc(var(--h) * var(--k));
  border: 1.5px solid var(--terra);
  background-color: rgb(43 23 18 / 0.14);
}

.obra-fala {
  margin: 0 0 24px;
  padding-left: 16px;
  border-left: 2px solid var(--terra);
  font-size: 17px;
  line-height: 1.55;
}
.obra-fala p:last-child { margin-bottom: 0; }

/* ---------- botões ---------- */

.btn-obra,
.btn-linha,
.btn-principal,
.cta-flutuante,
.link-fim {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  font-family: var(--f-texto);
  font-weight: 600;
  text-decoration: none;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  transition:
    transform var(--motion-fast) var(--ease-standard),
    background-color var(--motion-fast) var(--ease-standard),
    color var(--motion-fast) var(--ease-standard);
}
.btn-obra i,
.btn-linha i,
.btn-principal i,
.cta-flutuante i,
.link-fim i { font-size: 1.2em; }

/* por obra: contorno terra, preenche ao tocar */
.btn-obra,
.btn-linha {
  padding: 0 20px;
  border: 2px solid var(--terra);
  border-radius: 999px;
  font-size: 16px;
}
.btn-obra:active,
.btn-linha:active {
  transform: scale(var(--press-scale));
  background-color: var(--terra);
  color: var(--papel);
}

/* ação principal: o laranja do maiô */
.btn-principal {
  width: 100%;
  padding: 14px 22px;
  border-radius: 999px;
  background-color: var(--terra);
  color: var(--papel);
  font-size: 18px;
}
.btn-principal:active {
  transform: scale(var(--press-scale));
  background-color: #000;
}
.btn-principal:focus-visible { outline-color: var(--terra); }

@media (hover: hover) and (pointer: fine) {
  .btn-obra:hover,
  .btn-linha:hover { background-color: rgb(43 23 18 / 0.1); }
  .btn-principal:hover { background-color: #000; }
}

/* ---------- artista ---------- */

.artista { padding-top: 32px; }
.artista-foto {
  width: 64%;
  margin: 0 0 30px auto;
}
.artista-foto img { box-shadow: var(--sombra-tela); }

.secao-titulo {
  margin: 0 0 14px;
  font-family: var(--f-titulo);
  font-size: clamp(30px, 8.6vw, 38px);
  font-weight: 800;
  line-height: 1.05;
}

.trajeto {
  list-style: none;
  margin: 22px 0 24px;
  padding: 0;
}
.trajeto li {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 12px;
  padding: 12px 0;
  border-top: 1.5px solid rgb(43 23 18 / 0.35);
  font-size: 16px;
  line-height: 1.45;
}
.trajeto li:last-child { border-bottom: 1.5px solid rgb(43 23 18 / 0.35); }
.trajeto strong { font-weight: 600; }

.mais-obras a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  font-weight: 600;
  text-underline-offset: 5px;
  text-decoration-thickness: 1.5px;
}

/* ---------- loja ---------- */

.loja { padding-top: 24px; padding-bottom: 72px; }

.loja-dados {
  margin: 0 0 18px;
  font-style: normal;
  font-size: 17px;
  line-height: 1.5;
}
.loja-nome {
  display: block;
  font-family: var(--f-titulo);
  font-size: 22px;
  font-weight: 700;
}

.horario {
  margin: 0 0 26px;
  font-size: 16px;
}
.horario div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 0;
  border-top: 1.5px solid rgb(43 23 18 / 0.35);
}
.horario div:last-child { border-bottom: 1.5px solid rgb(43 23 18 / 0.35); }
.horario dt { font-weight: 400; }
.horario dd { margin: 0; font-weight: 600; }

.loja-acoes {
  display: grid;
  gap: 12px;
}

/* ---------- cta final ---------- */

.fim {
  padding-top: 72px;
  padding-bottom: 72px;
}
.fim-titulo {
  margin: 0 0 16px;
  font-family: var(--f-titulo);
  font-size: clamp(34px, 10vw, 44px);
  font-weight: 800;
  line-height: 1;
}
.fim p {
  max-width: 30ch;
  margin-bottom: 28px;
  font-size: 18px;
}
.link-fim {
  margin-top: 14px;
  padding: 0 6px;
  font-size: 16px;
  text-decoration: underline;
  text-underline-offset: 5px;
}

/* ---------- cta flutuante ---------- */

.cta-flutuante {
  position: fixed;
  left: 50%;
  bottom: calc(16px + var(--safe-bottom));
  z-index: 20;
  padding: 0 24px 0 20px;
  min-height: 52px;
  border: 2px solid var(--terra);
  border-radius: 999px;
  background-color: var(--mai);
  color: var(--terra);
  font-size: 17px;
  white-space: nowrap;
  box-shadow: 0 8px 22px -10px rgb(43 23 18 / 0.6);
  translate: -50% var(--shift-md);
  opacity: 0;
  visibility: hidden;
  transition:
    opacity var(--motion-standard) var(--ease-exit),
    translate var(--motion-standard) var(--ease-exit),
    transform var(--motion-fast) var(--ease-standard),
    background-color var(--motion-fast) var(--ease-standard),
    visibility 0s linear var(--motion-standard);
}
.cta-flutuante.is-visivel {
  translate: -50% 0;
  opacity: 1;
  visibility: visible;
  transition:
    opacity var(--motion-emphasis) var(--ease-enter),
    translate var(--motion-emphasis) var(--ease-enter),
    transform var(--motion-fast) var(--ease-standard),
    background-color var(--motion-fast) var(--ease-standard),
    visibility 0s;
}
.cta-flutuante:active {
  transform: scale(var(--press-scale));
  background-color: var(--mai-fundo);
}
/* espaço para a pílula não cobrir o fim da cena anterior ao CTA final */
.js .loja { padding-bottom: 96px; }

/* ---------- rodapé ---------- */

.rodape {
  padding: 36px var(--gutter) calc(32px + var(--safe-bottom));
  background-color: var(--terra);
  color: var(--papel);
  text-align: center;
  font-size: 14px;
}
.rodape p { margin: 0; }

.credito {
  display: flex;
  width: fit-content;
  align-items: center;
  gap: 14px;
  min-height: 44px;
  margin: 18px auto 0;
  text-align: left;
  font-size: 13px;
  line-height: 1.35;
  color: var(--papel);
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}
.credito:focus-visible { outline-color: var(--papel); }
.credito-txt strong {
  display: block;
  font-size: 15px;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.selo-b2 {
  --seal-ink: currentColor;
  --seal-accent: var(--mai);
  --seal-ring: 0.4 1.4;
  --seal-font: var(--f-texto);
  flex: none;
  width: 72px;
  height: 72px;
  overflow: visible;
  transition: rotate 320ms cubic-bezier(0.22, 1, 0.36, 1);
}
.selo-borda,
.selo-anel { fill: none; stroke: var(--seal-ink); }
.selo-borda { stroke-width: 1; }
.selo-anel { stroke-width: 0.7; stroke-dasharray: var(--seal-ring); opacity: 0.75; }
.selo-texto {
  fill: var(--seal-ink);
  font-family: var(--seal-font);
  font-size: 6.3px;
  font-weight: 600;
  letter-spacing: 0.8px;
}
.selo-b { fill: var(--seal-ink); }
.selo-acento { fill: var(--seal-accent); }

.credito:active .selo-b2 { rotate: -10deg; }

.selo-giro {
  transform-box: view-box;
  transform-origin: 50px 50px;
}
@keyframes selo-gira { to { transform: rotate(360deg); } }
@keyframes selo-flutua {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -3px; }
}
@media (prefers-reduced-motion: no-preference) {
  .selo-giro { animation: selo-gira 24s linear infinite; }
  .selo-b2 { animation: selo-flutua 4.8s ease-in-out infinite; }
  .selo-b2.is-still,
  .selo-b2.is-still .selo-giro,
  .is-page-hidden .selo-b2,
  .is-page-hidden .selo-giro { animation-play-state: paused; }
}

/* ---------- reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  .cta-flutuante,
  .cta-flutuante.is-visivel { translate: -50% 0; }
  .credito:active .selo-b2 { rotate: none; }
}

/* ---------- telas maiores ---------- */

@media (min-width: 560px) {
  .tela { width: 480px; }
  .tela--larga { width: 100%; }
  .artista-foto { width: 300px; }
  .btn-principal { width: auto; }
}
