/* PLAYBOOKS (v14): "Six volumes." Six slabs of the page's black stand on a shelf, each with a hairline edge and its
   title down the spine. The scroll brings one forward at a time: it slides across the one before it and the spine
   title swings open into a poster. On tall narrow screens the spines lie flat as bands and stack down the screen.
   playbooks.js places everything with transforms; this file is the look. The moving version sits under
   html:not(.is-reduced); the plain list for reduced motion is at the end. */

#playbooks .pk-shelf { list-style: none; }
#playbooks .pk-a { display: block; color: inherit; -webkit-tap-highlight-color: transparent; }
#playbooks .pk-sub { color: var(--soft); text-wrap: pretty; }
#playbooks .pk-b { text-wrap: pretty; }
/* the heading's full stop is the film's white dot: a disc on the baseline, the character kept for readers */
#playbooks .pk-stop { display: inline-block; position: relative; width: .19em; height: .19em; margin-left: .045em; overflow: hidden; color: transparent; line-height: 0; vertical-align: baseline; }
#playbooks .pk-stop::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--ink); }

/* ---- the moving shelf ---- */
html:not(.is-reduced) #playbooks:not(.pk-on) .pk-art { visibility: hidden; }      /* nothing shows until the script has measured and placed it */
html:not(.is-reduced) #playbooks .pk-art { overflow: hidden; isolation: isolate; --pk-copy: var(--t-lead); }
html:not(.is-reduced) #playbooks .pk-head,
html:not(.is-reduced) #playbooks .pk-vol { position: absolute; left: 0; top: 0; width: 100%; height: var(--pk-vh, 100%); background: var(--mg-black); will-change: transform; }
html:not(.is-reduced) #playbooks .pk-head { height: var(--pk-hh, 100%); }
html:not(.is-reduced) #playbooks .pk-a { position: absolute; inset: 0; outline: none; }

/* a volume's edge, the light that runs along it, and the cold light that falls from it across the open cover */
html:not(.is-reduced) #playbooks .pk-edge { position: absolute; left: 0; top: 0; width: 1px; height: 100%; background: rgba(255, 255, 255, .2); }
html:not(.is-reduced) #playbooks .pk-lit { position: absolute; left: 0; top: 0; width: var(--mg-stroke); height: 100%; opacity: 0; background: linear-gradient(180deg, rgba(42, 92, 255, 0) 0%, var(--mg-cobalt) 26%, #e9efff 50%, var(--mg-cobalt) 74%, rgba(42, 92, 255, 0) 100%); }
html:not(.is-reduced) #playbooks .pk-glow { position: absolute; left: 0; top: 0; width: min(64%, 820px); height: 100%; opacity: 0; pointer-events: none; background: radial-gradient(100% 84% at 0% 36%, rgba(42, 92, 255, .3) 0%, rgba(42, 92, 255, .1) 36%, rgba(42, 92, 255, 0) 72%); }

/* the heading page */
html:not(.is-reduced) #playbooks .pk-h { position: absolute; left: var(--pk-pp, var(--pad-l)); top: var(--pk-tt, 100px); white-space: nowrap; }
html:not(.is-reduced) #playbooks .pk-sub { position: absolute; left: var(--pk-pp, var(--pad-l)); top: var(--pk-st, 60%); width: var(--pk-hw, 30ch); max-width: 34ch; font-size: var(--pk-copy); line-height: 1.32; }

/* a title: one line per piece. On the spine the pieces run end to end, small; on the cover they stack, large. */
html:not(.is-reduced) #playbooks .pk-t,
html:not(.is-reduced) #playbooks .pk-meas { font-size: var(--pk-T, 96px); line-height: 1; letter-spacing: -.045em; font-weight: 800; }
html:not(.is-reduced) #playbooks .pk-t { position: absolute; left: 0; top: 0; width: 0; height: 0; opacity: .64; }
html:not(.is-reduced) #playbooks .pk-c { position: absolute; left: 0; top: 0; white-space: nowrap; transform-origin: 0 0; }
html:not(.is-reduced) #playbooks .pk-meas { position: absolute; left: 0; top: 0; visibility: hidden; pointer-events: none; text-wrap: balance; }

/* the cover's copy: what the playbook is, a rule, what is free inside */
html:not(.is-reduced) #playbooks .pk-body { position: absolute; left: var(--pk-pp, var(--pad-l)); width: var(--pk-iw, 60%); opacity: 0; visibility: hidden; }
html:not(.is-reduced) #playbooks .pk-b { max-width: 34ch; font-size: var(--pk-copy); line-height: 1.32; color: rgba(243, 245, 248, .86); }
html:not(.is-reduced) #playbooks .pk-rule { display: block; height: 1px; margin: clamp(16px, 3vh, 30px) 0 clamp(12px, 2.1vh, 20px); background: rgba(255, 255, 255, .3); transform-origin: 0 50%; }
html:not(.is-reduced) #playbooks .pk-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 4px 28px; }
html:not(.is-reduced) #playbooks .pk-f { padding-left: 1.3em; font-size: var(--pk-copy); font-weight: 700; letter-spacing: -.015em; line-height: 1.3; color: var(--ink); }
html:not(.is-reduced) #playbooks .pk-go { font-size: 16px; padding-bottom: 3px; border-bottom: 1px solid rgba(255, 255, 255, .34); color: var(--soft); transition: color .4s cubic-bezier(.7, 0, .2, 1), border-color .4s cubic-bezier(.7, 0, .2, 1); }
html:not(.is-reduced) #playbooks .pk-a:hover .pk-go,
html:not(.is-reduced) #playbooks .pk-a:focus-visible .pk-go { color: var(--ink); border-color: var(--ink); }

/* the dot: the heading's full stop, then the reader's place on the shelf */
html:not(.is-reduced) #playbooks .pk-dot { position: absolute; left: 0; top: 0; z-index: 30; width: var(--pk-d, 14px); height: var(--pk-d, 14px); margin: calc(var(--pk-d, 14px) / -2) 0 0 calc(var(--pk-d, 14px) / -2); border-radius: 50%; background: var(--ink); opacity: 0; pointer-events: none; will-change: transform; }

/* tall narrow screens: the spines lie flat. Edges run across, the light falls downward, the copy is set smaller. */
@media (max-width: 899px) and (max-aspect-ratio: 9/10) {
  html:not(.is-reduced) #playbooks .pk-art { --pk-copy: var(--t-body); }
  html:not(.is-reduced) #playbooks .pk-edge { width: 100%; height: 1px; }
  html:not(.is-reduced) #playbooks .pk-lit { width: 100%; height: var(--mg-stroke); background: linear-gradient(90deg, rgba(42, 92, 255, 0) 0%, var(--mg-cobalt) 26%, #e9efff 50%, var(--mg-cobalt) 74%, rgba(42, 92, 255, 0) 100%); }
  html:not(.is-reduced) #playbooks .pk-glow { width: 100%; height: min(100%, 380px); background: radial-gradient(96% 100% at 22% 0%, rgba(42, 92, 255, .3) 0%, rgba(42, 92, 255, .1) 38%, rgba(42, 92, 255, 0) 74%); }
  html:not(.is-reduced) #playbooks .pk-sub { max-width: none; font-size: var(--t-lead); line-height: 1.34; }
  html:not(.is-reduced) #playbooks .pk-b { max-width: none; line-height: 1.38; }
  html:not(.is-reduced) #playbooks .pk-rule { margin: 11px 0 9px; }
  html:not(.is-reduced) #playbooks .pk-f { font-size: 15px; }
  html:not(.is-reduced) #playbooks .pk-go { font-size: 15px; padding-bottom: 2px; }
}
@media (min-width: 600px) and (max-width: 899px) and (max-aspect-ratio: 9/10) {
  html:not(.is-reduced) #playbooks .pk-art { --pk-copy: 21px; }
  html:not(.is-reduced) #playbooks .pk-sub { max-width: 34ch; font-size: 21px; }
  html:not(.is-reduced) #playbooks .pk-b { max-width: 36ch; }
  html:not(.is-reduced) #playbooks .pk-rule { margin: 18px 0 14px; }
  html:not(.is-reduced) #playbooks .pk-f { font-size: 20px; }
  html:not(.is-reduced) #playbooks .pk-go { font-size: 16px; }
}
@media (max-width: 899px) and (max-aspect-ratio: 9/10) and (max-height: 599px) {
  html:not(.is-reduced) #playbooks .pk-art { --pk-copy: 15px; }
  html:not(.is-reduced) #playbooks .pk-sub { font-size: 17px; }
  html:not(.is-reduced) #playbooks .pk-go { display: none; }
}

/* ---- reduced motion: nothing moves. The six playbooks as a plain list, every fact on the page. ---- */
.is-reduced #playbooks .pk-probe,
.is-reduced #playbooks .pk-dot,
.is-reduced #playbooks .pk-glow,
.is-reduced #playbooks .pk-edge,
.is-reduced #playbooks .pk-lit,
.is-reduced #playbooks .pk-rule { display: none; }
.is-reduced #playbooks .pk-art { position: relative; inset: auto; padding: calc(104px + env(safe-area-inset-top, 0px)) var(--pad-r) clamp(56px, 9vh, 96px) var(--pad-l); }
.is-reduced #playbooks .pk-sub { margin-top: clamp(14px, 2.4vh, 24px); max-width: 38ch; }
.is-reduced #playbooks .pk-shelf { margin-top: clamp(40px, 8vh, 88px); border-bottom: 1px solid var(--line); }
.is-reduced #playbooks .pk-vol { border-top: 1px solid var(--line); }
.is-reduced #playbooks .pk-a { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); column-gap: clamp(28px, 5vw, 88px); align-items: start; padding: clamp(24px, 4.4vh, 44px) 0; }
.is-reduced #playbooks .pk-t { font-size: var(--t-beat); letter-spacing: -.045em; line-height: 1; text-wrap: balance; }
.is-reduced #playbooks .pk-b { max-width: 44ch; color: var(--soft); }
.is-reduced #playbooks .pk-row { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 28px; margin-top: 14px; }
.is-reduced #playbooks .pk-f { position: relative; padding-left: 1.2em; font-size: var(--t-body); font-weight: 700; color: var(--ink); }
.is-reduced #playbooks .pk-f::before { content: ""; position: absolute; left: 0; top: .46em; width: .5em; height: .5em; border-radius: 50%; background: var(--ink); }
.is-reduced #playbooks .pk-go { padding-bottom: 2px; border-bottom: 1px solid rgba(255, 255, 255, .34); }
@media (max-width: 899px) {
  .is-reduced #playbooks .pk-art { padding-top: calc(92px + env(safe-area-inset-top, 0px)); padding-bottom: 44px; }
  .is-reduced #playbooks .pk-shelf { margin-top: 30px; }
  .is-reduced #playbooks .pk-a { grid-template-columns: minmax(0, 1fr); row-gap: 10px; padding: 20px 0; }
  .is-reduced #playbooks .pk-row { margin-top: 10px; }
}
