/* Niko Niko — Brandbook 2026. Páginas de 1280 × 720 (16:9): na tela encolhem com --k, no PDF saem 1:1. */

@page { size: 1280px 720px; margin: 0; }

:root {
  --arroz: #faf6ee;
  --papel: #f3ede1;
  --nanquim: #231f20;
  --amarelo: #e5a33b;
  --vermelho: #cc4230;
  --azul: #4a82aa;
  --cinza: #7a7274;
  --apoio: #b9b1ab;
  --linha: #e3dccd;
  --linha-escuro: rgba(250, 246, 238, .14);
  --fonte: 'Nunito', ui-rounded, 'Segoe UI', system-ui, sans-serif;
  --ja: 'Yu Gothic', 'YuGothic', 'Hiragino Sans', 'Noto Sans JP', 'Meiryo', sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--fonte); color: var(--nanquim); background: #d9d0bf; -webkit-font-smoothing: antialiased; }
h1, h2, h3, p, figure, ul, ol, dl, dd { margin: 0; padding: 0; }
img, svg { display: block; max-width: 100%; }
em { font-style: normal; color: var(--vermelho); }

/* recolorir figuras (o fill do SVG é atributo; o CSS ganha dele) */
.neg path[fill="#231f20"] { fill: #ffffff; }
.mono-branco path:not([fill="none"]) { fill: #ffffff; } .mono-branco path[stroke] { stroke: #ffffff; }
.mono-nanquim path:not([fill="none"]) { fill: var(--nanquim); } .mono-nanquim path[stroke] { stroke: var(--nanquim); }
.mono-amarelo path:not([fill="none"]) { fill: var(--amarelo); } .mono-amarelo path[stroke] { stroke: var(--amarelo); }
.mono-vermelho path:not([fill="none"]) { fill: var(--vermelho); } .mono-vermelho path[stroke] { stroke: var(--vermelho); }
.mono-azul path:not([fill="none"]) { fill: var(--azul); } .mono-azul path[stroke] { stroke: var(--azul); }

/* ---------- barra (só na tela) ---------- */
.barra {
  position: sticky; top: 0; z-index: 10; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  height: 54px; padding: 0 20px; background: var(--nanquim); color: var(--arroz); font-size: 14px; font-weight: 700;
}
.barra a { color: var(--arroz); text-decoration: none; }
.barra__voltar { opacity: .75; }
.barra__voltar:hover { opacity: 1; }
.barra__pdf { padding: 7px 14px; border-radius: 999px; background: var(--amarelo); color: var(--nanquim) !important; font-weight: 800; }

.livro { display: flex; flex-direction: column; align-items: center; gap: 28px; padding: 28px 16px 64px; }

/* ---------- página ---------- */
.pg {
  zoom: var(--k, 1);
  position: relative; flex: none; display: flex; flex-direction: column; gap: 26px;
  width: 1280px; height: 720px; padding: 52px 64px; overflow: hidden;
  background: var(--arroz); color: var(--nanquim);
  box-shadow: 0 30px 60px -30px rgba(35, 31, 32, .45);
}
.pg--escura { background: var(--nanquim); color: var(--arroz); }
.pg__topo { display: flex; justify-content: space-between; font-size: 12px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--cinza); }
.pg--escura .pg__topo { color: var(--apoio); }
.pg__num { position: absolute; right: 64px; bottom: 40px; font-size: 12px; font-weight: 700; letter-spacing: .12em; color: var(--cinza); }
.pg--escura .pg__num { color: var(--apoio); }
.pg h2 { font-weight: 900; font-size: 54px; line-height: 1.02; letter-spacing: -.025em; }
.pg__texto { margin-top: 22px; max-width: 44ch; font-size: 18px; line-height: 1.6; color: var(--cinza); }
.pg__texto strong { color: var(--nanquim); font-weight: 800; }
.pg--escura .pg__texto { color: var(--apoio); }
.pg__rodape { margin-top: auto; font-size: 13px; letter-spacing: .16em; text-transform: uppercase; color: var(--cinza); }
.pg__nota { margin-top: auto; max-width: 90ch; font-size: 14px; color: var(--cinza); }
.pg--escura .pg__nota { color: var(--apoio); }
.rot { font-size: 11.5px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--cinza); margin-bottom: 12px; }
.pg--escura .rot { color: var(--apoio); }

.duas { flex: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; min-height: 0; }
.duas--larga { grid-template-columns: 1.1fr 1fr; }

.medidas div { display: grid; grid-template-columns: 120px 1fr; gap: 16px; padding: 9px 0; border-top: 1px solid var(--linha); font-size: 15.5px; font-weight: 600; }
.medidas dt { font-size: 11.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--cinza); padding-top: 2px; }

/* ---------- 1 · capa ---------- */
.capa__corpo { flex: 1; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 40px; min-height: 0; }
.capa__txt { display: flex; flex-direction: column; justify-content: flex-end; height: 100%; padding-bottom: 6px; }
.capa h1 { font-weight: 900; font-size: 168px; line-height: .84; letter-spacing: -.045em; }
.capa__ja { margin-top: 34px; font-family: var(--ja); font-weight: 700; font-size: 22px; letter-spacing: .3em; color: var(--vermelho); }
.capa__logo { width: 452px; margin: -8px 34px 0 0; }
.capa__logo svg { width: 100%; height: auto; }

/* ---------- 2 · sumário ---------- */
.sumario__corpo { flex: 1; display: grid; grid-template-columns: 1fr 1.25fr; gap: 64px; align-items: start; padding-top: 10px; }
.sumario h2 { font-size: 88px; }
.sumario ol { list-style: none; }
.sumario li { display: flex; align-items: baseline; gap: 16px; padding: 12px 0; border-top: 1px solid var(--linha); font-size: 20px; font-weight: 800; }
.sumario li:last-child { border-bottom: 1px solid var(--linha); }
.sumario li span { font-size: 12px; color: var(--cinza); width: 22px; }
.sumario li em { margin-left: auto; font-style: normal; font-size: 12px; color: var(--cinza); }

/* ---------- 3 · conceito ---------- */
.conceito__ja { font-family: var(--ja); font-weight: 700; font-size: 84px; line-height: 1; letter-spacing: .04em; color: var(--vermelho); margin-bottom: 28px; }
.conceito h2 { font-size: 66px; }
.ideias { list-style: none; display: flex; flex-direction: column; gap: 22px; }
.ideias li { display: flex; gap: 22px; align-items: center; }
.ideias__fig { display: grid; place-items: center; flex: none; width: 78px; height: 78px; padding: 12px; border-radius: 22px; background: var(--papel); }
.ideias__fig svg { width: 100%; height: 100%; }
.ideias strong { display: block; font-weight: 900; font-size: 20px; margin-bottom: 2px; }
.ideias p { font-size: 15.5px; line-height: 1.5; color: var(--cinza); }

/* ---------- 4 · símbolo ---------- */
.soma { flex: 1; display: grid; grid-template-columns: 1fr auto 1fr auto 1fr auto 1.35fr; align-items: center; gap: 18px; min-height: 0; }
.soma figure { display: flex; flex-direction: column; gap: 18px; }
.soma__fig { display: grid; place-items: center; aspect-ratio: 507 / 426; padding: 16px; border-radius: 20px; background: #fff; box-shadow: inset 0 0 0 1px var(--linha); }
.soma__fig svg { width: 100%; height: 100%; }
.soma__total .soma__fig { padding: 22px; background: var(--papel); box-shadow: none; }
.soma figcaption { font-size: 14px; line-height: 1.5; color: var(--cinza); min-height: 63px; }
.soma figcaption strong { display: block; font-size: 17px; font-weight: 900; color: var(--nanquim); }
.soma__op { font-size: 40px; font-weight: 900; color: var(--linha); margin-bottom: 80px; }
.simbolo .pg__nota { margin-top: 0; }

/* ---------- 5 · lettering ---------- */
.lettering__grande { width: 860px; margin: 18px auto 0; }
.lettering__grande svg { width: 100%; height: auto; }
.quatro { margin-top: auto; display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.quatro__fig { display: flex; align-items: flex-end; height: 70px; margin-bottom: 18px; }
.quatro__fig svg { height: 100%; width: auto; }
.quatro__fig--ko svg path[fill="#cc4230"] { fill: rgba(250, 246, 238, .16); }
.quatro__fig--ko svg path[stroke-width="5"] { stroke: rgba(250, 246, 238, .16); }
.quatro__fig.neg svg { height: 28px; }
.quatro h3 { font-weight: 900; font-size: 18px; margin-bottom: 6px; }
.quatro p { font-size: 14.5px; line-height: 1.55; color: var(--apoio); }

/* ---------- 6 · versões ---------- */
.versoes h2 { font-size: 48px; }
.versoes__grade { flex: 1; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); grid-template-rows: repeat(2, minmax(0, 1fr)); gap: 14px; min-height: 0; }
.v { display: flex; flex-direction: column; justify-content: space-between; min-height: 0; padding: 20px; border-radius: 18px; }
.v img, .v__svg { flex: 1; min-height: 0; width: 100%; object-fit: contain; }
.v__svg svg { width: 100%; height: 100%; }
.v figcaption { margin-top: 12px; font-size: 12.5px; line-height: 1.4; color: var(--cinza); }
.v figcaption strong { display: block; font-weight: 900; font-size: 14.5px; color: var(--nanquim); }
.v--claro { background: var(--papel); }
.v--branco { background: #fff; box-shadow: inset 0 0 0 1px var(--linha); }
.v--escuro { background: var(--nanquim); }
.v--vermelho { background: var(--vermelho); }
.v--escuro figcaption, .v--escuro figcaption strong, .v--vermelho figcaption, .v--vermelho figcaption strong { color: #fff; }
.v--escuro figcaption, .v--vermelho figcaption { opacity: .82; }
.v--alto img { padding: 18px 6px; }
.v--largo img { padding: 4px 30px; }
.v__mini { padding: 18px 0 8px; }
/* ordem na grade: 2 altos à esquerda, símbolo e carinha em cima, lettering largo embaixo; uma cor no fim */
.versoes__grade .v:nth-child(1) { grid-column: 1; grid-row: 1 / span 2; }
.versoes__grade .v:nth-child(2) { grid-column: 2; grid-row: 1 / span 2; }
.versoes__grade .v:nth-child(3) { grid-column: 3; grid-row: 1; }
.versoes__grade .v:nth-child(4) { grid-column: 4; grid-row: 1; }
.versoes__grade .v:nth-child(5) { grid-column: 3 / span 2; grid-row: 2; }
.versoes__grade .v:nth-child(6) { grid-column: 5; grid-row: 1; }
.versoes__grade .v:nth-child(7) { grid-column: 5; grid-row: 2; }

/* ---------- 7 · proteção ---------- */
.protecao__fig svg { height: 560px; width: auto; margin: -16px auto 0; }
.f-area { fill: rgba(229, 163, 59, .22); stroke: var(--amarelo); stroke-width: 1.6; stroke-dasharray: 7 5; }
.f-livre { fill: var(--arroz); }
.f-cota line { stroke: var(--nanquim); stroke-width: 1.4; }
.f-cota text { font-family: var(--fonte); font-weight: 800; font-style: italic; font-size: 26px; fill: var(--nanquim); }
.protecao h2 { font-size: 50px; }
.protecao .pg__texto { margin-top: 16px; font-size: 17px; }
.minimos { margin-top: 30px; padding-top: 18px; border-top: 1px solid var(--linha); }
.minimos__grade { display: flex; align-items: flex-end; gap: 30px; }
.minimos__grade figure { display: flex; flex-direction: column; gap: 12px; }
.minimos__grade img { height: auto; }
.minimos__grade figcaption { font-size: 13px; line-height: 1.4; color: var(--cinza); white-space: nowrap; }
.minimos__grade strong { display: block; font-size: 14px; font-weight: 900; color: var(--nanquim); }

/* ---------- 8 · cores ---------- */
.cores h2 { font-size: 46px; }
.cores__grade { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.c { display: flex; flex-direction: column; gap: 3px; font-size: 13px; }
.c i { display: block; height: 176px; margin-bottom: 12px; border-radius: 18px; background: var(--c); box-shadow: inset 0 0 0 1px var(--linha-escuro); }
.c strong { font-weight: 900; font-size: 21px; }
.c span { color: var(--apoio); margin-bottom: 6px; }
.c code { font-family: var(--fonte); font-weight: 600; font-size: 13.5px; font-variant-numeric: tabular-nums; }
.cores__base { display: grid; grid-template-columns: 1.4fr 1fr; gap: 48px; align-items: end; }
.proporcao { display: flex; gap: 4px; height: 44px; }
.proporcao i { flex: var(--p); border-radius: 10px; background: var(--c); box-shadow: inset 0 0 0 1px rgba(250, 246, 238, .3); }
.cores__arco { display: flex; align-items: center; gap: 20px; }
.cores__arco svg { width: 96px; height: 52px; flex: none; fill: none; stroke-width: 8; }
.cores__arco p { font-size: 14.5px; color: var(--apoio); }
.cores .pg__nota { margin-top: 0; }

/* ---------- 9 · tipografia ---------- */
.tipografia__aa { display: flex; flex-direction: column; justify-content: space-between; height: 100%; max-height: 500px; padding: 30px 34px; border-radius: 24px; background: var(--amarelo); }
.tipografia__aa .aa { font-weight: 900; font-size: 250px; line-height: .9; letter-spacing: -.04em; }
.tipografia__aa p { font-size: 14.5px; color: rgba(35, 31, 32, .78); }
.tipografia__aa strong { display: block; font-size: 30px; font-weight: 900; color: var(--nanquim); }
.tipografia h2 { font-size: 46px; }
.hierarquia { list-style: none; margin-top: 24px; }
.hierarquia li { padding: 10px 0; border-top: 1px solid var(--linha); }
.hierarquia span { font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--cinza); }
.h-tit { font-weight: 900; font-size: 32px; letter-spacing: -.02em; }
.h-sub { font-weight: 800; font-size: 21px; }
.h-rot { font-weight: 700; font-size: 14px; letter-spacing: .14em; text-transform: uppercase; }
.h-txt { font-size: 16px; color: var(--cinza); }
.glifos { letter-spacing: .04em; text-transform: none; font-size: 15px; font-weight: 600; }

/* ---------- 10 · elementos ---------- */
.elementos h2 { font-size: 48px; }
.tres-cards { flex: 1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; min-height: 0; }
.el { display: flex; flex-direction: column; justify-content: space-between; min-height: 0; padding: 24px; border-radius: 22px; }
.el--arroz { background: var(--papel); }
.el--vermelho { background: var(--vermelho); color: #fff; }
.el__fig { flex: 1; display: grid; place-items: center; min-height: 0; }
.el figcaption { margin-top: 16px; font-size: 14px; line-height: 1.5; color: var(--cinza); }
.el figcaption strong { display: block; font-size: 18px; font-weight: 900; color: var(--nanquim); }
.el--vermelho figcaption, .el--vermelho figcaption strong { color: #fff; }
.el--vermelho figcaption { opacity: .88; }
.moldura { width: 270px; height: 270px; fill: none; stroke-width: 10; }
.moldura circle { stroke: none; }
.moldura text { font-family: var(--fonte); font-weight: 700; font-size: 15px; fill: var(--cinza); stroke: none; }
.el__fig--carinha svg { width: 150px; height: 150px; }
.padrao { grid-template-columns: repeat(5, 1fr); gap: 16px 18px; align-content: center; padding: 6px 4px; }
.padrao__item svg { width: 44px; height: 44px; }

/* ---------- 11 · aplicações ---------- */
.aplicacoes { gap: 22px; }
.aplicacoes h2 { font-size: 46px; }
.pulseira { position: relative; display: flex; align-items: center; gap: 26px; width: 100%; height: 86px; padding: 0 0 0 26px; border-radius: 43px 12px 12px 43px; background: #fff; box-shadow: 0 1px 0 rgba(35, 31, 32, .06), 0 22px 40px -26px rgba(35, 31, 32, .5); overflow: hidden; }
.pulseira__carinha svg { width: 46px; height: 46px; }
.pulseira__letras svg { width: 196px; height: auto; }
.pulseira__campos { display: flex; gap: 30px; padding-left: 26px; border-left: 2px dashed var(--linha); font-size: 15px; font-weight: 800; }
.pulseira__campos span { display: flex; flex-direction: column; line-height: 1.2; }
.pulseira__campos small { font-size: 10px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--cinza); }
.pulseira__aba { margin-left: auto; align-self: stretch; width: 120px; border-left: 2px dashed var(--linha); background: linear-gradient(var(--amarelo) 0 33.4%, var(--vermelho) 33.4% 66.7%, var(--azul) 66.7%); background-clip: content-box; padding-left: 8px; }
.aplicacoes__grade { flex: 1; display: flex; justify-content: space-between; gap: 40px; min-height: 0; }
.ap { display: flex; flex-direction: column; }
.cracha { position: relative; display: flex; flex-direction: column; align-items: center; width: 196px; height: 290px; padding: 34px 20px 18px; border-radius: 16px; background: #fff; box-shadow: 0 22px 40px -26px rgba(35, 31, 32, .5), inset 0 -10px 0 var(--azul); text-align: center; }
.cracha__furo { position: absolute; top: 12px; left: 50%; width: 44px; height: 8px; border-radius: 4px; background: var(--papel); transform: translateX(-50%); box-shadow: inset 0 1px 2px rgba(35, 31, 32, .2); }
.cracha__simbolo svg { width: 96px; height: auto; }
.cracha strong { margin-top: 16px; font-size: 21px; font-weight: 900; }
.cracha__cargo { font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--azul); }
.cracha__letras { margin-top: auto; margin-bottom: 12px; }
.cracha__letras svg { width: 110px; height: auto; }
.avatares { display: flex; gap: 22px; }
.avatar { display: grid; place-items: center; width: 150px; height: 150px; border-radius: 50%; background: var(--papel); box-shadow: inset 0 0 0 1px var(--linha); }
.avatar svg { width: 104px; height: auto; }
.avatar--vermelho { background: var(--vermelho); box-shadow: none; }
.avatar--vermelho svg { width: 74px; }
.post { position: relative; display: flex; flex-direction: column; width: 232px; height: 290px; padding: 24px; border-radius: 16px; background: var(--azul); color: #fff; box-shadow: 0 22px 40px -26px rgba(35, 31, 32, .5); }
.post__carinha svg { width: 46px; height: 46px; }
.post__rot { margin-top: auto; font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; opacity: .85; }
.post__tit { margin-top: 4px; font-size: 30px; font-weight: 900; line-height: 1.02; letter-spacing: -.02em; }
.post__letras { margin-top: 18px; }
.post__letras svg { width: 110px; height: auto; }
.post__letras path:not([fill="none"]) { fill: #fff; } .post__letras path[stroke] { stroke: #fff; }

/* ---------- 12 · não faça ---------- */
.naofaca h2 { font-size: 48px; }
.naofaca__grade { flex: 1; display: grid; grid-template-columns: repeat(4, 1fr); grid-template-rows: repeat(2, minmax(0, 1fr)); gap: 14px; min-height: 0; }
.erro { position: relative; display: flex; flex-direction: column; min-height: 0; padding: 16px 18px 16px; border-radius: 18px; background: var(--papel); }
.erro__x { position: absolute; left: 12px; top: 12px; z-index: 1; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--vermelho); color: #fff; font-size: 12px; font-weight: 900; }
.erro__fig { flex: 1; display: grid; place-items: center; min-height: 0; padding: 10px 14px 4px; }
.erro__fig svg { height: 136px; width: auto; max-width: 100%; }
.erro__fig--larga svg { width: 100%; height: auto; }
.erro figcaption { font-size: 12.5px; line-height: 1.4; color: var(--cinza); }
.erro figcaption strong { display: block; font-weight: 900; font-size: 14px; color: var(--nanquim); margin-bottom: 1px; }
.erro--estica .erro__fig svg { width: 120px; height: 136px; transform: scaleX(1.5); }
.erro--troca path[fill="#e5a33b"] { fill: var(--azul); }
.erro--troca path[fill="#4a82aa"] { fill: var(--amarelo); }
.erro--fonte text { font-family: Georgia, 'Times New Roman', serif; font-style: italic; font-size: 30px; fill: var(--nanquim); }
.erro--fundo { background: var(--vermelho); }
.erro--fundo figcaption, .erro--fundo figcaption strong { color: #fff; }
.erro--fundo .erro__x { background: #fff; color: var(--vermelho); }
.erro--sombra .erro__fig svg { filter: drop-shadow(6px 8px 0 rgba(74, 130, 170, .55)) drop-shadow(0 10px 12px rgba(35, 31, 32, .35)); }
.erro--gira .erro__fig svg { transform: rotate(-24deg); }
.erro__fig--monta { display: flex; align-items: center; justify-content: center; gap: 6px; }
.erro__fig--monta svg:first-child { width: 60%; height: auto; }
.erro__fig--monta svg:last-child { width: 34%; height: auto; }

/* ---------- 13 · contracapa ---------- */
.contracapa { align-items: center; justify-content: center; }
.contracapa__logo { width: 330px; margin-top: -20px; }
.contracapa__logo svg { width: 100%; height: auto; }
.contracapa__assina { position: absolute; left: 64px; right: 64px; bottom: 44px; display: flex; justify-content: space-between; align-items: center; font-size: 12px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--apoio); }
.contracapa__assina span[lang="ja"] { font-family: var(--ja); letter-spacing: .3em; color: var(--vermelho); font-size: 15px; }

@media (max-width: 600px) {
  .barra { font-size: 12.5px; padding: 0 12px; }
  .barra__tit { display: none; }
}

/* ---------- impressão / PDF ---------- */
@media print {
  body { background: none; }
  .barra { display: none; }
  .livro { display: block; padding: 0; }
  .pg { zoom: 1; box-shadow: none; break-after: page; page-break-after: always; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .pg:last-child { break-after: auto; page-break-after: auto; }
}
