/* Novidades públicas (gerado por scripts/public-changelog.js no projeto udo). Claro/escuro pelo sistema. */
:root {
  color-scheme: dark light;
  --bg: #0e0e0f; --surface: #161618; --text: #f2f2f3; --text-2: #c9c9cd; --muted: #8d8d92; --faint: #4a4a4f;
  --line: rgba(255, 255, 255, 0.08);
  --blue: #7aa2ff; --green: #5cc98a; --amber: #f0b955; --red: #ff7d8a; --violet: #b49bff; --teal: #4fd3c7; --pink: #ff8fcf; --gray: #9a9aa0;
  --stage-mix: 14%; --shot-shadow: 0 24px 60px -24px rgba(0, 0, 0, 0.85), 0 0 0 1px rgba(255, 255, 255, 0.06);
  --logo-filter: none;
  --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --hand: 'Caveat', 'Segoe Print', cursive;
}
@media (prefers-color-scheme: light) {
  :root {
    --bg: #f5f5f3; --surface: #ffffff; --text: #121213; --text-2: #34343a; --muted: #66666c; --faint: #b4b4b8;
    --line: rgba(0, 0, 0, 0.09);
    --blue: #2f64d6; --green: #1f8a4c; --amber: #b47608; --red: #cf3447; --violet: #6b4cd6; --teal: #12877d; --pink: #c02f84; --gray: #6b6b73;
    --stage-mix: 11%; --shot-shadow: 0 24px 50px -28px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(0, 0, 0, 0.06);
    --logo-filter: invert(1);
  }
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 17px/1.6 var(--sans); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--text); outline-offset: 3px; border-radius: 6px; }
.nv-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* topo */
.nv-top { max-width: 1180px; margin: 0 auto; padding: 22px 28px; display: flex; align-items: center; justify-content: space-between; }
.nv-logo { display: block; filter: var(--logo-filter); }
.nv-back { font-size: 0.9rem; color: var(--muted); text-decoration: none; }
.nv-back:hover { color: var(--text); }

/* abertura: o título enorme, a frase à mão e o índice das versões */
.nv-hero { max-width: 1180px; margin: 0 auto; padding: 56px 28px 40px; }
.nv-hero h1 { margin: 0; font-size: clamp(3.4rem, 11vw, 8.5rem); font-weight: 900; letter-spacing: -0.055em; line-height: 0.9; }
.nv-hand { margin: 10px 0 0 4px; font: 700 clamp(1.4rem, 3vw, 1.9rem)/1.2 var(--hand); color: var(--muted); }
.nv-index { display: flex; flex-wrap: wrap; gap: 4px 18px; margin-top: 44px; padding-top: 18px; border-top: 1px solid var(--line); }
.nv-index a { font-size: 0.92rem; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--muted); text-decoration: none; padding: 2px 0; }
.nv-index a:hover { color: var(--text); }
.nv-index a.is-latest { color: var(--text); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; }

/* capítulo: número preso na margem + conteúdo */
.nv-chapter { display: block; max-width: 1180px; margin: 0 auto; padding: 0 28px; }
.nv-row { display: grid; grid-template-columns: 210px minmax(0, 1fr); column-gap: 40px; }
section.nv-chapter { padding-top: 64px; padding-bottom: 40px; }
section.nv-chapter + section.nv-chapter, section.nv-chapter + details { border-top: 1px solid var(--line); }
.nv-gutter { position: relative; }
.nv-num { position: sticky; top: 28px; display: block; font-size: 4.2rem; font-weight: 900; letter-spacing: -0.06em; line-height: 0.9; font-variant-numeric: tabular-nums; color: var(--faint); }
.is-latest .nv-num { color: var(--text); }
.nv-head h2 { margin: 6px 0 0; max-width: 20ch; font-size: clamp(1.9rem, 4vw, 3rem); font-weight: 800; letter-spacing: -0.035em; line-height: 1.04; text-wrap: balance; }
.nv-date { margin: 0; display: flex; flex-wrap: wrap; gap: 10px; align-items: baseline; font-size: 0.92rem; color: var(--muted); }
.nv-kind { font: 700 1.15rem/1 var(--hand); color: var(--text-2); }
.nv-lead { margin: 18px 0 8px; max-width: 62ch; font-size: 1.15rem; line-height: 1.6; color: var(--text-2); }

/* versões antigas: uma linha que abre o capítulo */
details.nv-chapter { border-top: 1px solid var(--line); }
details.nv-chapter > summary { padding: 26px 0; cursor: pointer; list-style: none; }
details.nv-chapter > summary::-webkit-details-marker { display: none; }
details.nv-chapter .nv-num { position: static; font-size: 2.6rem; }
details.nv-chapter[open] .nv-num { position: sticky; color: var(--text); }
details.nv-chapter h2 { font-size: clamp(1.25rem, 2.4vw, 1.6rem); max-width: 34ch; }
.nv-count { margin: 8px 0 0; font-size: 0.9rem; color: var(--muted); }
.nv-count::after { content: 'Abrir'; margin-left: 14px; font-weight: 600; color: var(--text); text-decoration: underline; text-underline-offset: 4px; }
details[open] .nv-count::after { content: 'Fechar'; }
details.nv-chapter summary:hover h2 { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px; }
details.nv-chapter > .nv-row { padding-bottom: 48px; }

/* cada novidade: a mesa com a foto de um lado, o texto do outro (alternando) */
.nv-feature { --c: var(--gray); display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 44px; align-items: center; margin-top: 64px; }
.nv-feature:nth-of-type(even) .nv-stage { order: 2; }
.nv-feature.is-text { grid-template-columns: minmax(0, 1fr); max-width: 62ch; }
.nv-feature[data-tone="blue"] { --c: var(--blue); } .nv-feature[data-tone="green"] { --c: var(--green); }
.nv-feature[data-tone="amber"] { --c: var(--amber); } .nv-feature[data-tone="red"] { --c: var(--red); }
.nv-feature[data-tone="violet"] { --c: var(--violet); } .nv-feature[data-tone="teal"] { --c: var(--teal); }
.nv-feature[data-tone="pink"] { --c: var(--pink); } .nv-feature[data-tone="gray"] { --c: var(--gray); }

.nv-stage { position: relative; margin: 0; aspect-ratio: 16 / 11; border-radius: 22px; overflow: hidden; container-type: size;
  background: color-mix(in srgb, var(--c) var(--stage-mix), var(--surface)); }
.nv-stage::after { content: ''; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px var(--line); pointer-events: none; }
.nv-shot { --w: 84cqw; --h: 80cqh; position: absolute; left: 50%; top: 50%; translate: -50% -50%; display: block;
  width: min(var(--w), var(--h) * (var(--ar))); aspect-ratio: var(--ar); }
.nv-shot img { display: block; width: 100%; height: 100%; border-radius: 12px; box-shadow: var(--shot-shadow); }
.nv-stage.is-wide { aspect-ratio: 16 / 8; }
.nv-stage.is-wide .nv-shot { --w: 88cqw; }
/* dois quadros: o 1.º atrás, à esquerda e em cima; o 2.º à frente, embaixo à direita */
.nv-stage.is-pair .nv-shot { --w: 60cqw; --h: 66cqh; translate: none; }
.nv-stage.is-pair .nv-shot-1 { left: 7%; top: 8%; }
.nv-stage.is-pair .nv-shot-2 { left: auto; top: auto; right: 7%; bottom: 8%; }

.nv-topic { margin: 0 0 8px; display: inline-flex; align-items: center; gap: 8px; font-size: 0.9rem; font-weight: 600; color: var(--c); }
.nv-topic::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.nv-copy h3 { margin: 0; font-size: clamp(1.4rem, 2.4vw, 1.75rem); font-weight: 800; letter-spacing: -0.025em; line-height: 1.15; text-wrap: balance; }
.nv-desc { margin: 12px 0 0; max-width: 52ch; color: var(--text-2); }
.nv-steps { margin: 18px 0 0; padding: 0; list-style: none; counter-reset: s; max-width: 52ch; }
.nv-steps li { counter-increment: s; position: relative; padding: 8px 0 8px 36px; font-size: 0.95rem; line-height: 1.5; color: var(--muted); border-top: 1px solid var(--line); }
.nv-steps li::before { content: counter(s); position: absolute; left: 0; top: 8px; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center;
  font-size: 0.75rem; font-weight: 700; color: var(--text); background: color-mix(in srgb, var(--c) 22%, transparent); }
.nv-steps b { color: var(--text); font-weight: 650; }
.nv-try { margin: 18px 0 0; font: 500 1.35rem/1.25 var(--hand); color: var(--muted); transform: rotate(-1.2deg); transform-origin: left; }
.nv-try q { color: var(--c); quotes: '“' '”'; }

/* o resto da versão: lista em duas colunas e correções recolhidas */
.nv-also { margin-top: 72px; padding-top: 22px; border-top: 1px solid var(--line); }
.nv-also h4, .nv-fixes summary { margin: 0; font-size: 1rem; font-weight: 700; }
.nv-also ul { margin: 14px 0 0; padding: 0; list-style: none; columns: 2 300px; column-gap: 40px; }
.nv-also li { break-inside: avoid; position: relative; padding: 0 0 12px 18px; font-size: 0.95rem; line-height: 1.55; color: var(--text-2); }
.nv-also li::before { content: ''; position: absolute; left: 0; top: 0.62em; width: 6px; height: 6px; border-radius: 50%; background: var(--faint); }
.nv-fixes { margin-top: 18px; }
.nv-fixes summary { cursor: pointer; width: fit-content; color: var(--muted); font-weight: 600; text-decoration: underline; text-underline-offset: 4px; }
.nv-fixes summary:hover { color: var(--text); }
.nv-fixes ul { margin: 12px 0 0; padding-left: 18px; color: var(--muted); font-size: 0.93rem; }
.nv-fixes li { margin-bottom: 6px; }

/* rodapé */
.nv-foot { max-width: 1180px; margin: 64px auto 0; padding: 26px 28px 40px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 16px; font-size: 0.88rem; color: var(--muted); }
.nv-foot p { margin: 0; }

/* tela estreita: o número sobe para cima do título; a foto em cima do texto */
@media (max-width: 860px) {
  .nv-chapter { padding: 0 20px; }
  .nv-row { grid-template-columns: minmax(0, 1fr); }
  section.nv-chapter { padding-top: 48px; }
  .nv-num, details.nv-chapter[open] .nv-num { position: static; font-size: 2.6rem; margin-bottom: 8px; }
  details.nv-chapter .nv-num { font-size: 1.9rem; }
  details.nv-chapter > .nv-row > .nv-gutter { display: none; }
  .nv-feature, .nv-feature:nth-of-type(even) { grid-template-columns: minmax(0, 1fr); gap: 22px; margin-top: 48px; }
  .nv-feature:nth-of-type(even) .nv-stage { order: 0; }
  .nv-stage { border-radius: 18px; }
  .nv-shot { --w: 90cqw; --h: 86cqh; }
  .nv-stage.is-pair .nv-shot { --w: 66cqw; --h: 72cqh; }
  .nv-hero, .nv-top, .nv-foot { padding-left: 20px; padding-right: 20px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
