/* =========================================================
   SACC v.3 · Estilos
   ---------------------------------------------------------
   1. Tokens          6. Navegação
   2. Base            7. Tela de carregamento
   3. Componentes     8. Abertura (hero)
   4. Pixel art       9. Seções
   5. Animações      10. Movimento reduzido
   ========================================================= */

/* 1. TOKENS ---------------------------------------------- */
:root {
  /* cores */
  --void: #050208;          /* fundo: preto com leve viés violeta */
  --panel: #0e0714;         /* superfície de janelas */
  --magenta: #d63ce0;       /* títulos, datas, botões */
  --magenta-deep: #8a1f94;  /* bordas e grade */
  --ascii: #3b2347;         /* textura de "3" no fundo */
  --phosphor: #f4eef7;      /* texto principal */
  --muted: #a495ae;         /* texto secundário */
  --rgb-r: #ff2d2d;         /* canais da aberração cromática: */
  --rgb-y: #ffe61a;         /* só efeito, foco e etiquetas, */
  --rgb-c: #00e1ff;         /* nunca texto corrido */

  /* fontes */
  --f-display: "Silkscreen", "Courier New", monospace;
  --f-sub: "Pixelify Sans", "Trebuchet MS", sans-serif;
  --f-body: "VT323", "Courier New", monospace;

  /* escala tipográfica */
  --t-hero: clamp(36px, min(8vw, 11vh), 92px);
  --t-h2: clamp(28px, 5vw, 48px);
  --t-sub: clamp(22px, 3.2vw, 34px);
  --t-body: 22px;
  --t-small: 19px;
  --t-label: 13px;

  /* pixel: todo espaçamento é múltiplo de 4 */
  --px: 4px;
  --gutter: max(16px, env(safe-area-inset-left, 0px));
  --gutter-r: max(16px, env(safe-area-inset-right, 0px));
  --nav-h: 56px;

  color-scheme: dark;
}

/* 2. BASE ------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--nav-h); scrollbar-gutter: stable; }
body {
  margin: 0;
  background: var(--void);
  color: var(--phosphor);
  font-family: var(--f-body);
  font-size: var(--t-body);
  line-height: 1.35;
  overflow-x: hidden;
  -webkit-font-smoothing: none;
}
img, svg { max-width: 100%; }
a { color: var(--magenta); }
p { margin: 0 0 16px; max-width: 62ch; }
h1, h2, h3 { margin: 0; text-wrap: balance; }
::selection { background: var(--magenta); color: var(--void); }
:focus-visible { outline: var(--px) solid var(--rgb-c); outline-offset: var(--px); }

.wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter-r);
}
.sr-only {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

/* linhas de varredura do CRT por cima de tudo */
body::after {
  content: "";
  position: fixed; inset: 0; z-index: 100; pointer-events: none;
  background: repeating-linear-gradient(to bottom, rgba(255,255,255,.035) 0 1px, transparent 1px 3px);
}

/* 3. COMPONENTES ----------------------------------------- */

/* Botão: cantos "mordidos" + sombra sólida */
.btn {
  display: inline-block;
  text-decoration: none;
  border: 0; padding: 0; background: none;
  filter: drop-shadow(var(--px) var(--px) 0 var(--rgb-c));
}
.btn > span {
  display: inline-flex; align-items: center; gap: 12px;
  background: var(--magenta);
  color: var(--void);
  font-family: var(--f-display); font-weight: 700;
  font-size: 18px; letter-spacing: .06em;
  padding: 14px 22px;
  clip-path: polygon(
    0 4px, 4px 4px, 4px 0, calc(100% - 4px) 0, calc(100% - 4px) 4px, 100% 4px,
    100% calc(100% - 4px), calc(100% - 4px) calc(100% - 4px), calc(100% - 4px) 100%,
    4px 100%, 4px calc(100% - 4px), 0 calc(100% - 4px));
}
.btn:hover { filter: drop-shadow(var(--px) var(--px) 0 var(--rgb-y)); }
.btn:hover > span { background: var(--phosphor); }
.btn:active { transform: translate(var(--px), var(--px)); filter: none; }

.btn--ghost { filter: none; }
.btn--ghost > span { background: transparent; color: var(--magenta); box-shadow: inset 0 0 0 var(--px) var(--magenta); }
.btn--ghost:hover { filter: none; }
.btn--ghost:hover > span { background: var(--magenta); color: var(--void); }

/* Janela de terminal */
.win {
  background: var(--panel);
  border: var(--px) solid var(--magenta-deep);
  box-shadow: 8px 8px 0 0 #000, 8px 8px 0 var(--px) var(--magenta-deep);
}
.win__bar {
  display: flex; justify-content: space-between; align-items: center; gap: 8px;
  background: var(--magenta-deep);
  font-family: var(--f-display); font-size: var(--t-label); letter-spacing: .06em;
  padding: 4px 8px;
}
.win__body { padding: 20px; }

/* Barra de carregamento em blocos */
.bar {
  display: flex; gap: 2px;
  height: 24px; padding: 2px;
  border: var(--px) solid var(--magenta);
}
.bar i { flex: 1; background: var(--magenta); opacity: .15; }
.bar i.on { opacity: 1; }

/* Contagem regressiva */
.countdown { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.countdown div {
  min-width: 72px; padding: 8px 10px; text-align: center;
  background: var(--void);
  border: var(--px) solid var(--magenta);
}
.countdown b {
  display: block;
  font-family: var(--f-display); font-size: 26px; line-height: 1;
  font-variant-numeric: tabular-nums;
}
.countdown span { font-family: var(--f-display); font-size: 11px; color: var(--magenta); letter-spacing: .1em; }

/* 4. PIXEL ART ------------------------------------------- */

/* Árvore ASCII feita de "3" */
.ascii {
  position: absolute; inset: 0; margin: 0;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--f-body);
  font-size: clamp(8px, 1.1vw, 13px); line-height: .92; letter-spacing: .11em;
  color: var(--ascii);
  white-space: pre; text-align: left;
  pointer-events: none; user-select: none;
}

.logo { width: min(380px, 78vw); height: auto; }

/* Chão synthwave em perspectiva */
.grid {
  position: absolute; left: -50%; right: -50%; bottom: 0;
  height: 32vh; min-height: 180px;
  perspective: 420px; perspective-origin: 50% 0; pointer-events: none;
  -webkit-mask: linear-gradient(to top, #000 40%, transparent);
          mask: linear-gradient(to top, #000 40%, transparent);
}
/* O plano precisa ficar mais raso que a perspectiva */
.grid::before {
  content: "";
  position: absolute; inset: -64px 0 -10% 0;
  transform: rotateX(64deg); transform-origin: 50% 64px;
  background:
    linear-gradient(90deg, var(--magenta-deep) 2px, transparent 2px) 0 0 / 64px 64px,
    linear-gradient(0deg,  var(--magenta-deep) 2px, transparent 2px) 0 0 / 64px 64px;
  animation: grid-run 1.6s linear infinite;
}

/* Mouse em pixel art */
html { cursor: var(--cur-default, auto); }
a, button, [role="tab"] { cursor: var(--cur-pointer, pointer); }
.is-booting, .is-booting * { cursor: var(--cur-wait, wait); }
.is-booting .boot__skip { cursor: var(--cur-pointer, pointer); }
.sprite { display: block; image-rendering: pixelated; }

/* 5. ANIMAÇÕES ------------------------------------------- */
/* Regra: tudo anda em degraus (steps), menos a grade e a entrada da hero. */
@keyframes blink { 50% { opacity: 0; } }
@keyframes grid-run {
  from { transform: rotateX(64deg); }
  to   { transform: rotateX(64deg) translateY(64px); }
}
@keyframes pop-in {
  0% { transform: scale(.2); opacity: 0; }
  50% { transform: scale(.6); opacity: 1; }
  75% { transform: scale(1.08); }
  100% { transform: scale(1); }
}
/* Desligar de CRT: colapsa numa linha, depois num ponto */
@keyframes crt-off {
  0%   { transform: scale(1, 1);     filter: brightness(1); }
  40%  { transform: scale(1, .004);  filter: brightness(4); }
  70%  { transform: scale(.4, .004); filter: brightness(6); }
  100% { transform: scale(0, 0);     filter: brightness(8); }
}
@keyframes enter {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: none; }
}

/* 6. NAVEGAÇÃO ------------------------------------------- */
body::before {
  content: ""; position: fixed; inset: 0 0 auto; z-index: 41;
  height: env(safe-area-inset-top, 0px); background: var(--void);
}
.nav {
  position: fixed; top: env(safe-area-inset-top, 0px); left: 0; right: 0; z-index: 40;
  background: rgba(5, 2, 8, .88);
  border-bottom: 2px solid var(--magenta-deep);
  backdrop-filter: blur(4px);
}
.nav .wrap {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  height: var(--nav-h);
}
.nav__logo { display: block; flex: none; }
.nav__logo img { display: block; height: 36px; width: auto; }
.nav__links { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav__links a {
  display: block; padding: 6px 10px;
  font-family: var(--f-display); font-size: var(--t-label); letter-spacing: .08em;
  color: var(--muted); text-decoration: none;
}
.nav__links a:hover { color: var(--void); background: var(--magenta); }
.nav__links a.is-cta { color: var(--magenta); box-shadow: inset 0 0 0 2px var(--magenta); }
.nav__links a.is-cta:hover { color: var(--void); }

@media (max-width: 640px) {
  .nav__links li:not(:last-child) { display: none; }
  .nav__links a { padding: 14px 12px; }
  .nav__logo { padding-block: 4px; }
}

/* 7. TELA DE CARREGAMENTO -------------------------------- */
.boot { display: none; }
.is-booting { overflow: hidden; }
.is-booting .boot {
  position: fixed; inset: 0; z-index: 90;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 24px var(--gutter-r) 22vh var(--gutter);
  background: var(--void);
  overflow: hidden;
}
.boot__inner {
  position: relative; z-index: 2;
  display: flex; flex-direction: column; align-items: center; gap: 20px;
  width: min(640px, 100%);
}
.boot__log {
  align-self: stretch;
  list-style: none; margin: 0; padding: 0;
  font-size: 20px; color: var(--muted);
  min-height: calc(4 * 1.35em);
}
.boot__log li { overflow-wrap: anywhere; }
.boot__log .ok { color: var(--rgb-c); }
.boot__art { position: relative; display: flex; }
.boot .ascii { padding-bottom: 7.4em; z-index: -1; }
.boot__logo { width: min(300px, 60vw); visibility: hidden; }
.boot__logo.is-on { visibility: visible; animation: pop-in .4s steps(4) both; }
.boot__msg {
  margin: 0; text-align: center; min-height: 1.4em;
  font-family: var(--f-display); font-size: clamp(15px, 2.6vw, 24px); letter-spacing: .04em;
}
.boot__progress { display: flex; align-items: center; gap: 12px; width: min(420px, 100%); }
.boot__progress .bar { flex: 1; }
.boot__pct {
  min-width: 4ch; text-align: right;
  font-family: var(--f-display); font-size: 16px; color: var(--magenta);
  font-variant-numeric: tabular-nums;
}
.boot__hint {
  margin: 0; visibility: hidden;
  font-family: var(--f-display); font-size: var(--t-label); letter-spacing: .12em; color: var(--rgb-y);
}
.boot.is-done .boot__hint { visibility: visible; animation: blink 1s steps(1) infinite; }
.boot__skip {
  position: absolute; z-index: 3;
  right: calc(var(--gutter-r) + 4px);
  bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  background: none; border: 2px solid var(--magenta-deep); color: var(--muted);
  font-family: var(--f-display); font-size: 12px; letter-spacing: .1em;
  padding: 8px 12px;
}
.boot__skip:hover { color: var(--void); background: var(--magenta); border-color: var(--magenta); }
@media (max-width: 640px) {
  .boot__skip { padding: 14px 12px; }
}
/* Celular deitado: sem o log, com a logo menor */
@media (max-height: 520px) {
  .boot__log { display: none; }
  .boot__logo { width: 40vh; }
}
.boot.is-leaving { animation: crt-off .5s steps(10) forwards; }

/* 8. ABERTURA (HERO) ------------------------------------- */
.hero {
  position: relative; overflow: hidden; isolation: isolate;
  min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: clamp(16px, 3vh, 28px);
  padding: calc(var(--nav-h) + 40px) var(--gutter-r) 20vh var(--gutter);
  text-align: center;
}
.hero .ascii {
  inset: auto; left: 50%; top: calc(50% + (var(--nav-h) - 8vh) / 2);
  display: block; transform: translate(-50%, -50%); z-index: -1;
  font-size: clamp(10px, min(2.1vw, 2.9vh), 35px); line-height: .73; letter-spacing: 0;
  /* fade: os 30% de baixo da árvore ficam transparentes */
  -webkit-mask: linear-gradient(to top, transparent, #000 30%);
          mask: linear-gradient(to top, transparent, #000 30%);
}
/* O chão cobre a árvore */
.hero .grid { z-index: -1; height: 22vh; max-height: 260px; background: var(--void); }
.hero .grid::before { bottom: -40%; }
.hero .btn > span { font-size: 15px; padding: 12px 20px; }
.hero__where, .hero__date {
  margin: 0; max-width: none;
  font-family: var(--f-display); color: var(--magenta); letter-spacing: .14em;
}
.hero__where { font-size: 14px; }
.hero__date { font-size: clamp(15px, 2vw, 22px); }
.hero__title {
  font-family: var(--f-display); font-weight: 700;
  font-size: var(--t-hero); line-height: .9;
  color: var(--magenta);
  letter-spacing: .02em;
  overflow-wrap: anywhere;
  text-shadow: -.03em -.02em 0 var(--rgb-r), .03em .02em 0 var(--rgb-c);
}
.hero__title span { display: block; }
.hero__course {
  margin: 0; max-width: none;
  font-family: var(--f-sub); font-size: clamp(18px, 2.2vw, 26px);
}
.hero__cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 20px; margin-top: 4px; }
.hero__count { margin-top: 8px; }
.hero__count p { margin: 0 auto 8px; font-size: var(--t-small); color: var(--muted); }

/* entrada depois do boot, em sequência */
.is-booting .hero__reveal { opacity: 0; will-change: opacity, transform; }
.is-ready .hero__reveal { animation: enter .6s cubic-bezier(.2, .7, .2, 1) both; }
.is-ready .hero__reveal:nth-child(2) { animation-delay: .05s; }
.is-ready .hero__reveal:nth-child(3) { animation-delay: .15s; }
.is-ready .hero__reveal:nth-child(4) { animation-delay: .25s; }
.is-ready .hero__reveal:nth-child(5) { animation-delay: .35s; }
.is-ready .hero__reveal:nth-child(6) { animation-delay: .45s; }
.is-ready .hero__reveal:nth-child(7) { animation-delay: .55s; }

@media (max-width: 640px) {
  .btn > span, .hero .btn > span { font-size: 15px; padding: 12px 16px; }
  .countdown div { min-width: 68px; }
}
@media (max-width: 380px) {
  .countdown { gap: 8px; }
  .countdown div { min-width: 64px; padding: 8px 2px; }
}

/* 9. SEÇÕES ---------------------------------------------- */
.mod { padding-block: 72px; border-top: 2px dashed var(--magenta-deep); }
.mod__head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 20px; margin-bottom: 24px; }
.mod__path { color: var(--muted); }
.mod__path b { color: var(--rgb-c); font-weight: 400; }
.mod h2 { font-family: var(--f-display); font-weight: 700; color: var(--magenta); font-size: var(--t-h2); line-height: 1; }
.mod__todo { color: var(--muted); }
.mod__todo b { color: var(--rgb-y); font-weight: 400; }

/* Sobre: texto à esquerda, ficha do evento numa janela à direita */
.about { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 32px 48px; align-items: start; }
.about h3 { margin-bottom: 16px; font-family: var(--f-sub); font-weight: 400; font-size: var(--t-sub); line-height: 1.15; }
/* VT323 é fina: no texto corrido precisa de corpo maior e linhas mais fechadas */
.about p, .about__goals { font-size: 26px; line-height: 1.2; color: var(--muted); }
.about__goals li + li { margin-top: 8px; }
.about p + h3 { margin-top: 40px; }
.about__goals { list-style: none; margin: 0; padding: 0; }
.about__goals li { padding-left: 2ch; text-indent: -2ch; }
.about__goals li::before { content: "> "; color: var(--rgb-y); }
.about__facts { margin: 0; font-size: 24px; line-height: 1.15; color: var(--muted); }
.about__facts div + div { margin-top: 20px; }
.about__facts dt { margin-bottom: 4px; font-family: var(--f-display); font-size: var(--t-label); letter-spacing: .08em; color: var(--magenta); }
.about__facts dd { margin: 0; }
@media (max-width: 800px) {
  .about { grid-template-columns: minmax(0, 1fr); }
}

/* Inscrição: botão de fita VHS. Parado, só um defeito discreto; com mouse ou foco, tudo dispara.
   Os pulos ficam no span para a área de clique não sair do lugar. */
.signup { display: flex; flex-direction: column; align-items: center; gap: 28px; padding-block: 32px; text-align: center; }
.signup p { margin: 0; max-width: none; }
.signup__note { color: var(--muted); }
.btn--vhs {
  --vhs-size: clamp(13px, 4.4vw, 38px);
  position: relative; max-width: 100%;
  animation: vhs-idle 4s steps(1) infinite;
}
.btn--vhs > span {
  position: relative; overflow: hidden;
  font-size: var(--vhs-size); white-space: nowrap;
  padding: clamp(18px, 3vw, 28px) clamp(16px, 4vw, 44px);
}
/* faixa de tracking descendo pelo botão */
.btn--vhs > span::after {
  content: "";
  position: absolute; inset: 0 0 auto; height: 35%;
  background: linear-gradient(transparent, rgba(244, 238, 247, .25), transparent);
  pointer-events: none;
  animation: vhs-track 4s steps(20) infinite;
}
/* cópias do botão, recortadas em tiras deslocadas */
.btn--vhs::before, .btn--vhs::after {
  content: attr(data-text);
  position: absolute; inset: 0; z-index: 1;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--f-display); font-weight: 700; font-size: var(--vhs-size); letter-spacing: .06em; white-space: nowrap;
  color: var(--void);
  clip-path: inset(100% 0 0 0);
  pointer-events: none;
}
.btn--vhs::before { background: var(--rgb-c); }
.btn--vhs::after { background: var(--rgb-r); }
.btn--vhs:hover, .btn--vhs:focus-visible {
  transform: scale(1.04);
  animation: vhs-shadow .6s steps(1) infinite;
}
.btn--vhs:hover > span, .btn--vhs:focus-visible > span { animation: vhs-jump .9s steps(1) infinite, vhs-rgb .9s steps(1) infinite; }
.btn--vhs:hover > span::after, .btn--vhs:focus-visible > span::after { background: linear-gradient(transparent, rgba(244, 238, 247, .5), transparent); animation-duration: 1s; }
.btn--vhs:hover::before, .btn--vhs:focus-visible::before { animation: vhs-tear-a .7s steps(1) infinite; }
.btn--vhs:hover::after, .btn--vhs:focus-visible::after { animation: vhs-tear-b .7s steps(1) infinite; }
.btn--vhs:active { transform: scale(.98); }

@keyframes vhs-idle {
  0%, 90%, 97%, 100% { transform: none; }
  91% { transform: translate(-3px, -6px); }
  94% { transform: translate(3px, 1px); }
}
@keyframes vhs-jump {
  0%, 18%, 64%, 100% { transform: none; }
  4%  { transform: translate(-4px, -12px) skewX(-4deg); }
  8%  { transform: translate(6px, 3px) skewX(3deg); }
  12% { transform: translate(-3px, -7px); }
  50% { transform: translateY(-16px); }
  55% { transform: translate(0, 2px); }
  60% { transform: translate(5px, -6px) skewX(-6deg); }
}
@keyframes vhs-shadow {
  0%  { filter: drop-shadow(6px 6px 0 var(--rgb-c)); }
  33% { filter: drop-shadow(-6px 6px 0 var(--rgb-r)); }
  66% { filter: drop-shadow(6px -4px 0 var(--rgb-y)); }
}
@keyframes vhs-rgb {
  0%, 18%, 64%, 100% { text-shadow: none; }
  4%, 12% { text-shadow: -3px 0 0 var(--rgb-r), 3px 0 0 var(--rgb-c); }
  50%, 60% { text-shadow: 4px 1px 0 var(--rgb-y), -4px -1px 0 var(--rgb-c); }
}
@keyframes vhs-track {
  from { transform: translateY(-100%); }
  to   { transform: translateY(300%); }
}
@keyframes vhs-tear-a {
  0%, 16%, 64%, 100% { clip-path: inset(100% 0 0 0); transform: none; }
  4%  { clip-path: inset(12% 0 62% 0); transform: translateX(-16px); }
  10% { clip-path: inset(58% 0 18% 0); transform: translateX(14px); }
  52% { clip-path: inset(30% 0 44% 0); transform: translateX(20px); }
}
@keyframes vhs-tear-b {
  0%, 18%, 66%, 100% { clip-path: inset(100% 0 0 0); transform: none; }
  6%  { clip-path: inset(70% 0 8% 0); transform: translateX(16px); }
  13% { clip-path: inset(22% 0 60% 0); transform: translateX(-12px); }
  56% { clip-path: inset(48% 0 26% 0); transform: translateX(-20px); }
}

/* Cronograma: um bloco por dia, cards de linha com foto à esquerda */
.day + .day { margin-top: 48px; }
.day__head {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px;
  margin-bottom: 16px; padding-bottom: 8px;
  border-bottom: var(--px) solid var(--magenta);
  font-family: var(--f-display); font-weight: 400; font-size: 18px; color: var(--muted);
}
.day__head b { font-size: clamp(22px, 3vw, 28px); font-weight: 700; color: var(--phosphor); text-transform: uppercase; }
.day__list { display: flex; flex-direction: column; gap: 12px; list-style: none; margin: 0; padding: 0; }
.slot__place { margin-left: auto; font-family: var(--f-body); font-size: var(--t-small); color: var(--muted); }

.slot {
  display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 20px; align-items: center;
  padding: 16px;
  background: var(--panel);
  border: 2px solid var(--magenta-deep);
}
.slot:hover { border-color: var(--magenta); }
.slot--group { grid-template-columns: minmax(0, 1fr); }
.slot time { font-family: var(--f-display); font-size: 16px; color: var(--magenta); font-variant-numeric: tabular-nums; }
.slot p { margin: 0; max-width: none; }
.slot .slot__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; margin-bottom: 8px; }
.slot__name { font-size: var(--t-small); color: var(--rgb-c); }
.slot h4 { margin: 0; font-family: var(--f-sub); font-weight: 600; font-size: clamp(21px, 2.4vw, 26px); line-height: 1.15; text-wrap: balance; overflow-wrap: anywhere; hyphens: auto; }
.slot .slot__note { margin-top: 4px; font-size: var(--t-small); color: var(--muted); }

/* Marcação de pausa: linha fina, sem foto */
.slot--pause {
  display: flex; flex-wrap: wrap; gap: 4px 16px;
  padding: 8px 16px;
  background: none;
  border-style: dashed;
  color: var(--muted);
}
.slot--pause:hover { border-color: var(--magenta-deep); }
.slot--pause b { font-family: var(--f-display); font-weight: 400; font-size: 14px; letter-spacing: .06em; text-transform: uppercase; }

/* Foto quadrada; sem foto, mostra as iniciais ou um ícone */
.avatar {
  display: grid; place-items: center;
  width: 100%; aspect-ratio: 1; object-fit: cover;
  background: var(--void);
  border: var(--px) solid var(--magenta-deep);
  font-family: var(--f-display); font-size: 32px; color: var(--magenta);
}

/* Atividade com várias pessoas: foto e nome de cada uma */
.people {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); gap: 16px;
  list-style: none; margin: 16px 0 0; padding: 0;
  font-size: var(--t-small); line-height: 1.15; color: var(--rgb-c);
}
.people .avatar { width: 88px; margin-bottom: 8px; font-size: 26px; }
.people .tag { display: inline-block; margin-top: 8px; }
.people span:not(.avatar):not(.tag) { display: block; }

.tag {
  padding: 4px 8px;
  border: 2px solid currentColor;
  font-family: var(--f-display); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap;
}
.tag--palestra { color: var(--rgb-c); }
.tag--minicurso { color: var(--rgb-y); }
.tag--warn { color: var(--rgb-r); }

@media (max-width: 640px) {
  .slot { grid-template-columns: 72px minmax(0, 1fr); gap: 12px; padding: 12px; }
  .slot--group { grid-template-columns: minmax(0, 1fr); }
  .avatar { font-size: 22px; }
  .slot__place { margin-left: 0; }
}
@media (max-width: 350px) {
  .slot h4 { font-size: 18px; }
}

.footer { padding-block: 40px; border-top: 2px dashed var(--magenta-deep); font-size: var(--t-small); color: var(--muted); }
.footer__row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 32px; }
.footer__brand { display: flex; align-items: center; gap: 16px; }
.footer__brand img { flex: none; height: 44px; width: auto; }
.footer__repo { font-family: var(--f-display); font-size: 12px; letter-spacing: .08em; }
.footer__repo a { font-family: var(--f-body); font-size: var(--t-small); letter-spacing: 0; color: var(--magenta); }
.footer__repo a:hover { color: var(--void); background: var(--magenta); }

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