/* ==========================================================================
   Conversando com o Pediatra — design editorial
   Fraunces (display) · Newsreader (texto) · DM Sans (rótulos)
   ========================================================================== */

:root {
  --paper: #F5EEE2;
  --paper-2: #EFE5D4;
  --paper-3: #E6D9C3;
  --card: #FBF7F0;
  --ink: #1F1632;
  --ink-2: #3D3452;
  --muted: #71677F;
  --line: rgba(31, 22, 50, .13);
  --line-2: rgba(31, 22, 50, .24);

  --coral: #E8553D;
  --mustard: #EFB43B;
  --purple: #6B43A8;
  --plum: #2A1B45;
  --pink: #F4A7B9;
  --cyan: #2BB2BD;
  --orange: #F4762A;
  --salmon: #F39A84;
  --cream: #FFF3E4;

  --f-display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --f-text: "Newsreader", "Iowan Old Style", Georgia, serif;
  --f-ui: "DM Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;

  --fs-step: 0;
  --read-size: calc(clamp(18px, 0.55vw + 14.6px, 21.5px) + var(--fs-step) * 1.5px);
  --gutter: clamp(16px, 4.2vw, 64px);
  --maxw: 1520px;
  --radius: 22px;
  --ease: cubic-bezier(.2, .7, .1, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);

  /* tema do capítulo (padrão) */
  --c-bg: var(--mustard);
  --c-fg: #241638;
  --c-a1: var(--purple);
  --c-a2: var(--coral);
  --c-ink: var(--purple);
  --c-soft: color-mix(in srgb, var(--c-bg) 16%, var(--paper));
  --c-soft-2: color-mix(in srgb, var(--c-bg) 30%, var(--paper));

  color-scheme: light;
}

:root[data-theme="dark"] {
  --paper: #17111F;
  --paper-2: #1F1829;
  --paper-3: #2A2236;
  --card: #1E1728;
  --ink: #F2EADF;
  --ink-2: #D9CFC3;
  --muted: #A99EB4;
  --line: rgba(242, 234, 223, .12);
  --line-2: rgba(242, 234, 223, .24);
  --c-soft: color-mix(in srgb, var(--c-bg) 13%, var(--paper));
  --c-soft-2: color-mix(in srgb, var(--c-bg) 24%, var(--paper));
  color-scheme: dark;
}
:root[data-theme="dark"] .page-chapter { --c-ink: color-mix(in srgb, var(--c-bg) 70%, #fff); }

@view-transition { navigation: auto; }

*, *::before, *::after { box-sizing: border-box; }
html { overflow-x: clip; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--f-text);
  font-size: 18px;
  line-height: 1.55;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
body::before { /* grão de papel */
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 1000; opacity: .045; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
:root[data-theme="dark"] body::before { mix-blend-mode: screen; opacity: .03; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
::selection { background: var(--c-bg, var(--mustard)); color: var(--c-fg, var(--ink)); }
:focus-visible { outline: 3px solid var(--coral); outline-offset: 3px; border-radius: 4px; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 2000; background: var(--ink); color: var(--paper); padding: 10px 16px; border-radius: 999px; font-family: var(--f-ui); }
.skip:focus { left: 16px; }

/* ---------- rótulos ---------- */
.kicker, .label {
  font-family: var(--f-ui); font-size: 12.5px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  margin: 0 0 18px; display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center;
}
.label { color: var(--muted); }
.label-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--c-bg); display: inline-block; }
.pill { display: inline-block; padding: 6px 12px; border-radius: 999px; background: var(--ink); color: var(--paper); letter-spacing: .08em; }

.btn {
  display: inline-flex; align-items: center; gap: 12px; padding: 17px 26px; border-radius: 999px;
  font-family: var(--f-ui); font-size: 15px; font-weight: 600; text-decoration: none; letter-spacing: .01em;
  transition: transform .5s var(--ease-out), background .3s, color .3s, box-shadow .5s var(--ease-out);
}
.btn i { font-style: normal; transition: transform .5s var(--ease-out); display: inline-block; }
.btn:hover i { transform: translateX(5px); }
.btn-ink { background: var(--ink); color: var(--paper); box-shadow: 0 10px 30px -12px rgba(31,22,50,.55); }
.btn-ink:hover { transform: translateY(-2px); box-shadow: 0 18px 38px -14px rgba(31,22,50,.6); }
.btn-line { border: 1.5px solid var(--line-2); }
.btn-line:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.link-arrow { font-family: var(--f-ui); font-weight: 600; font-size: 15px; text-decoration: none; border-bottom: 1.5px solid currentColor; padding-bottom: 3px; }
.link-arrow i { font-style: normal; display: inline-block; transition: transform .4s var(--ease-out); }
.link-arrow:hover i { transform: translateX(4px); }

/* ---------- barra superior ---------- */
.bar { position: sticky; top: 0; z-index: 50; transition: background .4s, box-shadow .4s, transform .5s var(--ease-out); }
.bar-in { max-width: var(--maxw); margin: 0 auto; padding: 14px var(--gutter); display: flex; align-items: center; gap: 24px; }
.bar.is-scrolled { background: color-mix(in srgb, var(--paper) 86%, transparent); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); box-shadow: 0 1px 0 var(--line); }
.bar.is-hidden { transform: translateY(-100%); }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; flex-shrink: 0; }
.brand-mark { position: relative; width: 34px; height: 34px; border-radius: 50%; background: var(--coral); overflow: hidden; }
.brand-mark i:first-child { position: absolute; inset: 7px; border-radius: 50%; background: var(--mustard); }
.brand-mark i:last-child { position: absolute; left: 50%; top: 0; bottom: 0; width: 50%; background: var(--plum); border-radius: 0 999px 999px 0; }
.brand-t { font-family: var(--f-display); font-weight: 650; font-size: 19px; letter-spacing: -.01em; font-variation-settings: "SOFT" 100; white-space: nowrap; }
.brand-t em { font-weight: 400; font-style: italic; }
.bar-chapter { font-family: var(--f-ui); font-size: 13.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; flex: 1; opacity: 0; transform: translateY(6px); transition: opacity .4s, transform .4s; }
.bar.show-chapter .bar-chapter { opacity: 1; transform: none; }
.nav { display: flex; gap: 6px; margin-left: auto; }
.bar-chapter + .nav { margin-left: 0; }
.nav-link { font-family: var(--f-ui); font-size: 14.5px; font-weight: 500; text-decoration: none; padding: 9px 14px; border-radius: 999px; transition: background .25s; }
.nav-link:hover, .nav-link.is-current { background: color-mix(in srgb, var(--ink) 8%, transparent); }
.bar-tools { display: flex; gap: 6px; align-items: center; }
.tool { height: 40px; min-width: 40px; padding: 0 10px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1.5px solid var(--line); transition: background .25s, border-color .25s; }
.tool:hover { background: color-mix(in srgb, var(--ink) 7%, transparent); border-color: var(--line-2); }
.tool svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.kbd { font-family: var(--f-ui); font-size: 12px; font-weight: 600; color: var(--muted); }
.menu-btn { display: none; }
.menu-sheet { position: fixed; inset: 64px 12px auto 12px; z-index: 60; background: var(--card); border-radius: 20px; padding: 10px; box-shadow: 0 30px 60px -20px rgba(0,0,0,.35); }
.menu-sheet nav { display: grid; }
.menu-sheet .nav-link { font-size: 18px; padding: 14px 16px; }
.menu-sheet .menu-theme { display: flex; align-items: center; gap: 10px; font-family: var(--f-ui); font-size: 18px; padding: 14px 16px; border-top: 1px solid var(--line); margin-top: 6px; width: 100%; text-align: left; }
.menu-sheet .menu-theme svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.progress { position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; pointer-events: none; }
.progress span { display: block; height: 100%; width: 100%; transform-origin: 0 50%; transform: scaleX(0); background: var(--c-bg); }
.page-home .progress span { background: var(--coral); }

/* ==========================================================================
   HOME
   ========================================================================== */
.hero { position: relative; overflow: clip; margin-top: -68px; padding-top: 68px; }
.hero-in { max-width: var(--maxw); margin: 0 auto; padding: clamp(28px, 5vw, 72px) var(--gutter) clamp(56px, 7vw, 110px); display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr); gap: clamp(24px, 4vw, 64px); align-items: center; min-height: min(100svh, 1000px); }
.hero-kicker { color: var(--ink-2); font-weight: 500; letter-spacing: .08em; }
.hero-title { margin: 0 0 28px; font-family: var(--f-display); font-weight: 800; line-height: .84; letter-spacing: -.045em; font-variation-settings: "SOFT" 100, "WONK" 0; font-size: clamp(64px, 10.8vw, 206px); display: grid; }
.hero-title .ht-1 { color: var(--ink); }
.hero-title .ht-2 { font-size: .34em; font-style: italic; font-weight: 400; letter-spacing: -.01em; line-height: 1; color: var(--coral); margin: .12em 0 .02em .06em; font-variation-settings: "SOFT" 100, "WONK" 1; }
.hero-title .ht-3 { color: var(--purple); font-style: italic; font-weight: 750; font-variation-settings: "SOFT" 100, "WONK" 1; }
.hero-lede { font-size: clamp(19px, 1.35vw, 23px); line-height: 1.5; color: var(--ink-2); max-width: 36em; margin: 0 0 32px; text-wrap: pretty; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 38px; }
.hero-orgs { font-family: var(--f-ui); font-size: 14px; color: var(--ink-2); max-width: 40em; margin: 0; display: grid; gap: 6px; }
.hero-orgs span { font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; font-weight: 600; color: var(--muted); }

.hero-visual { position: relative; aspect-ratio: 1 / 1.08; width: 100%; max-width: 720px; justify-self: end; }
.hv-circle { position: absolute; width: 86%; aspect-ratio: 1; left: 9%; top: 6%; border-radius: 50%; background: var(--mustard); }
.hv-stripes { position: absolute; width: 58%; height: 30%; right: -18%; top: 12%; background: repeating-linear-gradient(0deg, var(--coral) 0 14px, transparent 14px 28px); }
.hv-rings { position: absolute; width: 36%; aspect-ratio: 1; left: -8%; bottom: 2%; }
.hv-rings i { position: absolute; inset: 0; border-radius: 50%; border: 14px solid var(--orange); }
.hv-rings i:nth-child(2) { inset: 18%; }
.hv-rings i:nth-child(3) { inset: 36%; background: var(--orange); }
.hv-dots { position: absolute; width: 34%; height: 24%; right: 0; bottom: 6%; background-image: radial-gradient(circle, var(--purple) 3.4px, transparent 4px); background-size: 24px 24px; opacity: .85; }
.hv-half { position: absolute; width: 30%; aspect-ratio: 2 / 1; left: 2%; top: 0; border-radius: 999px 999px 0 0; background: var(--pink); }
.hv-spark { position: absolute; font-size: clamp(22px, 2.3vw, 38px); color: var(--coral); animation: spin 14s linear infinite; line-height: 1; }
.hv-spark.s1 { right: 8%; top: 2%; }
.hv-spark.s2 { left: 4%; top: 46%; color: var(--purple); animation-duration: 18s; }
.hv-spark.s3 { right: 28%; bottom: 0; color: var(--ink); animation-duration: 22s; }

.book3d { position: absolute; left: 50%; top: 50%; width: 52%; transform: translate(-50%, -48%); perspective: 1800px; z-index: 2; }
.book3d-in { position: relative; transform: rotateY(-24deg) rotateX(6deg) rotateZ(-1deg); transform-style: preserve-3d; transition: transform 1.2s var(--ease-out); aspect-ratio: 595 / 794; }
.book3d-cover { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 3px 8px 8px 3px; box-shadow: 0 50px 80px -30px rgba(31,22,50,.55), 0 20px 30px -18px rgba(31,22,50,.4); transform: translateZ(14px); }
.book3d-cover::after { content: ""; }
.book3d-spine { position: absolute; top: 0; bottom: 0; left: 0; width: 28px; background: linear-gradient(90deg, #d7ccbb, #fff 40%, #cfc3b0); transform: rotateY(-90deg) translateZ(0) translateX(-14px); transform-origin: left center; }
.book3d-pages { position: absolute; top: 3px; bottom: 3px; right: 0; width: 26px; transform: rotateY(90deg) translateX(13px) translateZ(0); transform-origin: right center; background: repeating-linear-gradient(90deg, #f3ede3 0 2px, #e2d9ca 2px 3px); }
.book3d::after { content: ""; position: absolute; inset: 0; background: linear-gradient(105deg, rgba(255,255,255,.28) 0%, transparent 30%, transparent 70%, rgba(0,0,0,.08)); border-radius: 3px 8px 8px 3px; transform: rotateY(-24deg) rotateX(6deg) rotateZ(-1deg) translateZ(15px); pointer-events: none; }

/* marquee */
.marquee { overflow: hidden; background: var(--ink); color: var(--paper); padding: 22px 0; transform: rotate(-1.2deg); margin: 0 -2vw; width: 104vw; position: relative; z-index: 3; }
.marquee-track { display: flex; gap: 34px; width: max-content; align-items: center; animation: marquee 60s linear infinite; }
.marquee span { font-family: var(--f-display); font-style: italic; font-weight: 500; font-size: clamp(26px, 3vw, 46px); letter-spacing: -.01em; white-space: nowrap; font-variation-settings: "SOFT" 100, "WONK" 1; }
.marquee i { font-style: normal; color: var(--mustard); font-size: clamp(20px, 2vw, 30px); }
.marquee:hover .marquee-track { animation-play-state: paused; }

/* intro */
.intro { max-width: var(--maxw); margin: 0 auto; padding: clamp(80px, 11vw, 170px) var(--gutter) clamp(60px, 7vw, 100px); }
.intro-in { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(32px, 6vw, 110px); align-items: start; }
.intro-quote { margin: 0; position: relative; }
.intro-quote blockquote { margin: 0; }
.intro-quote p { font-family: var(--f-display); font-weight: 400; font-size: clamp(30px, 3.5vw, 58px); line-height: 1.08; letter-spacing: -.022em; margin: 0; text-wrap: balance; font-variation-settings: "SOFT" 60; }
.intro-quote p::before { content: "“"; display: block; font-size: 2.6em; line-height: .6; color: var(--coral); font-style: italic; height: .42em; }
.intro-quote figcaption { font-family: var(--f-ui); font-size: 14px; letter-spacing: .06em; text-transform: uppercase; font-weight: 600; margin-top: 28px; color: var(--muted); }
.intro-text { font-size: 19px; line-height: 1.6; color: var(--ink-2); padding-top: 12px; }
.intro-text p { margin: 0 0 18px; }
.intro-lead { font-size: 22px; color: var(--ink); }
.stats { list-style: none; margin: clamp(60px, 8vw, 120px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); border-top: 1.5px solid var(--ink); }
.stats li { padding: 26px 22px 6px 0; border-right: 1px solid var(--line); }
.stats li + li { padding-left: 22px; }
.stats li:last-child { border-right: 0; }
.stats b { display: block; font-family: var(--f-display); font-weight: 700; font-size: clamp(44px, 5vw, 84px); line-height: 1; letter-spacing: -.04em; font-variation-settings: "SOFT" 100; margin-bottom: 10px; font-variant-numeric: lining-nums; }
.stats li:nth-child(1) b { color: var(--coral); }
.stats li:nth-child(2) b { color: var(--purple); }
.stats li:nth-child(3) b { color: var(--orange); }
.stats li:nth-child(4) b { color: var(--cyan); }
.stats span { font-family: var(--f-ui); font-size: 14px; color: var(--muted); line-height: 1.4; display: block; }

/* partes */
.part { padding: clamp(60px, 8vw, 120px) 0; }
.part-head { max-width: var(--maxw); margin: 0 auto clamp(40px, 5vw, 80px); padding: 0 var(--gutter); display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(28px, 5vw, 90px); align-items: center; }
.part-photo { position: relative; border-radius: 999px 999px 24px 24px; overflow: hidden; aspect-ratio: 4 / 4.6; background: var(--mustard); }
.part-2 .part-photo { border-radius: 24px 24px 999px 999px; background: var(--purple); }
.part-photo img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.08); mix-blend-mode: multiply; opacity: .95; }
.part-2 .part-photo img { mix-blend-mode: screen; filter: grayscale(1) contrast(1.15) brightness(.95); opacity: .9; }
.part-photo-shape { position: absolute; width: 34%; aspect-ratio: 1; border-radius: 50%; right: -6%; bottom: -6%; background: var(--coral); mix-blend-mode: multiply; }
.part-2 .part-photo-shape { background: var(--cyan); left: -8%; right: auto; top: -6%; bottom: auto; mix-blend-mode: normal; opacity: .9; }
.part-kicker { font-family: var(--f-ui); font-weight: 700; font-size: 13px; letter-spacing: .16em; text-transform: uppercase; color: var(--coral); margin: 0 0 12px; }
.part-2 .part-kicker { color: var(--purple); }
.part-title { font-family: var(--f-display); font-weight: 800; font-size: clamp(56px, 8.2vw, 150px); line-height: .88; letter-spacing: -.045em; margin: 0 0 28px; font-variation-settings: "SOFT" 100; text-wrap: balance; }
.part-lede { font-size: clamp(19px, 1.4vw, 24px); line-height: 1.5; color: var(--ink-2); max-width: 32em; margin: 0 0 28px; }
.part-stats { font-family: var(--f-ui); display: flex; gap: 28px; margin: 0; color: var(--muted); font-size: 15px; }
.part-stats b { font-family: var(--f-display); font-size: 34px; color: var(--ink); margin-right: 6px; font-weight: 700; }

.cards { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 1.6vw, 24px); }
.card {
  position: relative; display: grid; grid-template-rows: auto 1fr auto; min-height: 560px; padding: clamp(20px, 2vw, 30px);
  border-radius: var(--radius); background: var(--c-bg); color: var(--c-fg); text-decoration: none; overflow: hidden; isolation: isolate;
  transition: transform .7s var(--ease-out), box-shadow .7s var(--ease-out);
}
.card:hover { transform: translateY(-6px) rotate(-.4deg); box-shadow: 0 40px 60px -34px color-mix(in srgb, var(--c-bg) 70%, #000); }
.card-top { display: flex; justify-content: space-between; align-items: flex-start; }
.card-num { font-family: var(--f-display); font-weight: 800; font-size: 76px; line-height: .8; letter-spacing: -.05em; font-variation-settings: "SOFT" 100; }
.card-meta { font-family: var(--f-ui); font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; text-align: right; opacity: .8; line-height: 1.5; }
.card-art { display: grid; place-items: center; padding: 10px 6%; }
.card-art .art { width: 100%; max-width: 300px; transition: transform 1s var(--ease-out); }
.card:hover .card-art .art { transform: scale(1.06) rotate(-3deg); }
.card-body { display: grid; gap: 12px; }
.card-title { font-family: var(--f-display); font-weight: 650; font-size: clamp(25px, 2vw, 32px); line-height: 1.04; letter-spacing: -.02em; font-variation-settings: "SOFT" 80; text-wrap: balance; }
.card-dek { font-size: 16.5px; line-height: 1.45; opacity: .88; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card-go { font-family: var(--f-ui); font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; display: flex; gap: 8px; align-items: center; margin-top: 6px; }
.card-go i { font-style: normal; transition: transform .5s var(--ease-out); }
.card:hover .card-go i { transform: translateX(6px); }
.card-wide { grid-column: span 2; grid-template-columns: 1fr 1fr; grid-template-rows: auto 1fr; column-gap: 28px; }
.card-wide .card-top { grid-column: 1 / -1; }
.card-wide .card-art { grid-column: 2; grid-row: 2; }
.card-wide .card-body { grid-column: 1; grid-row: 2; align-self: end; }
.card-wide .card-num { font-size: 120px; }
.card-wide .card-title { font-size: clamp(32px, 3vw, 50px); }
.card-wide .card-art .art { max-width: 420px; }

.card-fill { background: transparent; border: 1.5px dashed var(--line-2); min-height: 0; }
.card-fill:hover { transform: none; box-shadow: none; }
.fill-dots { position: absolute; inset: 24px; background-image: radial-gradient(circle, var(--line-2) 2px, transparent 2.5px); background-size: 22px 22px; border-radius: 12px; }

/* como ler */
.howto { background: var(--plum); color: var(--cream); margin: clamp(30px, 4vw, 60px) 0; position: relative; overflow: hidden; }
.howto::before { content: ""; position: absolute; width: 46vw; aspect-ratio: 1; border-radius: 50%; right: -14vw; top: -18vw; border: 40px solid color-mix(in srgb, var(--mustard) 90%, transparent); opacity: .9; }
.howto::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 40px; background: repeating-linear-gradient(90deg, var(--coral) 0 30px, transparent 30px 60px); opacity: .9; }
.howto-in { max-width: var(--maxw); margin: 0 auto; padding: clamp(80px, 10vw, 150px) var(--gutter) clamp(100px, 11vw, 170px); position: relative; }
.howto-title { font-family: var(--f-display); font-weight: 800; font-style: italic; font-size: clamp(52px, 7.5vw, 130px); line-height: .9; letter-spacing: -.04em; margin: 0 0 24px; font-variation-settings: "SOFT" 100, "WONK" 1; max-width: 9em; }
.howto-lede { font-size: clamp(19px, 1.5vw, 24px); max-width: 34em; line-height: 1.5; opacity: .88; margin: 0 0 clamp(40px, 5vw, 80px); }
.howto-steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2vw, 28px); }
.howto-steps li { border-top: 2px solid color-mix(in srgb, var(--cream) 40%, transparent); padding-top: 22px; }
.hs-n { font-family: var(--f-ui); font-weight: 700; font-size: 13px; letter-spacing: .12em; color: var(--mustard); }
.howto-steps h3 { font-family: var(--f-display); font-weight: 650; font-size: clamp(30px, 2.8vw, 44px); letter-spacing: -.02em; margin: 10px 0 12px; font-variation-settings: "SOFT" 100; }
.howto-steps p { margin: 0; font-size: 18px; line-height: 1.5; opacity: .85; max-width: 26em; }

/* organizadores */
.orgs { padding: clamp(80px, 9vw, 140px) 0; }
.orgs-in { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.orgs-title, .authors-title { font-family: var(--f-display); font-weight: 800; font-size: clamp(48px, 6.5vw, 110px); letter-spacing: -.04em; line-height: .92; margin: 0 0 clamp(36px, 4vw, 60px); font-variation-settings: "SOFT" 100; }
.org-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-bottom: 42px; }
.org { background: var(--card); border-radius: var(--radius); padding: 28px; border: 1px solid var(--line); }
.org-ini { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; font-family: var(--f-display); font-weight: 700; font-size: 24px; margin-bottom: 22px; color: var(--cream); background: var(--coral); }
.org:nth-child(2) .org-ini { background: var(--purple); }
.org:nth-child(3) .org-ini { background: var(--cyan); color: var(--ink); }
.org:nth-child(4) .org-ini { background: var(--mustard); color: var(--ink); }
.org h3 { font-family: var(--f-display); font-weight: 650; font-size: 25px; line-height: 1.1; letter-spacing: -.015em; margin: 0 0 12px; font-variation-settings: "SOFT" 80; }
.org p { margin: 0; font-size: 16px; line-height: 1.55; color: var(--ink-2); }

/* índice rápido */
.index-strip { border-top: 1px solid var(--line); }
.index-in { max-width: var(--maxw); margin: 0 auto; padding: clamp(60px, 7vw, 100px) var(--gutter); }
.mini-toc { list-style: none; padding: 0; margin: 0; columns: 3 300px; column-gap: 40px; }
.mini-toc li { break-inside: avoid; }
.mini-toc a { display: grid; grid-template-columns: 40px 1fr; padding: 10px 0; border-bottom: 1px solid var(--line); text-decoration: none; font-family: var(--f-display); font-size: 18.5px; line-height: 1.25; transition: color .2s, padding .4s var(--ease-out); font-variation-settings: "SOFT" 50; }
.mini-toc a span { font-family: var(--f-ui); font-size: 13px; font-weight: 600; color: var(--muted); padding-top: 4px; }
.mini-toc a:hover { color: var(--coral); padding-left: 6px; }

/* rodapé */
.foot { background: var(--ink); color: var(--paper); position: relative; overflow: hidden; }
:root[data-theme="dark"] .foot { background: #0E0914; color: var(--ink); }
.foot-in { max-width: var(--maxw); margin: 0 auto; padding: clamp(60px, 7vw, 100px) var(--gutter) 150px; display: grid; grid-template-columns: 1.3fr 1fr; grid-template-areas: "brand init" "nav init" "legal legal"; gap: 34px 40px; position: relative; z-index: 1; }
.foot-brand { grid-area: brand; }
.foot-nav { grid-area: nav; }
.foot-legal { grid-area: legal; }
.foot-title { font-family: var(--f-display); font-weight: 800; font-size: clamp(40px, 5vw, 84px); line-height: .92; letter-spacing: -.04em; margin: 0 0 18px; font-variation-settings: "SOFT" 100; }
.foot-title em { font-weight: 400; color: var(--mustard); }
.foot-sub { font-family: var(--f-ui); font-size: 14px; opacity: .7; margin: 0; max-width: 34em; }
.foot-nav { display: flex; flex-wrap: wrap; gap: 8px 22px; align-content: start; font-family: var(--f-ui); font-weight: 600; }
.foot-nav a { text-decoration: none; opacity: .85; }
.foot-nav a:hover { opacity: 1; color: var(--mustard); }
.foot-legal { grid-column: 1 / -1; font-family: var(--f-ui); font-size: 13px; opacity: .55; max-width: 60em; margin: 20px 0 0; border-top: 1px solid rgba(255,255,255,.15); padding-top: 22px; }
.foot-shapes i { position: absolute; bottom: -60px; }
.foot-shapes i:nth-child(1) { width: 200px; height: 200px; border-radius: 50%; background: var(--coral); left: 6%; }
.foot-shapes i:nth-child(2) { width: 240px; height: 120px; border-radius: 999px 999px 0 0; background: var(--mustard); left: 24%; bottom: 0; }
.foot-shapes i:nth-child(3) { width: 180px; height: 110px; background: repeating-linear-gradient(0deg, var(--pink) 0 12px, transparent 12px 24px); left: 48%; bottom: 0; }
.foot-shapes i:nth-child(4) { width: 170px; height: 170px; border-radius: 50%; border: 26px solid var(--cyan); right: 8%; bottom: -70px; }

/* ==========================================================================
   CAPÍTULO
   ========================================================================== */
.page-chapter .bar { color: var(--c-fg); }
.page-chapter .bar.is-scrolled { color: var(--ink); }
.page-chapter .bar:not(.is-scrolled) .tool { border-color: color-mix(in srgb, var(--c-fg) 30%, transparent); }
.page-chapter .bar:not(.is-scrolled) .kbd { color: inherit; opacity: .7; }
.page-chapter .bar:not(.is-scrolled) .nav-link:hover { background: color-mix(in srgb, var(--c-fg) 12%, transparent); }

.ch-hero { background: var(--c-bg); color: var(--c-fg); margin-top: -68px; padding-top: 68px; position: relative; overflow: clip; }
.ch-hero-in { max-width: var(--maxw); margin: 0 auto; padding: clamp(36px, 5vw, 80px) var(--gutter) clamp(70px, 8vw, 130px); display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: clamp(24px, 4vw, 70px); align-items: center; }
.ch-hero .kicker { opacity: .92; }
.ch-hero .kicker a { text-decoration: none; border-bottom: 1.5px solid currentColor; padding-bottom: 2px; }
.ch-hero .kicker span { opacity: .7; }
.ch-num { font-family: var(--f-display); font-weight: 900; font-size: clamp(120px, 17vw, 300px); line-height: .78; letter-spacing: -.06em; margin: 10px 0 18px -.04em; color: var(--c-a1); font-variation-settings: "SOFT" 100, "WONK" 1; font-style: italic; }
.ch-title { font-family: var(--f-display); font-weight: 750; font-size: clamp(44px, 5.6vw, 104px); line-height: .96; letter-spacing: -.035em; margin: 0 0 22px; text-wrap: balance; font-variation-settings: "SOFT" 100; max-width: 13em; }
.ch-subtitle { font-family: var(--f-display); font-style: italic; font-size: clamp(19px, 1.6vw, 26px); line-height: 1.3; margin: -6px 0 20px; opacity: .9; max-width: 36em; }
.ch-dek { font-family: var(--f-text); font-size: clamp(20px, 1.6vw, 27px); line-height: 1.42; margin: 0 0 32px; max-width: 30em; opacity: .95; font-style: italic; text-wrap: pretty; }
.ch-meta { list-style: none; margin: 0; padding: 22px 0 0; border-top: 1.5px solid color-mix(in srgb, var(--c-fg) 35%, transparent); display: grid; grid-template-columns: minmax(0, 2.2fr) repeat(3, minmax(0, 1fr)); gap: 16px 28px; font-family: var(--f-ui); font-size: 14.5px; line-height: 1.4; max-width: 60em; }
.ch-meta span { display: block; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; opacity: .65; margin-bottom: 4px; }
.ch-hero-art { align-self: center; }
.ch-hero-art .art { width: 100%; max-width: 560px; margin-left: auto; filter: drop-shadow(0 30px 40px color-mix(in srgb, var(--c-bg) 40%, #000 25%)); }
.ch-hero-edge { position: absolute; left: 0; right: 0; bottom: -1px; height: 44px; background: var(--paper); border-radius: 44px 44px 0 0; }

/* resumo */
.ch-summary { max-width: var(--maxw); margin: 0 auto; padding: clamp(28px, 4vw, 60px) var(--gutter) clamp(40px, 5vw, 70px); }
.sum-grid { display: grid; grid-template-columns: 1.25fr .75fr; gap: clamp(18px, 2vw, 28px); }
.sum-main { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(26px, 3.2vw, 52px); }
.sum-text p { font-family: var(--f-display); font-weight: 400; font-size: clamp(21px, 1.55vw, 27px); line-height: 1.38; letter-spacing: -.008em; margin: 0 0 18px; font-variation-settings: "SOFT" 40; text-wrap: pretty; }
.sum-text p:first-child::first-line { font-weight: 600; }
.sum-aud { font-family: var(--f-ui); font-size: 15px; color: var(--ink-2); margin: 22px 0 18px; padding: 14px 18px; background: var(--c-soft); border-radius: 14px; }
.sum-aud strong { color: var(--c-ink); }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag { font-family: var(--f-ui); font-size: 13px; font-weight: 600; padding: 7px 13px; border-radius: 999px; border: 1.5px solid var(--line-2); }
.sum-points { background: var(--c-bg); color: var(--c-fg); border-radius: var(--radius); padding: clamp(26px, 3vw, 46px); position: relative; overflow: hidden; }
.sum-points .label { color: inherit; opacity: .8; }
.sum-points ol { list-style: none; margin: 0; padding: 0; counter-reset: kp; display: grid; gap: 18px; position: relative; z-index: 1; }
.sum-points li { counter-increment: kp; display: grid; grid-template-columns: 46px 1fr; gap: 6px; font-size: 18px; line-height: 1.42; }
.sum-points li::before { content: counter(kp, decimal-leading-zero); font-family: var(--f-display); font-weight: 800; font-size: 26px; line-height: 1; color: var(--c-a1); font-variation-settings: "SOFT" 100; }
.sum-points::after { content: ""; position: absolute; width: 240px; aspect-ratio: 1; border-radius: 50%; right: -90px; bottom: -110px; background: var(--c-a2); opacity: .5; }
.sum-quick { margin-top: clamp(18px, 2vw, 28px); padding-top: 22px; border-top: 1px solid var(--line); }
.sum-quick div { display: flex; flex-wrap: wrap; gap: 10px; }
.sum-quick a { display: inline-flex; gap: 8px; align-items: baseline; text-decoration: none; font-family: var(--f-ui); font-size: 14.5px; font-weight: 500; padding: 9px 15px; border-radius: 999px; background: var(--c-soft); transition: background .25s, transform .4s var(--ease-out); }
.sum-quick a:hover { background: var(--c-bg); color: var(--c-fg); transform: translateY(-2px); }
.sum-quick a span { font-weight: 700; color: var(--c-ink); }
.sum-quick a:hover span { color: inherit; }

/* leitor */
.reader { max-width: var(--maxw); margin: 0 auto; padding: clamp(20px, 3vw, 50px) var(--gutter) clamp(60px, 7vw, 110px); display: grid; grid-template-columns: 290px minmax(0, 1fr); gap: clamp(28px, 5vw, 96px); }
.reader-simple { grid-template-columns: minmax(0, 1fr); }
.reader-simple .prose { margin: 0 auto; }
.toc { position: relative; }
.toc-in { position: sticky; top: 92px; max-height: calc(100vh - 110px); overflow: auto; padding: 4px 8px 20px 0; scrollbar-width: thin; }
.toc-h { font-family: var(--f-ui); font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin: 0 0 14px; display: flex; gap: 10px; align-items: center; }
.toc-h span { background: var(--c-bg); color: var(--c-fg); padding: 4px 8px; border-radius: 999px; letter-spacing: .04em; }
.toc-list, .toc-list ol { list-style: none; margin: 0; padding: 0; }
.toc-list a { display: block; text-decoration: none; font-family: var(--f-ui); font-size: 14px; line-height: 1.35; padding: 8px 10px 8px 14px; border-left: 2px solid var(--line); color: var(--ink-2); transition: color .2s, border-color .2s, background .2s; border-radius: 0 10px 10px 0; }
.toc-list a span { font-weight: 700; margin-right: 6px; color: var(--c-ink); }
.toc-list a:hover { color: var(--ink); background: var(--c-soft); }
.toc-list a.is-active { color: var(--ink); border-left-color: var(--c-bg); background: var(--c-soft); font-weight: 600; }
.toc-list .t3 > a { padding-left: 26px; font-size: 13.5px; }
.toc-list .tq { display: none; }
.toc-list li.is-open > .tq { display: block; }
.toc-list .t4 > a { padding-left: 30px; font-size: 13px; color: var(--muted); border-left-style: dotted; }
.toc-list .t4.flat > a { padding-left: 14px; font-size: 13.5px; color: var(--ink-2); border-left-style: solid; }
.reading-tools { display: flex; gap: 6px; margin-top: 22px; }
.reading-tools button { flex: 1; padding: 8px 0; border: 1.5px solid var(--line); border-radius: 999px; font-family: var(--f-display); font-weight: 600; font-size: 15px; transition: background .2s; }
.reading-tools button:hover { background: var(--c-soft); }
.toc-fab { display: none; }

/* prosa */
.prose { font-size: var(--read-size); line-height: 1.66; max-width: 36em; width: 100%; justify-self: center; min-width: 0; hyphens: auto; -webkit-hyphens: auto; hanging-punctuation: first; }
.prose > * { margin-top: 0; }
.prose p { margin: 0 0 1.05em; text-wrap: pretty; }
.prose a { color: var(--c-ink); text-decoration-thickness: 1px; text-underline-offset: 3px; overflow-wrap: anywhere; }
.prose b { font-weight: 650; }
.prose sup { font-family: var(--f-ui); font-size: .6em; font-weight: 700; color: var(--c-ink); line-height: 0; }
.prose .drop::first-letter { font-family: var(--f-display); font-weight: 800; float: left; font-size: 4.9em; line-height: .8; padding: .06em .09em 0 0; color: var(--c-ink); font-variation-settings: "SOFT" 100; }
.prose .speaker { font-family: var(--f-ui); font-size: .72em; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--c-ink); margin-right: .3em; }
.prose .small { font-size: .85em; color: var(--muted); }

.prose h2.sec { font-family: var(--f-display); font-weight: 700; font-size: clamp(34px, 3.2vw, 54px); line-height: 1.02; letter-spacing: -.03em; margin: 2.1em 0 .7em; font-variation-settings: "SOFT" 100; text-wrap: balance; hyphens: manual; }
.prose h2.sec:first-child { margin-top: 0; }
.prose h2.sec .sec-num { display: flex; align-items: center; gap: 14px; font-family: var(--f-ui); font-size: 14px; font-weight: 700; letter-spacing: .12em; color: var(--c-ink); margin-bottom: 16px; }
.prose h2.sec .sec-num::after { content: ""; flex: 1; height: 1.5px; background: var(--line-2); }
.prose h2.sec .sec-num::before { content: ""; width: 12px; height: 12px; border-radius: 50%; background: var(--c-bg); }
.prose h3.sub { font-family: var(--f-display); font-weight: 650; font-size: clamp(26px, 2.2vw, 36px); line-height: 1.1; letter-spacing: -.02em; margin: 1.8em 0 .6em; font-variation-settings: "SOFT" 80; hyphens: manual; }
.prose h3.sub .sec-num { font-family: var(--f-ui); font-size: 13px; font-weight: 700; letter-spacing: .1em; color: var(--c-ink); display: block; margin-bottom: 8px; }
.prose h4.q { position: relative; font-family: var(--f-display); font-weight: 560; font-style: italic; font-size: clamp(23px, 1.8vw, 29px); line-height: 1.22; letter-spacing: -.012em; margin: 1.9em 0 .6em; font-variation-settings: "SOFT" 100, "WONK" 1; color: var(--ink); text-wrap: balance; hyphens: manual; display: flex; gap: 14px; align-items: baseline; }
.prose h4.q .q-mark { flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--c-bg); position: relative; top: 4px; transform: translateY(0); }
.prose h4.q .q-mark::after { content: "?"; position: absolute; inset: 0; display: grid; place-items: center; font-style: normal; font-weight: 800; font-size: 18px; color: var(--c-fg); font-family: var(--f-display); }
.prose h4.minor { font-family: var(--f-display); font-weight: 650; font-size: clamp(21px, 1.6vw, 25px); line-height: 1.2; margin: 1.6em 0 .55em; color: var(--c-ink); font-variation-settings: "SOFT" 60; hyphens: manual; }
.prose h4.q.q-ex .q-mark::after { content: "!"; }
.prose h4.q.q-say .q-mark::after { content: "—"; font-size: 16px; }
.prose .inset { margin: 1.4em 0 1.6em; padding: .2em 0 .2em 1.3em; border-left: 3px solid var(--c-bg); color: var(--ink-2); }
.prose .inset p:last-child { margin-bottom: 0; }
.prose ul.list.dash > li::before, .prose ul.list li[data-dash]::before { content: "—"; width: auto; height: auto; background: none; box-shadow: none; top: 0; left: 0; color: var(--c-ink); font-weight: 700; border-radius: 0; }
.prose h5.label-h { font-family: var(--f-display); font-weight: 650; font-size: 1.12em; line-height: 1.25; margin: 1.7em 0 .5em; color: var(--c-ink); font-variation-settings: "SOFT" 60; display: flex; gap: 12px; align-items: baseline; hyphens: manual; }
.prose h5.label-h::before { content: ""; flex: none; width: 18px; height: 3px; border-radius: 2px; background: var(--c-bg); transform: translateY(-.3em); }
.prose h5.tiny { font-family: var(--f-ui); font-weight: 700; font-size: 13.5px; letter-spacing: .12em; text-transform: uppercase; margin: 1.8em 0 .7em; color: var(--ink-2); }
.prose .sec-byline { font-family: var(--f-ui); font-size: 14px; color: var(--muted); margin: -.2em 0 1.6em; font-style: normal; }

.prose .list { margin: 0 0 1.3em; padding: 0; list-style: none; }
.prose .list li { position: relative; padding-left: 1.6em; margin-bottom: .55em; }
.prose ul.list > li::before { content: ""; position: absolute; left: .25em; top: .66em; width: .42em; height: .42em; border-radius: 50%; background: var(--c-bg); box-shadow: 0 0 0 2px color-mix(in srgb, var(--c-bg) 25%, transparent); }
.prose ol.list > li { padding-left: 2.1em; }
.prose ol.list > li::before { content: attr(data-m); position: absolute; left: 0; top: .05em; font-family: var(--f-ui); font-weight: 700; font-size: .78em; color: var(--c-ink); min-width: 1.9em; }

.prose .doc { margin: 1.6em 0 2em; padding: clamp(22px, 2.6vw, 38px); background: var(--c-soft); border-radius: 18px; font-size: .88em; line-height: 1.6; position: relative; }
.prose .doc::before { content: "Documento"; position: absolute; top: -11px; left: 22px; font-family: var(--f-ui); font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; background: var(--c-bg); color: var(--c-fg); padding: 4px 10px; border-radius: 999px; }
.prose .doc p { margin-bottom: .75em; }
.prose .doc p:last-child { margin-bottom: 0; }
.prose .doc .doc-h { font-family: var(--f-ui); font-size: .82em; letter-spacing: .08em; text-transform: uppercase; margin-top: .8em; }
.prose .doc .doc-art { font-family: var(--f-display); font-weight: 650; margin: 1em 0 .3em; color: var(--c-ink); }

.prose .voice { margin: 1.8em 0; padding: clamp(24px, 2.8vw, 40px) clamp(22px, 2.8vw, 40px) clamp(20px, 2.4vw, 32px); background: var(--card); border: 1px solid var(--line); border-radius: 22px 22px 22px 6px; position: relative; font-size: .96em; }
.prose .voice::before { content: "“"; position: absolute; top: -.22em; left: .12em; font-family: var(--f-display); font-weight: 800; font-size: 5.4em; line-height: 1; color: var(--c-bg); font-style: italic; }
.prose .voice p { position: relative; }
.prose .voice p:last-child { margin-bottom: 0; }
.prose .voice-who { display: inline-block; font-family: var(--f-ui); font-weight: 700; font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; padding: 5px 11px; border-radius: 999px; background: var(--c-bg); color: var(--c-fg); margin: 0 0 12px; position: relative; }

.prose .refs { font-size: .8em; line-height: 1.5; color: var(--ink-2); margin: 1em 0 1.6em; }
.prose .refs p { padding-left: 1.6em; text-indent: -1.6em; margin-bottom: .6em; }

.pull { margin: 2.6em calc(-1 * clamp(0px, 6vw, 110px)) 2.6em calc(-1 * clamp(0px, 3vw, 40px)); padding: clamp(34px, 4vw, 60px) clamp(28px, 4vw, 64px); background: var(--c-bg); color: var(--c-fg); border-radius: 28px; position: relative; overflow: hidden; }
.pull p { font-family: var(--f-display); font-style: italic; font-weight: 500; font-size: clamp(28px, 2.7vw, 46px); line-height: 1.14; letter-spacing: -.02em; margin: 0; position: relative; z-index: 1; font-variation-settings: "SOFT" 100, "WONK" 1; text-wrap: balance; hyphens: manual; }
.pull-mark { position: absolute; right: .05em; bottom: -.52em; font-family: var(--f-display); font-weight: 900; font-size: clamp(200px, 22vw, 380px); line-height: 1; color: var(--c-a1); opacity: .9; }

/* figuras */
.fig { margin: 2em 0 2.2em; }
.fig-row { display: flex; gap: 14px; justify-content: center; align-items: flex-end; }
.fig-row + .fig-row { margin-top: 14px; }
.fig-img { display: block; width: var(--w, 100%); max-width: 100%; border-radius: 14px; overflow: hidden; background: #fff; box-shadow: 0 1px 0 var(--line), 0 24px 40px -30px rgba(31,22,50,.45); cursor: zoom-in; transition: transform .6s var(--ease-out), box-shadow .6s var(--ease-out); }
.fig-row.n2 .fig-img, .fig-row.n3 .fig-img { flex: 1; width: auto; }
.fig-img:hover { transform: translateY(-3px); box-shadow: 0 1px 0 var(--line), 0 30px 50px -30px rgba(31,22,50,.55); }
.fig-img img { width: 100%; height: auto; }
.fig figcaption, .tbl figcaption { font-family: var(--f-ui); font-size: 14px; line-height: 1.45; margin-top: 14px; color: var(--ink-2); display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; }
.tbl figcaption { margin: 0 0 14px; }
.fig figcaption { justify-content: center; text-align: center; max-width: 34em; margin-left: auto; margin-right: auto; }
.fig .cap-src { text-align: center; }
.cap-label { font-weight: 700; color: var(--c-ink); text-transform: uppercase; letter-spacing: .08em; font-size: 12px; }
.cap-text { font-family: var(--f-text); font-style: italic; font-size: 16px; }
.cap-src { display: block; width: 100%; font-size: 12.5px; color: var(--muted); }
.cap-standalone { font-family: var(--f-ui); font-size: 14px; }
.fig-wide { margin-right: calc(-1 * clamp(0px, 9vw, 200px)); }
.fig-wide figcaption { margin-left: 0; }
@media (max-width: 1100px) { .fig-wide { margin-right: 0; } }

/* tabelas */
.tbl { margin: 2em 0 2.2em; }
.tbl-scroll { overflow-x: auto; border-radius: 16px; border: 1px solid var(--line); background: var(--card); -webkit-overflow-scrolling: touch; }
.tbl table { border-collapse: collapse; width: 100%; font-family: var(--f-ui); font-size: 14.5px; line-height: 1.4; font-variant-numeric: tabular-nums; hyphens: none; }
.tbl thead th { background: var(--c-bg); color: var(--c-fg); text-align: left; font-weight: 700; font-size: 12.5px; letter-spacing: .06em; text-transform: uppercase; padding: 13px 14px; vertical-align: bottom; }
.tbl thead tr + tr th { background: color-mix(in srgb, var(--c-bg) 78%, var(--paper)); }
.tbl tbody th, .tbl tbody td { padding: 11px 14px; border-top: 1px solid var(--line); text-align: left; vertical-align: top; }
.tbl tbody th { font-weight: 600; }
.tbl tbody tr:nth-child(even) { background: color-mix(in srgb, var(--c-bg) 6%, transparent); }
.tbl tbody tr:hover { background: var(--c-soft); }
.tbl td.num { white-space: nowrap; }
.tbl-note { font-family: var(--f-ui); font-size: 13px; color: var(--muted); margin: 10px 0 0; }
.tbl .cap-src { margin-top: 10px; }

/* notas */
.ch-notes { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter) 60px; }
.ch-notes > * { max-width: 44em; margin-left: calc(290px + clamp(28px, 5vw, 96px)); }
.notes-h { font-family: var(--f-display); font-weight: 700; font-size: 30px; margin: 0 0 16px; padding-top: 30px; border-top: 1.5px solid var(--ink); }
.ch-notes ol { font-size: 15px; line-height: 1.5; color: var(--ink-2); padding-left: 1.4em; }
.ch-notes li { margin-bottom: 8px; }
.ch-notes a { overflow-wrap: anywhere; color: var(--c-ink); }

/* próximo/anterior */
.nextprev { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter) clamp(60px, 7vw, 110px); display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.np { position: relative; display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto 1fr; gap: 6px 22px; padding: clamp(24px, 3vw, 40px); border-radius: var(--radius); background: var(--c-bg); color: var(--c-fg); text-decoration: none; min-height: 250px; overflow: hidden; transition: transform .7s var(--ease-out); }
.np:hover { transform: translateY(-5px); }
.np-dir { grid-column: 1 / -1; font-family: var(--f-ui); font-weight: 700; font-size: 12.5px; letter-spacing: .12em; text-transform: uppercase; opacity: .85; }
.np-num { font-family: var(--f-display); font-weight: 900; font-style: italic; font-size: 110px; line-height: .8; letter-spacing: -.05em; color: var(--c-a1); font-variation-settings: "SOFT" 100, "WONK" 1; align-self: end; }
.np-title { font-family: var(--f-display); font-weight: 650; font-size: clamp(24px, 2.2vw, 36px); line-height: 1.05; letter-spacing: -.02em; align-self: end; max-width: 12em; position: relative; z-index: 1; font-variation-settings: "SOFT" 80; }
.np-art { position: absolute; right: -40px; top: -40px; width: 220px; opacity: .9; transition: transform 1s var(--ease-out); }
.np:hover .np-art { transform: rotate(-8deg) scale(1.05); }
.np-next { text-align: left; }

/* ==========================================================================
   Páginas internas (sumário, sobre, autores)
   ========================================================================== */
.page-hero { max-width: var(--maxw); margin: 0 auto; padding: clamp(40px, 6vw, 100px) var(--gutter) clamp(50px, 6vw, 90px); display: grid; grid-template-columns: 1.3fr .7fr; gap: 40px; align-items: center; }
.ph-title { font-family: var(--f-display); font-weight: 800; font-size: clamp(64px, 11vw, 200px); line-height: .86; letter-spacing: -.05em; margin: 0 0 28px; font-variation-settings: "SOFT" 100; text-wrap: balance; }
.ph-sobre .ph-title, .ph-autores .ph-title { font-size: clamp(50px, 7.4vw, 136px); }
.ph-lede { font-size: clamp(19px, 1.5vw, 24px); color: var(--ink-2); max-width: 32em; line-height: 1.5; margin: 0; }
.ph-art .art { width: 100%; max-width: 440px; margin-left: auto; }
.ph-photo { border-radius: 999px 999px 26px 26px; overflow: hidden; background: var(--mustard); aspect-ratio: 4 / 5; }
.ph-photo img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.05); mix-blend-mode: multiply; }
.prose .sign { font-family: var(--f-ui); font-size: .78em; margin: -.4em 0 .2em; color: var(--ink-2); }
.prose .sign + .sign { margin-top: 0; }
.prose .sign + p:not(.sign) { margin-top: 1.4em; }

.sum-filter { display: flex; align-items: center; gap: 16px; max-width: 560px; }
.sum-filter input { flex: 1; font: 500 17px var(--f-ui); padding: 16px 22px; border-radius: 999px; border: 1.5px solid var(--line-2); background: var(--card); color: var(--ink); }
.sum-filter span { font-family: var(--f-ui); font-size: 14px; color: var(--muted); white-space: nowrap; }
.sum-wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter) 100px; }
.sum-front { list-style: none; padding: 0; margin: 0 0 60px; display: flex; flex-wrap: wrap; gap: 10px; }
.sum-front a { font-family: var(--f-ui); font-weight: 600; font-size: 15px; text-decoration: none; padding: 11px 18px; border-radius: 999px; border: 1.5px solid var(--line-2); display: inline-block; }
.sum-front a:hover { background: var(--ink); color: var(--paper); }
.sum-part { margin-bottom: 80px; }
.sum-part-h { font-family: var(--f-display); font-weight: 800; font-size: clamp(40px, 5vw, 80px); letter-spacing: -.04em; line-height: .95; margin: 0 0 30px; display: grid; gap: 6px; font-variation-settings: "SOFT" 100; border-bottom: 2px solid var(--ink); padding-bottom: 24px; }
.sum-part-h span { font-family: var(--f-ui); font-size: 13px; letter-spacing: .16em; text-transform: uppercase; color: var(--coral); font-weight: 700; }
.sum-list { list-style: none; padding: 0; margin: 0; }
.sum-ch { border-bottom: 1px solid var(--line); padding: 26px 0; display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: auto 1fr; gap: 10px 50px; align-items: start; }
.sum-ch.is-hidden { display: none; }
.sum-ch-head { grid-column: 1; display: grid; grid-template-columns: 90px 1fr auto; gap: 16px; align-items: baseline; text-decoration: none; }
.sum-ch-num { font-family: var(--f-display); font-weight: 900; font-style: italic; font-size: 58px; line-height: .8; color: var(--c-bg); letter-spacing: -.05em; font-variation-settings: "SOFT" 100, "WONK" 1; -webkit-text-stroke: 1px color-mix(in srgb, var(--c-bg) 60%, var(--ink)); }
.sum-ch-t { font-family: var(--f-display); font-weight: 650; font-size: clamp(24px, 2vw, 32px); line-height: 1.08; letter-spacing: -.02em; transition: color .2s; font-variation-settings: "SOFT" 80; }
.sum-ch-head:hover .sum-ch-t { color: var(--c-ink); }
.sum-ch-p { font-family: var(--f-ui); font-size: 13px; color: var(--muted); font-weight: 600; }
.sum-ch-dek { grid-column: 1; margin: 0 0 0 106px; font-size: 17px; color: var(--ink-2); font-style: italic; line-height: 1.45; }
.sum-secs { grid-column: 2; grid-row: 1 / span 2; list-style: none; padding: 0; margin: 0; columns: 1; }
.sum-secs a { display: grid; grid-template-columns: 58px 1fr; text-decoration: none; font-family: var(--f-ui); font-size: 14.5px; line-height: 1.35; padding: 6px 0; color: var(--ink-2); }
.sum-secs .s3 a { padding-left: 20px; font-size: 13.5px; color: var(--muted); }
.sum-secs a span { font-weight: 700; color: var(--c-ink); }
.sum-secs a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }

.authors, .colabs { padding: 0 0 clamp(60px, 7vw, 110px); }
.authors-in, .colabs-in { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.authors-note { font-family: var(--f-ui); font-size: 15px; color: var(--muted); margin: -30px 0 40px; }
.az-grid { columns: 3 320px; column-gap: 40px; }
.az { break-inside: avoid; margin-bottom: 30px; }
.az-l { font-family: var(--f-display); font-weight: 800; font-style: italic; font-size: 54px; line-height: 1; margin: 0 0 10px; color: var(--coral); font-variation-settings: "SOFT" 100, "WONK" 1; }
.az ul { list-style: none; padding: 0; margin: 0; }
.az li { padding: 9px 0; border-bottom: 1px solid var(--line); display: grid; }
.az-n { font-family: var(--f-display); font-size: 19px; font-weight: 550; line-height: 1.2; font-variation-settings: "SOFT" 50; }
.az-r { font-family: var(--f-ui); font-size: 13.5px; color: var(--muted); }
.colab-list { list-style: none; padding: 0; margin: 0; columns: 4 220px; column-gap: 30px; font-size: 17px; line-height: 1.3; }
.colab-list li { padding: 7px 0; break-inside: avoid; border-bottom: 1px dotted var(--line-2); }
.orgs-page { padding-top: 20px; }

.temas { margin-top: 30px; padding-top: 50px; border-top: 2px solid var(--ink); }
.temas-h { font-family: var(--f-display); font-weight: 800; font-size: clamp(40px, 5vw, 80px); letter-spacing: -.04em; margin: 0 0 12px; font-variation-settings: "SOFT" 100; }
.temas-note { font-family: var(--f-ui); color: var(--muted); margin: 0 0 30px; }
.temas-list { list-style: none; padding: 0; margin: 0; columns: 4 240px; column-gap: 34px; }
.temas-list li { break-inside: avoid; display: flex; flex-wrap: wrap; align-items: baseline; gap: 5px; padding: 7px 0; border-bottom: 1px solid var(--line); }
.tema-k { font-family: var(--f-display); font-size: 17.5px; margin-right: auto; font-variation-settings: "SOFT" 60; }
.temas-list a { font-family: var(--f-ui); font-size: 11.5px; font-weight: 700; text-decoration: none; padding: 3px 7px; border-radius: 999px; background: var(--c-bg); color: var(--c-fg); transition: transform .3s var(--ease-out); }
.temas-list a:hover { transform: translateY(-2px); }

/* ==========================================================================
   Busca e lightbox
   ========================================================================== */
.search { position: fixed; inset: 0; z-index: 200; background: color-mix(in srgb, var(--ink) 45%, transparent); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); display: grid; place-items: start center; padding: min(12vh, 110px) 16px 16px; }
.search[hidden] { display: none; }
.search-box { width: min(760px, 100%); background: var(--paper); border-radius: 26px; box-shadow: 0 50px 100px -30px rgba(0,0,0,.5); overflow: hidden; animation: pop .45s var(--ease-out); max-height: 80vh; display: flex; flex-direction: column; }
.search-top { display: flex; align-items: center; gap: 12px; padding: 18px 22px; border-bottom: 1px solid var(--line); }
.search-top svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; flex: none; }
.search-top input { flex: 1; min-width: 0; border: 0; background: transparent; font: 400 21px var(--f-display); color: var(--ink); outline: none; }
.search-close { font-family: var(--f-ui); font-size: 12px; font-weight: 700; padding: 6px 10px; border-radius: 8px; border: 1.5px solid var(--line-2); color: var(--muted); }
.search-results { overflow: auto; padding: 10px; }
.search-hint { font-family: var(--f-ui); font-size: 14px; color: var(--muted); padding: 12px 14px; margin: 0; }
.sr { display: block; padding: 14px 16px; border-radius: 16px; text-decoration: none; }
.sr:hover, .sr.is-sel { background: var(--card); }
.sr-meta { font-family: var(--f-ui); font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); display: flex; gap: 8px; align-items: center; }
.sr-meta i { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.sr-h, .sr-t, .sr-meta { display: block; }
.sr-meta { display: flex; }
.sr-h { font-family: var(--f-display); font-size: 20px; font-weight: 600; line-height: 1.2; margin: 4px 0; }
.sr-t { font-size: 15.5px; color: var(--ink-2); line-height: 1.45; }
.sr mark { background: color-mix(in srgb, var(--mustard) 60%, transparent); color: inherit; border-radius: 3px; padding: 0 2px; }
.search-count { font-family: var(--f-ui); font-size: 13px; color: var(--muted); padding: 6px 14px 10px; margin: 0; }
.lightbox { position: fixed; inset: 0; z-index: 220; background: rgba(18,12,26,.92); display: grid; place-items: center; padding: 24px; cursor: zoom-out; }
.lightbox[hidden] { display: none; }
.lightbox img { max-width: 100%; max-height: 92vh; border-radius: 10px; background: #fff; animation: pop .4s var(--ease-out); }
.lb-close { position: absolute; top: 16px; right: 20px; color: #fff; font-size: 40px; line-height: 1; }
mark.hit { background: color-mix(in srgb, var(--mustard) 65%, transparent); color: inherit; border-radius: 3px; }

/* continuar lendo */
.resume { position: fixed; left: 18px; bottom: 18px; z-index: 90; display: grid; grid-template-columns: 1fr auto auto; grid-template-areas: "k k x" "t t t" "b p p"; gap: 4px 12px; align-items: center; width: min(360px, calc(100vw - 36px)); padding: 16px 18px; border-radius: 20px; background: var(--ink); color: var(--paper); text-decoration: none; box-shadow: 0 24px 50px -20px rgba(0,0,0,.55); transform: translateY(140%); transition: transform .8s var(--ease-out); }
.resume.is-in { transform: none; }
.resume-k { grid-area: k; font-family: var(--f-ui); font-size: 11.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--mustard); }
.resume-t { grid-area: t; font-family: var(--f-display); font-size: 19px; line-height: 1.2; font-variation-settings: "SOFT" 80; }
.resume-t b { font-style: italic; color: var(--mustard); margin-right: 4px; }
.resume-bar { grid-area: b; height: 4px; border-radius: 4px; background: rgba(255,255,255,.18); overflow: hidden; }
.resume-bar i { display: block; height: 100%; background: var(--coral); border-radius: 4px; }
.resume-p { grid-area: p; font-family: var(--f-ui); font-size: 12px; opacity: .7; }
.resume-x { grid-area: x; font-size: 22px; line-height: 1; color: inherit; opacity: .6; }
.resume-x:hover { opacity: 1; }
:root[data-theme="dark"] .resume { background: var(--paper-3); color: var(--ink); }


/* ==========================================================================
   Iniciativa RARAS Health + IMIP · WhatsApp
   ========================================================================== */
.initiative { background: #FFFDF9; border-bottom: 1px solid var(--line); position: relative; z-index: 51; }
:root[data-theme="dark"] .initiative { background: #F4EEE6; color: #1F1632; }
.init-in { max-width: var(--maxw); margin: 0 auto; padding: 8px var(--gutter); display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 52px; }
.init-brand { display: flex; align-items: center; gap: 14px; margin: 0; }
.init-k { font-family: var(--f-ui); font-size: 11.5px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: #71677F; }
.init-logo { display: inline-flex; align-items: center; transition: opacity .2s; }
.init-logo:hover { opacity: .75; }
.logo-raras { height: 28px; width: auto; }
.logo-imip { height: 33px; width: auto; }
.init-plus { font-family: var(--f-display); font-size: 20px; color: #B3A9BD; line-height: 1; }
.init-wa { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--f-ui); font-size: 14px; color: #0B6B3A; background: #E7F8EE; border: 1px solid #BFEBD0; padding: 7px 14px 7px 10px; border-radius: 999px; transition: background .25s, transform .4s var(--ease-out); white-space: nowrap; }
.init-wa:hover { background: #D5F3E1; transform: translateY(-1px); }
.init-wa .wa-ico { width: 20px; height: 20px; color: #25D366; flex: none; }
.init-wa-k { color: #1F4D35; }
.init-wa b { font-weight: 700; letter-spacing: .01em; }

.wa-fab { position: fixed; right: 18px; bottom: 18px; z-index: 95; display: inline-flex; align-items: center; gap: 10px; padding: 12px; border-radius: 999px; background: #25D366; color: #fff; text-decoration: none; box-shadow: 0 18px 36px -14px rgba(10, 90, 45, .6); transition: transform .5s var(--ease-out), padding .4s var(--ease-out); }
.wa-fab .wa-ico { width: 30px; height: 30px; flex: none; }
.wa-fab-t { display: grid; font-family: var(--f-ui); font-size: 12px; line-height: 1.15; font-weight: 600; max-width: 0; overflow: hidden; white-space: nowrap; transition: max-width .5s var(--ease-out); }
.wa-fab-t b { font-size: 14.5px; font-weight: 700; }
.wa-fab:hover { transform: translateY(-3px); padding-right: 18px; }
.wa-fab:hover .wa-fab-t { max-width: 160px; }

.foot-init { grid-area: init; display: grid; gap: 16px; align-content: start; }
.foot-k { font-family: var(--f-ui); font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; opacity: .6; margin: 0; }
.foot-logos { display: flex; align-items: center; gap: 18px; }
.flogo-raras { height: 40px; width: auto; }
.flogo-imip { height: 46px; width: auto; }
.foot-plus { font-family: var(--f-display); font-size: 26px; opacity: .45; }
.foot-wa { display: inline-flex; align-items: center; gap: 14px; justify-self: start; text-decoration: none; background: #25D366; color: #06331B; padding: 12px 22px 12px 14px; border-radius: 18px; transition: transform .5s var(--ease-out), background .3s; }
.foot-wa:hover { transform: translateY(-2px); background: #2EE274; }
.foot-wa .wa-ico { width: 34px; height: 34px; color: #fff; }
.foot-wa span { display: grid; font-family: var(--f-ui); line-height: 1.2; }
.foot-wa small { font-size: 12.5px; font-weight: 600; }
.foot-wa b { font-size: 21px; font-weight: 700; letter-spacing: .01em; }

/* ==========================================================================
   Sobre o livro
   ========================================================================== */
.sobre-nav { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 30px; }
.sobre-nav a { font-family: var(--f-ui); font-weight: 600; font-size: 14.5px; text-decoration: none; padding: 10px 16px; border-radius: 999px; border: 1.5px solid var(--line-2); transition: background .25s, color .25s; }
.sobre-nav a:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }

.timeline { background: var(--plum); color: var(--cream); position: relative; overflow: hidden; }
.timeline::after { content: ""; position: absolute; width: 30vw; aspect-ratio: 1; border-radius: 50%; right: -9vw; top: -12vw; border: 36px solid color-mix(in srgb, var(--coral) 85%, transparent); }
.tl-in { max-width: var(--maxw); margin: 0 auto; padding: clamp(70px, 9vw, 130px) var(--gutter); position: relative; z-index: 1; }
.timeline .kicker { color: var(--mustard); }
.tl-title { font-family: var(--f-display); font-weight: 800; font-size: clamp(44px, 6vw, 104px); line-height: .92; letter-spacing: -.04em; margin: 0 0 clamp(40px, 5vw, 80px); font-variation-settings: "SOFT" 100; max-width: 11em; }
.tl-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(16px, 2vw, 32px); position: relative; }
.tl-list::before { content: ""; position: absolute; left: 0; right: 0; top: calc(clamp(56px, 6vw, 96px) + 22px); height: 2px; background: color-mix(in srgb, var(--cream) 30%, transparent); }
.tl-item { position: relative; }
.tl-year { display: block; font-family: var(--f-display); font-weight: 900; font-style: italic; font-size: clamp(56px, 6vw, 96px); line-height: 1; letter-spacing: -.04em; font-variation-settings: "SOFT" 100, "WONK" 1; }
.tl-dot { display: block; width: 18px; height: 18px; border-radius: 50%; margin: 13px 0 22px; position: relative; z-index: 1; box-shadow: 0 0 0 6px var(--plum); }
.tl-item h3 { font-family: var(--f-display); font-weight: 650; font-size: clamp(22px, 1.8vw, 28px); margin: 0 0 10px; font-variation-settings: "SOFT" 80; }
.tl-item p { margin: 0; font-size: 17px; line-height: 1.5; opacity: .85; max-width: 24em; }
.tl-mostarda .tl-year { color: var(--mustard); } .tl-mostarda .tl-dot { background: var(--mustard); }
.tl-coral .tl-year { color: var(--coral); } .tl-coral .tl-dot { background: var(--coral); }
.tl-roxo .tl-year { color: var(--pink); } .tl-roxo .tl-dot { background: var(--pink); }
.tl-turquesa .tl-year { color: var(--cyan); } .tl-turquesa .tl-dot { background: var(--cyan); }

.essay { padding: clamp(70px, 9vw, 140px) 0; }
.essay + .essay { border-top: 1px solid var(--line); }
.essay-tint { background: color-mix(in srgb, var(--mustard) 13%, var(--paper)); border-top: 0 !important; }
.essay-tint + .essay { border-top: 0; }
.essay-in { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(30px, 6vw, 110px); align-items: start; }
.essay-side { position: sticky; top: 110px; }
.essay-num { font-family: var(--f-display); font-weight: 900; font-style: italic; font-size: clamp(80px, 9vw, 150px); line-height: .8; margin: 0 0 18px; color: var(--coral); letter-spacing: -.05em; font-variation-settings: "SOFT" 100, "WONK" 1; }
.essay-tint .essay-num { color: var(--purple); }
.essay-title { font-family: var(--f-display); font-weight: 750; font-size: clamp(38px, 4vw, 68px); line-height: .98; letter-spacing: -.03em; margin: 0 0 22px; font-variation-settings: "SOFT" 100; text-wrap: balance; }
.essay-by { font-family: var(--f-ui); font-size: 15px; color: var(--ink-2); margin: 0; max-width: 26em; line-height: 1.5; }
.essay-text { max-width: 36em; }
.essay-text .drop::first-letter { color: var(--coral); }
.essay-tint .essay-text .drop::first-letter { color: var(--purple); }
.signs { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); align-items: start; gap: 14px; margin-top: 2.2em; padding-top: 1.6em; border-top: 1.5px solid var(--ink); }
.sign { display: grid; gap: 4px; }
.sign-n { font-family: var(--f-display); font-weight: 650; font-size: 1.08em; line-height: 1.2; font-variation-settings: "SOFT" 80; }
.sign-r { font-family: var(--f-ui); font-size: .7em; line-height: 1.4; color: var(--muted); }
.pull-sobre { margin-left: 0; margin-right: 0; background: var(--purple); color: var(--cream); padding-right: clamp(28px, 9vw, 150px); }
.pull-sobre .pull-mark { color: var(--mustard); }
.pull-cap { display: block; position: relative; z-index: 1; margin-top: 16px; font-family: var(--f-ui); font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; opacity: .8; }

/* ==========================================================================
   Movimento
   ========================================================================== */
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pop { from { opacity: 0; transform: translateY(14px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@keyframes floaty2 { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(10px); } }
@keyframes pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.045); } }
@keyframes sway { 0%, 100% { transform: rotate(-2deg); } 50% { transform: rotate(2deg); } }
@keyframes wave { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(-16px); } }
@keyframes grow { from { transform: scaleY(.2); } to { transform: scaleY(1); } }
@keyframes rise { from { transform: translateY(105%); } to { transform: none; } }

.art .a-float { animation: floaty 7s ease-in-out infinite; }
.art .a-float2 { animation: floaty2 9s ease-in-out infinite; }
.art .a-pulse { animation: pulse 5s ease-in-out infinite; }
.art .a-spin { animation: spin 16s linear infinite; }
.art .a-spin-slow { animation: spin 60s linear infinite; }
.art .a-sway { animation: sway 8s ease-in-out infinite; }
.art .a-wave { animation: wave 6s ease-in-out infinite; }
.art .a-grow { animation: grow 1.6s var(--ease-out) both; }
.art-card .a-float, .art-card .a-float2, .art-card .a-pulse, .art-card .a-spin, .art-card .a-spin-slow, .art-card .a-sway, .art-card .a-wave, .art-np * { animation: none; }
.card:hover .art-card .a-float { animation: floaty 3.5s ease-in-out infinite; }
.card:hover .art-card .a-spin-slow, .card:hover .art-card .a-spin { animation: spin 10s linear infinite; }
.card:hover .art-card .a-pulse { animation: pulse 2.4s ease-in-out infinite; }
.card:hover .art-card .a-wave { animation: wave 2.4s ease-in-out infinite; }
.card:hover .art-card .a-sway { animation: sway 3s ease-in-out infinite; }

.js .reveal { opacity: 0; transform: translateY(34px); transition: opacity 1s var(--ease-out), transform 1.1s var(--ease-out); transition-delay: var(--d, 0s); }
.js .reveal.is-in { opacity: 1; transform: none; }
.js .prose .reveal { transform: translateY(16px); transition-duration: .6s, .7s; transition-delay: 0s; }
.js .prose .reveal.is-in { transform: none; }
.js .split .w { display: inline-block; overflow: hidden; vertical-align: bottom; padding-bottom: .08em; margin-bottom: -.08em; }
.js .split .w > span { display: inline-block; transform: translateY(105%); transition: transform .95s var(--ease-out); transition-delay: calc(var(--i) * 45ms + var(--d, 0s)); }
.js .split.is-in .w > span { transform: none; }
.js .book3d { opacity: 0; transform: translate(-50%, -40%) scale(.94); transition: opacity 1.2s var(--ease-out) .3s, transform 1.4s var(--ease-out) .3s; }
.js .book3d.is-in { opacity: 1; transform: translate(-50%, -48%); }
.js .hv-circle, .js .hv-stripes, .js .hv-rings, .js .hv-dots, .js .hv-half { transition: opacity 1s var(--ease-out), translate 1.2s var(--ease-out); }
.js .hero:not(.is-in) .hv-circle { opacity: 0; translate: 0 30px; }
.js .hero:not(.is-in) .hv-stripes { opacity: 0; translate: 40px 0; }
.js .hero:not(.is-in) .hv-rings { opacity: 0; translate: -40px 0; }
.js .hero:not(.is-in) .hv-dots, .js .hero:not(.is-in) .hv-half { opacity: 0; }

/* ==========================================================================
   Responsivo
   ========================================================================== */
@media (max-width: 1200px) {
  .nav { display: none; }
  .menu-btn { display: inline-flex; }
  .org-grid { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(3, 1fr); }
  .stats li:nth-child(3) { border-right: 0; }
  .stats li:nth-child(4) { padding-left: 0; }
}
@media (max-width: 1100px) {
  .reader { grid-template-columns: minmax(0, 1fr); }
  .prose { margin: 0 auto; }
  .toc { position: fixed; inset: 0 auto 0 0; width: min(360px, 88vw); z-index: 120; background: var(--paper); transform: translateX(-102%); transition: transform .5s var(--ease-out); box-shadow: 30px 0 60px -30px rgba(0,0,0,.4); padding: 80px 18px 24px; }
  .toc.is-open { transform: none; }
  .toc-in { position: static; max-height: 100%; height: 100%; }
  .toc-fab { display: inline-flex; position: fixed; left: 16px; bottom: 18px; z-index: 110; gap: 8px; align-items: center; padding: 12px 18px; border-radius: 999px; background: var(--ink); color: var(--paper); font-family: var(--f-ui); font-weight: 600; font-size: 14px; box-shadow: 0 16px 30px -12px rgba(0,0,0,.45); }
  .toc-fab svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
  .ch-notes > * { margin-left: auto; margin-right: auto; }
  .pull { margin-left: 0; margin-right: 0; }
}
@media (max-width: 980px) {
  .hero-in { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .hero-visual { max-width: 560px; justify-self: center; order: -1; margin-top: 10px; }
  .intro-in, .part-head, .sum-grid, .page-hero { grid-template-columns: minmax(0, 1fr); }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .card-wide { grid-column: auto; grid-template-columns: 1fr; grid-template-rows: auto 1fr auto; }
  .card-wide .card-art, .card-wide .card-body { grid-column: 1; grid-row: auto; }
  .card-wide .card-num { font-size: 76px; }
  .card-wide .card-title { font-size: clamp(25px, 2vw, 32px); }
  .card-fill { display: none; }
  .ch-hero-in { grid-template-columns: minmax(0, 1fr); }
  .ch-hero-art { order: -1; max-width: 300px; justify-self: end; margin: -10px 0 -60px; }
  .ch-meta { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ch-meta li:first-child { grid-column: 1 / -1; }
  .howto-steps { grid-template-columns: 1fr; }
  .sum-ch { grid-template-columns: minmax(0, 1fr); }
  .sum-secs { grid-column: 1; grid-row: auto; margin-left: 106px; }
  .foot-in { grid-template-columns: 1fr; grid-template-areas: "brand" "init" "nav" "legal"; }
  .essay-in { grid-template-columns: minmax(0, 1fr); }
  .essay-side { position: static; }
  .tl-list { grid-template-columns: 1fr 1fr; }
  .tl-list::before { display: none; }
  .part-photo { max-width: 460px; }
  .ph-art { display: none; }
  .ph-photo { max-width: 420px; }
}
@media (max-width: 680px) {
  .init-k, .init-wa-k { display: none; }
  .init-in { min-height: 46px; gap: 10px; }
  .init-brand { gap: 9px; }
  .logo-raras { height: 20px; }
  .logo-imip { height: 24px; }
  .init-wa { font-size: 13px; padding: 6px 11px 6px 8px; gap: 7px; }
  .init-wa .wa-ico { width: 18px; height: 18px; }
  .wa-fab { right: 14px; bottom: 14px; padding: 11px; }
  .wa-fab .wa-ico { width: 27px; height: 27px; }
  .tl-list { grid-template-columns: 1fr; }
  .tl-list::before { display: none; }
  .foot-wa b { font-size: 18px; }
  body { font-size: 17px; }
  .brand-t { font-size: 16.5px; }
  .kbd { display: none; }
  .bar-chapter { display: none; }
  .bar-tools [data-theme-toggle] { display: none; }
  .menu-sheet [data-theme-toggle] { display: flex; }
  .brand { gap: 9px; }
  .brand-mark { width: 30px; height: 30px; }
  .brand-mark i:first-child { inset: 6px; }
  .bar-in { gap: 10px; padding-top: 10px; padding-bottom: 10px; }
  .tool { height: 38px; min-width: 38px; padding: 0 8px; }
  .cards { grid-template-columns: 1fr; }
  .card, .card-wide { grid-column: auto; min-height: 480px; }
  .card-wide { grid-template-columns: 1fr; grid-template-rows: auto 1fr auto; }
  .card-wide .card-art, .card-wide .card-body { grid-column: 1; grid-row: auto; }
  .card-wide .card-num { font-size: 76px; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stats li, .stats li + li { padding: 20px 12px 6px 0; border-right: 0; }
  .stats li:nth-child(even) { padding-left: 14px; border-left: 1px solid var(--line); }
  .org-grid { grid-template-columns: 1fr; }
  .nextprev { grid-template-columns: 1fr; }
  .np-num { font-size: 80px; }
  .sum-ch-head { grid-template-columns: 62px 1fr; }
  .sum-ch-p { display: none; }
  .sum-ch-num { font-size: 44px; }
  .sum-ch-dek, .sum-secs { margin-left: 0; }
  .prose h4.q { gap: 10px; }
  .prose h4.q .q-mark { width: 24px; height: 24px; top: 3px; }
  .prose h4.q .q-mark::after { font-size: 15px; }
  .marquee { padding: 16px 0; }
  .hero-title { font-size: clamp(46px, 15vw, 120px); letter-spacing: -.05em; }
  .hv-stripes { right: -8%; }
  .ch-hero-art { max-width: 200px; margin-bottom: -40px; }
  .ch-num { font-size: 120px; }
  .fig-row.n3 { flex-wrap: wrap; }
  .search { padding-top: 12px; }
}


/* telas grandes (2K / 4K) */
@media (min-width: 1900px) {
  :root { --maxw: 1800px; --radius: 26px; --read-size: calc(22px + var(--fs-step) * 1.5px); }
  body { font-size: 20px; }
  .hero-title { font-size: clamp(64px, 10.8vw, 252px); }
  .hero-visual { max-width: 880px; }
  .hero-lede { font-size: 26px; }
  .reader { grid-template-columns: 330px minmax(0, 1fr); }
  .ch-notes > * { margin-left: calc(330px + clamp(28px, 5vw, 96px)); }
  .card { min-height: 640px; }
  .card-title { font-size: 36px; }
  .card-wide .card-title { font-size: 56px; }
  .ch-title { font-size: clamp(44px, 5.6vw, 126px); }
  .ch-num { font-size: clamp(120px, 17vw, 360px); }
  .ch-hero-art .art { max-width: 660px; }
  .part-title { font-size: clamp(56px, 8.2vw, 184px); }
  .intro-quote p { font-size: 68px; }
  .sum-text p { font-size: 29px; }
  .toc-list a { font-size: 15px; }
}
@media (min-width: 2400px) {
  :root { --maxw: 2140px; --read-size: calc(24px + var(--fs-step) * 1.5px); }
  .hero-title { font-size: 300px; }
  .hero-visual { max-width: 1040px; }
  .ch-title { font-size: 146px; }
  .ch-num { font-size: 420px; }
  .part-title { font-size: 220px; }
  .reader { grid-template-columns: 380px minmax(0, 1fr); }
  .ch-notes > * { margin-left: calc(380px + 96px); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .js .reveal, .js .split .w > span, .js .book3d { opacity: 1 !important; transform: none !important; }
}

@media print {
  .bar, .toc, .toc-fab, .nextprev, .foot, .search, .lightbox, .ch-hero-art, body::before { display: none !important; }
  .reader { display: block; }
  .prose { max-width: none; font-size: 12pt; }
  .ch-hero, .ch-hero * { background: none !important; color: #000 !important; }
}
