/* Revista Replay — mesmo estilo de mesquitadesign.com.br (preto, Funnel, Geist Mono, azul bebê) */
@font-face { font-family: "Funnel Display"; src: url(assets/fonts/funnel-display.woff2) format("woff2"); font-weight: 300 800; font-display: swap; }
@font-face { font-family: "Funnel Sans"; src: url(assets/fonts/funnel-sans.woff2) format("woff2"); font-weight: 300 800; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url(assets/fonts/geist-mono.woff2) format("woff2"); font-weight: 100 900; font-display: swap; }

:root {
  --bg: #0b0b0b;
  --fg: #f2efe8;
  --mute: rgba(242, 239, 232, 0.6);
  --line: rgba(242, 239, 232, 0.14);
  --accent: #a9d8ff;
  --gutter: clamp(16px, 3vw, 40px);
  /* página da revista: 590 × 777 */
  --ph: min(78svh, calc((100vw - 48px) / 2 * 1.317));
  --pw: calc(var(--ph) / 1.317);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { background: var(--bg); overflow-x: clip; }
body { background: var(--bg); color: var(--fg); font-family: "Funnel Sans", system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
.mono { font-family: "Geist Mono", ui-monospace, monospace; font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; }
.label { color: var(--mute); display: flex; align-items: center; gap: 10px; }
.label::before { content: ""; width: 8px; height: 8px; background: var(--accent); }

.top {
  position: fixed; z-index: 20; inset: 0 0 auto 0; display: flex; justify-content: space-between;
  padding: 18px var(--gutter) 28px; color: var(--mute); pointer-events: none;
  background: linear-gradient(var(--bg) 40%, rgba(11, 11, 11, 0));
}
.top a { pointer-events: auto; text-decoration: none; transition: color 0.3s; }
.top a:hover { color: var(--accent); }

/* ── abertura ── */
.intro {
  min-height: 100svh; display: grid; place-content: center; justify-items: center; text-align: center;
  gap: 18px; padding: 90px var(--gutter);
  background: radial-gradient(60% 50% at 50% 45%, rgba(169, 216, 255, 0.10), transparent 70%);
}
.intro__h { margin: 0; }
.intro__logo { width: min(380px, 66vw); height: auto; filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.6)); }
.intro__by { color: var(--mute); margin-top: 6px; }
.intro__sub { max-width: 46ch; color: var(--mute); font-size: clamp(16px, 1.4vw, 20px); line-height: 1.5; }
.intro__hint { margin-top: 26px; color: var(--fg); display: inline-flex; gap: 10px; align-items: center; }
.intro__hint i { font-style: normal; animation: hint 1.6s ease-in-out infinite; }
@keyframes hint { 50% { transform: translateY(6px); } }

/* ── revista ── */
.reader { position: relative; }
.reader__pin { height: 100svh; display: grid; grid-template-rows: 1fr auto; align-items: center; justify-items: center; overflow: hidden; }
.stage { perspective: 2600px; perspective-origin: 50% 40%; width: 100%; display: grid; place-items: center; }
.book {
  position: relative; width: calc(var(--pw) * 2); height: var(--ph);
  transform-style: preserve-3d; will-change: transform;
}
/* sombra no "chão" */
.book::after {
  content: ""; position: absolute; left: 6%; right: 6%; bottom: -5%; height: 8%;
  background: radial-gradient(closest-side, rgba(0, 0, 0, 0.75), transparent); filter: blur(10px); transform: translateZ(-1px);
}
.sheet {
  position: absolute; top: 0; left: 50%; width: var(--pw); height: 100%;
  transform-origin: 0 50%; transform-style: preserve-3d; will-change: transform;
}
.face {
  position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; overflow: hidden;
  background: #111; cursor: zoom-in;
}
.face img { width: 100%; height: 100%; object-fit: cover; user-select: none; -webkit-user-drag: none; }
.face--back { transform: rotateY(180deg); }
/* dobra perto da lombada + sombra que passa na página enquanto vira */
.face::after { content: ""; position: absolute; inset: 0; pointer-events: none; }
.face--front::after { background: linear-gradient(90deg, rgba(0, 0, 0, 0.28), rgba(0, 0, 0, 0) 7%); }
.face--back::after { background: linear-gradient(270deg, rgba(0, 0, 0, 0.28), rgba(0, 0, 0, 0) 7%); }
.shade { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(90deg, rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.05)); opacity: 0; }
.face--back .shade { background: linear-gradient(270deg, rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.05)); }

.reader__ui { display: flex; gap: 28px; justify-content: center; padding: 18px 0 26px; color: var(--mute); }
.reader__ui #count { color: var(--fg); }

/* ── equipe ── */
.credits { padding: clamp(80px, 14vh, 160px) var(--gutter) 40px; max-width: 1280px; margin: 0 auto; }
.credits__title { font-family: "Funnel Display", sans-serif; font-weight: 640; letter-spacing: -0.05em; line-height: 0.9; font-size: clamp(56px, 11vw, 190px); margin: 14px 0 clamp(30px, 6vh, 64px); }
.roles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 var(--gutter); border-top: 1px solid var(--line); }
.roles div { padding: 16px 0 15px; border-bottom: 1px solid var(--line); display: grid; gap: 6px; }
.roles dt { font-family: "Geist Mono", monospace; font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--mute); }
.roles dd { font-size: clamp(17px, 1.4vw, 21px); line-height: 1.35; }
.members { margin-top: clamp(50px, 8vh, 90px); }
.members ul { list-style: none; margin-top: 16px; columns: 2; column-gap: var(--gutter); }
.members li { font-family: "Funnel Display", sans-serif; font-size: clamp(20px, 2vw, 30px); letter-spacing: -0.02em; padding: 8px 0; border-bottom: 1px solid var(--line); break-inside: avoid; }
.credits__foot { margin-top: clamp(60px, 10vh, 110px); padding-top: 20px; border-top: 1px solid var(--line); display: flex; gap: 20px 40px; flex-wrap: wrap; align-items: center; color: var(--mute); }
.credits__foot img { width: 110px; margin-left: auto; opacity: 0.9; }

/* ── ampliar ── */
.zoom { position: fixed; inset: 0; z-index: 50; background: rgba(5, 5, 5, 0.94); display: grid; grid-template-rows: 1fr auto; place-items: center; padding: 20px; }
.zoom[hidden] { display: none; }
.zoom img { max-height: calc(100svh - 110px); max-width: 100%; width: auto; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.7); }
.zoom__ui { display: flex; gap: 18px; align-items: center; padding-top: 16px; }
.zoom__ui button { border: 1px solid var(--line); border-radius: 999px; padding: 10px 16px; transition: background-color 0.3s, color 0.3s; }
.zoom__ui button:hover { background: var(--accent); color: #0b0b0b; border-color: var(--accent); }

/* sem animação: as páginas em grade, sem folhear */
.static .reader__pin { height: auto; display: block; padding: 40px var(--gutter); }
.static .stage { perspective: none; }
.static .book { width: 100%; height: auto; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; transform: none !important; }
.static .book::after { display: none; }
.static .sheet { position: relative; left: auto; width: auto; height: auto; transform: none !important; display: contents; }
.static .face { position: relative; inset: auto; aspect-ratio: 590 / 777; transform: none; backface-visibility: visible; }
.static .reader__ui { display: none; }

@media (max-width: 700px) {
  .roles { grid-template-columns: 1fr; }
  .members ul { columns: 1; }
  .reader__tip { display: none; }
  .credits__foot img { margin-left: 0; }
}
