/* The journal, November edition: the book lies tilted on an autumn wood table, paper warmed to amber,
   binding in cognac leather, elastic in rust, a few leaves dropped around it. Loaded after jr3.css. */
.jr.jr--real.jr--nb {
  background:
    repeating-linear-gradient(0deg, rgba(0,0,0,.08) 0 2px, transparent 2px 22px),
    repeating-linear-gradient(90deg, #4b3a22 0 11vw, #42321d 11vw calc(11vw + 4px)),
    #4b3a22;
  border-block-color: #2a1d10;
}
.jr--nb .jr__stage { background: radial-gradient(60% 70% at 50% 50%, rgba(255,200,120,.2), transparent 72%); }
.jr--nb .jr__count { color: rgba(255,236,205,.8); }

/* paper and stickers: warm sepia, more saturation so the yellows and rusts read as fall */
.jr--nb .jr__face { filter: sepia(.72) saturate(1.9) hue-rotate(-8deg) contrast(1.04); }
.jr--nb .face-cover .elastic, .jr--real .face-cover .elastic { background: linear-gradient(90deg, #7a2a0c, #d9722b 50%, #7a2a0c) !important; }

/* cognac binding */
.jr.jr--nb .jr__boardL, .jr.jr--nb .jr__boardR { background-color: #6d3a1d; background-blend-mode: multiply; }

/* tilt */
.jr--nb .jr__book { transform: translateX(calc(var(--p) * -.5)) rotate(-4deg); }
.jr--nb .jr__book[data-state="open"], .jr--nb .jr__book[data-state="end"] { transform: translateX(0) rotate(-4deg); }

/* leaves dropped on the table */
.jr--nb .jr__stage::before, .jr--nb .jr__stage::after { content: ""; position: absolute; z-index: 0; pointer-events: none; background-repeat: no-repeat; background-size: contain; filter: drop-shadow(.4vw .9vw .7vw rgba(30,10,0,.45)); }
.jr--nb .jr__stage::before { left: 6%; bottom: -2%; width: clamp(90px, 13vw, 190px); aspect-ratio: 560 / 532; background-image: url(../img/fall/red-maple.webp); transform: rotate(30deg); }
.jr--nb .jr__stage::after { right: 5%; top: 0; width: clamp(80px, 11vw, 165px); aspect-ratio: 560 / 431; background-image: url(../img/fall/trio-3.webp); transform: rotate(-40deg); }
.jr--nb .jr__book { z-index: 1; }
.jr--nb .jr__nav:hover:not(:disabled) { color: #ffb36a; }

@media (max-width: 720px) {
  .jr--nb .jr__strip .jr__face { box-shadow: 0 10px 24px rgba(0,0,0,.5), 0 0 0 4px #6d3a1d; }
}
@media (prefers-reduced-motion: reduce) { .jr--nb .jr__book { transition: none; } }

/* bigger book: grows with the screen (width- and height-aware) so it fills the table, never smaller than before */
.jr--nb .jr__stage { --p: clamp(250px, max(min(32vw, 470px), min(45vw, calc((100vh - 70px) / 1.58))), 800px); }
.jr--nb .jr__book { transform: translateX(calc(var(--p) * -.5)) rotate(-3deg); }
.jr--nb .jr__book[data-state="open"], .jr--nb .jr__book[data-state="end"] { transform: translateX(0) rotate(-3deg); }
.jr.jr--pin .jr__sticky { padding-top: 56px; }
.jr--pin .jr__count { position: absolute; left: 0; right: 0; bottom: 10px; margin: 0; z-index: 3; }
.jr--nb .jr__stage::before { width: clamp(90px, 14vw, 280px); }
.jr--nb .jr__stage::after { width: clamp(80px, 12vw, 240px); }

/* Thanksgiving hand-turkey spread */
.tk { position: absolute; inset: 0; z-index: 5; }
.tk-title { position: absolute; left: 0; right: 0; top: 3.2%; margin: 0; text-align: center; font: 700 9cqw/1 "Caveat", cursive; color: #4a2410; transform: rotate(-2deg); }
.tk-title--sm { font-size: 8cqw; top: 2.6%; }
.tk-svg { position: absolute; left: 4%; top: 13%; width: 92%; height: auto; filter: drop-shadow(.6cqw 1cqw 1cqw rgba(40,20,5,.3)); }
.tk-svg text { font: 700 5.6px "Caveat", cursive; font-size: 21px; }
.tk-add { position: absolute; left: 0; right: 0; bottom: 2.6%; text-align: center; font: 500 2.5cqw var(--mono, "IBM Plex Mono", monospace); letter-spacing: .06em; color: #4a2410; text-decoration: underline; text-underline-offset: .6cqw; }
.tk-wall { position: absolute; inset: 15% 4% 2% 4%; }
.tk-lf { position: absolute; width: 46%; min-height: 12.6%; padding: 2.4cqw 7cqw 2.2cqw 4cqw; background: var(--c); border-radius: 0 78% 0 78% / 0 100% 0 100%; border-radius: 0 3.2cqw 0 3.2cqw; clip-path: polygon(0 10%, 4% 0, 84% 0, 100% 50%, 84% 100%, 4% 100%, 0 90%); transform: rotate(var(--r)); box-shadow: 0 .6cqw 1cqw rgba(40,20,5,.28); color: #3a1c08; display: flex; flex-direction: column; justify-content: center; gap: .6cqw; }
.tk-lf small { font: 500 2cqw/1.1 var(--mono, "IBM Plex Mono", monospace); letter-spacing: .04em; opacity: .75; text-transform: none; }
.tk-lf b { font: 700 4.7cqw/.95 "Caveat", cursive; }
.tk-lf.dk { color: #fff6e4; }
.tk-lf::after { content: ""; position: absolute; left: 10%; right: 10%; top: 50%; border-top: .3cqw solid currentColor; opacity: .14; transform: translateY(2.2cqw); }
.tk-photo { position: absolute; left: 7%; top: 19%; width: 86%; transform: rotate(-2deg); background: #f7f3ea; padding: 2.4cqw; box-shadow: 0 1cqw 2.2cqw rgba(40,20,5,.4), 0 0 0 .3cqw rgba(60,40,20,.15); }
.tk-photo img { display: block; width: 100%; height: auto; }
