/* Histórias por Willyma - estilo do site (leve, sem recursos de terceiros) */
@font-face {
  font-family: "Fredoka";
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url("fontes/fredoka-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Nunito";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("fontes/nunito-latin.woff2") format("woff2");
}

:root {
  color-scheme: light;
  --roxo: #5b2a86;
  --roxo-escuro: #3f1c60;
  --amarelo: #ffc531;
  --laranja: #ff7a2f;
  --rosa: #ff4f9a;
  --azul: #2f8cff;
  --verde: #2fa84f;
  --ceu: #e9f6ff;
  --creme: #fff9ec;
  --texto: #2b2340;
  --suave: #5e5672;
  --linha: #e7e1f2;
  --branco: #ffffff;
  --raio: 22px;
  --sombra: 0 10px 30px rgba(63, 28, 96, 0.12);
  --arco: linear-gradient(90deg, #ff4f4f, #ff9f2f, #ffd23f, #3fcf6a, #2f8cff, #8b5cf6, #ff4f9a);
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: "Nunito", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  color: var(--texto);
  background: linear-gradient(180deg, var(--ceu) 0%, #f4fbff 320px, var(--creme) 100%) no-repeat;
  background-color: var(--creme);
  min-height: 100vh;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--azul); text-underline-offset: 3px; }
a:hover { color: var(--roxo); }
a:focus-visible, button:focus-visible, textarea:focus-visible, input:focus-visible {
  outline: 3px solid var(--amarelo);
  outline-offset: 2px;
}

h1, h2, h3 {
  font-family: "Fredoka", "Nunito", system-ui, sans-serif;
  color: var(--roxo);
  line-height: 1.2;
  margin: 0 0 0.5em;
}
h1 { font-size: clamp(1.9rem, 5vw, 2.9rem); font-weight: 700; }
h2 { font-size: clamp(1.45rem, 3.6vw, 1.9rem); font-weight: 600; margin-top: 1.6em; }
h3 { font-size: 1.2rem; font-weight: 600; margin-top: 1.3em; }

p { margin: 0 0 1em; }

.arco-iris { height: 7px; background: var(--arco); }

.pular { position: absolute; left: -9999px; top: 0; }
.pular:focus { left: 16px; top: 12px; background: var(--branco); padding: 8px 14px; border-radius: 10px; z-index: 10; }

.topo {
  max-width: 1080px;
  margin: 0 auto;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.marca {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--roxo);
}
.marca img {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  border: 3px solid var(--branco);
  box-shadow: 0 4px 14px rgba(63, 28, 96, 0.2);
}
.marca-nome {
  font-family: "Fredoka", system-ui, sans-serif;
  font-weight: 700;
  font-size: 1.3rem;
  line-height: 1.1;
}
.marca-nome small {
  display: block;
  font-family: "Nunito", system-ui, sans-serif;
  font-weight: 700;
  font-size: 0.78rem;
  color: var(--laranja);
  letter-spacing: 0.02em;
}
.menu { display: flex; gap: 6px; flex-wrap: wrap; }
.menu a {
  text-decoration: none;
  font-weight: 800;
  font-size: 0.95rem;
  color: var(--roxo);
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.75);
}
.menu a:hover, .menu a[aria-current="page"] { background: var(--roxo); color: var(--branco); }

main { max-width: 1080px; margin: 0 auto; padding: 8px 16px 40px; }

.capa {
  border-radius: var(--raio);
  overflow: hidden;
  box-shadow: var(--sombra);
  border: 5px solid var(--branco);
  background: var(--branco);
}
.capa img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }

.chamada { text-align: center; padding: 26px 4px 6px; }
.chamada p { font-size: 1.12rem; color: var(--suave); max-width: 760px; margin: 0 auto 1.2em; }
.selo {
  display: inline-block;
  background: var(--roxo);
  color: var(--branco);
  font-weight: 800;
  border-radius: 999px;
  padding: 6px 16px;
  font-size: 0.95rem;
  margin-bottom: 14px;
}
.selo span { color: var(--amarelo); }

.botoes { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.botao {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  font-weight: 800;
  color: var(--branco);
  padding: 11px 20px;
  border-radius: 999px;
  border: 0;
  cursor: pointer;
  font-family: inherit;
  font-size: 1rem;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
  transition: transform 0.15s ease;
}
.botao:hover { transform: translateY(-2px); color: var(--branco); }
.botao svg { width: 20px; height: 20px; flex: none; }
.b-youtube { background: #e62117; }
.b-instagram { background: linear-gradient(45deg, #f58529, #dd2a7b 55%, #8134af); }
.b-tiktok { background: #161823; }
.b-roxo { background: var(--roxo); }
.b-laranja { background: var(--laranja); }

.grade {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 16px;
  margin-top: 18px;
}
.cartao {
  background: var(--branco);
  border-radius: var(--raio);
  padding: 20px;
  box-shadow: var(--sombra);
  border-top: 7px solid var(--azul);
}
.cartao h3 { margin-top: 0; }
.cartao p { color: var(--suave); font-size: 0.98rem; }
.cartao .arroba { font-weight: 800; color: var(--texto); word-break: break-word; }
.c-rosa { border-top-color: var(--rosa); }
.c-laranja { border-top-color: var(--laranja); }
.c-verde { border-top-color: var(--verde); }
.c-amarelo { border-top-color: var(--amarelo); }
.c-roxo { border-top-color: var(--roxo); }
.c-azul { border-top-color: var(--azul); }

.emoji { font-size: 1.8rem; line-height: 1; display: block; margin-bottom: 8px; }

.bloco {
  background: var(--branco);
  border-radius: var(--raio);
  padding: 22px 24px;
  box-shadow: var(--sombra);
  margin-top: 22px;
}
.bloco h2:first-child { margin-top: 0; }

.aviso {
  background: #fff4cc;
  border-left: 6px solid var(--amarelo);
  border-radius: 14px;
  padding: 14px 16px;
  margin: 1em 0;
}
.aviso-verde { background: #e6f7ea; border-left-color: var(--verde); }
.aviso-rosa { background: #ffe8f2; border-left-color: var(--rosa); }

/* Paginas de texto (privacidade e termos) */
.documento { max-width: 860px; margin: 0 auto; }
.documento .bloco { padding: 26px 28px; }
.documento h2 { border-bottom: 3px dashed var(--linha); padding-bottom: 6px; }
.documento ul, .documento ol { padding-left: 1.3em; margin: 0 0 1em; }
.documento li { margin-bottom: 0.45em; }
.documento a, .documento code { overflow-wrap: anywhere; }
.data { color: var(--suave); font-weight: 700; }
.idiomas { display: flex; gap: 8px; flex-wrap: wrap; margin: 6px 0 4px; }
.idiomas a {
  text-decoration: none;
  font-weight: 800;
  font-size: 0.9rem;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--ceu);
  color: var(--roxo);
}

.tabela { width: 100%; overflow-x: auto; margin: 0 0 1.2em; }
table { border-collapse: collapse; width: 100%; min-width: 560px; font-size: 0.95rem; }
th, td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--linha); }
th { background: var(--ceu); color: var(--roxo-escuro); font-weight: 800; }

.ingles { margin-top: 34px; }

/* Pagina de retorno do TikTok */
.campo {
  width: 100%;
  font-family: Consolas, "Courier New", monospace;
  font-size: 0.98rem;
  padding: 12px 14px;
  border-radius: 12px;
  border: 2px solid var(--linha);
  background: #faf8ff;
  color: var(--texto);
  resize: vertical;
  word-break: break-all;
}
.rotulo { font-weight: 800; display: block; margin: 16px 0 6px; color: var(--roxo-escuro); }
.linha-botoes { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 10px; }
.pequeno { font-size: 0.9rem; color: var(--suave); }

[hidden] { display: none !important; }

.rodape {
  max-width: 1080px;
  margin: 0 auto;
  padding: 26px 16px 34px;
  text-align: center;
  color: var(--suave);
  font-size: 0.95rem;
}
.rodape a { font-weight: 800; }
.rodape .links { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-bottom: 8px; }

@media (max-width: 560px) {
  body { font-size: 16px; }
  .topo { justify-content: center; }
  .menu { justify-content: center; }
  .bloco, .documento .bloco { padding: 18px 16px; }
  .capa { border-width: 3px; }
}

@media (prefers-reduced-motion: reduce) {
  .botao { transition: none; }
  .botao:hover { transform: none; }
}
