/* Página de apresentação · universo público Base Tríade (claro), assinatura iAi. Tokens: iai-ecosystem/marca. */
@font-face { font-family: 'Zilla Slab'; font-weight: 700; font-style: normal; font-display: swap; src: url(/fonts/ZillaSlab-700.woff2) format('woff2'); }
@font-face { font-family: 'Libre Franklin'; font-weight: 100 900; font-style: normal; font-display: swap; src: url(/fonts/LibreFranklin-var.woff2) format('woff2'); }
@font-face { font-family: 'EB Garamond'; font-weight: 700; font-style: normal; font-display: swap; src: url(/fonts/EBGaramond-700.woff2) format('woff2'); }
/* Cinzel só para o Selo de Semeadura (protocolo do selo). */
@font-face { font-family: 'Cinzel'; font-weight: 400; font-style: normal; font-display: swap; src: url(/fonts/Cinzel-400.woff2) format('woff2'); }

:root {
  color-scheme: light;
  --floresta: #24451f;
  --profundo: #213b2c;
  --mata-noite: #1a2e18;
  --vida: #5ea142;
  --vida-claro: #b9e39b; /* Verde Vida clareado: contraste AA sobre fundos verdes escuros */
  --creme: #f5eed4;
  --marfim: #fafaf5;
  --areia-clara: #f0ebd8;
  --tinta: #213b2c;
  --tinta-suave: #4d5f48;
  --linha: rgba(36, 69, 31, .16);
  --ambar: #8f4e0a;
  --r-folha: 30px 10px 28px 10px / 26px 10px 30px 12px;
  --r-seixo: 22px 18px 24px 20px / 20px 22px 18px 24px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--marfim); }
body { position: relative; margin: 0; font-family: 'Libre Franklin', 'Helvetica Neue', Arial, sans-serif; font-weight: 400; font-size: 17px; line-height: 1.65; color: var(--tinta); background: transparent; }
/* Marca d'água Base Tríade a 5% atrás do texto. */
body::before { content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none; background: url(/img/simbolo-22-verde-floresta.svg) center 60% / min(70vw, 440px) no-repeat; opacity: .05; }
h1, h2, h3 { font-family: 'Zilla Slab', Georgia, serif; font-weight: 700; line-height: 1.12; letter-spacing: -.01em; }
.iai { font-family: 'EB Garamond', Georgia, serif; font-weight: 700; letter-spacing: 0; text-transform: none; }
:focus-visible { outline: 3px solid var(--floresta); outline-offset: 2px; }
p { margin: 0 0 14px; }
/* Regra v2.5: texto corrido justificado, com hifenização. */
.escolha p, .fardas span { text-align: justify; -webkit-hyphens: auto; hyphens: auto; }

/* ---------- Abertura ---------- */
.abertura { background: var(--floresta); color: var(--creme); border-radius: 0 0 40px 28px / 0 0 26px 32px; padding: calc(28px + env(safe-area-inset-top)) 16px 40px; }
.abertura-in { max-width: 820px; margin: 0 auto; display: grid; gap: 22px; }
/* Retrato em moldura de folha (biofilia: nenhum canto reto). */
.retrato { margin: 0; width: min(60vw, 260px); justify-self: start; }
.retrato img { display: block; width: 100%; height: auto; border-radius: 46% 14% 42% 12% / 30% 10% 34% 12%; box-shadow: 0 14px 40px rgba(0, 0, 0, .35); outline: 1px solid rgba(245, 238, 212, .18); outline-offset: 6px; }
.coruja { width: 44px; height: auto; display: block; margin-bottom: 16px; }
.sobrelinha { font-weight: 700; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; opacity: .85; margin: 0 0 14px; }
.abre { font-family: 'Zilla Slab', Georgia, serif; font-weight: 700; font-size: clamp(26px, 6.4vw, 38px); line-height: 1.15; margin: 0 0 22px; max-width: 22ch; }
.abre span { color: var(--vida-claro); }
.abertura h1 { font-size: clamp(30px, 7vw, 44px); margin: 0 0 4px; }
.papel { font-size: 17px; margin: 0; opacity: .9; }

main { max-width: 760px; margin: 0 auto; padding: 0 16px; }

/* ---------- Números ---------- */
.numeros { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin: -20px 0 34px; }
.numero { background: #fff; border: 1px solid var(--linha); border-radius: var(--r-seixo); padding: 14px 14px 12px; box-shadow: 0 4px 16px rgba(33, 59, 44, .08); }
.numero strong { display: block; font-family: 'Zilla Slab', Georgia, serif; font-size: 42px; line-height: 1; color: var(--floresta); }
.numero span { display: block; margin-top: 6px; font-size: 14px; line-height: 1.35; color: var(--tinta-suave); }

/* ---------- A cena ---------- */
.cena { font-family: 'Zilla Slab', Georgia, serif; font-weight: 700; font-size: clamp(21px, 4.8vw, 27px); line-height: 1.35; color: var(--floresta); margin: 0 0 40px; padding-left: 18px; border-left: 4px solid var(--vida); }

/* ---------- Cinco escolhas ---------- */
.titulo-escolhas { font-size: clamp(28px, 6.4vw, 38px); color: var(--floresta); margin: 0 0 18px; }
.escolhas { list-style: none; margin: 0 0 40px; padding: 0 0 0 26px; border-left: 2px solid var(--linha); }
.escolha { position: relative; padding: 0 0 30px; }
.escolha::before { content: ""; position: absolute; left: -35px; top: 10px; width: 16px; height: 16px; border-radius: 50%; background: var(--marfim); border: 3px solid var(--vida); }
.escolha:last-child::before { background: var(--vida); }
.quando { font-family: 'Zilla Slab', Georgia, serif; font-weight: 700; font-size: 40px; line-height: 1; color: #3f7a2a; margin: 0 0 2px; text-align: left !important; }
.escolha h3 { font-size: 26px; color: var(--floresta); margin: 0 0 10px; }
.fardas { list-style: none; padding: 0; margin: 4px 0 6px; display: grid; gap: 10px; }
.fardas li { display: grid; gap: 2px; background: #fff; border: 1px solid var(--linha); border-left: 5px solid var(--floresta); border-radius: var(--r-folha); padding: 12px 16px; }
.fardas strong { font-family: 'Zilla Slab', Georgia, serif; font-size: 18px; color: var(--floresta); }
.fardas span { font-size: 15px; line-height: 1.5; }
blockquote { margin: 14px 0 16px; padding: 16px 20px; background: var(--areia-clara); border-radius: var(--r-folha); }
blockquote p { font-family: 'Zilla Slab', Georgia, serif; font-weight: 700; font-size: 22px; line-height: 1.3; margin: 0 0 4px; text-align: left !important; }
cite { font-style: normal; font-size: 14px; color: var(--tinta-suave); }

/* ---------- Manifesto (área de identidade: marca d'água a 15%) ---------- */
.manifesto { position: relative; overflow: hidden; background: var(--mata-noite); color: var(--creme); border-radius: 40px 28px 40px 28px / 28px 40px 28px 40px; margin: 10px 8px 0; padding: 64px 22px; text-align: center; }
.manifesto::before { content: ""; position: absolute; inset: 0; background: url(/img/simbolo-21-creme.svg) center / min(80vw, 520px) no-repeat; opacity: .15; pointer-events: none; }
.manifesto-in { position: relative; max-width: 640px; margin: 0 auto; }
.manifesto-pre { font-size: clamp(18px, 4.4vw, 22px); line-height: 1.45; opacity: .92; margin: 0 0 10px; }
.manifesto-frase { font-family: 'Zilla Slab', Georgia, serif; font-weight: 700; font-size: clamp(24px, 6vw, 34px); line-height: 1.2; margin: 0 0 26px; }
.manifesto h2 { font-size: clamp(30px, 8vw, 54px); line-height: 1.08; margin: 0 0 30px; color: var(--vida-claro); letter-spacing: -.015em; }
.manifesto-cita { font-family: 'Zilla Slab', Georgia, serif; font-weight: 700; font-size: 19px; margin: 0; opacity: .95; }
.manifesto-cita span { display: block; margin-top: 4px; font-family: 'Libre Franklin', Arial, sans-serif; font-weight: 400; font-size: 14px; opacity: .8; }

/* ---------- Assinatura oficial num cartão próprio (opção C) ---------- */
.rodape { width: calc(100% - 32px); max-width: 560px; margin: 34px auto 40px; padding: 14px 20px 16px; text-align: center; color: var(--tinta-suave); background: var(--areia-clara); border: 1px solid var(--linha); border-radius: var(--r-folha); }
.rodape p { margin: 0; }
.assinatura { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 600; color: var(--tinta); }
.assinatura img { width: 24px; height: 24px; border-radius: 6px; margin: 0 4px; }
.assinatura sup { font-size: .6em; }
.descritor { margin-top: 4px !important; font-size: 12px; }
.colofao { margin-top: 6px !important; font-size: 12px; letter-spacing: .25em; text-transform: uppercase; }

/* Selo de Semeadura: margem esquerda, no pé da página, vertical, ascendente, Cinzel âmbar. */
.selo { position: absolute; left: 3px; bottom: 18px; margin: 0; writing-mode: vertical-rl; transform: rotate(180deg); font-family: 'Cinzel', Georgia, serif; font-size: 12px; letter-spacing: .14em; color: var(--ambar); opacity: .75; pointer-events: none; }

/* ---------- Revelar ao rolar: só CSS, só onde o navegador suporta, nunca para quem pede menos movimento ---------- */
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .revela { animation: revelar linear both; animation-timeline: view(); animation-range: entry 0% entry 55%; }
    @keyframes revelar { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }
  }
}

@media (min-width: 720px) {
  .abertura { padding-top: 48px; padding-bottom: 56px; }
  .abertura-in { grid-template-columns: 1fr 300px; align-items: center; gap: 40px; padding: 0 24px; }
  .retrato { order: 2; width: 300px; justify-self: end; }
  main { padding: 0 24px; }
  .numeros { grid-template-columns: repeat(4, 1fr); }
  .manifesto { margin: 10px auto 0; max-width: 1100px; padding: 96px 40px; }
}
@media print {
  body::before, .selo, .manifesto::before { display: none; }
  .abertura, .manifesto { border-radius: 0; }
  .revela { animation: none !important; opacity: 1 !important; transform: none !important; }
}
