:root {
  --roxo: #620562;
  --rosa: #c40f4f;
  --verde: #04784a;
  --ocre: #a86b04;
  --texto: #2b2b2b;
  --fundo: #fdfbfd;
  --suave: #f3eef3;
  --largura: 1040px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: 'Quicksand', system-ui, sans-serif;
  font-size: 18px;
  line-height: 1.7;
  color: var(--texto);
  background: var(--fundo);
}

a { color: var(--roxo); text-underline-offset: 3px; }
a:hover, a:focus-visible { color: var(--rosa); }
:focus-visible { outline: 3px solid var(--rosa); outline-offset: 2px; }

.pular { position: absolute; left: -999px; }
.pular:focus { left: 1rem; top: 1rem; background: #fff; padding: .5rem 1rem; z-index: 10; }

/* topo */
.topo {
  position: sticky; top: 0; z-index: 5;
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap;
  padding: .6rem 1.5rem;
  background: #fff;
  border-bottom: 1px solid #eadfea;
}
.marca {
  font-family: 'Dancing Script', cursive;
  font-size: 1.8rem;
  color: var(--roxo);
  text-decoration: none;
}
#menu { list-style: none; display: flex; gap: 1.4rem; margin: 0; padding: 0; }
#menu a { text-decoration: none; font-weight: 600; color: var(--texto); }
#menu a:hover, #menu a[aria-current="page"] { color: var(--roxo); border-bottom: 2px solid var(--rosa); }
.menu-botao { display: none; background: none; border: 0; font: inherit; font-weight: 700; font-size: 1.1rem; color: var(--roxo); cursor: pointer; }

/* conteúdo */
main { max-width: var(--largura); margin: 0 auto; padding: 2rem 1.5rem 3rem; }
h1 { color: var(--roxo); font-size: 2.2rem; line-height: 1.25; margin: .5rem 0 1.2rem; }
h2 { color: var(--roxo); font-size: 1.45rem; margin: 2.2rem 0 .6rem; }
img { max-width: 100%; height: auto; display: block; }

.foto {
  width: 220px; height: 220px; object-fit: cover;
  border-radius: 50%; flex-shrink: 0;
  border: 6px solid var(--suave);
}
.destaque, .sobre { display: flex; gap: 2.5rem; align-items: center; }
.sobretitulo { margin: 0; color: var(--rosa); font-weight: 700; }

.atalhos { display: flex; gap: 1.5rem; justify-content: center; flex-wrap: wrap; margin: 2.5rem 0; }
.atalho {
  width: 150px; height: 150px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 700; text-decoration: none;
  transition: transform .2s;
}
.atalho:hover, .atalho:focus-visible { color: #fff; transform: scale(1.06); }
.rosa { background: var(--rosa); }
.verde { background: var(--verde); }
.ocre { background: var(--ocre); }

.frases { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
blockquote {
  margin: 0; padding: 1.5rem; background: var(--suave);
  border-left: 5px solid var(--verde); border-radius: 6px;
}
blockquote p { margin-top: 0; font-style: italic; }
cite { font-style: normal; font-weight: 700; color: var(--verde); }

/* projetos e jogos */
.projeto {
  display: grid; grid-template-columns: 260px 1fr; gap: 1.8rem;
  padding: 1.8rem 0; border-bottom: 1px solid #eadfea;
}
.projeto.sem-imagem { grid-template-columns: 1fr; }
.projeto h2 { margin-top: 0; }
.periodo { color: #666; font-size: .95rem; margin-top: -.4rem; }
.galeria { display: grid; gap: .6rem; }
.galeria img { border-radius: 8px; width: 100%; object-fit: cover; }
.galeria.grande { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); margin: 1.5rem 0; }
.galeria.grande img { aspect-ratio: 4 / 3; }

.botao {
  display: inline-block; padding: .45rem 1.2rem; border-radius: 999px;
  background: var(--roxo); color: #fff; text-decoration: none; font-weight: 600;
}
.botao:hover, .botao:focus-visible { background: var(--rosa); color: #fff; }

.equipe dt { font-weight: 700; color: var(--roxo); margin-top: .8rem; }
.equipe dd { margin: 0; }

/* publicações */
.publicacao { display: grid; grid-template-columns: 130px 1fr; gap: 1.5rem; align-items: start; margin-bottom: 1.5rem; }
.publicacao img { border-radius: 4px; box-shadow: 0 2px 8px rgba(0,0,0,.15); }
.videos { display: grid; gap: 1.2rem; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.video iframe { width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: 8px; }

.lista-links, .contatos { padding-left: 1.2rem; }
.contatos { list-style: none; padding: 0; }
.contatos li { margin: .7rem 0; }
.contatos i { color: var(--verde); width: 1.6rem; }

/* rodapé */
.rodape { background: var(--suave); text-align: center; padding: 1.5rem 1rem; font-size: .95rem; }
.redes { display: flex; gap: 1.4rem; justify-content: center; font-size: 1.7rem; }
.redes a { color: var(--roxo); }
.rodape p { margin: .6rem 0 0; color: #555; }

/* telas pequenas */
@media (max-width: 760px) {
  .menu-botao { display: block; }
  nav { width: 100%; }
  #menu { display: none; flex-direction: column; gap: .6rem; padding: .8rem 0; }
  #menu.aberto { display: flex; }
  .destaque, .sobre { flex-direction: column; text-align: center; }
  .projeto, .publicacao { grid-template-columns: 1fr; }
  h1 { font-size: 1.8rem; }
}

/* ===== Acessibilidade e usabilidade (atualização) ===== */
:root { --ocre: #8a5703; }
html { scroll-behavior: smooth; }
[id] { scroll-margin-top: 5rem; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.pular:focus { border-radius: 6px; font-weight: 700; box-shadow: 0 2px 10px rgba(0,0,0,.2); }
.menu-botao { padding: .5rem .8rem; min-height: 44px; border-radius: 6px; }
#menu a { display: inline-block; padding: .35rem 0; }
.redes a { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; }
.periodo { color: #5c5c5c; }
.etiqueta {
  display: inline-block; margin: 0 0 .5rem; padding: .1rem .7rem; border-radius: 999px;
  background: var(--suave); color: var(--roxo); font-size: .9rem; font-weight: 700;
}
.acoes { display: flex; flex-wrap: wrap; gap: .8rem 1.2rem; align-items: center; }
.link-secundario { font-weight: 600; }

/* navegação interna */
.secao-nav { background: var(--suave); border-radius: 8px; padding: .8rem 1.2rem; margin-bottom: 1.5rem; }
.secao-nav p { margin: 0 0 .3rem; font-weight: 700; }
.secao-nav ul { display: flex; flex-wrap: wrap; gap: .4rem 1.4rem; list-style: none; margin: 0; padding: 0; }
.secao-nav a { font-weight: 600; }
.intro-secao { max-width: 46rem; }
.projeto h3 { color: var(--roxo); font-size: 1.3rem; margin: 0 0 .5rem; }

/* vídeos */
.filtro { margin: 1rem 0 .4rem; }
.filtro label { display: block; font-weight: 700; margin-bottom: .3rem; }
.filtro input {
  width: 100%; max-width: 26rem; font: inherit; padding: .5rem .8rem;
  border: 2px solid #8b7a8b; border-radius: 6px; background: #fff;
}
.filtro input:focus-visible { border-color: var(--roxo); }
.contagem { color: #5c5c5c; font-size: .95rem; margin: 0 0 1rem; }
.lista-videos {
  list-style: none; padding: 0; margin: 0;
  display: grid; gap: 1.6rem; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}
.lista-videos > li { display: flex; flex-direction: column; gap: .5rem; }
.lista-videos h3 { order: 2; font-size: 1.05rem; line-height: 1.4; margin: 0; color: var(--texto); }
.lista-videos .video-quadro { order: 1; }
.lista-videos .acoes { order: 3; font-size: .95rem; }
.video-quadro { position: relative; aspect-ratio: 16 / 9; border-radius: 8px; overflow: hidden; background: #222; }
.video-quadro iframe { width: 100%; height: 100%; border: 0; display: block; }
.video-play {
  all: unset; box-sizing: border-box; cursor: pointer; display: block; width: 100%; height: 100%; position: relative;
}
.video-play img { width: 100%; height: 100%; object-fit: cover; }
.video-play .icone {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  display: inline-flex; align-items: center; gap: .5rem; padding: .5rem 1rem; border-radius: 999px;
  background: rgba(98, 5, 98, .92); color: #fff; font-weight: 700;
}
.video-play:hover .icone, .video-play:focus-visible .icone { background: var(--rosa); }
.video-play:focus-visible { outline: 4px solid var(--rosa); outline-offset: -4px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
