/* The band shares its left margin with the other home sections. */
.section.dojo-reader {
  --gutter: max(20px, calc((100% - var(--container)) / 2));
  width: 100%;
  padding: clamp(46px, 6vw, 86px) var(--gutter) clamp(26px, 4vw, 54px);
  overflow: hidden;
  color: #faf2e7;
  background: radial-gradient(ellipse at 86% 62%, #482527, #251a1d 48%, #151316 88%);
}
.section.dojo-reader::before { content: none; }
.dojo-reader::after {
  content: "";
  position: absolute;
  z-index: -1;
  pointer-events: none;
  inset: 0;
  background: url("../images/casco-dojo.svg") no-repeat right max(4%, calc(var(--gutter) - 30px)) center / auto 94%;
  opacity: .55;
}
.dojo-reader header .eyebrow { color: #e6bd94; }
.dojo-reader header h2 { color: #fff5e7; }
.dojo-paper { position: relative; }
.dojo-pages { display: grid; width: min(64%, 700px); min-height: clamp(235px, 22vw, 350px); align-items: center; }
.dojo-paper.ready .precept { grid-area: 1/1; visibility: hidden; }
.dojo-paper.ready .precept.current { visibility: visible; }
.dojo-reader .kanji { color: #dbaf86; font: 500 clamp(18px,2vw,28px)/1.2 Georgia,serif; letter-spacing: .22em; margin: 0 0 14px; }
.precept h3 { font: 500 clamp(32px,4.3vw,66px)/1.06 Georgia,serif; max-width: 20ch; margin: 0; text-wrap: balance; }
.dojo-reader .precept p:last-child { color: #eadfd6; font-size: clamp(16px,1.5vw,20px); line-height: 1.5; max-width: 49ch; margin: 14px 0 22px; }
.dojo-paper button { min-width: 44px; min-height: 44px; border: 0; background: transparent; color: #eee0d3; font: inherit; cursor: pointer; touch-action: manipulation; }
.dojo-paper button:focus-visible { outline: 2px solid #f2c283; outline-offset: -3px; }
.dojo-paper button:hover { background: #ffffff13; }
.dojo-numbers { display: flex; justify-content: center; width: min(100%, 410px); padding: 8px 44px 0; border-top: 1px solid #ffffff35; box-sizing: border-box; }
.dojo-numbers[hidden] { display: none; }
.dojo-numbers button[aria-current="step"] { color: #ffd493; box-shadow: inset 0 -2px #dcad71; }
.dojo-paper .dojo-prev,.dojo-paper .dojo-next { position: absolute; bottom: 0; font: 30px/1 Georgia,serif; color: #d0b6a4; }
.dojo-prev { left: 0; }
.dojo-next { left: calc(min(100%, 410px) - 44px); }
@media(max-width:640px) {
  .section.dojo-reader { --gutter: 14px; padding-block: 44px 28px; }
  .dojo-reader::after { background-size: auto 80%; background-position: right -104px center; opacity: .36; mask-image: linear-gradient(to right,transparent 18%,#0005 52%,black 79%); }
  .dojo-pages { width: 85%; min-height: 258px; }
  .precept h3 { font-size: clamp(30px,7.5vw,42px); }
  .dojo-numbers button { min-width: min(44px, 12vw); }
}
