/* biotiê · link da bio · "floresta em gotas" */

:root {
  --ambar: #9A5318;
  --verde: #3F5E3A;
  --lavanda: #6C5A8A;
  --tangerina: #E07A2C;
  --linho: #EFE7DA;
  --off: #F6F1E8;
  --terra: #2A2118;

  --bg: var(--ambar);
  --tx: var(--off);

  --display: "Space Grotesk", system-ui, sans-serif;
  --mono: "DM Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;
  --texto: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;

  --r: 12px;
  --topo: 56px;
  --dock: 64px;
  --g: 20px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--tx);
  font-family: var(--texto); font-size: 17px; line-height: 1.55; font-weight: 400;
  -webkit-font-smoothing: antialiased; overflow-x: clip;
  padding-bottom: calc(var(--dock) + 28px + env(safe-area-inset-bottom));
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, p, figure { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; }
::selection { background: var(--tx); color: var(--bg); }
:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; border-radius: 4px; }
.ausente { display: none !important; }
.pular { position: fixed; left: 12px; top: -60px; z-index: 300; padding: 10px 14px; border-radius: var(--r); background: var(--off); color: var(--terra); font-family: var(--mono); font-size: 13px; text-decoration: none; }
.pular:focus { top: 12px; }

.coluna { width: 100%; max-width: 520px; margin: 0 auto; }

/* ---------- header ---------- */
.topo { position: fixed; z-index: 100; top: 0; left: 0; right: 0; height: var(--topo); pointer-events: none; background: var(--bg); }
.topo__in { height: 100%; display: flex; align-items: center; justify-content: space-between; padding: 0 var(--g); }
.topo a { pointer-events: auto; }
.topo__logo { position: relative; display: block; width: 92px; height: 30px; }
.topo__logo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; object-position: left center; transition: opacity .5s; }
.logo-preto { opacity: 0; }
html.escuro-tx .logo-preto { opacity: 1; }
html.escuro-tx .logo-branco { opacity: 0; }
.topo__loja { font-family: var(--mono); font-size: 13px; text-decoration: none; padding: 8px 12px; border: 1px solid currentColor; border-radius: var(--r); color: var(--tx); }

/* ---------- tipografia ---------- */
.rotulo { font-family: var(--mono); font-size: 12.5px; line-height: 1.5; letter-spacing: .01em; opacity: .92; min-height: 1.5em; }
.rotulo.digitando::after { content: ""; display: inline-block; width: .6em; height: 1.05em; margin-left: 2px; vertical-align: -.15em; background: currentColor; animation: pisca .5s steps(1) infinite; }
@keyframes pisca { 50% { opacity: 0; } }
.rotulo--peq { margin-top: 28px; font-size: 12px; opacity: .8; }
.rotulo--linha { padding: 12px 0; border-top: 1px dashed currentColor; border-bottom: 1px dashed currentColor; }
.titulo {
  font-family: var(--display); font-weight: 700; text-transform: lowercase;
  font-size: clamp(3rem, 14vw, 4.9rem); line-height: .92; letter-spacing: -.045em;
  margin-top: 14px;
}
.titulo--m { font-size: clamp(2.6rem, 12vw, 4.2rem); }
.linha { display: block; overflow: hidden; padding-bottom: .06em; }
.linha > span { display: inline-block; will-change: transform; }
.sub { margin-top: 14px; font-size: 16.5px; max-width: 34ch; opacity: .9; }

/* ---------- botões ---------- */
.acoes { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 22px; }
.btn {
  display: flex; align-items: center; justify-content: center; gap: .35em; text-align: center;
  min-height: 54px; padding: 10px 14px; border-radius: var(--r);
  border: 1.5px solid currentColor; text-decoration: none;
  font-family: var(--display); font-weight: 600; font-size: 16.5px; letter-spacing: -.01em; line-height: 1.15;
  transition: background .3s, color .3s, transform .2s;
}
.btn:active { transform: scale(.98); }
.btn--cheio { background: var(--tx); color: var(--bg); border-color: var(--tx); }
.btn b { font-weight: 700; }
@media (hover: hover) { .btn:hover { background: var(--tx); color: var(--bg); } .btn--cheio:hover { background: transparent; color: var(--tx); } }
.btn--terra { grid-column: 1 / -1; }
#nevoa .acoes { grid-template-columns: 1.65fr 1fr; }

/* ---------- capítulos ---------- */
.cap { position: relative; }
.palco { position: relative; height: 100vh; height: 100svh; display: flex; flex-direction: column; padding-top: var(--topo); overflow: hidden; }
.tela { position: relative; width: 100%; aspect-ratio: 1; max-height: 52svh; flex: none; overflow: hidden; background: rgba(0, 0, 0, .12); }
.tela .poster, .tela canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.tela .poster { object-fit: cover; }
.tela canvas { display: block; }
.palco__texto { position: relative; padding: 18px var(--g) 0; }
.palco__texto .sub, .palco__texto .acoes { will-change: transform, opacity; }
.depois { position: relative; padding: 8px var(--g) 72px; }
#gota .tela { max-height: 40svh; background: transparent; }
#gota .titulo { font-size: clamp(2.7rem, 12.5vw, 4.6rem); }

/* ficha técnica (lista em rótulo) */
.ficha { margin-top: 6px; border-top: 1px solid currentColor; }
.ficha li { font-family: var(--mono); font-size: 13.5px; padding: 11px 0; border-bottom: 1px solid color-mix(in srgb, currentColor 40%, transparent); }
.ficha li::before { content: "— "; opacity: .7; }

/* fragrâncias */
.vitrine { position: relative; width: 100%; aspect-ratio: 1; margin-top: 24px; overflow: hidden; background: rgba(0, 0, 0, .12); }
.vitrine img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.fragrancias { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 10px; }
.frag { display: flex; flex-direction: column; gap: 8px; padding: 6px 6px 10px; border: 1.5px solid transparent; border-radius: var(--r); background: rgba(255, 255, 255, .1); cursor: pointer; text-align: left; transition: border-color .3s, background .3s; }
.frag img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 8px; }
.frag span { font-family: var(--mono); font-size: 11px; line-height: 1.35; }
.frag.ativo { border-color: currentColor; background: rgba(255, 255, 255, .16); }

/* ingredientes flutuantes */
.flutua { position: absolute; inset: 0; pointer-events: none; }
.recorte { position: absolute; width: 96px; aspect-ratio: 1; border-radius: var(--r); background-size: cover; background-position: center; box-shadow: 0 18px 40px -16px rgba(0, 0, 0, .45); will-change: transform; }
.recorte.r1 { right: 8px; top: -40px; width: 104px; rotate: 6deg; }
.recorte.r2 { right: 26%; top: 34%; width: 70px; rotate: -8deg; opacity: .9; }
.recorte.r3 { right: 22%; bottom: 6px; width: 54px; rotate: 4deg; }
.depois > :not(.flutua) { position: relative; z-index: 1; }

/* capítulo curto: cabelo */
.cap--curto { padding: calc(var(--topo) + 10px) 0 72px; }
.cabelo__foto { width: 100%; aspect-ratio: 1; overflow: hidden; margin-bottom: 18px; }
.cabelo__foto img { width: 100%; height: 100%; object-fit: cover; }
.cap--curto > :not(.cabelo__foto) { margin-left: var(--g); margin-right: var(--g); }

/* linho */
.cap--linho { padding: 56px var(--g) 24px; }
.cards { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 24px; }
.card { display: block; text-decoration: none; border-radius: var(--r); overflow: hidden; background: var(--off); box-shadow: 0 1px 0 rgba(42, 33, 24, .12); }
.card img { width: 100%; aspect-ratio: 1; object-fit: cover; transition: transform .6s; }
.card__nome { display: block; padding: 12px 12px 14px; font-family: var(--display); font-weight: 600; font-size: 16px; line-height: 1.2; }
@media (hover: hover) { .card:hover img { transform: scale(1.04); } }

.lista { margin-top: 14px; border-top: 1.5px solid var(--terra); }
.lista a {
  position: relative; display: grid; grid-template-columns: 1fr auto; align-items: baseline; gap: 2px 12px;
  padding: 18px 4px 18px 0; text-decoration: none; border-bottom: 1.5px solid var(--terra); overflow: hidden; isolation: isolate;
  transition: color .35s, padding .45s;
}
.lista a::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--faixa); transform: scaleX(0); transform-origin: left; transition: transform .5s cubic-bezier(.65, 0, .35, 1); }
.lista span { font-family: var(--display); font-weight: 600; font-size: clamp(1.7rem, 8vw, 2.3rem); line-height: 1; letter-spacing: -.035em; }
.lista small { grid-column: 1; font-family: var(--mono); font-size: 12.5px; opacity: .75; }
.lista i { grid-row: 1 / span 2; grid-column: 2; align-self: center; font-style: normal; font-family: var(--mono); font-size: 22px; opacity: 0; transform: translate(-8px, 8px); transition: opacity .35s, transform .45s; }
.lista a:hover, .lista a:focus-visible, .lista a.tocado { color: var(--off); padding-left: 12px; }
.lista a:hover::before, .lista a:focus-visible::before, .lista a.tocado::before { transform: scaleX(1); }
.lista a:hover i, .lista a:focus-visible i, .lista a.tocado i { opacity: 1; transform: none; }
.cap--atend { padding-bottom: 56px; }

/* rodapé */
.rodape { padding: 40px var(--g) 24px; border-top: 1.5px solid var(--terra); color: var(--terra); }
.rodape__logo { width: 120px; }
.selos { margin-top: 18px; font-family: var(--mono); font-size: 12px; line-height: 1.7; }
.rodape p + p { margin-top: 10px; }
.rodape__ig { font-family: var(--mono); font-size: 13px; }
.rodape__cupom { font-family: var(--mono); font-size: 12.5px; }

/* ---------- dock fixo ---------- */
.dock { position: fixed; z-index: 120; left: 0; right: 0; bottom: calc(12px + env(safe-area-inset-bottom)); padding: 0 10px; transform: translateY(160%); transition: transform .55s cubic-bezier(.2, .9, .3, 1); }
.dock.on { transform: none; }
html:not(.js) .dock { transform: none; }
.dock__in { max-width: 500px; margin: 0 auto; display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; padding: 4px; border-radius: 14px; background: rgba(246, 241, 232, .92); -webkit-backdrop-filter: blur(14px) saturate(1.3); backdrop-filter: blur(14px) saturate(1.3); box-shadow: 0 14px 34px -14px rgba(42, 33, 24, .55), 0 0 0 1px rgba(42, 33, 24, .08); }
.dock a, .dock button { display: grid; place-items: center; min-height: 52px; padding: 4px 2px; border: 0; border-radius: 10px; background: transparent; color: var(--terra); text-decoration: none; text-align: center; font-family: var(--mono); font-size: 12px; line-height: 1.2; cursor: pointer; transition: background .25s; }
.dock a:active, .dock button:active { background: rgba(42, 33, 24, .1); }
.dock__cupom { background: var(--terra) !important; color: var(--off) !important; }
.dock__cupom.pulso { animation: pulso 1.1s ease-out 1; }
@keyframes pulso { 0% { box-shadow: 0 0 0 0 rgba(224, 122, 44, .9); } 100% { box-shadow: 0 0 0 12px rgba(224, 122, 44, 0); } }
.aviso { position: fixed; z-index: 130; left: 50%; bottom: calc(var(--dock) + 26px + env(safe-area-inset-bottom)); transform: translate(-50%, 20px); max-width: calc(100% - 24px); padding: 12px 16px; border-radius: var(--r); background: var(--terra); color: var(--off); font-family: var(--mono); font-size: 13px; opacity: 0; pointer-events: none; transition: opacity .3s, transform .4s; white-space: nowrap; }
.aviso.on { opacity: 1; transform: translate(-50%, 0); }

/* ---------- desktop: tela dividida — a sequência à esquerda, o texto à direita ---------- */
@media (min-width: 900px) {
  :root { --g: clamp(32px, 4vw, 64px); --topo: 68px; }
  body { font-size: 18px; }
  .coluna { max-width: none; }
  .topo__in { padding: 0 var(--g); }
  .topo__logo { width: 112px; height: 36px; }
  .topo__loja { font-size: 14px; padding: 10px 16px; }

  .palco { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; column-gap: clamp(32px, 4vw, 72px); padding: var(--topo) var(--g) 24px; }
  .tela, #gota .tela { max-height: none; width: min(100%, calc(100svh - var(--topo) - 48px)); justify-self: end; }
  .palco__texto { padding: 0; max-width: 620px; }
  .titulo { font-size: clamp(3.6rem, 6.2vw, 7rem); }
  #gota .titulo { font-size: clamp(3.4rem, 5.8vw, 6.6rem); }
  .titulo--m { font-size: clamp(3rem, 5vw, 5.6rem); }
  .rotulo { font-size: 14px; }
  .sub { font-size: 19px; max-width: 40ch; }
  .acoes { max-width: 560px; }
  .btn { min-height: 58px; font-size: 18px; }

  .depois { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: clamp(32px, 4vw, 72px); padding: 48px var(--g) 140px; }
  .depois > * { grid-column: 2; max-width: 620px; }
  .palco__texto .rotulo--linha { margin-top: 22px; }
  #nevoa .vitrine { grid-column: 1; grid-row: 1 / span 6; width: min(100%, 560px); justify-self: end; align-self: start; margin-top: 0; }
  .ficha li { font-size: 15px; }
  .frag span { font-size: 12.5px; }

  .cap--curto { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: clamp(32px, 4vw, 72px); align-items: center; padding: calc(var(--topo) + 48px) var(--g) 140px; }
  .cabelo__foto { grid-column: 1; grid-row: 1 / span 3; width: min(100%, 620px); justify-self: end; margin: 0; }
  .cap--curto > :not(.cabelo__foto) { grid-column: 2; margin: 0; max-width: 620px; }
  .cap--curto .titulo { margin-top: 14px; }

  .cap--linho { max-width: 1240px; margin: 0 auto; padding: 120px var(--g) 40px; }
  #presentes { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: clamp(32px, 5vw, 96px); align-items: end; }
  #presentes .rotulo, #presentes .titulo { grid-column: 1; }
  #presentes .cards { grid-column: 2; grid-row: 1 / span 2; margin-top: 0; gap: 16px; }
  .card__nome { font-size: 19px; padding: 16px; }
  .lista span { font-size: clamp(2.4rem, 4.4vw, 4rem); }
  .lista a { padding: 26px 4px 26px 0; }
  .lista small { font-size: 14px; }
  .cap--atend { display: grid; grid-template-columns: 1fr auto; column-gap: 48px; align-items: end; padding-bottom: 120px; }
  .cap--atend .rotulo, .cap--atend .titulo, .cap--atend .sub { grid-column: 1; }
  .cap--atend .acoes { grid-column: 2; grid-row: 1 / span 3; margin: 0; display: block; }
  .cap--atend .btn { min-width: 300px; }

  .rodape { max-width: 1240px; padding: 48px var(--g) 32px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; column-gap: 40px; }
  .rodape p + p { margin-top: 0; }
  .selos { margin-top: 0; }
  .rodape__ig { grid-column: 3; }
  .rodape__cupom { grid-column: 1 / -1; margin-top: 16px !important; }

  .dock__in { max-width: 560px; }
  .dock a, .dock button { font-size: 13px; }
}

/* ---------- modo leve (movimento reduzido ou conexão lenta) ---------- */
html.leve .palco { height: auto; padding-bottom: 8px; }
html.leve .tela canvas { display: none; }
html.leve .rotulo.digitando::after { display: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .2s !important; animation: none !important; }
}
