/* PAGE FURNITURE shared by every page of the issue.
   Everything inside a page is sized in cqw (1cqw = 1% of the page width),
   so a page is composed once and scales like print. Page height = 125.6cqw. */

.pg {
  position: relative; width: 100%; height: 100%; overflow: hidden;
  container-type: size; font-family: var(--serif); color: var(--ink);
}
.pg :where(h2, h3, p, ul, ol, dl, dd, figure, blockquote) { margin: 0; padding: 0; }
.pg :where(ul, ol) { list-style: none; }
.pg img { display: block; user-select: none; -webkit-user-drag: none; }
/* StPageFlip only lets clicks through when the target IS the <a>, so children never catch the pointer. */
.pg a * { pointer-events: none; }
:where(.pg a) { color: inherit; }
.copy, .diario, .timeline, blockquote { user-select: text; -webkit-user-select: text; }

/* binding: shadow along the spine */
.is-left .pg::after, .is-right .pg::after { content: ""; position: absolute; top: 0; bottom: 0; width: 9cqw; pointer-events: none; z-index: 40; }
.is-left .pg::after { right: 0; background: linear-gradient(to left, #0000002e, #00000008 45%, #0000); }
.is-right .pg::after { left: 0; background: linear-gradient(to right, #0000002e, #00000008 45%, #0000); }
.page[data-density="hard"] .pg::after { width: 3cqw; }

/* outer violet strip, as on the cover's left edge */
.bar {
  position: absolute; top: 0; bottom: 0; width: 7.2cqw; background: var(--violet); z-index: 30;
  display: flex; justify-content: center; align-items: flex-end; padding: 3cqw 0;
}
.is-left .bar { left: 0; }
.is-right .bar { right: 0; }
.bar span {
  writing-mode: vertical-rl; transform: rotate(180deg); white-space: nowrap;
  font: 800 4.4cqw/1 var(--sans); font-stretch: 62%; color: #fff; letter-spacing: .01em;
}
.is-right .bar { align-items: flex-start; }
.is-right .bar span { transform: none; }

.folio { position: absolute; z-index: 35; bottom: 2.4cqw; display: flex; align-items: baseline; gap: 1.6cqw; }
.is-left .folio { left: 9.5cqw; }
.is-right .folio { right: 9.5cqw; flex-direction: row-reverse; }
.folio b { font: 900 4.6cqw/1 var(--round); color: var(--magenta); -webkit-text-stroke: .25cqw var(--violet); paint-order: stroke fill; }
.folio span { font: 700 max(8px, 2.1cqw)/1 var(--sans); font-stretch: 70%; letter-spacing: .1em; text-transform: uppercase; }

.kicker {
  position: absolute; z-index: 20; display: inline-block; background: var(--violet); color: var(--yellow);
  font: 900 3.8cqw/1 var(--sans); font-stretch: 62%; letter-spacing: .04em; padding: .35em .55em .3em; transform: rotate(-3deg);
}
.deck {
  background: var(--violet); color: #fff; padding: .45em .7em;
  font: italic 300 3.7cqw/1.18 var(--sans); font-stretch: 62%;
}
.deck b { font-weight: 800; font-style: normal; }
.mark { font: 400 3.8cqw/1.05 var(--marker); color: var(--magenta); }
.tk {
  display: inline-block; font: 700 2.3cqw/1.2 var(--sans); font-stretch: 70%; letter-spacing: .08em; text-transform: uppercase;
  color: var(--magenta); border: .3cqw dashed var(--magenta); background: #ff00f00d; padding: .15em .45em;
}

/* yellow burst from the cover */
.burst {
  position: absolute; z-index: 25; display: grid; place-content: center; text-align: center; background: var(--yellow);
  clip-path: polygon(50% 0%,61.3% 19%,77.6% 17.1%,78.6% 33.5%,97.8% 41.6%,82.5% 55.7%,89% 72.5%,71.2% 75.3%,67.1% 97%,50% 83%,35.6% 89.5%,28.8% 75.3%,8.9% 73.8%,17.5% 55.7%,4.7% 42%,21.4% 33.5%,21.7% 16.3%,38.7% 19%);
  filter: drop-shadow(.4cqw .4cqw 0 #fff);
}
/* magenta ellipse from the cover's TEST */
.ellipse {
  position: absolute; z-index: 25; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center;
  background: var(--magenta); border: .45cqw solid var(--violet); border-radius: 50%; text-decoration: none;
}
/* taped snapshot */
.snap { position: absolute; background: #fff; padding: 1.6cqw 1.6cqw 0; box-shadow: .8cqw 1cqw 0 #0000001f, 0 .3cqw 1.2cqw #0003; }
.snap img { width: 100%; height: auto; }
.snap figcaption { padding: 1.4cqw 0 1.6cqw; text-align: center; }
.tape { position: absolute; top: -2.4cqw; left: 50%; width: 16cqw; height: 5cqw; translate: -50% 0; rotate: -4deg; background: #fff200b3; box-shadow: 0 .2cqw .4cqw #0001; }

.copy { font: 3.35cqw/1.34 var(--serif); hyphens: auto; -webkit-hyphens: auto; text-align: left; }
.copy p + p { text-indent: 1.4em; }
.copy .cont, .cont-from { text-indent: 0 !important; text-align: right; font: 900 2.8cqw/1 var(--sans); font-stretch: 70%; letter-spacing: .06em; }
.cont a, .cont-from a { color: var(--magenta); text-decoration: none; display: inline-block; padding: 1.4cqw 0; }
@supports (initial-letter: 3) or (-webkit-initial-letter: 3) {
  .dropcap::first-letter { initial-letter: 3; -webkit-initial-letter: 3; font-family: var(--round); font-weight: 900; color: var(--magenta); -webkit-text-stroke: .35cqw var(--violet); paint-order: stroke fill; margin-right: 1.2cqw; }
}
@supports not ((initial-letter: 3) or (-webkit-initial-letter: 3)) {
.dropcap::first-letter { float: left; font: 900 11.4cqw/.82 var(--round); color: var(--magenta); -webkit-text-stroke: .35cqw var(--violet); paint-order: stroke fill; margin: .6cqw 1.4cqw 0 0; }
}

/* ---- FRONT COVER: the supplied artwork ---- */
.cover, .cover img { position: absolute; inset: 0; width: 100%; height: 100%; }
.cover img { object-fit: cover; }
.cover-gloss { position: absolute; inset: 0; background: linear-gradient(118deg, #fff0 34%, #ffffff26 46%, #fff0 58%); pointer-events: none; }

/* ---- BACK COVER ---- */
.back { position: absolute; inset: 0; background: var(--backdrop); }
.back-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.back-bar {
  position: absolute; top: 0; bottom: 0; left: 0; width: 9cqw; background: var(--violet); color: #fff;
  display: flex; flex-direction: column; justify-content: space-between; align-items: center; padding: 4cqw 0;
}
.back-bar span { writing-mode: vertical-rl; transform: rotate(180deg); font: 900 5.4cqw/1 var(--sans); font-stretch: 62%; }
.back-bar span + span { font-weight: 700; font-size: 4cqw; }
.back-next { position: absolute; right: 5cqw; top: 6cqw; text-align: right; font: 900 6.6cqw/.92 var(--round); color: var(--yellow); -webkit-text-stroke: .5cqw var(--violet); paint-order: stroke fill; }
.back-next b { font-size: 13cqw; color: var(--magenta); }
.back-code { position: absolute; right: 5cqw; bottom: 15cqw; background: #fff; padding: 1.6cqw 2cqw; display: grid; gap: .8cqw; }
.back-code i { display: block; width: 26cqw; height: 9cqw; background: repeating-linear-gradient(90deg, #000 0 .5cqw, #fff 0 .9cqw, #000 0 1.1cqw, #fff 0 1.8cqw, #000 0 2.6cqw, #fff 0 3cqw); }
.back-code small { font: 700 1.9cqw/1 var(--sans); font-stretch: 70%; letter-spacing: .1em; }
.back .credit { position: absolute; right: 5cqw; bottom: 4cqw; text-align: right; color: #fff; font: 800 2.4cqw/1.35 var(--sans); font-stretch: 70%; letter-spacing: .1em; text-shadow: 0 0 1cqw #0006; }
.back .credit span { font-weight: 500; letter-spacing: .04em; }
