/* The source text remains readable without JavaScript and accessible after enhancement. */
.writing-source {
  position:absolute!important;
  width:1px!important;
  height:1px!important;
  padding:0!important;
  margin:-1px!important;
  overflow:hidden!important;
  clip:rect(0,0,0,0)!important;
  white-space:nowrap!important;
  border:0!important;
}
.section .written-label,
section .written-label {
  position:relative;
  display:flex;
  align-items:center;
  gap:10px;
  width:var(--writing-width,260px);
  max-width:100%;
  margin:0 0 3px;
  color:#80503e;
  line-height:1;
  pointer-events:none;
  isolation:isolate;
}
.section .chapter-writing,
section .chapter-writing { margin-bottom:16px; }
.handwriting-number {
  flex:0 0 20px;
  color:var(--olive,#62694f);
  font:10px/1 var(--sans,Arial,sans-serif);
  letter-spacing:.08em;
  opacity:.8;
}
.handwriting-svg {
  display:block;
  flex:1 1 auto;
  min-width:0;
  width:100%;
  height:auto;
  overflow:visible;
}
.handwriting-svg .ink-stroke {
  fill:none;
  stroke:currentColor;
  stroke-linecap:round;
  stroke-linejoin:round;
  opacity:.94;
}
.writing-quill {
  opacity:0;
  pointer-events:none;
}
.story-thread #thread-guide { stroke-width:.65;opacity:.035; }
.story-thread #thread-ink { stroke-width:1.35;opacity:.56; }
.story-thread #thread-needle { fill:none;filter:none; }
#thread-needle .quill-vane,
.writing-quill .quill-vane {
  fill:var(--paper,#f9f7f1);
  fill-opacity:.96;
  stroke:var(--rust,#9c5d4c);
  stroke-width:.8;
  stroke-linecap:round;
  stroke-linejoin:round;
}
#thread-needle .quill-shaft,
.writing-quill .quill-shaft {
  fill:none;
  stroke:var(--rust,#9c5d4c);
  stroke-width:.9;
  stroke-linecap:round;
}
#thread-needle .quill-tip,
.writing-quill .quill-tip { fill:var(--rust,#9c5d4c);stroke:none; }
.gifts .written-label,
.last-note .written-label { margin-inline:auto; }
@media(max-width:760px) {
  .section .written-label,section .written-label { max-width:100%; }
  .section .chapter-writing,section .chapter-writing { margin-bottom:12px; }
  .story-thread #thread-ink { stroke-width:1.15;opacity:.5; }
}
@media(prefers-reduced-motion:reduce) {
  .handwriting-svg .ink-stroke { stroke-dashoffset:0!important; }
  .writing-quill,#thread-needle { display:none!important; }
}
@media print {
  .handwriting-svg .ink-stroke { stroke-dashoffset:0!important; }
  .writing-quill,#thread-needle { display:none!important; }
}

