/* Logística do Futuro — páginas internas.
   A Home/Hero (index.html) tem estilos próprios e não usa este arquivo para
   a seção do herói. Este CSS cobre nav, hero interno, prosa editorial,
   listas, aside e rodapé — linguagem visual: Sora / Spectral / IBM Plex Mono
   sobre #101826 (navy) e #F2EEE6 (creme). */

:root {
  --dark: #101826;
  --dark-2: #16202f;
  --line-dark: #22344C;
  --cream: #F2EEE6;
  --ink: #14161A;
  --body: #4A4842;
  --label: #6B6559;
  --rule: #DCD6C9;
  --cyan: #4FD1E8;
  --teal: #1F6F7D;
  --steel: #93A3B8;
  --steel-2: #6E8299;
  --purple: #7c5cff;
  --pad: clamp(20px, 5vw, 72px);
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: 'Spectral', Georgia, serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: var(--cyan); text-decoration: none; }
img { max-width: 100%; display: block; }

.mono {
  font-family: 'IBM Plex Mono', monospace;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--pad); }

/* ---------------- nav ----------------
   Mesma pílula flutuante com vidro fosco da Hero (index.html): fundo em
   gradiente translúcido, blur, borda clara e sombra suave. Repetida aqui
   como CSS puro (a Hero usa o runtime x-dc só nela) para que todas as
   páginas internas usem exatamente a mesma peça visual. */
.site-nav {
  position: fixed; top: 14px; left: 2.4vw; right: 2.4vw; z-index: 70;
  display: flex; align-items: center; gap: 24px;
  padding: 9px 10px 9px 22px; border-radius: 999px;
  background: linear-gradient(140deg, rgba(16,24,38,.62), rgba(16,24,38,.55));
  border: 1px solid rgba(170,196,255,.16);
  backdrop-filter: blur(18px) saturate(1.1);
  box-shadow: 0 12px 32px rgba(2,5,20,.35), inset 0 1px 0 rgba(200,220,255,.14);
  max-width: calc(var(--max) + 4.8vw);
  margin: 0 auto;
}
/* ao rolar, a pílula sobe e encosta perto do topo, dando mais espaço de
   leitura; volta à posição solta assim que a página retorna ao início
   (ver assets/nav-scroll.js, que anima a propriedade top). */
.site-nav.is-compact {
  box-shadow: 0 8px 22px rgba(2,5,20,.45), inset 0 1px 0 rgba(200,220,255,.14);
}
.site-nav .brand {
  font-family: 'Switzer', 'Sora', sans-serif; font-weight: 600; font-size: 12.5px;
  letter-spacing: .2em; text-transform: uppercase; color: #dce6ff; white-space: nowrap;
  transition: color .3s ease;
}
.site-nav .brand:hover { color: var(--cyan); }
.site-nav .links {
  flex: 1; display: flex; align-items: center; justify-content: center;
  gap: clamp(12px, 2.4vw, 34px);
  font-family: 'Switzer', 'Sora', sans-serif; font-weight: 500; font-size: 11.5px;
  letter-spacing: .14em; text-transform: uppercase;
}
.site-nav .links a { position: relative; color: rgba(214,226,255,.78); white-space: nowrap; transition: color .22s ease; }
.site-nav .links a:hover, .site-nav .links a.active { color: #fff; }
.site-nav .links a.active { color: var(--cyan); }
.site-nav .cta {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 6px 8px 16px; border-radius: 999px;
  border: 1px solid rgba(140,120,255,.65);
  font-family: 'Switzer', 'Sora', sans-serif; font-weight: 600; font-size: 11.5px; letter-spacing: .16em; text-transform: uppercase;
  color: #e9e4ff; white-space: nowrap;
  transition: box-shadow .35s ease, border-color .35s ease, background .35s ease;
}
.site-nav .cta:hover { box-shadow: 0 0 24px rgba(124,92,255,.45); border-color: rgba(170,150,255,.95); background: rgba(90,70,220,.18); }
.site-nav .cta::after {
  content: '→'; display: grid; place-items: center; width: 22px; height: 22px;
  border-radius: 999px; border: 1px solid rgba(150,130,255,.6); font-size: 11px;
}
@media (max-width: 760px) {
  .site-nav .links { display: none; }
  .site-nav { gap: 10px; padding: 7px 7px 7px 16px; }
  .site-nav .brand { font-size: 11px; }
  .site-nav .cta { padding: 6px 6px 6px 12px; font-size: 10px; gap: 8px; }
  .site-nav .cta::after { width: 20px; height: 20px; }
}

/* ---------------- hero interno (páginas que não são a Home) ---------------- */
.page-head {
  position: relative; overflow: hidden;
  background: var(--dark); color: var(--cream);
  /* +56px de folga no topo: a nav flutuante é fixed e não ocupa espaço no
     fluxo do documento, então o conteúdo precisa desse respiro extra para
     não nascer embaixo da pílula. */
  padding: calc(clamp(48px, 9vh, 96px) + 46px) var(--pad) clamp(40px, 7vh, 72px);
  border-bottom: 1px solid var(--line-dark);
}
.page-head .wrap { padding: 0; }
.page-head .eyebrow {
  display: flex; align-items: center; gap: 14px;
  font-family: 'IBM Plex Mono', monospace; font-weight: 500;
  font-size: clamp(9px, 1vw, 11px); letter-spacing: .3em; text-transform: uppercase; color: var(--steel);
}
.page-head .eyebrow::before { content: ''; width: 26px; height: 1px; background: var(--cyan); flex: none; }
.page-head h1 {
  margin: clamp(16px, 3vh, 26px) 0 0;
  font-family: 'Sora', sans-serif; font-weight: 700;
  font-size: clamp(30px, 5.2vw, 58px); line-height: 1.05;
  letter-spacing: -.03em; color: var(--cream); text-wrap: balance; max-width: 22ch;
}
.page-head .lede {
  margin: clamp(16px, 3vh, 26px) 0 0; max-width: 66ch;
  font-weight: 200; font-size: clamp(16px, 1.6vw, 20px);
  line-height: 1.62; color: #D8CFC2;
}
.back-link {
  display: flex; width: fit-content; align-items: center; gap: 8px; margin-bottom: 22px;
  font-family: 'IBM Plex Mono', monospace; font-weight: 500; font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase;
  color: var(--steel); transition: color .2s ease;
}
.back-link:hover { color: var(--cyan); }

/* palestrantes no hero interno */
.speakers-row { display: flex; flex-wrap: wrap; gap: 26px; margin-top: clamp(26px, 5vh, 40px); }
.sp { display: flex; align-items: center; gap: 14px; min-width: 0; transition: transform .3s cubic-bezier(.16,1,.3,1); }
.sp img, .sp .ph {
  width: 60px; height: 60px; border-radius: 12px; flex: none; object-fit: cover;
  background: #1d2a3d; border: 1px solid var(--line-dark); transition: transform .35s cubic-bezier(.16,1,.3,1), border-color .3s ease;
}
.sp .ph {
  border-style: dashed; border-color: #33465f;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Sora', sans-serif; font-weight: 600; font-size: 16px; color: var(--steel-2);
}
.sp:hover img, .sp:hover .ph { transform: scale(1.08); border-color: var(--cyan); }
.sp .nm { font-family: 'Sora', sans-serif; font-weight: 600; font-size: 15px; color: var(--cream); letter-spacing: -.01em; transition: color .25s ease; }
.sp:hover .nm { color: var(--cyan); }
.sp .rl { font-size: 12.5px; font-weight: 300; color: var(--steel); line-height: 1.4; margin-top: 2px; }

/* ---------------- article / prose ---------------- */
main.wrap { padding-top: clamp(48px, 8vh, 88px); padding-bottom: clamp(40px, 7vh, 72px); }
.article { max-width: 720px; margin: 0 auto; }
.byline { font-family: 'Sora', sans-serif; font-weight: 500; font-size: 13.5px; color: var(--label); margin: 0 0 34px; }
.speaker-photo { width: 100%; aspect-ratio: 16/9; object-fit: cover; border: 1px solid var(--rule); border-radius: 12px; margin-bottom: 34px; }

.article p, .prose p { margin: 0 0 20px; font-weight: 300; font-size: clamp(16px, 1.45vw, 18.5px); line-height: 1.82; color: var(--body); text-wrap: pretty; }
.article h2, .prose h2 {
  margin: clamp(38px, 6vh, 56px) 0 16px; font-family: 'Sora', sans-serif; font-weight: 600;
  font-size: clamp(21px, 2.5vw, 27px); line-height: 1.24; letter-spacing: -.02em; color: var(--ink);
}
.article ul, .prose ul { margin: 0 0 20px; padding-left: 22px; }
.article li, .prose li { font-weight: 300; font-size: clamp(15.5px, 1.4vw, 18px); line-height: 1.75; color: var(--body); margin-bottom: 9px; }

.article blockquote, .prose blockquote { margin: 28px 0; padding: 4px 0 4px 24px; border-left: 2px solid var(--cyan); }
.article blockquote p, .prose blockquote p {
  margin: 0; font-weight: 200; font-style: italic;
  font-size: clamp(17px, 1.7vw, 21px); line-height: 1.6; color: #33383F;
}

/* ---------------- raio-x / ficha (aside box) ---------------- */
.raiox { margin: 48px 0; border-top: 1px solid var(--ink); padding-top: 20px; }
.raiox h3 {
  margin: 0 0 20px; font-family: 'IBM Plex Mono', monospace; font-weight: 500;
  font-size: 10.5px; letter-spacing: .2em; text-transform: uppercase; color: var(--label);
}
.raiox dl { display: flex; flex-direction: column; gap: 16px; margin: 0; }
.raiox > dl > div { border-bottom: 1px solid var(--rule); padding-bottom: 16px; }
.raiox dt { font-family: 'IBM Plex Mono', monospace; font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--label); margin: 0 0 8px; }
.raiox dd { margin: 0; font-family: 'Spectral', Georgia, serif; font-weight: 300; font-size: 16px; line-height: 1.6; color: var(--ink); }

/* ---------------- listagem (hub de entrevistas) ---------------- */
.prog { max-width: var(--max); margin: 0 auto; border-top: 1px solid var(--ink); }
.item {
  display: grid; grid-template-columns: 40px 200px minmax(0, 1fr);
  gap: clamp(16px, 3vw, 32px); align-items: start;
  padding: clamp(22px, 4vh, 34px) 0; border-bottom: 1px solid var(--rule);
  transition: background .3s ease;
}
.item .num { font-family: 'IBM Plex Mono', monospace; font-weight: 500; font-size: 13px; letter-spacing: .06em; color: var(--label); padding-top: 3px; }
.item .thumb { width: 200px; aspect-ratio: 16/9; height: auto; overflow: hidden; border: 1px solid var(--rule); border-radius: 12px; background: #E2DDD2; flex: none; }
.item .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s cubic-bezier(.16,1,.3,1); }
.item .thumb.placeholder { display: flex; align-items: center; justify-content: center; font-family: 'Sora', sans-serif; font-weight: 600; font-size: 24px; color: var(--label); border-style: dashed; }
.item:hover .thumb img { transform: scale(1.08); }
.item { color: inherit; text-decoration: none; cursor: pointer; }
.item h3 {
  margin: 0 0 6px; font-family: 'Sora', sans-serif; font-weight: 600;
  font-size: clamp(18px, 2vw, 23px); line-height: 1.22; letter-spacing: -.02em; color: var(--ink);
  transition: color .25s ease;
}
.item:hover h3 { color: var(--teal); }
.item .dek { margin: 0; font-weight: 300; font-size: clamp(15px, 1.35vw, 17px); line-height: 1.6; color: var(--body); max-width: 62ch; }
.item .more {
  display: inline-block; margin-top: 10px; font-family: 'IBM Plex Mono', monospace; font-size: 10px;
  letter-spacing: .18em; text-transform: uppercase; color: var(--teal); transition: color .25s ease;
}
.item:hover .more { color: var(--cyan); }
@media (max-width: 640px) {
  .item { grid-template-columns: 40px minmax(0, 1fr); }
  .item .thumb { display: none; }
}

/* legacy grid fallback (não usado nas páginas atuais, mantido por segurança) */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; margin-top: 40px; }

/* ---------------- pergunta / stats editoriais ---------------- */
.stats-block { margin: 56px 0; }
.stats-block .sec-label {
  display: flex; align-items: center; gap: 12px; margin: 0 0 20px;
  font-family: 'IBM Plex Mono', monospace; font-weight: 500; font-size: 10.5px;
  letter-spacing: .2em; text-transform: uppercase; color: var(--label);
}
.stats-block .sec-sub { margin: -14px 0 20px; font-weight: 300; font-size: 14px; color: var(--body); }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1px; background: var(--rule); border: 1px solid var(--rule); }
.stat { background: var(--cream); padding: 22px 20px; }
.stat .v { font-family: 'Sora', sans-serif; font-weight: 700; font-size: 30px; letter-spacing: -.02em; color: var(--ink); }
.stat .l { margin-top: 8px; font-weight: 300; font-size: 13px; line-height: 1.4; color: var(--body); }
.stats.b .v { color: var(--teal); }
.stats.c .v { color: var(--purple); }

/* ---------------- paginação anterior/próxima ---------------- */
.pagenav, .pager {
  border-top: 1px solid var(--rule); max-width: var(--max); margin: clamp(40px, 7vh, 72px) auto 0;
  padding-top: 26px; display: flex; gap: 24px; justify-content: space-between; flex-wrap: wrap;
}
.pagenav a, .pg { max-width: 46%; min-width: 200px; position: relative; transition: transform .3s cubic-bezier(.16,1,.3,1); }
.pagenav a:last-child, .pg.next { text-align: right; margin-left: auto; }
.pagenav .dir, .pg .lb {
  display: block; font-family: 'IBM Plex Mono', monospace; font-size: 10px; letter-spacing: .18em;
  text-transform: uppercase; color: var(--label); margin-bottom: 7px;
}
.pagenav a, .pg .tt { font-family: 'Sora', sans-serif; font-weight: 600; font-size: 16px; line-height: 1.3; letter-spacing: -.015em; color: var(--ink); }
.pagenav a:hover, .pg:hover .tt { color: var(--teal); }
.pagenav a:hover { transform: translateY(-2px); }
@media (max-width: 540px) {
  .pagenav, .pager { flex-direction: column; gap: 18px; }
  .pagenav a, .pg { max-width: 100%; min-width: 0; width: 100%; }
  .pagenav a:last-child, .pg.next { text-align: left; margin-left: 0; }
}

/* ---------------- rodapé ---------------- */
.site-footer { background: var(--dark); color: var(--steel-2); padding: clamp(36px, 6vh, 56px) var(--pad); border-top: 1px solid var(--line-dark); margin-top: 0; }
.site-footer .wrap { padding: 0; display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; font-family: 'IBM Plex Mono', monospace; font-size: 10px; letter-spacing: .18em; text-transform: uppercase; }
.site-footer a { color: var(--steel-2); transition: color .2s ease; }
.site-footer a:hover { color: var(--cyan); }
.site-footer p { margin: 0; }

/* ---------------- foco de teclado ---------------- */
a:focus-visible, button:focus-visible, input:focus-visible, [tabindex]:focus-visible {
  outline: 2px solid var(--teal); outline-offset: 3px; border-radius: 1px;
}
.site-nav a:focus-visible, .item a.lk:focus-visible, .sp:focus-visible, .site-footer a:focus-visible { outline-color: var(--cyan); }
