/* Drawings share the page's ink. Quotations and inscriptions remain live type. */
.bw-reading .nr-chapter .record-hand,
.bw-reading .nr-chapter .record-part-title,
.bw-reading .nr-chapter .record-dedication p {
  font-family:'Beforeword Ballpoint', cursive;
  font-style:normal;
  font-weight:400;
  letter-spacing:normal;
  color:var(--bw-book-ink-blue,var(--bw-shell-blue,#233e85));
  background:transparent;
  text-transform:none;
  overflow-wrap:break-word;
}
.bw-reading .nr-chapter blockquote.record-hand {
  padding:0; border:0; margin:1em 0 1.05em;
  max-width:32ch; font-size:1.65em; line-height:1.20; text-align:start;
}
.bw-reading .nr-chapter .record-hand.record-black-ink {color:var(--bw-book-ink-text,var(--ink,currentColor))}
.bw-reading .nr-chapter h1.record-part-title {font-size:clamp(2em,5vw,2.65em);line-height:1.12;max-width:100%;margin:.2em 0 .35em}
.bw-reading .nr-chapter .record-dedication {margin:1.8em 0 1.4em;background:transparent}
.bw-reading .nr-chapter .record-dedication p {font-size:1.65em;line-height:1.24;max-width:32ch;margin:.65em 0}
.bw-reading .nr-chapter .record-drawing,
.bw-reading .nr-chapter .record-alphabet,
.bw-reading .nr-chapter .record-portrait,
.bw-reading .nr-chapter .record-photo-pair,
.bw-reading .nr-chapter .record-zoom {background:transparent}
.bw-reading .nr-chapter .record-ink-vector {color:var(--bw-book-ink-blue,var(--bw-shell-blue,#233e85));width:100%;max-width:100%;height:auto;display:block;overflow:visible}
.bw-reading .nr-chapter figure.record-portrait {width:min(86%,25rem);max-width:100%;margin:1.4rem auto .7rem}
.bw-reading .nr-chapter figure.record-drawing {
  width:min(80%,26rem);max-width:100%;margin:1.65rem auto .7rem;
}
.bw-reading .nr-chapter .nr-src-part-visual > figure.record-drawing {width:min(85%,28rem)}
.bw-reading .nr-chapter figure.record-drawing.nr-src-sketch-wide {width:min(90%,32rem)}
.bw-reading .nr-chapter figure.record-drawing.nr-src-sketch-line {width:min(78%,28rem);margin-block:1.65rem}
.bw-reading .nr-chapter figure.record-alphabet {width:min(100%,32rem);max-width:100%;margin:1.2em auto .7rem}
.bw-reading .nr-chapter .record-zoom {margin:1.3em auto .65rem;max-width:31em;color:var(--bw-book-ink-text,var(--ink,currentColor))}
.bw-reading .nr-chapter .record-zoom-labels {display:grid;grid-template-columns:53% 23% 24%;line-height:1.24;font:400 .82em/1.25 Golos,Arial,sans-serif;padding:0 0 .35em;margin:0;color:var(--nr-muted,currentColor)}
.bw-reading .nr-chapter .record-zoom-labels span {display:block;min-width:0;padding-inline-end:.3em}
.bw-reading .nr-chapter .record-zoom svg {width:100%;height:auto;display:block}
.bw-reading .nr-chapter .record-inspect-box {stroke:var(--bw-book-ink-blue,var(--bw-shell-blue,#233e85))}
.bw-reading .nr-chapter .record-photo-pair {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.8em 1.35em;max-width:30em;margin:1em auto .7rem}
.bw-reading .nr-chapter .record-photo-pair figure {margin:0;min-width:0}
.bw-reading .nr-chapter .record-photo-pair figcaption {margin:0 0 .4em;color:var(--nr-muted,currentColor)}
.bw-reading .nr-chapter .record-photo-frame {position:relative;overflow:hidden;margin:0;width:100%;aspect-ratio:var(--record-photo-aspect)}
.bw-reading .nr-chapter .record-photo-frame img {position:absolute;display:block;left:var(--record-img-left);top:var(--record-img-top);width:var(--record-img-width);height:auto;max-width:none}
.bw-reading .nr-chapter .record-photo-frame svg {display:block;position:absolute;inset:0;width:100%;height:100%;overflow:hidden;pointer-events:none}
.bw-reading .nr-chapter .record-photo-pair .record-photo-frame {max-height:none}
@media(max-width:30em){
  .bw-reading .nr-chapter .record-zoom-labels {font-size:.79em}
  .bw-reading .nr-chapter .record-photo-pair {gap:.8em}
}
@media (forced-colors:active) {
  .bw-reading .nr-chapter .record-ink-vector,.bw-reading .nr-chapter .record-zoom {color:CanvasText}
  .bw-reading .nr-chapter .record-inspect-box {stroke:LinkText}
}

/* Responsive book examples. Only comparisons with parallel entries share a row. */
.bw-reading .nr-writing {container:record-reading / inline-size}
.bw-reading .nr-writing .record-compare {display:grid;grid-template-columns:minmax(0,1fr);gap:.55em .75em}
.bw-reading .nr-writing .record-compare > p {grid-column:1/-1;margin:0}
.bw-reading .nr-writing .record-compare > .nr-src-scene-card,
.bw-reading .nr-writing .record-compare > .nr-src-scene-unframed {margin:0;min-width:0}
.bw-reading .nr-writing .nr-src-scene-heading,
.bw-reading .nr-writing .nr-src-scene-label {text-wrap:balance}
.bw-reading .nr-writing .nr-src-semantic-example > figcaption {margin-top:.65em}
.bw-reading .nr-writing .record-keep {white-space:nowrap}
.bw-reading .nr-writing .nr-src-scene-corrections .nr-src-scene-strike {color:var(--bw-book-ink-red,currentColor);text-decoration-thickness:.1em}
.bw-reading .nr-writing .nr-src-scene-corrections .nr-src-scene-equation strong {color:var(--bw-book-ink-green,currentColor)}
@container record-reading (min-width:25em) {
  .bw-reading .nr-writing .record-compare-2,.bw-reading .nr-writing .record-compare-4 {grid-template-columns:repeat(2,minmax(0,1fr))}
}
@container record-reading (min-width:29.5em) {
  .bw-reading .nr-writing .record-compare-3 {grid-template-columns:repeat(3,minmax(0,1fr))}
}
.bw-reading .nr-writing .nr-src-author-photo,
.bw-reading .nr-writing .nr-src-photo-gallery {margin-inline:auto}
.bw-reading .nr-writing .record-photo-pair {grid-template-rows:auto auto;grid-auto-flow:column;align-items:stretch}
.bw-reading .nr-writing .record-photo-pair > figure {display:grid;grid-row:1 / span 2;grid-template-rows:subgrid;align-content:start;row-gap:.4em}
.bw-reading .nr-writing .record-photo-pair figcaption {margin:0;text-wrap:balance}
.bw-reading .nr-writing .record-photo-pair .record-photo-frame {align-self:start}
.bw-reading .nr-writing .nr-src-photo-gallery .nr-src-photo-pair {grid-template-columns:minmax(0,.8fr) minmax(0,1.3333fr);align-items:start;gap:.55em}
.bw-reading .nr-writing .nr-src-photo-gallery .nr-src-photo-detail {margin-top:.55em}
@container record-reading (max-width:19em) {
  .bw-reading .nr-writing .nr-src-photo-gallery .nr-src-photo-pair {grid-template-columns:minmax(0,1fr)}
}
.bw-reading .nr-writing .nr-src-scene-caption .nr-src-caption-text {display:inline}
.bw-reading .nr-writing .nr-src-personal-lines {margin-inline-start:clamp(.4em,4%,1.5em)}
@font-face{font-family:'Beforeword Record ru';src:url('/assets/bw-native-books/record-alphabet-ru-ccf600e7a40f.woff2') format('woff2');font-weight:400;font-style:normal;font-display:block}
@font-face{font-family:'Beforeword Record en';src:url('/assets/bw-native-books/record-alphabet-en-9d8b2c8613d7.woff2') format('woff2');font-weight:400;font-style:normal;font-display:block}
@font-face{font-family:'Beforeword Record Sample';src:url('/assets/reading-editions-20261202/e0b4bcdc13b2d91878c1.woff') format('woff');font-weight:400;font-style:normal;font-display:block}
.bw-reading .nr-chapter .record-alphabet text,.bw-reading .nr-chapter .record-zoom-word{
  fill:currentColor;stroke:none;cursor:text;user-select:text;-webkit-user-select:text;
  font-weight:400;font-style:normal;font-synthesis:none;font-kerning:none;
  font-variant-ligatures:none;letter-spacing:0;word-spacing:0;text-transform:none;
}
.bw-reading .nr-chapter .record-alphabet text{font-size:256px}
html[lang=ru] .bw-reading .record-alphabet text{font-family:'Beforeword Record ru',sans-serif}
html[lang=en] .bw-reading .record-alphabet text{font-family:'Beforeword Record en',sans-serif}
.bw-reading .nr-chapter .record-zoom-word{font-family:'Beforeword Record Sample',serif}
.bw-reading .nr-chapter .record-alphabet .record-inspect-box,.bw-reading .nr-chapter .record-zoom .record-inspect-box{pointer-events:none}
.bw-reading .nr-chapter .record-zoom-labels{grid-template-columns:45% 26% 29%}
.bw-reading .nr-chapter .record-zoom-labels span{padding:0 .05em;overflow-wrap:normal;word-break:normal;hyphens:none}
.bw-reading .nr-chapter .record-zoom-labels span:nth-child(n+2){text-align:center}
@media (max-width:32em) {
  .bw-reading .nr-chapter .record-zoom-labels{grid-template-columns:42% 27% 31%}
  .bw-reading .nr-chapter .record-zoom-labels span{display:flex;flex-direction:column;justify-content:end;align-items:start;gap:.12em}
  .bw-reading .nr-chapter .record-zoom-labels span:nth-child(n+2){align-items:center}
  .bw-reading .nr-chapter .record-zoom-labels b{font-size:max(12px,.78em);font-weight:400;line-height:1}
  .bw-reading .nr-chapter .record-zoom-labels i{display:none}
}
.bw-reading .nr-chapter .record-zoom-labels b,.bw-reading .nr-chapter .record-zoom-labels i{font-weight:400;font-style:normal}

.bw-reading .nr-chapter .record-pen-drawing {
  display:block; position:relative; width:100%;
  color:var(--bw-book-ink-blue,var(--bw-shell-blue,#233e85));
}
.bw-reading .nr-chapter .record-pen-drawing > img {
  display:block; width:100%; max-width:100%; height:auto;
  margin:0; background:transparent; filter:none;
}
/* In the light theme the image carries the exact chromatic variation of the
   source. In the dark theme map its optical density onto a light pen; alpha,
   nib edges, pressure changes and small paper gaps stay in their pixels. */
html:is([data-theme="dark"],[data-appearance="dark"]) .bw-reading .nr-chapter .record-pen-drawing > img {
  filter:grayscale(1) invert(1) sepia(.3) saturate(2.8) hue-rotate(183deg);
}
@media (forced-colors:active) {
  .bw-reading .nr-chapter .record-pen-drawing {forced-color-adjust:none}
  .bw-reading .nr-chapter .record-pen-drawing > img {opacity:0}
  .bw-reading .nr-chapter .record-pen-drawing::after {
    content:"";position:absolute;inset:0;background:CanvasText;pointer-events:none;
    -webkit-mask:var(--record-pen-mask) center / 100% 100% no-repeat;
    mask:var(--record-pen-mask) center / 100% 100% no-repeat;
  }
}
@media print {
  html .bw-reading .nr-chapter .record-pen-drawing > img {filter:none}
}
