/* Rolar a Bíblia v3 — tokens da direção B “Arte e luz” (skill art-direction §1.4).
   Componentes usam SÓ estas variáveis. Contraste conferido (WCAG):
   ink/bg 15.9:1 · muted/bg 11.1:1 · faint/bg 7.1:1 · accent/bg 10.2:1 · on-accent/accent 10.2:1
   ink/surface 13.0:1 · muted/surface 9.1:1 · ink/moss 8.7:1 · muted/moss 6.1:1 */

@font-face{font-family:"Instrument Serif";src:url(fonts/instrument-serif-latin.woff2) format("woff2");font-weight:400;font-style:normal;font-display:swap}
@font-face{font-family:"Instrument Serif";src:url(fonts/instrument-serif-latin-italic.woff2) format("woff2");font-weight:400;font-style:italic;font-display:swap}
@font-face{font-family:"Hanken Grotesk";src:url(fonts/hanken-grotesk-latin.woff2) format("woff2");font-weight:300 700;font-style:normal;font-display:swap}

:root{
  /* Cor — papéis */
  --bg:#14110D;            /* Noite: 60% (com a pintura) */
  --surface:#2A241C;       /* Véu: painéis */
  --surface-2:#3D4330;     /* Musgo: painel de recompensa/plano ativo */
  --ink:#F3EBDD;           /* Osso: texto principal */
  --muted:#CFC6B6;         /* texto secundário (mesma família quente) */
  --faint:#A79E8F;         /* texto terciário, só em fundo sólido */
  --rule:rgba(243,235,221,.26); /* fio 1 px */
  --accent:#E7B76A;        /* Âmbar: ÚNICA cor de ação (10%) */
  --accent-soft:#F7D79C;   /* Manhã: itálico de destaque do versículo */
  --on-accent:#14110D;
  --scrim:20,17,13;        /* RGB da Noite para scrims rgba() */
  --ok:#B9C48F;            /* estado: concluído (10.2:1) */
  --warn:#E39A7E;          /* estado: erro/offline (8.2:1) */

  /* Tipo — famílias e papéis fixos */
  --font-display:"Instrument Serif",Georgia,"Times New Roman",serif; /* versículo, títulos, números */
  --font-text:"Hanken Grotesk",system-ui,-apple-system,"Segoe UI",sans-serif; /* interface, legendas */

  /* Escala (8 passos). tamanho / entrelinha / tracking */
  --t-label:11px;   --lh-label:1.3;  --tr-label:.2em;   /* caixa-alta rotulada */
  --t-caption:12px; --lh-caption:1.45;--tr-caption:0;
  --t-body:15px;    --lh-body:1.55;  --tr-body:0;
  --t-lead:17px;    --lh-lead:1.5;   --tr-lead:0;
  --t-h3:clamp(22px,6vw,26px);  --lh-h3:1.12; --tr-h3:-.005em;
  --t-h2:clamp(34px,9.5vw,40px);--lh-h2:1.02; --tr-h2:-.01em;
  --t-h1:clamp(46px,13.4vw,56px);--lh-h1:.95; --tr-h1:-.015em;
  --t-display:clamp(64px,22vw,96px);--lh-display:.85;--tr-display:-.02em; /* streak, preço grande */
  /* versículo: tamanho escolhido pelo comprimento do texto */
  --t-verse-s:42px; --t-verse-m:36px; --t-verse-l:31px; --t-verse-xl:27px; --lh-verse:1.1; --tr-verse:-.006em;

  --w-regular:400; --w-medium:500; --w-semibold:600;

  /* Espaço — escala de 4 px */
  --s-1:4px; --s-2:8px; --s-3:12px; --s-4:16px; --s-5:20px; --s-6:24px; --s-7:28px; --s-8:32px; --s-10:40px; --s-12:48px; --s-14:56px; --s-16:64px;
  --gutter:var(--s-7);     /* margem lateral mobile (28) */
  --measure:62ch;          /* largura de texto corrido */
  --verse-measure:15em;    /* versículo ~ 30–40 caracteres por linha */
  --top-safe:max(env(safe-area-inset-top),var(--s-5));
  --bottom-safe:max(env(safe-area-inset-bottom),var(--s-5));

  /* Raio — um só: quase zero (editorial) */
  --r:2px;

  /* Elevação — 2 níveis, só para o que flutua */
  --e-0:none;
  --e-1:0 -18px 40px rgba(var(--scrim),.45);   /* painel que sobe (sheet) */

  /* Motion — nomeado */
  --dur-1:160ms;   /* feedback de toque */
  --dur-2:280ms;   /* painel abre/fecha */
  --dur-3:480ms;   /* entrada orquestrada */
  --stagger:70ms;
  --ease-out:cubic-bezier(.2,.7,.2,1);
  --ease-in:cubic-bezier(.5,0,.75,0);
  --ease-inout:cubic-bezier(.45,0,.55,1);
  --kenburns:48s;

  /* Grid — 4 colunas no mobile */
  --cols:4;
}
