/* ---------------------------------------------------------------
   D'Loren Boutique | linktree
   Escrito mobile primeiro: o que está fora de @media é o celular,
   que é de onde vem 100% do tráfego (link da bio).

   Tipografia:
   . Instrument Serif  -> assinatura, o ar editorial
   . Jost Light        -> rótulos em caixa alta, ecoa o "BOUTIQUE" da logo
   . Inter Tight       -> texto de apoio, onde só importa ler
--------------------------------------------------------------- */

@font-face {
  font-family: 'Instrument Serif';
  src: url('fontes/instrument-serif-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2000-206F, U+20AC, U+2122;
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'Instrument Serif';
  src: url('fontes/instrument-serif-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB;
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'Jost';
  src: url('fontes/jost-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2000-206F, U+20AC, U+2122;
  font-weight: 300 500;
  font-display: swap;
}
@font-face {
  font-family: 'Jost';
  src: url('fontes/jost-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB;
  font-weight: 300 500;
  font-display: swap;
}
@font-face {
  font-family: 'Inter Tight';
  src: url('fontes/inter-tight-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2000-206F, U+20AC, U+2122;
  font-weight: 400 700;
  font-display: swap;
}
@font-face {
  font-family: 'Inter Tight';
  src: url('fontes/inter-tight-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB;
  font-weight: 400 700;
  font-display: swap;
}

:root {
  --fonte-assinatura: 'Instrument Serif', Georgia, 'Times New Roman', serif;
  --fonte-rotulo: 'Jost', ui-sans-serif, system-ui, 'Segoe UI', sans-serif;
  --fonte-corpo: 'Inter Tight', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;

  /* Base neutra vinda da própria loja (piso bege, parede bordô),
     com o magenta das araras como único acento forte. */
  --tinta: #ffffff;
  --tinta-2: rgb(255 255 255 / 72%);
  --tinta-3: rgb(255 255 255 / 52%);
  --vidro: rgb(255 255 255 / 9%);
  --vidro-ativo: rgb(255 255 255 / 16%);
  --borda: rgb(255 255 255 / 26%);
  --borda-forte: rgb(255 255 255 / 42%);
  --magenta: #c8146e;
  --magenta-ativo: #a80f5c;
  --escuro: #0d0a0c;

  --raio: 16px;
  --largura: 460px;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  min-height: 100dvh;
  background: var(--escuro);
  color: var(--tinta);
  font-family: var(--fonte-corpo);
  font-size: 16px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* --- Fundo ------------------------------------------------- */

.fundo {
  position: fixed;
  inset: 0;
  z-index: -1;
  background: var(--escuro) center / cover no-repeat;
}

.fundo__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* O de baixo fica sempre opaco. Só o de cima anima, assim nunca existe um
   instante com duas camadas translúcidas (que apagaria a imagem no meio). */
.fundo__video--base { opacity: 1; }

.fundo__video--topo {
  opacity: 0;
  transition: opacity 900ms linear;
}

/* O véu é o que faz o texto branco ler por cima de uma loja clara e
   colorida. Mais denso em cima e embaixo, onde mora o conteúdo. */
.fundo__veu {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(120% 70% at 50% 50%, transparent 0%, rgb(13 10 12 / 55%) 100%),
    linear-gradient(
      to bottom,
      rgb(13 10 12 / 82%) 0%,
      rgb(13 10 12 / 58%) 30%,
      rgb(13 10 12 / 62%) 62%,
      rgb(13 10 12 / 88%) 100%
    );
}

/* --- Folha ------------------------------------------------- */

.folha {
  position: relative;
  width: 100%;
  max-width: var(--largura);
  margin-inline: auto;
  padding: 0 20px;
  padding-top: max(30px, calc(env(safe-area-inset-top) + 18px));
  padding-bottom: max(26px, calc(env(safe-area-inset-bottom) + 20px));
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

/* --- Topo -------------------------------------------------- */

.topo {
  text-align: center;
  margin-bottom: 18px;
}

/* Monograma e assinatura são dois arquivos, cada um centralizado por si.
   Na arte original os dois vêm no mesmo PNG e o círculo mora à direita do
   centro, então o bloco inteiro nascia torto. */
.topo__marca {
  margin: 0;
  font-size: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.topo__monograma {
  width: 58px;
  height: auto;
  filter: drop-shadow(0 2px 14px rgb(0 0 0 / 45%));
}

.topo__assinatura {
  width: 176px;
  max-width: 62%;
  height: auto;
  filter: drop-shadow(0 2px 14px rgb(0 0 0 / 45%));
}

.topo__lugar {
  margin: 12px 0 0;
  font-family: var(--fonte-rotulo);
  font-weight: 300;
  font-size: 11px;
  letter-spacing: 0.34em;
  text-indent: 0.34em;
  text-transform: uppercase;
  color: var(--tinta-2);
}

/* --- Links ------------------------------------------------- */

.links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.link {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 60px;
  padding: 11px 14px;
  border: 1px solid var(--borda);
  border-radius: var(--raio);
  background: var(--vidro);
  backdrop-filter: blur(14px) saturate(1.1);
  -webkit-backdrop-filter: blur(14px) saturate(1.1);
  color: var(--tinta);
  text-decoration: none;
  box-shadow: 0 1px 2px rgb(0 0 0 / 18%), 0 10px 26px -18px rgb(0 0 0 / 60%);
  transition: background 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.link:active {
  transform: scale(0.985);
  background: var(--vidro-ativo);
}

.link:focus-visible {
  outline: 2px solid var(--tinta);
  outline-offset: 3px;
}

.link--destaque {
  background: var(--magenta);
  border-color: transparent;
  box-shadow: 0 1px 2px rgb(0 0 0 / 20%), 0 14px 30px -18px rgb(200 20 110 / 90%);
}

.link--destaque:active {
  background: var(--magenta-ativo);
}

.link__icone {
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--borda);
  background: rgb(255 255 255 / 8%);
}

.link--destaque .link__icone {
  border-color: rgb(255 255 255 / 38%);
  background: rgb(255 255 255 / 14%);
}

.link__icone svg,
.link__icone img {
  width: 21px;
  height: 21px;
  display: block;
}

/* Quando o ícone é foto que elas subiram (capa de drop, por exemplo), ela
   preenche o círculo inteiro em vez de virar um desenho pequeno no meio. */
.link--com-foto .link__icone {
  border-color: var(--borda-forte);
  background: rgb(255 255 255 / 14%);
  overflow: hidden;
  padding: 0;
}

.link__foto {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.link__texto {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.link__titulo {
  font-family: var(--fonte-rotulo);
  font-weight: 400;
  font-size: 15px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  line-height: 1.2;
}

.link__apoio {
  font-size: 12.5px;
  line-height: 1.3;
  color: var(--tinta-3);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.link--destaque .link__apoio { color: rgb(255 255 255 / 78%); }

.link__seta {
  flex: 0 0 auto;
  color: var(--tinta-3);
}

.link--destaque .link__seta { color: rgb(255 255 255 / 72%); }

.link__seta svg {
  width: 18px;
  height: 18px;
  display: block;
}

/* --- Cadastro ---------------------------------------------- */

.cadastro {
  margin-top: 26px;
  padding: 20px 18px;
  border: 1px solid var(--borda);
  border-radius: var(--raio);
  background: rgb(255 255 255 / 9%);
  backdrop-filter: blur(14px) saturate(1.1);
  -webkit-backdrop-filter: blur(14px) saturate(1.1);
  text-align: center;
}

.cadastro__titulo {
  margin: 0;
  font-family: var(--fonte-assinatura);
  font-size: 25px;
  font-weight: 400;
  line-height: 1.15;
}

.cadastro__apoio {
  margin: 8px 0 0;
  font-size: 13.5px;
  line-height: 1.4;
  color: var(--tinta-2);
}

.cadastro__forma {
  margin-top: 18px;
  text-align: left;
}

.cadastro__campo {
  display: block;
  margin-bottom: 12px;
}

.cadastro__nome {
  display: block;
  margin-bottom: 5px;
  font-family: var(--fonte-rotulo);
  font-size: 10.5px;
  font-weight: 300;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--tinta-2);
}

.cadastro__nome em {
  font-style: normal;
  color: var(--tinta-3);
}

.cadastro__entrada {
  width: 100%;
  min-height: 46px;
  padding: 10px 13px;
  border: 1px solid var(--borda);
  border-radius: 11px;
  background: rgb(0 0 0 / 28%);
  color: var(--tinta);
  font-family: var(--fonte-corpo);
  font-size: 16px; /* abaixo disso o iPhone dá zoom sozinho ao focar */
  line-height: 1.4;
}

.cadastro__entrada::placeholder { color: var(--tinta-3); }

.cadastro__entrada:focus {
  outline: none;
  border-color: var(--tinta-2);
  background: rgb(0 0 0 / 40%);
}

.cadastro__entrada:focus-visible {
  outline: 2px solid var(--tinta);
  outline-offset: 2px;
}

/* fora da tela, mas ainda preenchível por robô */
.cadastro__isca {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.cadastro__botao {
  width: 100%;
  min-height: 50px;
  margin-top: 4px;
  border: none;
  border-radius: var(--raio);
  background: var(--magenta);
  color: #fff;
  font-family: var(--fonte-rotulo);
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 160ms ease;
}

.cadastro__botao:hover { background: var(--magenta-ativo); }
.cadastro__botao:disabled { opacity: 0.6; cursor: default; }

.cadastro__recado {
  margin: 0 0 10px;
  font-size: 13px;
  line-height: 1.35;
  color: var(--tinta-2);
}

.cadastro__recado--erro { color: #ffb4a8; }

.cadastro__aviso {
  margin: 12px 0 0;
  font-size: 11.5px;
  line-height: 1.4;
  color: var(--tinta-3);
  text-align: center;
}

.cadastro__pronto {
  margin: 0;
  padding: 14px 0 6px;
  font-family: var(--fonte-assinatura);
  font-size: 20px;
  text-align: center;
  color: var(--tinta);
}

/* --- Rodapé ------------------------------------------------ */

.rodape {
  margin-top: auto;
  padding-top: 18px;
  text-align: center;
}

.rodape__selo {
  width: 38px;
  height: auto;
  opacity: 0.5;
}

.rodape__assinatura {
  margin: 8px 0 0;
  font-family: var(--fonte-assinatura);
  font-size: 20px;
  letter-spacing: 0.02em;
  color: var(--tinta-2);
}

.rodape__endereco {
  margin: 6px 0 0;
  font-size: 12px;
  line-height: 1.5;
  color: var(--tinta-3);
}

/* --- Telas maiores ----------------------------------------- */
/* O layout continua sendo uma coluna estreita de celular, centralizada.
   No desktop só sobra respiro e o vídeo aparece inteiro atrás. */

@media (min-width: 640px) {
  .folha { padding-top: 64px; }
  .topo__monograma { width: 76px; }
  .topo__assinatura { width: 214px; }
  .link { min-height: 68px; }
  .link__titulo { font-size: 15.5px; }
}

@media (hover: hover) {
  .link:hover {
    background: var(--vidro-ativo);
    border-color: var(--borda-forte);
    transform: translateY(-1px);
  }
  .link--destaque:hover {
    background: var(--magenta-ativo);
    border-color: transparent;
  }
}

/* --- Acessibilidade ---------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  .fundo__video { display: none; }
  .fundo { background-image: url('midia/poster.jpg'); }
  .link, .link:hover, .link:active { transition: none; transform: none; }
}
