/* Kaushan Script : composition normale des lettres, texte HTML modifiable.
   La police locale est déclarée dans style.css sous le nom ElSolBrush. */
.handwritten {
  font-family: ElSolBrush, cursive;
  font-weight: 400;
  font-style: normal;
  font-synthesis: none;
  letter-spacing: -.025em;
}

.together-native.reference-faithful h2.handwritten {
  left: calc(31 * var(--r));
  top: calc(27 * var(--r));
  font-size: calc(40 * var(--r));
  line-height: 1.06;
  letter-spacing: -.035em;
  transform: rotate(-8deg);
  transform-origin: left top;
}
.together-native.reference-faithful h2.handwritten > span { display: block; }
.together-native.reference-faithful h2.handwritten > span:nth-child(2) { margin-left: calc(8 * var(--r)); }
.together-native.reference-faithful h2.handwritten > mark {
  margin-left: calc(14 * var(--r));
  font-size: calc(26 * var(--r));
  letter-spacing: -.035em;
  line-height: 1.2;
}

.events-native.reference-faithful .catalina figcaption.handwritten {
  left: calc(12 * var(--r));
  top: calc(149 * var(--r));
  width: max-content;
  font-size: calc(28 * var(--r));
  line-height: 1.12;
  letter-spacing: -.025em;
  color: #fff;
  transform: rotate(-8deg);
  transform-origin: left top;
  text-shadow: 0 1px 3px #0008;
}
.events-native.reference-faithful .karaoke-note figcaption.handwritten {
  position: relative;
  left: calc(-6 * var(--r));
  margin-top: calc(5 * var(--r));
  font-size: calc(17 * var(--r));
  line-height: 1.08;
  letter-spacing: -.045em;
  text-align: center;
  white-space: nowrap;
  color: #24231e;
}

.flavours-native.reference-faithful h2 > mark.handwritten {
  margin: calc(1 * var(--r)) 0 calc(3 * var(--r));
  font-size: calc(28 * var(--r));
  line-height: 1.12;
  letter-spacing: -.04em;
  transform: rotate(-3deg);
  transform-origin: left center;
}
.flavours-native.reference-faithful h2 > span.handwritten {
  font-size: calc(27 * var(--r));
  line-height: 1.12;
  letter-spacing: -.04em;
}

@media (max-width: 700px) {
  .together-native.reference-faithful h2.handwritten {
    left: auto;
    top: auto;
    font-size: clamp(43px, 11.5vw, 70px);
  }
  .together-native.reference-faithful h2.handwritten > span:nth-child(2) { margin-left: 8px; }
  .together-native.reference-faithful h2.handwritten > mark {
    position: relative;
    width: max-content;
    margin-left: 14px;
    padding: 0 .2em;
    font-size: .65em;
  }
  .together-native.reference-faithful h2.handwritten > mark::before {
    content: '';
    position: absolute;
    inset: -.65em -.38em auto;
    aspect-ratio: 191 / 80;
    height: auto;
    z-index: -1;
    background: url('assets/reference/surlignage-partage.svg') center / 100% 100% no-repeat;
    clip-path: none;
    transform: rotate(14deg);
  }
  .together-native.reference-faithful .together-highlight { display: none; }
  .events-native.reference-faithful .catalina figcaption.handwritten {
    left: 3.74%;
    top: 52.46%;
    font-size: clamp(28px, 8.72vw, 53px);
  }
  .events-native.reference-faithful .karaoke-note figcaption.handwritten {
    left: -6px;
    margin-top: 8px;
    font-size: clamp(17px, 4.8vw, 28px);
  }
  .events-native.reference-faithful .event-text { --event-font: clamp(32px, 8.5vw, 44px); }
  .events-native.reference-faithful h2 { font-size: var(--event-font); }
  .events-native.reference-faithful .events-underline { top: calc(36px + 3.1 * var(--event-font)); }
  .flavours-native.reference-faithful h2 > mark.handwritten { font-size: 1.1em; margin: 3px 0 4px; }
  .flavours-native.reference-faithful h2 > span.handwritten { font-size: 1.06em; }
  .flavours-native.reference-faithful .flavours-highlight { top: 75px; width: 48%; }
}
