.signature {
  width: fit-content;
  max-width: 100%;
  margin: 0 0 1.6rem;
  color: var(--rust);
  font: italic 2.2rem/1.25 "Snell Roundhand", "Segoe Script", Georgia, cursive;
  overflow-wrap: anywhere;
}

.signature svg {
  display: block;
  max-width: 100%;
  height: auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 36;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@media (prefers-reduced-motion: no-preference) and (scripting: enabled) {
  .signature path {
    stroke-dasharray: 1 1;
    animation: write-signature var(--duration) linear var(--delay) backwards;
  }
}

@keyframes write-signature {
  0% { stroke-dashoffset: 1; opacity: 0; }
  0.1% { opacity: 1; }
  100% { stroke-dashoffset: 0; opacity: 1; }
}

@media print {
  .signature path { animation: none; }
}
