/* Courses: a bookstore, then one and three.
   The shelf: the seven ready courses in one series of covers set in type (each field keeps the colour of its old cover), standing on
   one shelf line, the persimmon eighth book last: the course that doesn't exist yet. Below it, the PMP kit ready today, as before:
   Kosuth's One and Three Chairs, MoMA: a picture on the wall, the thing standing on the ground, its definition pinned beside them.
   Here: a real page from inside the book, the book itself, and the kit written as a dictionary entry whose last line is the price.
   Wide: everything is placed in design px of a 1312-wide group (u), anchored right, so print, book and entry keep Kosuth's
   relationships: the print and the book are the same size, the print's top is the entry's top, the book stands on the ground line.
   Narrow: the entry leads, for the sale; print and book stand side by side on the ground below it.
   First paint is the final layout. The only motion is the book turning to face you when any of the three is pointed at. */

.p-courses{background:var(--paper)}
.shop{padding:0 var(--mx);background:var(--paper);container-type:inline-size}
.grp{position:relative;isolation:isolate}

/* ---------------------------------------------------------------- the entry: a dictionary entry */
.entry{position:relative;background:var(--band);color:var(--ink);font-family:var(--serif);font-optical-sizing:auto}
.entry__hw{font:400 1em/1.47 var(--serif)}
.entry__hw b{font-weight:700}
.entry__hw i{font-style:italic}
.entry__defs{margin:2px 0 0;list-style:none;padding:0;font-variant-numeric:lining-nums tabular-nums}
.entry__defs li{line-height:1.47}
.entry__use{margin-top:2px;font-style:italic;line-height:1.47}
.entry__price{display:flex;flex-wrap:wrap;align-items:baseline;gap:4px 12px}
.entry__price b{font:500 34px/1 var(--serif);letter-spacing:-.012em;font-variant-numeric:lining-nums tabular-nums}
.entry__price span{font:400 15px/1.3 var(--sans);color:var(--ink-2)}
.entry__btn{width:max-content;max-width:100%}

/* the pins are our full stops */
.pin{position:absolute;width:5px;height:5px;border-radius:50%;background:var(--ink);transition:background-color 200ms var(--settle)}
.pin--tl{left:8px;top:6px}.pin--tr{right:8px;top:6px}.pin--bl{left:8px;bottom:6px}.pin--br{right:8px;bottom:6px}

/* ---------------------------------------------------------------- the print: a page from inside the book */
.print{position:relative;display:block;color:var(--ink);text-decoration:none;-webkit-tap-highlight-color:transparent}
.print img{width:100%;height:100%;object-fit:cover;background:#FBFAF5;box-shadow:0 1px 0 rgba(0,0,0,.08),0 10px 24px -14px rgba(40,12,4,.35)}
.print__cap{position:absolute;left:0;top:100%;font:600 16px/1.2 var(--sans);text-decoration:underline;text-decoration-thickness:2px;text-underline-offset:4px;white-space:nowrap}
.print:hover .print__cap{text-decoration-color:var(--persimmon);text-decoration-thickness:3px}
.print:focus-visible{outline:none}
.print:focus-visible img{outline:2px solid var(--ink);outline-offset:6px}

/* ---------------------------------------------------------------- the book, standing on the line */
.book{position:relative;display:block;container-type:inline-size;aspect-ratio:900/1274;-webkit-tap-highlight-color:transparent}
.book__cast{position:absolute;left:7%;top:6%;width:108%;height:94%;background:radial-gradient(ellipse at 40% 60%,rgba(60,30,10,.2),transparent 65%);filter:blur(18px);pointer-events:none}
.book__bk{position:absolute;inset:0;transform-style:preserve-3d;transform-origin:50% 100%;
  transform:perspective(572cqw) rotateY(-14deg);transition:transform 280ms var(--settle)}
.book__face{position:absolute;inset:0;background:#FBFAF5;overflow:hidden;box-shadow:-14px 8px 24px -8px rgba(40,12,4,.35)}
/* the cover, set in type: the same edition the buyer sees with their own name in the order drawer (kept in step with pmp.src.css) */
.ed__face{color:#1B2A44;font-family:var(--sans)}
.ed__spine{position:absolute;left:0;top:0;bottom:0;width:6.5cqw;background:linear-gradient(180deg,#F59A1B 0%,#E2552C 38%,#3AA6DA 62%,#12B9E6 100%)}
.ed__kick{position:absolute;left:15cqw;top:40cqw;font:700 2.5cqw/1 var(--sans);letter-spacing:.16em;text-transform:uppercase;color:#D8352A}
.ed__title{position:absolute;left:15cqw;right:10cqw;top:46cqw;font:800 9.6cqw/1.02 var(--sans);letter-spacing:-.012em;color:#1B2A44}
.ed__rule{position:absolute;left:15cqw;top:84cqw;width:26cqw;height:.7cqw;background:#1B2A44}
.ed__ed{position:absolute;left:15cqw;top:88cqw;font:500 3cqw/1.3 var(--sans);color:#5B6475}
.ed__imp{position:absolute;left:15cqw;right:9cqw;bottom:7cqw;font:700 4.2cqw/1.15 var(--sans);letter-spacing:.06em;text-transform:uppercase}
.ed__blank{font-style:italic;font-weight:500;letter-spacing:.02em;text-transform:none;opacity:.6}
.book__edge{position:absolute;left:100%;top:0;width:10.24cqw;height:100%;transform-origin:0 50%;transform:rotateY(90deg);
  background:repeating-linear-gradient(90deg,#efe9df 0 1px,#e2dbcf 1px 2px)}

/* the three answer as one: point at any of them and the book turns to face you, the pins turn Persimmon */
.grp:has(.entry__btn:hover,.entry__btn:focus-visible,.print:hover,.print:focus-visible,.book:hover) .book__bk{transform:perspective(572cqw) rotateY(-4deg)}
.grp:has(.entry__btn:hover,.entry__btn:focus-visible,.print:hover,.print:focus-visible,.book:hover) .pin{background:var(--persimmon)}
@media (prefers-reduced-motion:reduce){
  .book__bk{transition:none}
  .grp:has(.entry__btn:hover,.entry__btn:focus-visible,.print:hover,.print:focus-visible,.book:hover) .book__bk{transform:perspective(572cqw) rotateY(-14deg)}
}

/* ---------------------------------------------------------------- the ground: an Ink line, then the Band, full bleed */
/* the band is its own layer: full bleed, behind everything, from the floor line down */
.ground{position:absolute;z-index:-1;left:-100vw;right:-100vw;bottom:0;background:var(--band);border-top:1.75px solid var(--ink)}
/* ================================================================ the shelf: every course, one series of covers */
.shelf{padding:72px 0 0}
.shelf__head{display:flex;flex-wrap:wrap;align-items:flex-end;justify-content:space-between;gap:10px 40px}
.shelf .shop__h{position:static;font-size:clamp(60px,6.6vw,96px)}
.shelf__sub{max-width:24em;margin-bottom:10px;font:italic 400 clamp(19px,1.55vw,22px)/1.35 var(--serif);text-wrap:balance}
@media (min-width:720px){.shelf__sub{text-align:right}}   /* the line closes on the right margin, its foot on the title's baseline */
.shelf__row{list-style:none;padding:0;margin:20px 0 0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}
.sk{position:relative;display:flex;flex-direction:column;min-width:0}
.sk__book{position:relative;display:block;padding:24px 12px 0;border-bottom:1.75px solid var(--ink)}   /* the shelf line, unbroken across the row */
.sk__book .sb__face{position:relative;display:block;width:min(100%,180px);aspect-ratio:900/1274;margin:0 auto;container-type:inline-size;
  transition:transform 240ms var(--settle)}
.sk__lab{display:flex;flex:1 1 auto;flex-direction:column;padding:14px 12px 32px}
.sk__h{font:600 16px/1.3 var(--sans)}
.sk__a{text-decoration:none}
.sk__a::after{content:"";position:absolute;inset:0;z-index:1}   /* the whole card is the link */
.sk:hover .sk__a,.sk__a:focus-visible{text-decoration:underline;text-decoration-thickness:2px;text-underline-offset:4px}
.sk:hover .sb__face,.sk:focus-within .sb__face{transform:translateY(-6px)}
.sk__a:focus-visible{outline:none}
.sk:has(.sk__a:focus-visible) .sb__face{outline:2px solid var(--ink);outline-offset:4px}
.sk__t{margin-top:3px;font:italic 400 16px/1.35 var(--serif);color:var(--ink-2)}
.sk__in{margin-top:6px;font:400 14px/1.4 var(--sans);color:var(--ink-2)}
.sk__p{margin-top:auto;padding-top:12px;font:400 14px/1.35 var(--sans)}
.sk__p b{font:500 24px/1 var(--serif);letter-spacing:-.01em;margin-right:6px;font-variant-numeric:lining-nums tabular-nums}
.sk__p span{display:block}
.sk__p b{display:block;margin-bottom:4px}
.sk__q{color:var(--ink-2)}
.sk__go{margin-top:12px}
.sk__btn{position:relative;z-index:2;min-height:44px;padding:0 16px;font-size:15px}
.sk__more{position:relative;z-index:2;display:inline-flex;align-items:center;min-height:44px;margin-left:14px;font:600 15px/1 var(--sans);
  text-decoration:underline;text-decoration-thickness:2px;text-underline-offset:4px}
@media (prefers-reduced-motion:reduce){.sk__book .sb__face{transition:none}.sk:hover .sb__face,.sk:focus-within .sb__face{transform:none}}

/* the covers: one series, set in type; the field keeps its old cover's colour */
.sk--pm{--sk-c:linear-gradient(180deg,#F59A1B 0%,#E2552C 38%,#3AA6DA 62%,#12B9E6 100%);--sk-k:#D8352A}
.sk--it{--sk-c:#2F63D0;--sk-k:#2F63D0}
.sk--hr{--sk-c:#12263F;--sk-k:#12263F}
.sk--dl{--sk-c:#20704F;--sk-k:#20704F}
.sb__face{overflow:hidden;background:#FBFAF5;color:#1B2A44;font-family:var(--sans);box-shadow:-10px 7px 18px -8px rgba(40,12,4,.35)}
.sb__in{position:absolute;inset:0;display:flex;flex-direction:column;padding:12cqw 9cqw 9cqw 15cqw}   /* inside the cover, so cqw is the cover's own width */
.sb__spine{position:absolute;left:0;top:0;bottom:0;width:6.5cqw;background:var(--sk-c)}
.sb__kick{font:700 4.4cqw/1.15 var(--sans);letter-spacing:.12em;text-transform:uppercase;color:var(--sk-k)}
.sb__big{margin-top:18cqw;font:800 13.5cqw/1 var(--sans);letter-spacing:-.02em;text-wrap:balance}
.sb__big .reg{font-size:.45em;vertical-align:.9em}
.sb__title{margin-top:5cqw;font:italic 500 6.8cqw/1.2 var(--serif);text-wrap:balance}
.sb__rule{display:block;width:26cqw;height:1cqw;margin-top:9cqw;background:var(--sk-k)}
.sb__imp{margin-top:auto;font:italic 500 5.4cqw/1 var(--sans);opacity:.6}
.sb__face--mine{background:var(--persimmon);color:var(--ink)}
.sb__face--mine .sb__kick{color:var(--ink)}
.sb__face--mine .sb__big{margin-top:22cqw;font:500 13.5cqw/1 var(--serif);letter-spacing:-.01em}
.sb__face--mine .sb__imp{opacity:1}

@media (min-width:720px){.shelf__row{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media (min-width:1360px){
  .shelf__row{grid-template-columns:repeat(8,minmax(0,1fr))}
  .sk__h{font-size:15px}
  .sk__t{font-size:15px}
}
/* narrow columns (eight to a row, and two on a phone): the persimmon book's action is a bold link; the whole card is the target anyway */
@media (min-width:1360px),(max-width:719.98px){
  .sk__go .sk__btn{width:auto;min-height:0;padding:10px 0;background:none;border:0;color:var(--ink);font-size:15px;white-space:nowrap;
    text-decoration:underline;text-decoration-thickness:2px;text-underline-offset:4px}
  .sk__go .sk__btn:hover{background:none;color:var(--ink);text-decoration-thickness:3px}
}
@media (max-width:719.98px){
  .shelf{padding-top:72px}
  .sk__book{padding:20px 8px 0}
  .sk__lab{padding:12px 8px 28px}
  .sk__btn{width:100%}
}

.shop__h{font:500 56px/.92 var(--serif);font-variation-settings:"opsz" 72;letter-spacing:-.012em;font-kerning:normal}
.shop__h .stop{color:var(--persimmon)}
.shop__h--room{margin-top:0}
@media (min-width:1060px){.grp .shop__h--room{top:calc(124 * var(--u));font-size:calc(68 * var(--u))}}
@media (max-width:1059.98px){.shop__h--room{font-size:44px}}

/* ================================================================ narrow: the entry leads */
@media (max-width:1059.98px){
  .grp{max-width:560px;padding-top:52px;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);column-gap:24px}
  .shop__h{grid-column:1/-1;margin-left:-3px}
  .entry{grid-column:1/-1;margin-top:22px;padding:24px;font-size:17px}
  .entry__price{margin-top:16px}
  .entry__price b{font-size:30px}
  .entry__btn{width:100%;margin-top:18px}
  .print{grid-column:1;grid-row:3;align-self:end;margin:53px 0 52px}
  .print img{aspect-ratio:720/1019}
  .print__cap{margin-top:8px;font-size:15px}
  .entry__price{flex-direction:row;flex-wrap:wrap;align-items:baseline;gap:4px 12px}
  .shop__h{font-size:60px}
  .book{grid-column:2;grid-row:3;align-self:end;margin-top:77px}
  .ground{display:none}
  .grp::after{content:"";grid-column:1/-1;height:48px;background:var(--band);border-top:1.75px solid var(--ink);
    box-shadow:0 0 0 100vmax var(--band);clip-path:inset(0 -100vmax)}   /* the room's floor, full bleed */
}

/* ================================================================ wide: Kosuth's relationships, in design px of the group */
@media (min-width:1060px){
  .grp{--g:clamp(930px,145.8vh,100cqw);--u:calc(var(--g) / 1312);width:var(--g);margin-left:auto;height:calc(900 * var(--u))}
  .shop__h{position:absolute;left:calc(-6 * var(--u));top:calc(110 * var(--u));font-size:calc(96 * var(--u))}
  .entry{position:absolute;left:calc(866 * var(--u));top:calc(252 * var(--u));width:calc(446 * var(--u));
    padding:calc(44 * var(--u)) calc(40 * var(--u));font-size:clamp(17px,calc(19 * var(--u)),19px)}
  .entry__price{margin-top:calc(18 * var(--u));column-gap:calc(12 * var(--u))}
  .entry__price span{font-size:clamp(14px,calc(15 * var(--u)),15px)}
  .entry__price b{font-size:clamp(28px,calc(34 * var(--u)),34px)}
  .entry__btn{margin-top:calc(20 * var(--u))}
  .print{position:absolute;left:0;top:calc(252 * var(--u));width:calc(332 * var(--u));height:calc(470 * var(--u))}
  .print__cap{margin-top:calc(4 * var(--u))}
  .book{position:absolute;left:calc(433 * var(--u));top:calc(302 * var(--u));width:calc(332 * var(--u))}
  .ground{top:calc(772 * var(--u))}
}

@media (min-width:1060px) and (max-height:680px){
  .grp{--fl:calc(100svh - 96px);--ph:calc(100svh - 74px - 302 * var(--u));height:calc(var(--fl) + 128 * var(--u))}
  .entry{top:calc(252 * var(--u) - 22px)}
  .print{top:calc(252 * var(--u) - 22px);height:var(--ph);width:calc(var(--ph) * .7066)}
  .book{top:calc(302 * var(--u) - 22px);width:calc(var(--ph) * .7064)}
  .ground{top:var(--fl)}
}

@media print{
  .book__bk{transform:none}
  .ground{display:none}
}

/* the C of "Courses." hangs by its side bearing, so its ink stands on the books' left edge (measured: 4 px at 96 px) */
.shop__h{margin-left:-.04em}
