:root {
  --hv-cms-measure: 72ch;
  --hv-cms-leading: 1.72;
  --hv-cms-spacing: 1rem;
  --hv-cms-media-radius: 0.75rem;
  --hv-cms-focus: var(--ink, #3d3428);
  --hv-cms-caption: var(--ink-soft, #675945);
}

.hv-cms-guide,
.hv-cms-copy {
  max-width: var(--hv-cms-measure);
  margin-inline: auto;
}

.hv-cms-copy:not(:empty) {
  padding-block: var(--hv-cms-spacing);
}

:is(.hv-cms-guide, .hv-cms-copy, .info-article) {
  font-family: var(--font-sans, system-ui), "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: var(--hv-cms-leading);
  overflow-wrap: anywhere;
}

:is(.hv-cms-guide, .hv-cms-copy) :where(h2, h3) {
  margin-block: 1.35em 0.45em;
  line-height: 1.3;
}

:is(.hv-cms-guide, .hv-cms-copy) :where(p, ul, ol) {
  margin-block: 0 0.7em;
}

:is(.hv-cms-guide, .hv-cms-copy, .info-article) :where(a) {
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

:is(.hv-cms-guide, .hv-cms-copy, .info-article) :where(a:hover) {
  text-decoration-thickness: 0.12em;
}

:is(.hv-cms-guide, .hv-cms-copy, .info-article) :where(a, button, input, select, textarea, summary):focus-visible {
  outline: 2px solid var(--hv-cms-focus);
  outline-offset: 3px;
  border-radius: 2px;
}

:is(.hv-cms-guide, .hv-cms-copy, .info-article) :where(figure) {
  margin: var(--hv-cms-spacing) 0;
}

:is(.hv-cms-guide, .hv-cms-copy, .info-article) :where(img) {
  max-width: 100%;
  height: auto;
  border-radius: var(--hv-cms-media-radius);
}

:is(.hv-cms-guide, .hv-cms-copy, .info-article) :where(figcaption) {
  margin-block-start: 0.5em;
  color: var(--hv-cms-caption);
  font-size: 0.9rem;
}

@media (max-width: 40rem) {
  .hv-cms-guide {
    padding-inline: clamp(0.875rem, 4vw, 1.25rem);
  }

  :is(.hv-cms-guide, .hv-cms-copy) :where(ul, ol) {
    padding-inline-start: 1.35em;
  }
}
