.vh {
  --vh-ink: #1c1b19;
  --vh-quiet: #6a665e;
  --vh-paper: #f6f3ee;
  --vh-gold: #e6a317;
  --vh-hi: rgba(255, 215, 91, 0.62);
  --vh-hi-ink: #c9a227;
  --vh-hand: "Just Another Hand", "Caveat", cursive;
  --vh-brush: "Caveat Brush", "Caveat", cursive;
  --vh-mono: ui-monospace, "Cascadia Code", "SF Mono", Menlo, monospace;
  background: var(--vh-paper);
  color: var(--vh-ink);
  font-family: var(--vh-hand);
  font-size: clamp(1.45rem, 2.4vw, 1.85rem);
  line-height: 1.2;
  margin: 0 auto;
  max-width: 42rem;
  padding: 28px 22px 64px;
}

.vh > * { margin: 0 0 0.7em; }
.vh > :last-child { margin-bottom: 0; }

.vh h1, .vh h2, .vh h3 {
  font-family: var(--vh-brush);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin: 0.9em 0 0.35em;
}
.vh h1 { font-size: 2.15em; margin-top: 0; }
.vh h2 { font-size: 1.45em; }

.vh p { max-width: 36em; }
.vh a { color: #2c6bb2; }
.vh ul, .vh ol { max-width: 36em; padding-left: 1.15em; }
.vh li { margin: 0.12em 0; }
.vh strong { font-weight: 700; }

.vh-hi {
  background: transparent;
  border-radius: 0.4em;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
  color: inherit;
  isolation: isolate;
  padding: 0 0.12em;
  position: relative;
  z-index: 0;
}
.vh-hi::before {
  background: var(--vh-hi);
  border-radius: 48% 54% 44% 49%;
  content: "";
  inset: 0.08em -0.08em 0.02em -0.06em;
  position: absolute;
  transform: rotate(-1.4deg) skewX(-5deg);
  z-index: -1;
}
.vh-hi::after {
  border-bottom: 0.07em solid var(--vh-hi-ink);
  border-radius: 50%;
  bottom: -0.06em;
  content: "";
  left: 0.04em;
  opacity: 0.75;
  position: absolute;
  right: 0.02em;
  transform: rotate(-1deg);
}

.vh-ring {
  display: inline-block;
  font-style: normal;
  isolation: isolate;
  padding: 0 0.14em;
  position: relative;
}
.vh-ring::before,
.vh-ring::after {
  border: 0.1em solid currentColor;
  border-radius: 50%;
  content: "";
  inset: -0.16em -0.26em -0.12em -0.24em;
  pointer-events: none;
  position: absolute;
}
.vh-ring::before { transform: rotate(-3deg) scale(1.02, 0.92); }
.vh-ring::after {
  border-width: 0.06em;
  inset: -0.22em -0.18em -0.08em -0.3em;
  opacity: 0.45;
  transform: rotate(4deg) scale(0.98, 1.06);
}

.vh del {
  text-decoration-thickness: 0.1em;
  text-decoration-skip-ink: none;
}

.vh :not(pre) > code {
  background: rgb(28 27 25 / 8%);
  border-radius: 0.35em;
  font-family: var(--vh-mono);
  font-size: 0.58em;
  padding: 0.12em 0.4em;
  vertical-align: middle;
}

.vh pre {
  background: #1c1b19;
  border-radius: 10px;
  color: #efe8dc;
  font-family: var(--vh-mono);
  font-size: 0.58em;
  line-height: 1.45;
  overflow-x: auto;
  padding: 12px 14px;
}

.vh-chart { margin: 1.2em 0 1.4em; }
.vh-chart svg { display: block; height: auto; overflow: visible; width: 100%; }
.vh-chart__title {
  font-family: var(--vh-brush);
  font-size: 0.85em;
  margin: 0 0 0.3em;
}
.vh-chart__grid { stroke: rgb(28 27 25 / 14%); stroke-dasharray: 3 6; }
.vh-chart__axis { fill: none; stroke: var(--vh-ink); stroke-linecap: round; stroke-width: 2; }
.vh-chart__line { fill: none; stroke-linecap: round; stroke-linejoin: round; stroke-width: 3; }
.vh-chart__tick { fill: var(--vh-quiet); font-family: var(--vh-hand); font-size: 18px; }
.vh-chart__legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin: 8px 0 0;
}
.vh-chart__legend span { align-items: center; display: inline-flex; font-size: 0.8em; gap: 6px; }
.vh-chart__legend i { border-radius: 50%; display: block; height: 0.55em; width: 0.55em; }

.vh.is-writing .vh-chart__line {
  animation: none;
  stroke-dashoffset: 0;
}

@media (prefers-reduced-motion: no-preference) {
  .vh:not(.is-writing) .vh-chart__line {
    animation: vh-draw 700ms ease-out both;
    stroke-dasharray: 1400;
    stroke-dashoffset: 1400;
  }
}
@keyframes vh-draw { to { stroke-dashoffset: 0; } }
