/* Рукописное подчёркивание и обводка слов в заголовках.
   Линия дорисовывается, когда заголовок попадает в зону видимости. */

.ink-word {
    position: relative;
    display: inline-block;
    color: inherit;
    white-space: nowrap;
    vertical-align: baseline;
}

.ink-word__text {
    position: relative;
    z-index: 1;
}

.ink-word svg {
    position: absolute;
    display: block;
    overflow: visible;
    pointer-events: none;
}

.ink-word svg path {
    fill: none;
    stroke: currentColor;
    stroke-width: 2.25px;
    stroke-linecap: round;
    stroke-linejoin: round;
    vector-effect: non-scaling-stroke;
    opacity: 0;
}

.search-section .ink-word svg {
    filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.45));
}

.ink-word--underline svg {
    left: -1%;
    bottom: 0.02em;
    width: 104%;
    height: 0.16em;
    transform: scaleY(-1);
}

.ink-word--underline-thin svg {
    left: -1%;
    bottom: 0.04em;
    width: 104%;
    height: 0.14em;
    transform: rotate(-1.7deg);
}

.ink-word--scribble svg {
    left: -2%;
    bottom: -0.28em;
    width: 106%;
    height: 0.34em;
}

.ink-word--circle {
    margin-left: 0.42em;
    margin-right: 0.16em;
}

.ink-word--circle svg {
    left: -6%;
    top: -42%;
    width: 110%;
    height: 184%;
    overflow: hidden;
}

@media (prefers-reduced-motion: reduce) {
    .ink-word svg path {
        opacity: 1;
    }
}
