.ratio-page {
  max-width: 820px;
  margin: 0 auto;
  padding: 24px 0 96px;
}

.ratio-page__section[data-ratio-painted] {
  background-color: var(--ratio-section-bg, rgb(var(--color-background)));
}

.ratio-page__header {
  margin-bottom: 44px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgb(var(--color-border));
}

.ratio-page__title {
  margin: 0;
  color: var(--color-heading, rgb(var(--color-text-heading)));
}

.ratio-page__nav {
  margin-top: 22px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 24px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.ratio-page__nav a {
  color: var(--color-foreground-lighten-60, #666666);
  text-decoration: none;
  padding-bottom: 4px;
  border-bottom: 1px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.ratio-page__nav a:hover {
  color: var(--color-heading, rgb(var(--color-text-heading)));
  border-bottom-color: currentColor;
}

.ratio-page__nav-current {
  color: var(--color-heading, rgb(var(--color-text-heading)));
  padding-bottom: 4px;
  border-bottom: 2px solid currentColor;
}

.ratio-page__body {
  font-size: 16px;
  line-height: 1.8;
  color: var(--color-body, rgb(var(--color-foreground)));
}

.ratio-page__body h2 {
  font-family: var(--font-heading-family, "Playfair Display", serif);
  font-size: 25px;
  font-weight: 400;
  line-height: 1.3;
  margin: 36px 0 12px;
  color: var(--color-heading, rgb(var(--color-text-heading)));
}

.ratio-page__body h3 {
  font-family: var(--font-heading-family, "Playfair Display", serif);
  font-size: 19px;
  font-weight: 400;
  line-height: 1.35;
  margin: 26px 0 10px;
  color: var(--color-heading, rgb(var(--color-text-heading)));
}

.ratio-page__body ul,
.ratio-page__body ol {
  margin: 14px 0 22px;
  padding-inline-start: 22px;
}

.ratio-page__body li + li {
  margin-top: 8px;
}

.ratio-page__body p:last-child {
  margin-bottom: 0;
}

@media (max-width: 639px) {
  .ratio-page {
    padding: 16px 0 64px;
  }

  .ratio-page__header {
    margin-bottom: 28px;
    padding-bottom: 18px;
  }

  .ratio-page__body {
    font-size: 15px;
  }
}
