:root {
  color-scheme: dark;
  --surface: #000;
  --ink: #f2f2f2;
  --accent: #4a5297;
  --focus: #8792df;
  --rule: #333;
  --gutter: clamp(1.3rem, 5vw, 5rem);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-snap-type: y proximity; }
body {
  margin: 0; color: var(--ink); font: 1rem/1.5 Georgia, serif;
  background: var(--surface);
}
a { color: inherit; }
a:focus-visible { outline: 2px solid var(--focus); outline-offset: 4px; }
.stage { scroll-snap-align: start; }
.hero {
  --masthead-text: #f2f2f2;
  --masthead-panel: #191919;
  display: flex; flex-direction: column;
  background: var(--surface);
  color: var(--masthead-text);
  border-top: 6px solid var(--accent);
}
.nav {
  display: flex; align-items: center; justify-content: space-between; gap: .75rem;
  margin-inline: var(--gutter); min-height: 4rem; border-bottom: 1px solid #333;
}
.hero .nav {
  margin-inline: 0; padding-inline: var(--gutter);
  background: #242424; color: var(--masthead-text);
  border-bottom: 1px solid #444;
}
.hero .nav a { font-family: "IBM Plex Mono", Consolas, monospace; }
.hero .nav { flex-wrap: wrap; padding-block: .35rem; }
.nav-sections { display: flex; justify-content: center; gap: .6rem; }
.nav-sections a {
  display: inline-flex; align-items: center; min-height: 44px; padding: .45rem .65rem;
  border: 1px solid #555; border-radius: 3px; letter-spacing: .08em;
  font-size: .85rem; text-decoration: none;
}
.nav-sections a:is(:hover, :focus-visible) {
  background: var(--accent); border-color: var(--focus); text-decoration: none;
}
.languages { display: flex; gap: .25rem; }
.languages a { display: grid; place-items: center; min-width: 44px; min-height: 44px; border-bottom: 2px solid transparent; }
.languages a:hover, .languages a[aria-current="page"] { border-bottom-color: var(--focus); }
.languages svg { display: block; width: 23px; height: 15px; }
.nav a, .label, .window-bar, .next {
  font: 700 .75rem/1.3 system-ui; letter-spacing: .15em; text-transform: uppercase;
}
.nav a, .next { text-decoration: none; }
.nav a:hover, .next:hover { text-decoration: underline; text-underline-offset: .28em; }
.hero-content {
  text-align: center;
  padding: clamp(1.25rem, 3vw, 2.5rem) var(--gutter);
}
h1 { width: min(100%, 34rem); margin: 0 auto; }
.hero-art { margin: 0; position: relative; }
.hero-art::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse at 53% 52%, transparent 22%, #0b0b0b40 65%, #0b0b0ba0 100%);
}
.hero-art::after {
  content: ""; position: absolute; inset: clamp(.65rem, 2vw, 1.5rem);
  pointer-events: none;
  background:
    linear-gradient(#f2f2f2c9, #f2f2f2c9) left top / 1.65rem 1px,
    linear-gradient(#f2f2f2c9, #f2f2f2c9) left top / 1px 1.1rem,
    linear-gradient(#f2f2f2c9, #f2f2f2c9) right bottom / 1.65rem 1px,
    linear-gradient(#f2f2f2c9, #f2f2f2c9) right bottom / 1px 1.1rem;
  background-repeat: no-repeat;
}
.hero-art img {
  display: block; width: 100%; height: auto;
  max-height: 59svh; object-fit: cover; object-position: center 56%;
}
.brand-art {
  position: relative; display: block; overflow: hidden;
  width: 100%; aspect-ratio: 1500 / 355; mix-blend-mode: screen;
}
.brand-art::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, #fbfdff 0%, #e5ebf3 48%, #a8b6ca 100%);
  mix-blend-mode: multiply;
}
.brand-art img { position: absolute; display: block; width: 136.54%; height: auto; left: -20%; top: -23.94%; filter: grayscale(1) invert(1) contrast(1.2); }
.tagline {
  margin: 1rem 0 2rem; font: 700 clamp(.75rem, 1.4vw, 1.1rem) system-ui;
  letter-spacing: .24em; text-transform: uppercase;
}
figure { margin: 0; }
.sequence {
  padding: .85rem var(--gutter); background: var(--masthead-panel); color: var(--masthead-text);
  border-top: 2px solid var(--accent);
  font-family: "IBM Plex Mono", Consolas, monospace;
}
.postreal-home .hero .nav-sections {
  background: var(--surface);
  border-top: 0;
  flex-wrap: wrap;
}
.postreal-home .france-edition {
  background: var(--surface);
}
.article-stage {
  min-height: 100svh; display: grid; align-content: center; gap: 1.4rem;
  padding: clamp(2rem, 8vh, 5rem) var(--gutter);
}
.window {
  width: min(100%, 72rem); margin-inline: auto; background: var(--surface);
  border: 1px solid var(--rule);
}
.window-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: .85rem 1.2rem; border-bottom: 1px solid var(--rule); color: var(--focus);
}
.window-copy { display: grid; align-content: center; gap: .8rem; padding: clamp(1.3rem, 4vw, 4rem); }
.window-copy h2 { margin: 0; font: 700 clamp(2rem, 4.7vw, 4.7rem)/1 Georgia, serif; letter-spacing: -.045em; }
.window-copy p { margin: 0; color: #b8bac4; }
.panorama .window-copy { padding-top: 1.2rem; }
.next { color: var(--ink); justify-self: center; padding: .5rem; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; scroll-snap-type: none; }
}
.section-page .article-stage { min-height: 0; }
.story { width: min(100%, 52rem); margin-inline: auto; padding: 2.5rem 1rem 4rem; }
.story h2 { margin: 0 0 1.5rem; font-size: clamp(2rem, 5vw, 3.5rem); }
.story figure { margin: 0 0 1.5rem; position: relative; container-type: inline-size; }
.story img { display: block; width: 100%; height: auto; }
.story figure:has(img[src="quadro-notificacao-celular.png"]),
.story figure:has(img[src="historia-fila.png"]) {
  aspect-ratio: 2 / 3;
  display: grid;
  align-content: center;
}
.story .story-panels > figure[hidden] { display: none; }
.story figcaption { padding: .8rem 1rem; background: #191919; color: var(--ink); }
.story figcaption p { margin: 0; }
.story figcaption p + p { margin-top: .35rem; }
.story figcaption:has(.speech) {
  position: absolute; inset: 3% 4% auto;
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 1.5cqw; padding: 0; background: transparent;
}
.story .speech {
  position: relative; width: fit-content; max-width: 100%; margin: 0;
  padding: .3em .65em; border: 1px solid #222; border-radius: 1.15em;
  background: #fff; color: #111; font: 600 clamp(.625rem, 2.2cqw, 1rem)/1.16 system-ui, sans-serif;
}
.speech::after {
  content: ""; position: absolute; top: calc(100% - 2px);
  left: var(--tail-left, 35%); width: var(--tail-width, 4cqw); height: 3.5cqw;
  background: #fff; clip-path: polygon(0 0, 100% 0, var(--tail-tip, 75%) 100%);
}
.story figure:has(img[src="historia-banco.png"]) figcaption {
  inset: 1% 4% auto; display: grid; grid-template-columns: 1fr 1fr; gap: 1.2cqw;
}
.story figure:has(img[src="historia-banco.png"]) .speech:first-child {
  justify-self: center; --tail-left: 46%; --tail-tip: 75%;
}
.story figure:has(img[src="historia-banco.png"]) .speech:last-child { margin-left: 6cqw; }
.story figure:has(img[src="historia-banco.png"]) .speaker-son {
  justify-self: center; --tail-left: 30%; --tail-tip: 15%;
}
.story figure:has(img[src="historia-banco.png"]) .speech:last-child {
  grid-column: 1 / -1; max-width: 70%; --tail-left: 32%; --tail-tip: 20%;
}
.story figure:has(img[src="historia-fila.png"]) figcaption {
  inset: 20% 31% auto 23%;
}
.story figure:has(img[src="historia-fila.png"]) .speech::after {
  top: 50%; left: auto; right: calc(100% - 2px); width: 5cqw;
  clip-path: polygon(100% 0, 100% 100%, 0 30%);
}
.story figure:has(img[src="historia-espera.png"]) figcaption {
  inset: 1.5% 47% auto 13%; flex-direction: column; gap: 2cqw;
}
.story figure:has(img[src="historia-espera.png"]) .speaker-son {
  align-self: end;
}
.story figure:has(img[src="historia-espera.png"]) .speaker-son::after {
  top: 50%; left: calc(100% - 2px); width: 6cqw; height: 4cqw;
  clip-path: polygon(0 0, 0 65%, 100% 100%);
}
.story figure:has(img[src="historia-espera.png"]) .speaker-father {
  --tail-left: 65%; --tail-tip: 90%;
}
.story-controls:not([hidden]) {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: .3rem; width: fit-content; max-width: 100%; margin: 0 auto;
  padding: .15rem .35rem; border-radius: 999px; background: #191919;
}
.story-controls button {
  min-height: 44px; min-width: 44px; padding: .25rem .5rem;
  border: 0; border-radius: 999px; background: transparent;
  color: var(--ink); font: .8rem system-ui, sans-serif;
}
.story-controls button[data-step] { font-size: 1.4rem; }
.story-controls button:enabled { cursor: pointer; }
.story-controls button:enabled:hover { background: #333; }
.story-controls button:focus-visible { outline: 1px solid var(--focus); }
.story-controls button:disabled { opacity: .35; }
.story-controls span { min-width: 2.5rem; text-align: center; color: #bbb; font: .78rem monospace; }
.story-return { position: relative; container-type: inline-size; }
.story-return figcaption {
  position: absolute; inset: 3.5% 4% auto 60%; min-height: 9%;
  display: grid; place-items: center; padding: .4em .65em;
  border-radius: 1em; background: #fff; color: #111;
  font: 600 clamp(.65rem, 2.25cqw, 1.05rem)/1.16 system-ui, sans-serif;
}
.story-return figcaption::after {
  content: ""; position: absolute; top: calc(100% - 2px); left: 8%;
  width: 5cqw; height: 4cqw; background: #fff;
  clip-path: polygon(20% 0, 100% 0, 0 100%);
}

.story-panels { position: relative; scroll-margin-top: .5rem; }
.story.is-paged .story-panels > figure {
  width: min(100%, calc((100svh - 6rem) * var(--panel-ratio)));
  aspect-ratio: auto; margin-inline: auto; margin-bottom: .65rem;
}
.story-arrows:not([hidden]) {
  position: absolute; inset: 0; display: flex; align-items: center;
  justify-content: space-between; pointer-events: none;
}
.story-arrows button {
  pointer-events: auto; width: 44px; height: 44px; padding: 0;
  display: grid; place-items: center; border: 1px solid #ffffff55; border-radius: 50%;
  background: #111d; color: #fff; font: 1.6rem/1 system-ui, sans-serif;
}
.story-arrows button:enabled { cursor: pointer; }
.story-arrows button:enabled:is(:hover, :focus-visible) { background: var(--accent); }
.story-arrows button:disabled { opacity: .4; }
.story.is-paged figure:has(img[src="historia-fila.png"]) figcaption { inset-block-start: 5%; }
.story-cover {
  display: grid; justify-items: center; gap: .75rem; width: 100%;
  padding: 0; border: 0; background: transparent; color: inherit; cursor: pointer;
}
.story-cover:not(.news-cover) > span { font: 600 .9rem system-ui, sans-serif; }
.story-cover:focus-visible { outline: 2px solid var(--focus); outline-offset: 5px; }
.story-dialog {
  width: 100%; height: 100dvh; max-width: none; max-height: none;
  margin: 0; padding: .4rem clamp(.5rem, 3vw, 2rem); border: 0;
  background: #080808; color: var(--ink); overscroll-behavior: contain;
}
.story-dialog::backdrop { background: #080808; }
.story-dialog-bar { display: flex; justify-content: end; }
.story-dialog-bar button {
  width: 44px; height: 44px; border: 1px solid #555; border-radius: 50%;
  background: #191919; color: #fff; font-size: 1.5rem; cursor: pointer;
}
.story-dialog .story-panels { margin-inline: auto; max-width: 90rem; }
.story.is-paged .story-dialog figure {
  width: min(100%, calc(max(8rem, 100dvh - 8rem) * var(--panel-ratio)));
}
.story-crop-art {
  position: relative; overflow: hidden; aspect-ratio: var(--panel-ratio);
}
.story-crop-art img {
  position: absolute; width: var(--crop-width); max-width: none;
  left: var(--crop-x); top: var(--crop-y);
}
.news-cover {
  gap: .8rem; padding: clamp(1rem, 4vw, 2.75rem);
  position: relative;
  background:
    var(--paper-folds, linear-gradient(transparent, transparent)),
    radial-gradient(ellipse at 1% 98%, #bfa88040, transparent 45%),
    #f4efdf;
  color: #1b1716; text-align: left;
  box-shadow: inset 0 0 1.25rem #6e594324;
}
#kit-emergencia .news-cover {
  --paper-folds: linear-gradient(47deg, transparent 23%, #6e59432b 25%, #fffaf4aa 26%, transparent 29%) top left / 38% 20% no-repeat;
}
#crise-franca .news-cover {
  --paper-folds: linear-gradient(119deg, transparent 64%, #6e59432b 66%, #fffaf4aa 67%, transparent 71%) bottom right / 49% 25% no-repeat;
}
#materia-1 .news-cover {
  --paper-folds:
    linear-gradient(138deg, transparent 67%, #6e59432b 69%, #fffaf4aa 70%, transparent 73%) top right / 52% 34% no-repeat,
    linear-gradient(126deg, transparent 23%, #6e594326 25%, #fffaf499 26%, transparent 29%) bottom left / 43% 21% no-repeat;
}
#materia-2 .news-cover {
  --paper-folds:
    linear-gradient(72deg, transparent 42%, #6e594326 46%, #fffaf4aa 48%, transparent 53%) top left / 56% 15% no-repeat,
    linear-gradient(150deg, transparent 67%, #6e59432b 69%, #fffaf4aa 70%, transparent 74%) center right / 29% 68% no-repeat,
    linear-gradient(34deg, transparent 66%, #6e594326 68%, #fffaf499 69%, transparent 73%) bottom right / 46% 20% no-repeat;
}
.news-cover .news-masthead {
  width: 100%;
  font: 800 clamp(2.6rem, 9vw, 5.75rem)/1 Georgia, serif; text-align: center;
}
.news-cover .news-edition {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: .2rem 1rem;
  width: 100%; padding: .3rem 0; border-block: 3px double currentColor;
  font: 700 .8rem/1.3 Georgia, serif; letter-spacing: .09em; text-transform: uppercase;
}
.news-cover strong {
  width: 100%; font: 800 clamp(1.8rem, 5.5vw, 4rem)/1.04 Georgia, serif;
}
.news-cover .news-deck { justify-self: start; font: 1.05rem/1.4 Georgia, serif; }
.news-cover img { max-height: 35rem; object-fit: cover; object-position: center 38%; }
.news-cover small { justify-self: start; font: .78rem system-ui, sans-serif; }
.news-story .news-art figcaption { padding: .35rem; text-align: center; font: .8rem system-ui, sans-serif; }
.story.is-paged .story-dialog .news-art { width: min(100%, calc(max(8rem, 100dvh - 10rem) * var(--panel-ratio))); }
.story.is-paged .story-dialog .news-slide {
  width: min(calc(100% - 6rem), 42rem); min-height: min(55svh, 30rem);
  padding: clamp(1rem, 3vw, 2rem); background: #141414; border: 1px solid #333;
  font-size: clamp(1rem, 2.5vw, 1.35rem);
}
.news-slide a { color: #c0c8ff; }
.finance-totals { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.finance-totals :is(th, td) { padding: .3rem .25rem; border-bottom: 1px solid #444; text-align: left; }
.finance-totals tr > :last-child { text-align: right; }
.headline-edit { display: inline-flex; flex-direction: column; align-items: center; }
.headline-edit del {
  position: relative; text-decoration: none;
}
.headline-edit del::after {
  content: ""; position: absolute; inset: 54% -.04em auto;
  height: .065em; background: #a82828; transform: rotate(-5deg); border-radius: 100%;
}
.headline-edit ins {
  color: #a82828; text-decoration: none; transform: rotate(-6deg);
  font: 700 .64em/1.05 "Segoe Print", "Bradley Hand", cursive;
}
.editorial-underline {
  text-decoration: underline #a82828 .08em;
  text-underline-offset: .13em;
  text-decoration-skip-ink: none;
}
.editorial-note {
  display: inline-block; margin-inline-start: .25em; white-space: nowrap;
  color: #a82828; transform: rotate(-5deg);
  font: 700 .95em/1.1 "Segoe Print", "Bradley Hand", cursive;
}

.field-notes { margin-block: clamp(2rem, 8vh, 6rem); }
.field-notes > :is(h1, h2) { text-align: center; }
.field-notes .story-cover img { width: min(100%, 24rem); height: auto; }
