/* The circle's newspaper: a reading room. Colours sampled from the scans themselves - the aged paper (#d8cfb7),
   the near-black ink (#0a0604), the sepia of the photos - with one editor's red pencil for stamps and marks.
   The paper is the hero; the site is the desk under it. */

body:has(.np) { background: #15100a; }
body:has(.np) .sky, body:has(.np) .aurora, body:has(.np) .doodles, body:has(.np) #stars, body:has(.np) .page-photo { display: none; }
.np { --paper: #d8cfb7; --paper-hi: #ebe3cc; --ink: #0a0604; --sepia: #6b5635; --desk: #15100a; --desk2: #231a10; --red: #b3261e; --lamp: rgba(255, 214, 150, 0.16);
  --f-news: 'Rubik', 'Alef', sans-serif; --f-hand: 'Playpen Sans Hebrew', 'Rubik', sans-serif;
  color: var(--paper-hi); background: radial-gradient(70vmax 50vmax at 50% 0%, var(--lamp), transparent 70%), var(--desk); overflow-x: clip; }
.np-wrap { width: min(1240px, 100% - 2 * clamp(16px, 4vw, 48px)); margin-inline: auto; }
.np h2 { margin: 0 0 12px; font: 900 clamp(2rem, 4.6vw, 3.6rem)/1.05 var(--f-news); color: var(--paper-hi); letter-spacing: -0.01em; }
.np-kicker { margin: 0 0 14px; }
.np-kicker span { display: inline-block; padding: 3px 12px; font: 800 0.9rem var(--f-news); letter-spacing: 0.06em; color: var(--desk); background: var(--paper); box-shadow: 3px 3px 0 var(--red); rotate: -1.5deg; }
.np-sub { margin: 0 0 26px; max-width: 640px; font-size: 1.1rem; line-height: 1.7; color: #cfc4a8; }

/* ---------- the hero: a special edition just dropped on the desk ---------- */
.np-hero { position: relative; padding: clamp(110px, 13vw, 160px) 0 clamp(40px, 6vw, 80px); }
.np-hero::before { content: ''; position: absolute; inset: 0; z-index: -1; opacity: 0.5; background: repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.015) 0 2px, transparent 2px 7px), radial-gradient(60vmax 40vmax at 30% 60%, rgba(255, 190, 120, 0.12), transparent 70%); }
.np-hero-in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(30px, 5vw, 80px); align-items: center; }
.np-hero h1 { margin: 0; display: grid; font-family: var(--f-news); font-weight: 900; line-height: 0.98; color: var(--paper-hi); }
.np-hero h1 .np-l0 { font-size: clamp(2rem, 4.4vw, 3.5rem); color: #cfc4a8; }
.np-hero h1 .np-l1 { font-size: clamp(3rem, 7.6vw, 6.2rem); letter-spacing: -0.02em; text-shadow: 4px 4px 0 var(--red); }
.js .np-hero h1 span { animation: np-print 0.9s cubic-bezier(.2, .8, .2, 1) both; }
.js .np-hero h1 .np-l1 { animation-delay: 0.35s; }
@keyframes np-print { from { opacity: 0; clip-path: inset(0 0 0 100%); filter: blur(3px); } to { opacity: 1; clip-path: inset(0); filter: none; } }
.np-lead { margin: 22px 0 0; max-width: 560px; font-size: clamp(1.05rem, 1.5vw, 1.2rem); line-height: 1.75; color: #d8ceb4; }
.np-open { display: inline-flex; align-items: center; gap: 10px; margin-top: 26px; padding: 14px 24px; font: 800 1.1rem var(--f-news); color: var(--ink); background: var(--paper); text-decoration: none; box-shadow: 5px 5px 0 var(--ink), 5px 5px 0 1px var(--paper); transition: transform 0.2s, box-shadow 0.2s; }
.np-open:hover { transform: translate(-2px, -2px); box-shadow: 7px 7px 0 var(--red); }
.np-stack { position: relative; display: block; aspect-ratio: 2380 / 3784; width: min(100%, 470px); justify-self: center; }
.np-sheet-s { position: absolute; inset: 0; box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.8); transform-origin: 50% 90%; }
.np-sheet-s img { display: block; width: 100%; height: 100%; object-fit: cover; }
.np-sheet-s.s3 { rotate: -9deg; translate: -14% 3%; filter: brightness(0.6); }
.np-sheet-s.s2 { rotate: 7deg; translate: 12% 1%; filter: brightness(0.7); }
.np-sheet-s.s1 { rotate: -3deg; translate: -5% -2%; filter: brightness(0.82); }
.np-sheet-s.s0 { rotate: 1.5deg; }
.js .np-sheet-s { animation: np-drop 0.9s cubic-bezier(.3, 1.2, .5, 1) both; animation-delay: calc((3 - var(--i)) * 0.14s); }
@keyframes np-drop { from { opacity: 0; transform: translateY(-60px) rotate(8deg) scale(1.08); } }
.np-stack:hover .np-sheet-s.s0 { transform: translateY(-8px) rotate(-1deg); transition: transform 0.4s; }
.np-stamp { position: absolute; z-index: 5; top: 8%; inset-inline-start: -6%; padding: 8px 16px; border: 4px solid var(--red); border-radius: 6px; font: 900 clamp(1rem, 2vw, 1.4rem) var(--f-news); color: var(--red); background: rgba(235, 227, 204, 0.08); rotate: -14deg; mix-blend-mode: normal; text-shadow: 0 0 1px var(--red); }
.js .np-stamp { animation: np-stamp 0.5s 1.1s cubic-bezier(.2, 1.6, .5, 1) both; }
@keyframes np-stamp { from { opacity: 0; transform: scale(2.4); } }

/* ---------- breaking: the paper's own headlines ---------- */
.np-ticker { display: flex; align-items: stretch; background: var(--paper); color: var(--ink); border-block: 3px solid var(--ink); }
.np-ticker b { flex: none; display: grid; place-items: center; padding: 0 16px; font: 900 1rem var(--f-news); color: var(--paper-hi); background: var(--red); }
.np-tick-in { overflow: hidden; flex: 1; }
.np-tick-track { display: flex; width: max-content; animation: np-tick 70s linear infinite; }
.np-tick-track span { padding: 10px 26px; font: 800 1.05rem var(--f-news); white-space: nowrap; border-inline-start: 2px solid rgba(10, 6, 4, 0.25); }
@keyframes np-tick { to { transform: translateX(50%); } }

/* ---------- the reading room ---------- */
.np-reader { padding: clamp(50px, 7vw, 90px) 0 clamp(40px, 6vw, 80px); }
.np-read-head { margin-bottom: 20px; }
.np-read-how { margin: 0; font: 600 1rem var(--f-hand); color: #cfc4a8; }
.np-room { position: relative; width: min(1400px, 100% - 2 * clamp(10px, 3vw, 40px)); margin-inline: auto; display: grid; grid-template-columns: minmax(0, 1fr) 290px; grid-template-rows: auto auto; gap: 16px 24px; }
.np-view { grid-column: 1; grid-row: 1; position: relative; height: min(92svh, 1100px); overflow: hidden; border-radius: 6px; cursor: zoom-in; touch-action: pan-y; outline: none;
  background: radial-gradient(60% 50% at 50% 40%, rgba(255, 214, 150, 0.12), transparent 70%), #0f0b07; box-shadow: inset 0 0 0 1px rgba(216, 207, 183, 0.12); }
.np-view:focus-visible { box-shadow: inset 0 0 0 3px var(--paper); }
.np-view.zoomed { cursor: grab; touch-action: none; }
.np-view.zoomed:active { cursor: grabbing; }
.np-page { position: absolute; left: 0; top: 0; width: 2380px; height: 3784px; transform-origin: 0 0; box-shadow: 0 60px 160px -20px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(0, 0, 0, 0.3); will-change: transform; }
.np-page img { display: block; width: 100%; height: 100%; user-select: none; -webkit-user-drag: none; pointer-events: none; }
.np-spots { position: absolute; inset: 0; }
.np-spot { position: absolute; padding: 0; border: 0; background: transparent; cursor: zoom-in; -webkit-tap-highlight-color: transparent; }
@media (hover: hover) {
  .np-view:not(.zoomed) .np-spot:hover { background: rgba(179, 38, 30, 0.07); box-shadow: inset 0 0 0 10px rgba(179, 38, 30, 0.75); }
}
.np-view.zoomed .np-spot { pointer-events: none; }
.np-count { position: absolute; bottom: 12px; inset-inline-start: 12px; margin: 0; padding: 4px 12px; font: 700 0.9rem var(--f-news); color: var(--ink); background: var(--paper); pointer-events: none; }
.np-view.turn-out-next .np-page { animation: np-out-n 0.3s ease-in forwards; }
.np-view.turn-out-prev .np-page { animation: np-out-p 0.3s ease-in forwards; }
.np-view.turn-in-next .np-page { animation: np-in-n 0.42s cubic-bezier(.2, .8, .2, 1); }
.np-view.turn-in-prev .np-page { animation: np-in-p 0.42s cubic-bezier(.2, .8, .2, 1); }
.np-view { perspective: 2000px; }
@keyframes np-out-n { to { opacity: 0; filter: brightness(0.5); translate: 30% 0; } }
@keyframes np-out-p { to { opacity: 0; filter: brightness(0.5); translate: -30% 0; } }
@keyframes np-in-n { from { opacity: 0; translate: -18% 0; } }
@keyframes np-in-p { from { opacity: 0; translate: 18% 0; } }

.np-bar { grid-column: 1; grid-row: 2; display: flex; justify-content: center; gap: 8px; }
.np-b { min-width: 50px; height: 50px; padding: 0 14px; border: 2px solid var(--paper); background: var(--desk2); color: var(--paper-hi); font: 800 1.35rem var(--f-news); cursor: pointer; -webkit-tap-highlight-color: transparent; transition: background 0.2s, color 0.2s; }
.np-b:hover { background: var(--paper); color: var(--ink); }
.np-b:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; }
.np-side { grid-column: 2; grid-row: 1 / span 2; display: grid; align-content: start; gap: 22px; }
.np-thumbs { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.np-thumbs button { display: grid; gap: 6px; width: 100%; padding: 6px; border: 0; background: var(--desk2); color: #cfc4a8; font: 700 0.82rem var(--f-news); cursor: pointer; box-shadow: 0 0 0 1px rgba(216, 207, 183, 0.15); transition: transform 0.25s, box-shadow 0.25s; }
.np-thumbs img { width: 100%; height: auto; display: block; }
.np-thumbs button[aria-current="true"] { box-shadow: 0 0 0 3px var(--paper); color: var(--paper-hi); transform: translateY(-3px) rotate(-1deg); }
.np-in-h { margin: 0 0 8px; font: 800 1rem var(--f-news); color: var(--paper); border-bottom: 2px solid var(--paper); padding-bottom: 6px; }
.np-in ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.np-in button { width: 100%; text-align: start; padding: 8px 6px; border: 0; background: none; color: var(--paper-hi); font: 600 0.95rem/1.4 var(--f-news); cursor: pointer; border-bottom: 1px dashed rgba(216, 207, 183, 0.2); }
.np-in button:hover { background: rgba(216, 207, 183, 0.08); }
.np-in button.k-ad::before { content: 'מודעה · '; color: #e59a93; font-weight: 800; }
.np-room.np-full, .np-room:fullscreen { position: fixed; inset: 0; z-index: 9999; width: 100%; margin: 0; padding: 10px; background: #0f0b07; grid-template-columns: minmax(0, 1fr) 260px; }
.np-room:fullscreen .np-view, .np-room.np-full .np-view { height: calc(100svh - 86px); }

/* ---------- ads from the circle's universe ---------- */
.np-ads { padding: clamp(50px, 7vw, 100px) 0; background: radial-gradient(60vmax 40vmax at 80% 30%, rgba(179, 38, 30, 0.1), transparent 70%), var(--desk2); }
.np-ad-wall { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: clamp(16px, 3vw, 34px); justify-content: center; align-items: center; }
.np-ad { position: relative; display: block; padding: 8px; border: 0; background: var(--paper); cursor: zoom-in; box-shadow: 0 20px 40px -18px #000; rotate: calc((var(--i) - 2) * 2.2deg); transition: transform 0.35s cubic-bezier(.3, 1.4, .5, 1), rotate 0.35s; }
.np-ad img { display: block; max-height: 260px; max-width: min(80vw, 380px); width: auto; height: auto; }
.np-ad span { position: absolute; bottom: -12px; inset-inline-end: 10px; padding: 2px 8px; font: 800 0.8rem var(--f-news); color: var(--paper-hi); background: var(--red); }
.np-ad:hover { transform: scale(1.06); rotate: 0deg; z-index: 2; }
.np-ad::before { content: ''; position: absolute; top: -10px; left: 50%; width: 66px; height: 20px; translate: -50% 0; rotate: -3deg; background: rgba(235, 227, 204, 0.55); box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3); }

/* ---------- the trailer it was made for ---------- */
.np-trailer { padding: clamp(50px, 7vw, 100px) 0; }
.np-tr-in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 70px); align-items: center; }
.np-tv { margin: 0; padding: 14px; background: #2a2118; border-radius: 22px; box-shadow: inset 0 0 0 3px #3b2e20, 0 40px 80px -30px #000; rotate: -1.5deg; }
.np-tv video { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 12px; filter: sepia(0.2); }
.np-tv figcaption { margin-top: 10px; text-align: center; font: 600 0.95rem var(--f-hand); color: #cfc4a8; }
.np-tr-t p { font-size: 1.12rem; line-height: 1.8; color: #d8ceb4; margin: 0 0 12px; }
.np-tr-film { margin: 20px 0 16px; }
.np-tr-film .video { border-radius: 8px; box-shadow: 0 0 0 2px var(--paper); }
.np-link { font: 800 1.05rem var(--f-news); color: var(--paper); }

/* ---------- take a copy home ---------- */
.np-copy { padding: 10px 0 clamp(50px, 7vw, 90px); }
.np-coupon { position: relative; display: grid; justify-items: center; gap: 6px; max-width: 620px; margin: 0 auto; padding: 28px 24px; text-align: center; text-decoration: none; color: var(--ink); background: var(--paper);
  outline: 3px dashed var(--ink); outline-offset: -12px; box-shadow: 0 30px 60px -30px #000; rotate: 1deg; transition: rotate 0.3s, transform 0.3s; }
.np-coupon:hover { rotate: 0deg; transform: scale(1.02); }
.np-coupon b { font: 900 clamp(1.8rem, 4vw, 2.6rem) var(--f-news); }
.np-coupon span { font-size: 1.05rem; }
.np-coupon em { margin-top: 8px; padding: 8px 18px; font: 800 1rem var(--f-news); font-style: normal; color: var(--paper-hi); background: var(--ink); }
.np-scis { position: absolute; top: -2px; inset-inline-start: 30px; font-size: 1.6rem; color: var(--ink); background: var(--paper); padding: 0 6px; }

/* ---------- more of what we made ---------- */
.np-more { padding: clamp(50px, 7vw, 90px) 0 clamp(70px, 9vw, 120px); border-top: 3px double rgba(216, 207, 183, 0.3); }
.np-more ul { list-style: none; margin: 18px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 18px; }
.np-more a { display: grid; gap: 10px; text-decoration: none; color: var(--paper-hi); }
.np-more-img { aspect-ratio: 4 / 3; overflow: hidden; box-shadow: 0 0 0 6px var(--paper), 0 20px 40px -20px #000; }
.np-more-img img { width: 100%; height: 100%; object-fit: cover; filter: sepia(0.35) contrast(1.05); transition: filter 0.4s, transform 0.5s; }
.np-more a:hover img { filter: none; transform: scale(1.05); }
.np-more b { font: 800 1.1rem var(--f-news); }

/* ---------- phones: one page, full width, controls under the thumb ---------- */
@media (max-width: 900px) {
  .np-hero-in, .np-tr-in { grid-template-columns: 1fr; }
  .np-stack { width: min(74vw, 360px); margin-top: 10px; }
  .np-room { width: 100%; grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .np-view { height: min(78svh, calc(100vw * 3784 / 2380)); border-radius: 0; }
  .np-bar { position: sticky; bottom: 10px; z-index: 5; justify-content: space-between; padding: 6px; margin: 0 10px; background: rgba(21, 16, 10, 0.9); backdrop-filter: blur(8px); }
  .np-b { min-width: 48px; height: 48px; padding: 0 8px; }
  .np-side { grid-column: 1; grid-row: 3; padding-inline: 14px; }
  .np-thumbs { grid-template-columns: repeat(4, 1fr); gap: 8px; }
  .np-thumbs button span { font-size: 0.7rem; }
  .np-in ul { display: flex; flex-wrap: nowrap; overflow-x: auto; gap: 8px; padding-bottom: 6px; scrollbar-width: none; }
  .np-in li { flex: none; }
  .np-in button { width: auto; max-width: 70vw; padding: 8px 12px; border: 1px solid rgba(216, 207, 183, 0.35); border-radius: 999px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .np-room:fullscreen, .np-room.np-full { grid-template-columns: minmax(0, 1fr); }
  .np-room:fullscreen .np-side, .np-room.np-full .np-side { display: none; }
  .np-room:fullscreen .np-view, .np-room.np-full .np-view { height: calc(100svh - 80px); }
  .np-stamp { inset-inline-start: 0; }
  .np-ticker b { padding: 0 10px; font-size: 0.85rem; }
}
@media (prefers-reduced-motion: reduce) {
  .np *, .np *::before { animation: none !important; transition: none !important; }
}
@media (max-width: 900px) { body.np-reading .fab { opacity: 0; pointer-events: none; transition: opacity .25s; } }
.np-view { min-width: 0; contain: layout paint; }
