#manifesto-intro {
  position: fixed; inset: 0;
  font: 350 var(--interface-font-size)/1.3 "ABC Marist", Georgia, serif;
  letter-spacing: -.005em;
}
.manifesto-page {
  position: absolute; inset: max(57px,env(safe-area-inset-top)) 0 max(94px,calc(env(safe-area-inset-bottom) + 86px));
  overflow: auto; overscroll-behavior: contain;
  display: flex;
  padding-left: max(20px,env(safe-area-inset-left));
  padding-right: max(20px,env(safe-area-inset-right));
}
.manifesto-slide { margin: auto; width: 100%; min-width: 0; text-align: center; transform: translateY(15px) }
.manifesto-slide p, .journal-list { margin: 0 }
.journal-list { padding: 0; list-style: none }
.manifesto-slide > :is(p, ul) + :is(p, ul) { margin-block-start: 1.3em }
.manifesto-slide > .journal-heading + :is(p, ul) { margin-block-start: 2.6em }
.manifesto-slide :is(p, dt, dd, li) { text-wrap: balance; overflow-wrap: anywhere }
.manifesto-slide[data-reflow] .line-break { display: none }
.manifesto-slide[data-measuring] p { white-space: nowrap; overflow-wrap: normal }
.manifesto-slide[data-measuring] .line-break { display: revert }
.manifesto-pairs { width: max-content; max-width: 100%; margin: 0 auto; display: grid; grid-template-columns: auto auto; column-gap: clamp(20px,3.33vw,64px); text-align: left }
.manifesto-pairs div { display: contents }
.manifesto-pairs dt { text-align: right }
.manifesto-pairs dd { margin: 0 }
.manifesto-controls {
  z-index: 1; position: absolute; left: 50%; transform: translateX(-50%);
  bottom: max(57px,calc(env(safe-area-inset-bottom) + 53px));
  display: flex; align-items: center; justify-content: center;
}
.manifesto-dots { display: flex; align-items: center; gap: clamp(6px,1.5vw,32px); margin: 0 clamp(2px,1vw,16px) }
.manifesto-dots i, .life-dots i {
  width: 1px;
  height: clamp(8px, .8vw, 13px);
  background: currentColor;
  opacity: .25;
}
.manifesto-dots i[aria-current], .life-dots i[aria-current] { opacity: 1 }
.manifesto-status { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%) }
body[data-manifesto]:not([data-manifesto="slides"]) .manifesto-info { display: none }
#canon-handoff, .canon-title {
  position: fixed; inset: 0; margin: 0;
  display: grid; place-items: center;
  background: #000; color: #fff;
  font: 350 var(--interface-font-size)/1.3 "ABC Marist", Georgia, serif;
  letter-spacing: -.005em;
}
.canon-title:focus, #manifesto-intro:focus, #canon-player:focus { outline: none }
.manifesto-controls { pointer-events: none }
.manifesto-info, .manifesto-info-close {
  position: fixed; z-index: 3; top: max(6px,env(safe-area-inset-top)); left: max(10px,env(safe-area-inset-left));
  min-height: 44px; color: #141414;
}
body[data-manifesto] #about-panel {
  position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none;
  border: 0; margin: 0; padding: 0; background: #fff; color: #141414;
}
body[data-manifesto] #about-panel[open] { display: grid; place-items: center }
#about-panel .manifesto-bio {
  max-width: 39ch; margin-inline: max(24px,env(safe-area-inset-left)) max(24px,env(safe-area-inset-right));
  max-height: calc(100% - max(56px,env(safe-area-inset-top) + 44px) - max(20px,env(safe-area-inset-bottom)));
  overflow: auto; overscroll-behavior: contain; color: #141414;
}
#about-panel .manifesto-info-close { color: #141414 }
.manifesto-bio p { margin: 0 0 1em; line-height: 1.3; text-wrap: pretty; overflow-wrap: anywhere }
.manifesto-bio p:last-child { margin: 0 }
@media(max-height: 580px) {
  .manifesto-controls { bottom: max(12px,env(safe-area-inset-bottom)) }
  .manifesto-slide { transform: none }
  .manifesto-page { inset-block: max(12px,env(safe-area-inset-top)) max(36px,env(safe-area-inset-bottom) + 24px) }
}

#manifesto-intro, #canon-handoff, #canon-player, .life-page { touch-action: pan-y pinch-zoom }
#canon-player:has(.frame[data-layout="emoji-catalogue"]) { touch-action: auto }

:root:has(body[data-manifesto]) { background: transparent; color-scheme: normal }
body:is([data-manifesto="slides"], [data-manifesto="life"]) { background: transparent; color: white; color-scheme: normal }
body[data-manifesto] :is(#manifesto-intro, #life) {
  color: #fff;
  background: transparent;
}
body[data-manifesto="slides"] .manifesto-info { color: #fff }
body:is([data-manifesto="title"], [data-manifesto="film"]) { background: #000; min-height: 100dvh }

main[aria-label="Canon"], #canon-player { position: fixed; inset: 0 }

html[data-journal-edge="back"] {
  --journal-cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 32 32'%3E%3Cpath d='M27 16H5l9-9M5 16l9 9' fill='none' stroke='white' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M27 16H5l9-9M5 16l9 9' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") 5 16, w-resize;
}
html[data-journal-edge="forward"] {
  --journal-cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 32 32'%3E%3Cpath d='M5 16h22l-9-9m9 9-9 9' fill='none' stroke='white' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M5 16h22l-9-9m9 9-9 9' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") 27 16, e-resize;
}
#manifesto-intro, #life, #canon-handoff, main[aria-label="Canon"] { cursor: var(--journal-cursor, default) }
