html,
body {
  min-height: 100%;
  overflow: auto;
}

body {
  background: var(--hm-surface);
}

.content-page {
  width: min(860px, calc(100% - 32px));
  margin: 0 auto;
  padding: 32px 0 56px;
  color: var(--hm-text);
  line-height: 1.6;
}

.content-page .content-home {
  display: inline-block;
  margin-bottom: 28px;
  color: var(--hm-primary);
  font-weight: 750;
  text-decoration: none;
}

.content-page .content-home:hover {
  text-decoration: underline;
}

.content-page h1,
.content-page h2,
.content-page h3 {
  line-height: 1.25;
}

.content-page h1 {
  margin: 0 0 16px;
  font-size: clamp(2rem, 4vw, 3rem);
}

.content-page h2 {
  margin: 38px 0 12px;
  padding-top: 24px;
  border-top: 1px solid var(--hm-line);
  font-size: 1.45rem;
}

.content-page h3 {
  margin: 24px 0 8px;
  font-size: 1.05rem;
}

.content-page p,
.content-page ul {
  margin: 0 0 14px;
}

.content-page ul {
  padding-left: 24px;
}

.content-page a {
  color: var(--hm-primary);
  font-weight: 700;
}

.content-page .button {
  text-decoration: none;
}

.content-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin-top: 44px;
  padding-top: 22px;
  border-top: 1px solid var(--hm-line);
}

.content-links a {
  color: var(--hm-primary);
  font-size: 0.95rem;
  font-weight: 750;
  text-decoration: none;
}

.content-links a:hover {
  text-decoration: underline;
}

.content-links a[aria-current="page"] {
  color: var(--hm-text);
}

@media (max-width: 640px) {
  .content-page {
    width: min(100% - 24px, 860px);
    padding: 22px 0 40px;
  }

  .content-page h1 {
    font-size: 2rem;
  }
}
