/* Michelle Fortes, link na bio
   Conceito: a sobrancelha como obra. O desenho é feito fio a fio na cor do cabelo dela
   (ruivo) e a foto de perfil ocupa o lugar do olho. O resto da página fica quieto. */

:root {
  /* cor */
  --branco: #FFFFFF;      /* fundo */
  --ruivo: #C0461A;       /* ação e desenho (branco sobre ele: 5,1:1) */
  --ruivo-claro: #D8672B; /* só nos fios, para o desenho ter a variação de um cabelo */
  --ruivo-toque: #A33A12; /* botão pressionado */
  --henna: #93360F;       /* links e destaques em texto (7,6:1 no branco) */
  --pigmento: #2A1911;    /* texto: o marrom da sobrancelha */
  --apoio: #6B4F42;       /* texto secundário (7,4:1 no branco) */
  --sarda: #FCEEE6;       /* a parede da galeria */
  --fio-claro: #F2D8C8;   /* divisores */
  --iris: #4F6A5E;        /* a cor dos olhos dela: subtítulos (5,8:1 no branco) */
  --cilio-apagado: #A87E69; /* cílio de trabalho não selecionado (3,2:1 na sarda) */

  /* tipografia */
  /* Fraunces com o eixo SOFT no máximo: curvas macias, e o itálico com WONK
     tem os cachos do cabelo dela. Urbanist: sans leve para subtítulo e texto. */
  --f-titulo: "Fraunces", Georgia, serif;
  --f-texto: "Urbanist", "Segoe UI", system-ui, sans-serif;

  /* motion */
  --motion-instant: 90ms;
  --motion-fast: 140ms;
  --motion-standard: 220ms;
  --motion-emphasis: 320ms;
  --motion-scene: 420ms;
  --tempo-obra: 3600ms;   /* quanto cada trabalho fica aberto no loop da galeria */
  --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-sm: 12px;
  --press-scale: 0.98;

  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --gutter: 20px;
}

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

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

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

body {
  margin: 0;
  background: var(--branco);
  color: var(--pigmento);
  font-family: var(--f-texto);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img,
svg { display: block; max-width: 100%; }

a { color: var(--henna); }

h1,
h2,
h3,
p,
figure,
blockquote { margin: 0; }

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

.pular {
  position: absolute;
  left: 12px;
  top: calc(-60px + var(--safe-top));
  z-index: 20;
  padding: 12px 16px;
  background: var(--pigmento);
  color: var(--branco);
  border-radius: 10px;
  text-decoration: none;
  font-weight: 600;
}
.pular:focus { top: calc(12px + var(--safe-top)); }

.pagina {
  max-width: 560px;
  margin: 0 auto;
  overflow-x: clip;
}

.titulo {
  font-family: var(--f-titulo);
  font-weight: 600;
  font-size: 30px;
  line-height: 1.12;
  letter-spacing: -0.01em;
  font-variation-settings: "SOFT" 100, "WONK" 0;
}

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

.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 56px;
  padding: 14px 20px;
  border-radius: 16px;
  font-family: var(--f-texto);
  font-size: 17px;
  font-weight: 600;
  line-height: 1.2;
  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 i { font-size: 22px; }
.btn:active { transform: scale(var(--press-scale)); }

.btn--whats {
  background: var(--ruivo);
  color: var(--branco);
}
.btn--whats:active,
.btn--whats.is-abrindo { background: var(--ruivo-toque); }

.btn--linha {
  background: var(--branco);
  color: var(--henna);
  box-shadow: inset 0 0 0 1.5px var(--ruivo);
}
.btn--linha:active { background: var(--sarda); }

@media (hover: hover) and (pointer: fine) {
  .btn--whats:hover { background: var(--ruivo-toque); }
  .btn--linha:hover { background: var(--sarda); }
}

/* ---------- abertura: o olhar desenhado ---------- */

.abertura {
  padding: calc(14px + var(--safe-top)) var(--gutter) 44px;
}

.arroba {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  font-size: 15px;
  font-weight: 600;
  color: var(--apoio);
  text-decoration: none;
}
.arroba i { font-size: 18px; color: var(--ruivo); }
.arroba:active { color: var(--henna); }

/* O desenho sangra pela borda direita; a foto fica onde estaria o olho. */
.olhar {
  position: relative;
  margin: 6px calc(var(--gutter) * -1) 0 -6px;
  aspect-ratio: 400 / 212;
}

.sobrancelha {
  position: absolute;
  inset: 0 0 auto 0;
  width: 100%;
  height: auto;
  overflow: visible;
}

.fio {
  fill: none;
  stroke-linecap: round;
}
.fio.t0 { stroke: var(--ruivo); }
.fio.t1 { stroke: var(--ruivo-claro); }
.fio.t2 { stroke: var(--henna); }

/* Assinatura: os fios nascem um a um, do início à cauda, como no procedimento.
   Termina desenhado e parado. Com movimento reduzido, já aparece pronto. */
@media (prefers-reduced-motion: no-preference) {
  .sobrancelha .fio {
    stroke-dasharray: 1 2;
    stroke-dashoffset: 1;
    animation: fio-desenha 280ms var(--ease-enter) forwards;
    animation-delay: calc(80ms + var(--i) * 2ms);
  }
}
@keyframes fio-desenha { to { stroke-dashoffset: 0; } }

.retrato {
  position: absolute;
  left: 30%;
  top: 45%;
  width: 29%;
  max-width: 132px;
  aspect-ratio: 1;
  height: auto;
  border-radius: 50%;
  object-fit: cover;
  background: var(--sarda);
  /* anel branco + anel ruivo: a íris */
  box-shadow: 0 0 0 4px var(--branco), 0 0 0 6px var(--ruivo);
}

.nome {
  margin-top: 18px;
  font-family: var(--f-titulo);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(38px, 10.8vw, 44px);
  line-height: 1.04;
  letter-spacing: -0.01em;
  font-variation-settings: "SOFT" 100, "WONK" 1;
}

.oficio {
  margin-top: 10px;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--iris);
}

.lema {
  margin-top: 14px;
  max-width: 30ch;
  font-size: 18px;
  line-height: 1.5;
  color: var(--pigmento);
}

.acoes { margin-top: 26px; }

/* ---------- o que eu faço ---------- */

.estudos {
  padding: 8px var(--gutter) 48px;
}

.estudos__lista {
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.estudo {
  display: grid;
  grid-template-columns: 84px 1fr;
  gap: 16px;
  align-items: start;
  padding: 20px 0;
  border-top: 1px solid var(--fio-claro);
}
.estudo:last-child { border-bottom: 1px solid var(--fio-claro); }

.estudo__traco {
  width: 84px;
  height: 56px;
  margin-top: 2px;
  fill: none;
  stroke: var(--ruivo);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.estudo__traco .cheio { fill: var(--ruivo); stroke: none; }
.estudo__traco .sobra { stroke: var(--ruivo-claro); stroke-width: 1.6; opacity: 0.8; }
.estudo__traco .guia { stroke: var(--fio-claro); stroke-width: 1.6; }

.estudo h3 {
  font-family: var(--f-titulo);
  font-weight: 600;
  font-size: 21px;
  line-height: 1.2;
  color: var(--iris);
  font-variation-settings: "SOFT" 100, "WONK" 0;
}

.estudo p {
  margin-top: 6px;
  font-size: 16px;
  line-height: 1.55;
  color: var(--apoio);
}

/* ---------- trabalhos recentes: o olho que pisca ---------- */

.galeria {
  padding: 44px 0 40px;
  background: var(--sarda);
}
.galeria .titulo { padding: 0 var(--gutter); }

.galeria__dica {
  margin-top: 6px;
  padding: 0 var(--gutter);
  font-size: 16px;
  color: var(--apoio);
}

/* o olho: a janela tem a forma amendoada; as pálpebras ruivas fecham por dentro dela */
.olhar-galeria { padding: 0 var(--gutter); }

.olho {
  position: relative;
  margin-top: 64px;          /* espaço para os cílios */
  aspect-ratio: 100 / 64;
}

.olho__janela {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: var(--fio-claro);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 64' preserveAspectRatio='none'%3E%3Cpath d='M2 36C22 -8 70 -10 98 30C74 70 26 72 2 36Z'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 64' preserveAspectRatio='none'%3E%3Cpath d='M2 36C22 -8 70 -10 98 30C74 70 26 72 2 36Z'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
  cursor: pointer;
  touch-action: pan-y;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  -webkit-user-select: none;
}

.olho__foto {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% var(--foco, 40%);
  transition: opacity var(--motion-standard) var(--ease-standard);
  -webkit-user-drag: none;
}

.palpebra {
  position: absolute;
  left: -2%;
  right: -2%;
  height: 55%;
  transition: transform var(--motion-standard) var(--ease-enter);
}
.palpebra--cima {
  top: 0;
  z-index: 2;
  background: var(--ruivo);
  /* borda de baixo arredondada: é a linha da pálpebra quando o olho fecha */
  border-radius: 0 0 50% 50% / 0 0 38% 38%;
  transform: translateY(-104%);
}
.palpebra--baixo {
  bottom: 0;
  z-index: 1;
  background: var(--ruivo-toque);
  transform: translateY(104%);
}
.olho.is-fechado .palpebra {
  transform: none;
  transition-duration: var(--motion-fast);
  transition-timing-function: var(--ease-exit);
}
.olho.is-despertando .palpebra { transition-duration: var(--motion-scene); }

.olho__contorno {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
  fill: none;
}
.olho__linha-cima {
  stroke: var(--ruivo);
  stroke-width: 3;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
}
.olho__linha-baixo {
  stroke: var(--ruivo);
  stroke-width: 1.4;
  stroke-linecap: round;
  opacity: 0.5;
  vector-effect: non-scaling-stroke;
}

/* os cílios são a navegação: um por trabalho, nascendo da linha da pálpebra */
.cilios {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.cilio {
  position: absolute;
  left: var(--x);
  top: var(--y);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  width: 44px;
  height: 52px;
  margin: 0;
  padding: 0 0 2px;
  border: 0;
  background: none;
  color: var(--cilio-apagado);
  transform: translate(-50%, -100%) rotate(var(--r));
  transform-origin: 50% 100%;
  pointer-events: auto;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
.cilio svg {
  display: block;
  width: 16px;
  height: 34px;
  margin: 0 auto;
  overflow: visible;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  transform-origin: 50% 100%;
  transform: scaleY(0.72);
  transition:
    transform var(--motion-standard) var(--ease-enter),
    color var(--motion-fast) var(--ease-standard);
}
.cilio--esq svg { scale: -1 1; }
.cilio[aria-pressed="true"] { color: var(--ruivo); }
.cilio[aria-pressed="true"] svg { transform: none; stroke-width: 3; }
.cilio:focus-visible { outline-offset: -2px; }

/* Apresentação em loop: o cílio ativo é o relógio. Ele cresce enquanto o trabalho
   fica em tela; quando chega ao tamanho cheio, o olho pisca e abre no próximo
   (o fim desta animação é o gatilho, no script). Pausa = o cílio para de crescer. */
@keyframes cilio-tempo {
  from { transform: scaleY(0.72); }
  to { transform: none; }
}
.olho.is-auto .cilio[aria-pressed="true"] svg {
  animation: cilio-tempo var(--tempo-obra) linear forwards;
}
.olho.is-pausado .cilio svg,
.is-page-hidden .olho .cilio svg { animation-play-state: paused; }

.olho__legenda {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
}
.olho__lado {
  display: flex;
  flex: none;
  align-items: center;
  gap: 6px;
}
.olho__pausa {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--branco);
  color: var(--henna);
  box-shadow: inset 0 0 0 1.5px var(--ruivo);
  font-size: 15px;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  transition: transform var(--motion-fast) var(--ease-standard);
}
.olho__pausa[hidden] { display: none; }
.olho__pausa:active { transform: scale(0.94); }
.olho__titulo {
  font-size: 19px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--iris);
}
.olho__conta {
  flex: none;
  font-size: 15px;
  font-weight: 600;
  color: var(--apoio);
  font-variant-numeric: tabular-nums;
}

.olho__acoes {
  display: grid;
  gap: 4px;
  margin-top: 16px;
}
.olho__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  min-height: 48px;
  font-size: 16px;
  font-weight: 600;
  text-underline-offset: 3px;
}

/* com o olho ativo, a faixa de fotos sai; ela é a versão sem JavaScript */
.tem-olho .obras { display: none; }

@media (prefers-reduced-motion: reduce) {
  /* sem piscar: a troca vira um fade curto e as pálpebras ficam recolhidas */
  .olho.is-fechado .palpebra--cima { transform: translateY(-104%); }
  .olho.is-fechado .palpebra--baixo { transform: translateY(104%); }
  .olho.is-trocando .olho__foto { opacity: 0; }
  .cilio svg { transition: color var(--motion-fast) var(--ease-standard); }
  /* sem loop automático: o script nem liga, e o cílio ativo fica cheio */
  .olho.is-auto .cilio[aria-pressed="true"] svg { animation: none; }
  .olho__pausa:active { transform: none; }
}

/* faixa de fotos: versão sem JavaScript */
.obras {
  display: flex;
  gap: 14px;
  margin: 22px 0 0;
  padding: 0 var(--gutter) 6px;
  list-style: none;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--gutter);
  overscroll-behavior-x: contain;
  scrollbar-width: none;
}
.obras::-webkit-scrollbar { display: none; }
.obras:focus-visible { outline-offset: -3px; border-radius: 0; }

.obra {
  flex: 0 0 72%;
  max-width: 300px;
  scroll-snap-align: start;
}

.obra img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  background: var(--fio-claro);
  border: 8px solid var(--branco);
}

.etiqueta {
  display: grid;
  gap: 2px;
  margin-top: 12px;
  padding-left: 12px;
  border-left: 2px solid var(--ruivo);
}
.etiqueta__titulo {
  font-weight: 600;
  font-size: 16px;
  line-height: 1.35;
  color: var(--iris);
}
.etiqueta a {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 48px;
  font-size: 15px;
  font-weight: 600;
  text-underline-offset: 3px;
}

/* ---------- manifesto: as palavras dela, em ruivo e branco ---------- */

.manifesto {
  padding: 52px var(--gutter) 56px;
  background: var(--ruivo);
  color: var(--branco);
}

.manifesto blockquote p {
  font-family: var(--f-titulo);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(26px, 7.2vw, 32px);
  line-height: 1.22;
  font-variation-settings: "SOFT" 100, "WONK" 1;
}

.manifesto__assinatura {
  margin-top: 22px;
  font-size: 16px;
  font-weight: 600;
}

/* ---------- agendar ---------- */

.agenda {
  padding: 52px var(--gutter) 40px;
}

.agenda__texto {
  margin-top: 10px;
  max-width: 34ch;
  font-size: 17px;
  color: var(--apoio);
}

.agenda__acoes {
  display: grid;
  gap: 12px;
  margin-top: 24px;
}

/* ---------- barra fixa ---------- */

.barra {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10;
  padding: 10px 16px calc(10px + var(--safe-bottom));
  background: rgb(255 255 255 / 0.96);
  border-top: 1px solid var(--fio-claro);
  opacity: 0;
  transform: translateY(var(--shift-sm));
  visibility: hidden;
  transition:
    opacity var(--motion-standard) var(--ease-standard),
    transform var(--motion-standard) var(--ease-enter),
    visibility 0s linear var(--motion-standard);
}
.barra .btn { max-width: 528px; margin: 0 auto; }
.barra.is-visivel {
  opacity: 1;
  transform: none;
  visibility: visible;
  transition:
    opacity var(--motion-standard) var(--ease-standard),
    transform var(--motion-standard) var(--ease-enter),
    visibility 0s;
}

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

.rodape {
  padding: 28px var(--gutter) calc(28px + var(--safe-bottom));
  border-top: 1px solid var(--fio-claro);
  text-align: center;
  font-size: 14px;
  color: var(--apoio);
}

.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(--pigmento);
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}
.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(--ruivo);
  --seal-ring: 1.2 1.6;          /* tracinhos curtos, como os fios do desenho */
  --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; }
}
@media (prefers-reduced-motion: reduce) {
  .credito:active .selo-b2 { rotate: none; }
}

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

@media (min-width: 560px) {
  :root { --gutter: 28px; }
  .olhar { margin-right: 0; }
  .obra { flex-basis: 46%; }
}
