/* ═══ clipping.css — the Pravda clipping (resolution card) ═══
   The engine injects text; this styles the paper. Skeleton: skeletons/clipping.html.

   <article class="clip" data-tone="good|bad|neutral">
     <div class="dateline"><span>MOSCOW — JAN 1953</span><span>PRICE: ONE KOPECK</span></div>   (optional; the masthead strip is drawn by CSS)
     <h2 class="headline">…</h2>
     <div class="stamp good|bad|neutral"><i>★</i><b>Approved for publication</b><small>approval +4</small></div>   (also accepts .stamp-good etc.)
     <div class="body"><p>… <span class="erased">Name</span> …</p></div>        ← .erased = a name airbrushed out (the era breathes)
     <p class="plain"><b>In plain words</b>…</p>
     <div class="delta"><span class="chip up|down|zero">approval +4</span>…</div>
     <aside class="lesson"><q>maxim</q><span class="note">note</span></aside>      ← label "THE LESSON OF HISTORY" is drawn by CSS
     <p class="cutaway"><span class="mw-label">MEANWHILE, IN MOSCOW</span>text</p>   (see meanwhile.css for the full cutaway bar)
   </article>
   Reads era variables: --paper --ink --accent --gold --dim --photo --grain (eras.css). Animation: transform/opacity only. */

.clip {
  --c-paper: var(--paper, #e9dfc4); --c-ink: var(--ink, #17130e); --c-red: var(--accent, #b0121f); --c-dim: var(--dim, #7a7466); --c-gold: var(--gold, #d4a93c);
  --cut: polygon(0.00% 0.11%,4.00% 0.48%,8.00% 0.06%,12.00% 0.35%,16.00% 0.04%,20.00% 0.12%,24.00% 0.50%,28.00% 0.10%,32.00% 0.32%,36.00% 0.23%,40.00% 0.23%,44.00% 0.25%,48.00% 0.10%,52.00% 0.42%,56.00% 0.04%,60.00% 0.12%,64.00% 0.01%,68.00% 0.13%,72.00% 0.20%,76.00% 0.45%,80.00% 0.19%,84.00% 0.06%,88.00% 0.13%,92.00% 0.50%,96.00% 0.03%,100.00% 0.31%,99.91% 7.14%,99.83% 14.29%,99.92% 21.43%,99.83% 28.57%,99.88% 35.71%,99.84% 42.86%,99.77% 50.00%,99.85% 57.14%,99.96% 64.29%,99.98% 71.43%,99.76% 78.57%,99.88% 85.71%,99.95% 92.86%,100.00% 99.53%,96.00% 99.71%,92.00% 99.64%,88.00% 99.56%,84.00% 99.86%,80.00% 99.82%,76.00% 99.56%,72.00% 99.93%,68.00% 99.62%,64.00% 99.95%,60.00% 99.65%,56.00% 99.65%,52.00% 99.53%,48.00% 99.58%,44.00% 99.75%,40.00% 99.90%,36.00% 99.92%,32.00% 99.74%,28.00% 99.75%,24.00% 99.96%,20.00% 99.55%,16.00% 99.75%,12.00% 99.65%,8.00% 99.89%,4.00% 99.88%,0.00% 99.99%,0.09% 92.86%,0.07% 85.71%,0.11% 78.57%,0.09% 71.43%,0.21% 64.29%,0.22% 57.14%,0.04% 50.00%,0.10% 42.86%,0.04% 35.71%,0.17% 28.57%,0.24% 21.43%,0.05% 14.29%,0.19% 7.14%);
  position: relative; margin: 22px 3px 10px; container-type: inline-size; font-family: Georgia, 'Times New Roman', serif; color: var(--c-ink);
  transform: rotate(-.6deg); filter: drop-shadow(0 16px 14px rgba(0,0,0,.55)) drop-shadow(0 2px 3px rgba(0,0,0,.5));
  animation: clip-in .7s cubic-bezier(.2,.9,.25,1.04) both;
}
@keyframes clip-in { from { transform: translateY(30px) rotate(-3.5deg) scale(.94); opacity: 0; } 60% { opacity: 1; } to { opacity: 1; } }
.clip::before { content: ""; position: absolute; inset: 0; clip-path: var(--cut);                 /* newsprint */
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='260' height='260'><filter id='p'><feTurbulence type='fractalNoise' baseFrequency='.6' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 .4  0 0 0 0 .3  0 0 0 0 .14  0 0 0 .55 -.1'/></filter><rect width='100%' height='100%' filter='url(%23p)'/></svg>"), radial-gradient(60% 40% at 88% 14%, rgba(120,80,20,.16), transparent 70%), radial-gradient(40% 30% at 6% 96%, rgba(120,80,20,.14), transparent 70%), linear-gradient(180deg, color-mix(in srgb, var(--c-paper) 92%, #fff), var(--c-paper) 55%, color-mix(in srgb, var(--c-paper) 82%, #8a6a30)); box-shadow: inset 0 0 34px rgba(110,70,20,.34); }
.clip::after { position: absolute; clip-path: var(--cut); pointer-events: none; z-index: 3; }
.clip > * { position: relative; z-index: 2; margin-left: 5cqw; margin-right: 5cqw; }
.clip > :last-child { margin-bottom: 6cqw; }

/* masthead strip — drawn here on ::after, no markup needed (the first child clears it) */
.clip > :first-child { margin-top: 14cqw; }
.clip::after { content: "★  ПРАВДА  ★"; inset: 0 0 auto 0; height: 11.5cqw; display: grid; place-items: center; white-space: nowrap; padding-top: .6cqw;
  font: 900 8cqw/1 'Rockwell Extra Bold', Rockwell, 'Roboto Slab', 'DejaVu Serif', Georgia, serif; letter-spacing: .08em; color: var(--c-paper); background: var(--c-red);
  border-bottom: .8cqw solid var(--c-ink); box-shadow: inset 0 -.5cqw 0 rgba(255,255,255,.22); opacity: 1; }
.clip .dateline { display: flex; justify-content: space-between; gap: 2cqw; padding: 1.8cqw 0 1.6cqw; margin-top: 14cqw; margin-bottom: 0; border-bottom: .5cqw double var(--c-ink); font: 700 2.5cqw/1 Georgia, serif; letter-spacing: .18em; color: color-mix(in srgb, var(--c-ink) 70%, var(--c-paper)); text-transform: uppercase; }
.clip .headline { margin-top: 3.4cqw; margin-bottom: 0; text-align: center; font: 900 9cqw/1.06 Georgia, serif; text-transform: uppercase; letter-spacing: -.012em; text-wrap: balance; color: #120f0b; overflow-wrap: anywhere; filter: none; } /* kills style.css's hard 4px drop-shadow inherited from .headline */
.clip .headline.long { font-size: 7cqw; }

/* the censor's seal */
.clip .stamp { position: relative; display: grid; grid-template-columns: auto 1fr; align-items: center; column-gap: 2cqw; width: max-content; max-width: 88%; margin: 3cqw 2cqw -1.5cqw auto;
  padding: 1.5cqw 2.8cqw 1.3cqw 2cqw; border: .9cqw double currentColor; border-radius: 1cqw; color: var(--c-red); text-transform: uppercase; mix-blend-mode: multiply;
  transform: rotate(-7deg); background: rgba(255,255,255,.06); animation: clip-seal .45s cubic-bezier(.3,.9,.3,1) .5s both; }
.clip .stamp i { grid-row: 1 / 3; font: normal 8cqw/1 Georgia, serif; }
.clip .stamp b { font: 900 5.2cqw/1.02 Impact, 'Haettenschweiler', 'Arial Black', sans-serif; letter-spacing: .05em; }
.clip .stamp small { font: 700 2.3cqw/1.1 Georgia, serif; letter-spacing: .26em; margin-top: .8cqw; }
.clip .stamp.good, .clip .stamp-good { color: var(--c-red); }
.clip .stamp.bad, .clip .stamp-bad { color: #6e0b14; background: repeating-linear-gradient(-18deg, transparent 0 3cqw, rgba(110,11,20,.13) 3cqw 3.6cqw); }
.clip .stamp.bad::after, .clip .stamp-bad::after { content: ""; position: absolute; left: -2%; right: -2%; top: 46%; height: 1.2cqw; background: currentColor; transform: rotate(-5deg); opacity: .85; }
.clip .stamp.neutral, .clip .stamp-neutral { color: #33406b; }
@keyframes clip-seal { from { transform: scale(3) rotate(-26deg); opacity: 0; } 55% { transform: scale(.94) rotate(-9deg); opacity: 1; } to { transform: rotate(-7deg); opacity: 1; } }

/* body: two newspaper columns with a rule */
.clip .body { margin-top: 6cqw; font-size: 3.9cqw; line-height: 1.5; text-align: justify; hyphens: auto; columns: 2; column-gap: 4cqw; column-rule: 1px solid rgba(23,19,14,.35); }
.clip .body p { margin: 0 0 1.8cqw; break-inside: auto; }
.clip .body p:first-child::first-letter { float: left; font: 900 12cqw/.82 Georgia, serif; padding: .6cqw 1cqw 0 0; color: var(--c-red); }
/* an airbrushed name: the era breathes */
.clip .erased { position: relative; display: inline-block; color: transparent; background: radial-gradient(closest-side, rgba(150,140,115,.55), rgba(150,140,115,.18) 70%, transparent); border-radius: 50%; padding: 0 .5em; filter: blur(.6px); user-select: none; }
.clip .erased::after { content: ""; position: absolute; inset: 15% -6%; background: repeating-linear-gradient(0deg, rgba(23,19,14,.06) 0 1px, transparent 1px 3px); border-radius: 50%; }

/* the era breathes: a faint airbrushed ghost somewhere in the column (add class "no-erase" to the .clip to suppress) */
.clip .body { position: relative; }
.clip:not(.no-erase) .body::after { content: ""; position: absolute; right: 8%; top: 38%; width: 22cqw; height: 8cqw; border-radius: 50%; pointer-events: none; mix-blend-mode: multiply;
  background: radial-gradient(closest-side, rgba(140,130,105,.4), rgba(140,130,105,.12) 70%, transparent); filter: blur(1.2px); transform: rotate(-4deg); }
.clip .plain { margin-top: 3.6cqw; padding: 2.4cqw 3cqw 2.6cqw; background: rgba(23,19,14,.07); border-left: 1cqw solid var(--c-red); font: italic 3.8cqw/1.45 Georgia, serif; }
.clip .plain b { display: block; margin-bottom: 1cqw; font: 800 2.4cqw/1 Georgia, serif; letter-spacing: .26em; text-transform: uppercase; font-style: normal; color: var(--c-red); }

.clip .delta { display: flex; flex-wrap: wrap; gap: 1.6cqw; margin-top: 3.4cqw; padding-top: 2.4cqw; border-top: .5cqw double var(--c-ink); }
.clip .delta .chip { padding: 1.2cqw 2.4cqw; border: .5cqw solid currentColor; border-radius: 99px; font: 800 2.9cqw/1 Georgia, serif; letter-spacing: .1em; text-transform: uppercase; }
.clip .delta .chip.up { color: #1a6b32; } .clip .delta .chip.down { color: var(--c-red); } .clip .delta .chip.zero { color: var(--c-dim); border-style: dashed; }

/* THE LESSON OF HISTORY — a Party-school maxim */
.clip .lesson { margin-top: 3.6cqw; padding: 3.2cqw 4cqw 3cqw; text-align: center; background: color-mix(in srgb, var(--c-red) 8%, transparent); border: .6cqw solid var(--c-red); outline: .35cqw solid var(--c-red); outline-offset: .8cqw; }
.clip .lesson::before { content: "★  THE LESSON OF HISTORY  ★"; display: block; margin-bottom: 2cqw; font: 800 2.4cqw/1 Georgia, serif; letter-spacing: .3em; color: var(--c-red); }
.clip .lesson q { display: block; font: italic 5cqw/1.3 Georgia, serif; quotes: "«" "»"; color: #1a1410; }
.clip .lesson .note { display: block; margin-top: 1.8cqw; font: 3.4cqw/1.4 Georgia, serif; color: color-mix(in srgb, var(--c-ink) 72%, var(--c-paper)); }

/* MEANWHILE line carried inside the clipping (full noir bar lives in meanwhile.css) */
.clip .cutaway { margin-top: 3.4cqw; padding: 2.6cqw 3cqw; background: #14100d; color: #d9cfb8; font: italic 3.8cqw/1.5 Georgia, serif; border-top: .7cqw solid #000; border-bottom: .7cqw solid #000; }
.clip .cutaway .mw-label, .clip .cutaway b { display: block; margin-bottom: 1.2cqw; font: 800 2.4cqw/1 Georgia, serif; font-style: normal; letter-spacing: .4em; color: #ff5a5f; }

@media (max-width: 330px) { .clip .body { columns: 1; } }
@media (prefers-reduced-motion: reduce) { .clip, .clip .stamp { animation: none; } }
