/* Chapter 04 cover: publication paper meets a working HTML prototype. */
body[data-view="3"] {
  --fg: #151715;
  --fg-muted: #62665f;
  --rule: #15171540;
  color-scheme: light;
}

body[data-view="3"] .field-backdrop {
  background: #eeece4;
}

body[data-view="3"] .field-watermark > span {
  color: #151715;
}

body[data-view="3"] .part-readout {
  opacity: 0;
}

body[data-view="3"] .chapter-nav [aria-current] {
  background: #151715;
  color: #eeece4;
}

body[data-view="3"] .chapter-state > span:first-child {
  color: #df432f;
}

.panel-journal {
  color: #151715;
}

.panel-journal .journal-cover {
  position: absolute;
  inset: 14% 7.5% 14%;
  display: grid;
  grid-template-columns: minmax(370px, .82fr) minmax(0, 1.18fr);
  align-items: center;
  gap: 5.5%;
}

.journal-copy {
  position: relative;
  z-index: 2;
  min-width: 0;
  padding-bottom: 2%;
  transition: transform 1s cubic-bezier(.2,.7,.2,1);
}

.journal-kicker {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 28px;
  color: #151715;
  font-size: 12px;
  font-weight: 650;
  letter-spacing: .025em;
}

.journal-kicker i {
  color: #df432f;
  font: 19px/1 var(--mono);
}

.journal-copy h2 {
  max-width: 620px;
  font-size: clamp(59px, 6.25vw, 102px);
  font-weight: 850;
  line-height: 1.12;
  letter-spacing: -.075em;
  white-space: nowrap;
}

.journal-deck {
  margin-top: 24px;
  color: #50534d;
  font-size: clamp(12px, 1.08vw, 15px);
  line-height: 1.9;
  letter-spacing: .025em;
}

.journal-switch {
  display: flex;
  width: min(100%, 355px);
  margin-top: 31px;
  border-top: 1px solid #15171580;
  border-bottom: 1px solid #15171580;
}

.journal-switch button {
  position: relative;
  display: flex;
  flex: 1;
  align-items: center;
  gap: 13px;
  min-height: 54px;
  padding: 0 14px;
  text-align: left;
  color: #62665f;
  font-size: 13px;
  transition: color .24s, background-color .24s;
}

.journal-switch button + button {
  border-left: 1px solid #15171540;
}

.journal-switch button span {
  color: #92948c;
  font: 9px var(--mono);
}

.journal-switch button::after {
  position: absolute;
  right: 13px;
  width: 7px;
  height: 7px;
  background: #df432f;
  content: "";
  opacity: 0;
  transform: rotate(45deg) scale(.55);
  transition: opacity .24s, transform .24s;
}

.journal-switch button:hover,
.journal-switch button[aria-pressed="true"] {
  background: #151715;
  color: #eeece4;
}

.journal-switch button[aria-pressed="true"] span {
  color: #df432f;
}

.journal-switch button[aria-pressed="true"]::after {
  opacity: 1;
  transform: rotate(45deg) scale(1);
}

.journal-topics {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 11px;
  margin-top: 18px;
  color: #62665f;
  font-size: 9px;
  letter-spacing: .035em;
}

.journal-topics i {
  width: 3px;
  height: 3px;
  background: #df432f;
  transform: rotate(45deg);
}

.journal-visual {
  position: relative;
  z-index: 1;
  min-width: 0;
  height: min(66vh, 650px);
  min-height: 420px;
  background: #151715;
  color: #eeece4;
  isolation: isolate;
  perspective: 1300px;
  transition: transform 1.2s cubic-bezier(.2,.7,.2,1);
}

.panel-journal[aria-hidden="true"] .journal-copy { transform: translateX(-8vw); }
.panel-journal[aria-hidden="true"] .journal-visual { transform: translate3d(12vw,5vh,0) rotateZ(5deg) scale(.92); }

.journal-visual::before {
  position: absolute;
  z-index: -1;
  inset: 10px -10px -10px 10px;
  background: #df432f;
  content: "";
}

.journal-visual::after {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 8px;
  background: #df432f;
  content: "";
}

.journal-board-stamp {
  position: absolute;
  z-index: 5;
  top: 22px;
  left: 25px;
  right: 25px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  color: #eeece4a3;
  font: 8px var(--mono);
  letter-spacing: .1em;
  pointer-events: none;
}

.journal-board-stamp b {
  color: #eeece4;
  font: 10px var(--sans);
  letter-spacing: .02em;
}

.journal-page,
.journal-code-page {
  position: absolute;
  inset: 12% 8% 8% 11%;
  overflow: hidden;
  transition: opacity .46s ease, transform .72s cubic-bezier(.2, .75, .2, 1), visibility 0s linear .72s;
  transform-style: preserve-3d;
  backface-visibility: hidden;
}

.journal-page-writing {
  z-index: 3;
  padding: clamp(25px, 3.2vw, 48px) clamp(25px, 3.5vw, 52px) 28px;
  background: #eeece4;
  color: #151715;
  box-shadow: 9px 9px 0 #15171530;
  transform: rotateY(0deg) rotateZ(-1.3deg);
}

.journal-page-writing::before {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 9px;
  background: #df432f;
  content: "";
}

.journal-page-writing::after {
  position: absolute;
  inset: 13px;
  border: 1px solid #15171512;
  content: "";
  pointer-events: none;
}

.journal-page-head,
.journal-page-foot {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 16px;
  font-size: 9px;
}

.journal-page-head span:first-child {
  font-weight: 700;
}

.journal-page-head span:last-child {
  color: #62665f;
}

.journal-page-rule {
  width: 100%;
  height: 1px;
  margin-top: 17px;
  background: #1517155c;
}

.journal-page-overline {
  margin-top: clamp(30px, 5vh, 51px);
  color: #df432f;
  font: 9px var(--mono);
  letter-spacing: .07em;
}

.journal-page-writing h3 {
  position: relative;
  z-index: 1;
  margin-top: 13px;
  font-size: clamp(30px, 3.2vw, 48px);
  font-weight: 800;
  line-height: 1.35;
  letter-spacing: -.065em;
}

.journal-page-copy {
  position: relative;
  z-index: 1;
  margin-top: 18px;
  color: #50534d;
  font-size: clamp(10px, .9vw, 12px);
  line-height: 1.9;
}

.journal-page-margin {
  position: absolute;
  right: 8%;
  top: 40%;
  display: grid;
  gap: 9px;
  width: 20%;
  opacity: .4;
}

.journal-page-margin i {
  height: 1px;
  background: #151715;
}

.journal-page-margin i:nth-child(2) {
  width: 72%;
}

.journal-page-margin i:nth-child(3) {
  width: 88%;
}

.journal-page-foot {
  position: absolute;
  right: clamp(25px, 3.5vw, 52px);
  bottom: 25px;
  left: clamp(25px, 3.5vw, 52px);
  padding-top: 12px;
  border-top: 1px solid #15171545;
  color: #62665f;
  font-size: 8px;
}

.journal-code-page {
  z-index: 1;
  display: grid;
  grid-template-columns: 1.08fr .92fr;
  align-items: center;
  gap: 0;
  padding: 6% 2% 4%;
  opacity: 0;
  visibility: hidden;
  transform: rotateY(-18deg) translateX(5%);
}

.journal-editor {
  position: relative;
  z-index: 2;
  min-width: 0;
  padding: 0 15px 20px;
  background: #202520;
  box-shadow: 0 12px 30px #0005;
  display: flex;
  flex-direction: column;
}

.journal-editor-head {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 39px;
  border-bottom: 1px solid #eeece426;
  color: #eeece4b8;
  font: 8px var(--mono);
  white-space: nowrap;
}

.journal-editor-head > span:last-child {
  margin-left: auto;
  color: #df432f;
  font-size: 7px;
}

.journal-editor-mark {
  display: flex;
  gap: 3px;
}

.journal-editor-mark i {
  width: 5px;
  height: 5px;
  border: 1px solid #eeece485;
  border-radius: 50%;
}

.journal-editor pre {
  overflow: hidden;
  margin: 20px 0 0;
  color: #eeece4d9;
  font: clamp(10px, .95vw, 14px)/2 var(--mono);
  white-space: pre;
}

.journal-editor .code-tag {
  color: #df796b;
}

.journal-editor .code-string {
  color: #d4c68f;
}

.journal-editor .code-em {
  color: #eeece4;
}

.journal-editor-foot {
  margin-top: auto;
  padding-top: 19px;
  color: #eeece47a;
  font-size: 10px;
  line-height: 1.7;
}

.journal-mini-site {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 108%;
  min-height: 68%;
  margin-left: -12%;
  padding: 13px 12px 11px;
  background: #eeece4;
  color: #151715;
  box-shadow: -6px 0 0 #df432f, 9px 12px 0 #0004;
  transform: rotateZ(1.2deg);
}

.journal-mini-site-head,
.journal-mini-site-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font: 7px var(--mono);
}

.journal-mini-site-head i {
  width: 9px;
  height: 9px;
  background: #df432f;
}

.journal-mini-site-copy > span,
.journal-mini-site-copy small {
  display: block;
  color: #62665f;
  font-size: 7px;
  line-height: 1.6;
}

.journal-mini-site-copy strong {
  display: block;
  margin: 7px 0;
  font-size: clamp(32px, 3.8vw, 60px);
  font-weight: 850;
  line-height: .95;
  letter-spacing: -.08em;
}

.journal-mini-site-copy strong span {
  color: #df432f;
}

.journal-mini-site-copy i {
  display: block;
  width: 25px;
  height: 3px;
  margin: 9px 0;
  background: #df432f;
}

.journal-mini-site-foot {
  padding-top: 8px;
  border-top: 1px solid #15171540;
  color: #62665f;
  font-size: 6px;
}

.journal-board-index {
  position: absolute;
  right: 18px;
  bottom: 15px;
  z-index: 4;
  color: #eeece477;
  font: 7px var(--mono);
  letter-spacing: .12em;
  writing-mode: vertical-rl;
}

.journal-board-crosshair {
  position: absolute;
  z-index: 4;
  right: 25px;
  bottom: 22px;
  color: #df432f;
  font: 19px/.7 var(--mono);
}

.panel-journal[data-journal-mode="writing"] [data-journal-page="writing"] {
  opacity: 1;
  visibility: visible;
  transform: rotateY(0deg) rotateZ(-1.3deg);
  transition-delay: 0s;
}

.panel-journal[data-journal-mode="writing"] [data-journal-page="coding"] {
  opacity: 0;
  visibility: hidden;
  transform: rotateY(-18deg) translateX(5%);
}

.panel-journal[data-journal-mode="coding"] [data-journal-page="writing"] {
  opacity: 0;
  visibility: hidden;
  transform: rotateY(20deg) translateX(-5%);
}

.panel-journal[data-journal-mode="coding"] [data-journal-page="coding"] {
  opacity: 1;
  visibility: visible;
  transform: rotateY(0deg) translateX(0);
  transition-delay: 0s;
}

.panel-journal[data-journal-mode="coding"] .journal-editor pre { animation: journal-code-reveal 1s steps(8,end) both; }
@keyframes journal-code-reveal { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0); } }

@media (max-width: 1100px) {
  .panel-journal .journal-cover {
    right: 6%;
    left: 6%;
    grid-template-columns: minmax(325px, .9fr) minmax(0, 1.1fr);
    gap: 4%;
  }

  .journal-copy h2 {
    font-size: clamp(54px, 6vw, 72px);
  }

  .journal-kicker {
    gap: 9px;
    margin-bottom: 20px;
    font-size: 10px;
  }

  .journal-deck {
    margin-top: 17px;
    font-size: 11px;
  }

  .journal-switch {
    margin-top: 23px;
  }

  .journal-switch button {
    min-height: 48px;
    font-size: 11px;
  }

  .journal-visual {
    height: 59vh;
    min-height: 360px;
  }

  .journal-page-writing {
    padding: 30px 27px 25px 33px;
  }

  .journal-page-writing h3 {
    font-size: clamp(26px, 3vw, 38px);
  }

  .journal-page-copy {
    font-size: 10px;
  }
}

@media (max-width: 800px) and (min-width: 601px) {
  .panel-journal .journal-cover {
    inset: 15% 5% 14%;
    grid-template-columns: minmax(265px, .92fr) minmax(0, 1.08fr);
    gap: 3%;
  }

  .journal-copy h2 {
    font-size: clamp(48px, 6.7vw, 57px);
  }

  .journal-topics {
    gap: 7px;
    font-size: 8px;
  }

  .journal-visual {
    height: 53vh;
    min-height: 330px;
  }

  .journal-board-stamp {
    left: 17px;
    right: 17px;
    font-size: 6px;
  }

  .journal-board-stamp b {
    font-size: 8px;
  }

  .journal-page,
  .journal-code-page {
    inset: 13% 6% 8% 9%;
  }

  .journal-page-writing {
    padding: 24px 20px 22px 27px;
  }

  .journal-page-writing h3 {
    font-size: 27px;
  }

  .journal-page-copy br {
    display: none;
  }

  .journal-editor {
    padding: 0 8px 14px;
  }

  .journal-editor-head {
    gap: 4px;
    font-size: 6px;
  }

  .journal-editor pre {
    font-size: 6px;
  }

  .journal-mini-site {
    padding: 10px 8px;
  }
}

@media (max-width: 600px) {
  .panel-journal .journal-cover {
    inset: 12% 7% 13%;
    display: block;
  }

  .journal-copy {
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    padding: 0;
  }

  .journal-kicker {
    gap: 8px;
    margin-bottom: 12px;
    font-size: 9px;
  }

  .journal-kicker i {
    font-size: 14px;
  }

  .journal-copy h2 {
    font-size: clamp(38px, 10.7vw, 54px);
    line-height: 1.03;
    letter-spacing: -.08em;
  }

  .journal-deck {
    margin-top: 11px;
    font-size: 9px;
    line-height: 1.65;
  }

  .journal-deck br {
    display: none;
  }

  .journal-switch {
    position: relative;
    top: auto;
    left: 0;
    width: min(100%, 335px);
    margin-top: 20px;
  }

  .journal-switch button {
    min-height: 39px;
    gap: 9px;
    padding: 0 10px;
    font-size: 10px;
  }

  .journal-switch button span {
    font-size: 7px;
  }

  .journal-switch button::after {
    right: 10px;
    width: 5px;
    height: 5px;
  }

  .journal-topics {
    display: none;
  }

  .journal-visual {
    position: absolute;
    top: 215px;
    right: 0;
    left: 0;
    height: calc(100% - 215px);
    min-height: 205px;
    max-height: none;
  }

  .journal-visual::before {
    inset: 6px -6px -6px 6px;
  }

  .journal-visual::after {
    width: 6px;
  }

  .journal-board-stamp {
    top: 13px;
    left: 15px;
    right: 15px;
    font-size: 6px;
  }

  .journal-board-stamp b {
    font-size: 8px;
  }

  .journal-page,
  .journal-code-page {
    inset: 14% 7% 9% 9%;
  }

  .journal-page-writing {
    padding: 18px 19px 20px 24px;
  }

  .journal-page-writing::before {
    width: 6px;
  }

  .journal-page-writing::after {
    inset: 8px;
  }

  .journal-page-head {
    font-size: 7px;
  }

  .journal-page-rule {
    margin-top: 10px;
  }

  .journal-page-overline {
    margin-top: 18px;
    font-size: 7px;
  }

  .journal-page-writing h3 {
    margin-top: 7px;
    font-size: clamp(21px, 6.2vw, 30px);
  }

  .journal-page-copy {
    margin-top: 8px;
    font-size: 8px;
    line-height: 1.6;
  }

  .journal-page-copy br {
    display: none;
  }

  .journal-page-margin {
    display: none;
    right: 7%;
    top: 47%;
    gap: 6px;
    width: 16%;
  }

  .journal-page-foot {
    right: 19px;
    bottom: 12px;
    left: 24px;
    gap: 7px;
    padding-top: 7px;
    font-size: 6px;
  }

  .journal-code-page {
    grid-template-columns: 1.1fr .9fr;
    padding: 8% 5% 6%;
  }

  .journal-editor {
    padding: 0 6px 9px;
  }

  .journal-editor-head {
    min-height: 25px;
    gap: 4px;
    font-size: 6px;
  }

  .journal-editor-head > span:last-child {
    font-size: 5px;
  }

  .journal-editor-mark {
    gap: 2px;
  }

  .journal-editor-mark i {
    width: 4px;
    height: 4px;
  }

  .journal-editor pre {
    margin-top: 11px;
    font-size: 8px;
    line-height: 1.85;
  }

  .journal-editor-foot {
    margin-top: auto;
    padding-top: 9px;
    font-size: 7px;
  }

  .journal-mini-site {
    min-height: 65%;
    padding: 8px 6px;
    box-shadow: -4px 0 0 #df432f, 5px 7px 0 #0004;
  }

  .journal-mini-site-head {
    font-size: 5px;
  }

  .journal-mini-site-head i {
    width: 6px;
    height: 6px;
  }

  .journal-mini-site-copy > span,
  .journal-mini-site-copy small {
    font-size: 5px;
  }

  .journal-mini-site-copy strong {
    font-size: clamp(25px, 7.5vw, 34px);
  }

  .journal-mini-site-copy i {
    width: 18px;
    height: 2px;
    margin: 6px 0;
  }

  .journal-mini-site-foot {
    padding-top: 5px;
    font-size: 5px;
  }

  .journal-board-index {
    right: 8px;
    bottom: 11px;
    font-size: 6px;
  }

  .journal-board-crosshair {
    right: 14px;
    bottom: 15px;
    font-size: 15px;
  }
}

@media (max-width: 600px) and (max-height: 760px) {
  .panel-journal .journal-cover {
    top: 11%;
    bottom: 11%;
  }

  .journal-copy h2 {
    font-size: clamp(36px, 10vw, 48px);
  }

  .journal-deck {
    margin-top: 8px;
    font-size: 8px;
  }

  .journal-switch {
    top: auto;
  }

  .journal-visual {
    top: 200px;
    height: calc(100% - 200px);
    min-height: 172px;
  }
}

@media (max-width: 370px) {
  .journal-copy h2 {
    font-size: 36px;
  }

  .journal-switch {
    top: auto;
  }

  .journal-visual {
    top: 190px;
    height: calc(100% - 190px);
    min-height: 165px;
  }

  .journal-page-writing {
    padding: 15px 14px 17px 20px;
  }

  .journal-page-writing h3 {
    font-size: 20px;
  }

  .journal-page-foot {
    right: 14px;
    left: 20px;
    gap: 4px;
    font-size: 5px;
  }
}

@media (max-height: 760px) and (min-width: 601px) {
  .panel-journal .journal-cover {
    top: 15%;
    bottom: 12%;
  }

  .journal-copy h2 {
    font-size: clamp(52px, 6vw, 76px);
  }

  .journal-kicker {
    margin-bottom: 18px;
  }

  .journal-deck {
    margin-top: 15px;
  }

  .journal-switch {
    margin-top: 20px;
  }

  .journal-visual {
    height: 62vh;
    min-height: 350px;
  }

  .journal-page-overline {
    margin-top: 26px;
  }
}

/* The paper becomes a compact, readable index of original articles. */
.journal-directory {
  inset: 11% 6% 7% 9%;
  display: flex;
  flex-direction: column;
  padding: clamp(20px, 2.3vw, 34px) clamp(20px, 2.5vw, 37px) 19px;
}

.journal-directory-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 14px;
  border-bottom: 2px solid #151715;
}

.journal-directory-head h3 {
  margin: 0;
  font-size: clamp(20px, 2vw, 30px);
  line-height: 1.2;
  letter-spacing: -.04em;
}

.journal-directory-head h3 span { color: #df432f; }
.journal-directory-head > span { color: #62665f; font: 8px var(--mono); white-space: nowrap; }

.journal-articles {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-rows: repeat(5, minmax(min-content, 1fr));
  flex: 1;
  min-height: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.journal-articles li { display: flex; min-width: 0; border-bottom: 1px solid #15171530; }
.journal-articles a {
  position: relative;
  display: grid;
  grid-template-columns: 21px minmax(0, 1fr) 17px;
  align-items: center;
  gap: 11px;
  width: 100%;
  min-height: 44px;
  padding: 12px 0;
  isolation: isolate;
}

.journal-articles a::before {
  position: absolute;
  z-index: -1;
  inset: 2px -10px;
  background: #df432f0f;
  content: "";
  opacity: 0;
  transform: scaleX(.96);
  transform-origin: left;
  transition: opacity .22s, transform .32s cubic-bezier(.2,.7,.2,1);
}

.journal-article-number { color: #df432f; font: 10px var(--mono); transition: color .22s; }
.journal-article-title { font-size: clamp(13px, 1.13vw, 17px); font-weight: 600; line-height: 1.6; overflow-wrap: anywhere; }
.journal-article-arrow { color: #62665f; font: 20px/1 Arial, sans-serif; transition: color .22s, transform .32s cubic-bezier(.2,.7,.2,1); }
.journal-articles a:hover::before, .journal-articles a:focus-visible::before { opacity: 1; transform: scaleX(1); }
.journal-articles a:hover .journal-article-arrow, .journal-articles a:focus-visible .journal-article-arrow { color: #df432f; transform: translate(3px,-3px); }
.journal-articles a:hover .journal-article-number { color: #151715; }
.journal-articles a:focus-visible { outline-offset: 3px; }

.journal-directory-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-top: 12px;
  color: #62665f;
  font-size: 8px;
}

@media (min-width: 601px) and (max-width: 900px) {
  .journal-directory { inset: 12% 4% 7% 7%; padding: 18px 17px 14px 21px; }
  .journal-directory-head { padding-bottom: 11px; }
  .journal-directory-head > span { display: none; }
  .journal-articles a { grid-template-columns: 16px minmax(0,1fr) 13px; gap: 7px; padding: 8px 0; }
  .journal-article-title { font-size: 12px; line-height: 1.5; }
  .journal-article-arrow { font-size: 17px; }
  .journal-directory-foot { font-size: 6px; padding-top: 9px; }
}

@media (max-width: 600px) {
  .journal-directory { inset: 11% 5% 6% 7%; padding: 17px 18px 13px 22px; }
  .journal-directory-head { gap: 7px; padding-bottom: 10px; }
  .journal-directory-head h3 { font-size: 21px; }
  .journal-directory-head > span { font-size: 7px; }
  .journal-articles a { grid-template-columns: 17px minmax(0,1fr) 15px; gap: 8px; padding: 8px 0; }
  .journal-article-title { font-size: 13px; line-height: 1.5; }
  .journal-article-number { font-size: 8px; }
  .journal-article-arrow { font-size: 18px; }
  .journal-directory-foot { padding-top: 9px; font-size: 7px; }
}

@media (max-width: 600px) and (max-height: 760px) {
  .journal-visual { top: 190px; height: calc(100% - 190px); }
  .journal-directory { inset: 11% 4% 5% 6%; padding: 12px 13px 10px 18px; }
  .journal-directory-head { padding-bottom: 7px; }
  .journal-directory-head h3 { font-size: 19px; }
  .journal-articles a { min-height: 37px; padding: 5px 0; gap: 6px; }
  .journal-article-title { font-size: 12px; line-height: 1.45; }
  .journal-directory-foot { padding-top: 7px; font-size: 6px; }
}

/* A single frame clock carries the physical card into the journal. */
body[data-book-transition="true"] { --fg: var(--book-ink); --fg-muted: var(--book-ink); color: var(--book-ink); }
body[data-book-transition="true"] .panel-approach { color: #eeece4; --fg: #eeece4; --fg-muted: #a3aa9e; --rule: #eeece43a; }
body[data-book-transition="true"] .field-backdrop { background: var(--book-backdrop); transition: none; }
body[data-book-transition="true"] .field-header,
body[data-book-transition="true"] .field-footer { opacity: var(--book-ui-opacity); transition: none; }
body[data-book-transition="true"] .transition-slice { display: none; animation: none; }
body[data-book-transition="true"] .part-readout,
body[data-book-transition="true"] .field-watermark,
body[data-book-transition="true"] .field-guides { opacity: 0; transition: none; }
body[data-book-transition="true"] .panel-journal .journal-copy {
  opacity: var(--book-copy-reveal);
  transform: translateX(var(--book-copy-x));
  transition: none;
}
body[data-book-transition="true"] .panel-journal .journal-visual {
  opacity: var(--book-board-reveal);
  transform: none;
  transition: none;
}
body[data-book-transition="true"] .fc-stage { animation: none; }
body[data-book-transition="true"] .fc-piece { opacity: var(--fc-object-opacity); }
body[data-book-transition="true"] .fc-face-front > * { opacity: var(--fc-print-opacity); }

.fc-book .fc-book-landing.journal-visual {
  position: absolute;
  inset: 0 auto auto 0;
  min-height: 0;
  max-height: none;
  transform-origin: top left;
  transition: none;
  pointer-events: none;
  z-index: 2;
}
.fc-book-landing .journal-page,
.fc-book-landing .journal-code-page { transition: none; }
.fc-book-landing .journal-code-page {
  opacity: 1;
  visibility: visible;
  transform: rotateY(0deg) translateX(0);
}
.fc-book-back,
.fc-book-block,
.fc-book-spine { opacity: var(--book-binding-opacity, 1); }

body[data-paused="true"] .panel-journal *,
.page-hidden .panel-journal * {
  transition-duration: 0s !important;
  animation-play-state: paused !important;
}

body[data-paused="true"] .journal-editor pre,.page-hidden .journal-editor pre { animation:none!important;clip-path:none; }

@media (prefers-reduced-motion: reduce) {
  .panel-journal *,
  .panel-journal *::before,
  .panel-journal *::after {
    scroll-behavior: auto !important;
    transition: none !important;
    animation: none !important;
  }
}
