:root {
  --rosa: #FBE9EB;
  --rosa-forte: #F5D5DB;
  --rosa-fora: #F3D9DD;
  --clara: #FFF9F8;
  --ouro: #C69B32;
  --ouro-claro: #EBCB6B;
  --ouro-texto: #7A5B12;
  --texto: #4A3038;
  --texto-suave: #6F5259;
  --ease: cubic-bezier(.22, 1, .36, 1);
}

* { box-sizing: border-box; margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  background: var(--rosa-fora);
  color: var(--texto);
  font: 400 15px/1.55 "DM Sans", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
img { display: block; width: 100%; height: auto; }
a { color: inherit; text-decoration: none; -webkit-tap-highlight-color: transparent; }
a:focus-visible { outline: 2px solid var(--ouro-texto); outline-offset: 3px; }

.bio {
  max-width: 460px;
  min-height: 100dvh;
  margin: 0 auto;
  overflow: hidden;
  background: var(--rosa);
}

/* Topo */
.topo { padding: 30px 24px 0; text-align: center; }
.topo__logo { width: 172px; margin: 0 auto; }
.selo, .secao__selo {
  color: var(--ouro-texto);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.selo { margin-top: 14px; }

/* Abertura */
.abertura { padding: 22px 24px 46px; text-align: center; }
h1, h2 { font-family: "Fraunces", Georgia, serif; font-weight: 400; line-height: 1.08; letter-spacing: -.01em; }
h1 em, h2 em { color: var(--ouro-texto); font-style: italic; }
.titulo { max-width: 330px; margin: 0 auto; font-size: 39px; }

/* A foto assenta numa base recortada, como as bases dos bolos */
.retrato {
  position: relative;
  width: min(100%, 286px);
  aspect-ratio: 1;
  margin: 22px auto 20px;
  padding: 16px;
  background: url("img/base-bolo.svg") center / contain no-repeat;
}
.retrato img { height: 100%; object-fit: cover; border: 4px solid var(--clara); border-radius: 50%; }
.abertura__txt { max-width: 340px; margin: 0 auto 22px; color: var(--texto-suave); font-size: 16px; }

/* Botões */
.botao {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  width: 100%;
  min-height: 54px;
  padding: 13px 20px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--ouro-claro), var(--ouro));
  color: #35240A;
  font-size: 15px;
  font-weight: 600;
  transition: transform .2s var(--ease), filter .2s;
}
.botao:active { transform: scale(.97); }
.botao svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; }
.botao--linha { margin-top: 18px; background: none; border: 1.5px solid var(--ouro); color: var(--ouro-texto); }

.atalhos { display: flex; flex-wrap: wrap; justify-content: center; gap: 2px 4px; margin-top: 14px; }
.atalhos a { padding: 10px 9px; color: var(--texto-suave); font-size: 13px; font-weight: 500; }

/* Secções, com a orla recortada das bases dos bolos */
.secao { position: relative; padding: 50px 24px; text-align: center; }
.secao--clara { background: var(--clara); }
.secao--clara::before, .secao--clara::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 11px;
  background: radial-gradient(circle at 11px 11px, var(--clara) 10.5px, transparent 11px) 0 0 / 22px 11px repeat-x;
}
.secao--clara::before { top: -11px; }
.secao--clara::after { bottom: -11px; transform: scaleY(-1); }
.secao h2 { margin-top: 8px; font-size: 34px; }
.secao__txt { max-width: 300px; margin: 10px auto 0; color: var(--texto-suave); }

/* Bolos */
.bolos { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 26px; }
.bolo { position: relative; overflow: hidden; border-radius: 18px; background: var(--rosa); }
.bolo img { aspect-ratio: 1; object-fit: cover; transition: transform .5s var(--ease); }
.bolo:active img { transform: scale(1.04); }
.bolo span {
  position: absolute;
  left: 8px;
  bottom: 8px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--clara);
  color: var(--ouro-texto);
  font-size: 12px;
  font-weight: 600;
}

/* Brigadeiros */
.doces { display: grid; grid-template-columns: 1.25fr 1fr; align-items: end; gap: 12px; margin-top: 24px; }
.doces img { aspect-ratio: 1; object-fit: cover; border-radius: 50%; border: 3px solid var(--ouro); }

/* Como encomendar */
.passos { display: grid; gap: 20px; margin-top: 26px; padding: 0; list-style: none; counter-reset: passo; text-align: left; }
.passos li { position: relative; min-height: 42px; padding-left: 56px; counter-increment: passo; }
.passos li::before {
  content: counter(passo);
  position: absolute;
  top: 0;
  left: 0;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1.5px solid var(--ouro);
  border-radius: 50%;
  color: var(--ouro-texto);
  font: italic 500 19px "Fraunces", Georgia, serif;
}
.passos b, .passos span { display: block; }
.passos b { font-size: 16px; font-weight: 600; }
.passos span { color: var(--texto-suave); }

/* Cartões */
.cartao { border-radius: 22px; background: var(--clara); }
.cartao--natal { padding: 30px 22px 24px; border: 1.5px solid var(--ouro); }
.cartao--natal p:not(.secao__selo) { margin: 8px 0 20px; color: var(--texto-suave); }
.duas { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 12px; }
.cartao--link { display: flex; flex-direction: column; min-height: 148px; padding: 18px 15px; background: var(--rosa-forte); text-align: left; }
.cartao--link small { color: var(--ouro-texto); font-size: 12px; font-weight: 600; }
.cartao--link b { margin: 6px 0 14px; font: 400 21px/1.12 "Fraunces", Georgia, serif; }
.cartao--link span { margin-top: auto; font-size: 13px; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

/* Rodapé */
.rodape { padding: 8px 24px 36px; text-align: center; }
.rodape img { width: 104px; margin: 0 auto 12px; }
.rodape__links { display: flex; justify-content: center; gap: 8px; }
.rodape__links a { padding: 10px; font-size: 14px; font-weight: 500; }
.assinatura { display: inline-block; margin-top: 14px; padding: 6px; color: var(--texto-suave); font-size: 11px; letter-spacing: .08em; }
.assinatura b { color: var(--ouro-texto); font-weight: 600; }

/* Botão fixo, só depois da abertura */
.fixo {
  position: fixed;
  z-index: 5;
  left: 50%;
  bottom: calc(14px + env(safe-area-inset-bottom));
  display: grid;
  place-items: center;
  width: min(calc(100% - 32px), 428px);
  min-height: 50px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--ouro-claro), var(--ouro));
  box-shadow: 0 8px 22px rgba(92, 62, 20, .22);
  color: #35240A;
  font-weight: 600;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 18px);
  transition: opacity .3s, transform .4s var(--ease);
}
.fixo.ver { opacity: 1; pointer-events: auto; transform: translate(-50%, 0); }

/* Entrada suave */
.js .revela { opacity: 0; transform: translateY(14px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .revela.ver { opacity: 1; transform: none; }

@media (hover: hover) {
  .botao:hover { filter: brightness(1.04); }
  .bolo:hover img { transform: scale(1.04); }
}
@media (max-width: 350px) {
  .titulo { font-size: 34px; }
  .cartao--link b { font-size: 19px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
  .js .revela { opacity: 1; transform: none; }
}
